/* ══ MONTE DECO ══ */

:root {
  --cream:      #F8F5F0;
  --white:      #FFFFFF;
  --charcoal:   #2C2825;
  --brown:      #7B6357;
  --muted:      #9A8B80;
  --border:     rgba(44, 40, 37, 0.1);
  --dark:       #1C1916;
  --dark-muted: rgba(248, 245, 240, 0.55);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --nav-h: 80px;
  --px:    clamp(24px, 5vw, 80px);
  --py:    clamp(72px, 10vw, 140px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── PRELOADER ─────────────────────── */
.preloader {
  position: fixed; inset: 0; background: var(--cream);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-logo {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  color: var(--charcoal); letter-spacing: 0.06em;
}
.preloader-bar-wrap {
  width: 160px; height: 1px; background: var(--border); overflow: hidden;
}
.preloader-bar {
  height: 100%; width: 0%; background: var(--charcoal); transition: width 0.3s ease;
}

/* ── NAV ───────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 500;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 0 var(--px);
}
.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo {
  height: 64px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex; list-style: none; gap: 40px;
}
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-btn {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: white;
  text-decoration: none; background: var(--charcoal); padding: 10px 24px;
  transition: background 0.2s ease;
}
.nav-btn:hover { background: var(--brown); }

/* ── HERO ──────────────────────────── */
.hero { height: 700vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
}

/* Canvas como fondo full-bleed */
#chairCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Overlay de degradé para legibilidad del texto */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 22, 0.0) 0%,
    rgba(28, 25, 22, 0.0) 40%,
    rgba(28, 25, 22, 0.75) 100%
  );
  pointer-events: none;
}

/* Paneles de texto — se muestran/ocultan con JS según el progreso de scroll */
.scroll-panel {
  position: absolute; bottom: clamp(60px, 10vh, 100px); left: var(--px);
  z-index: 10; color: white;
  opacity: 0; pointer-events: none;
  max-width: 580px;
}

.hero-tag {
  display: block; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
}
.hero-title {
  font-family: var(--serif); font-size: clamp(64px, 9vw, 140px);
  font-weight: 400; line-height: 0.9; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; }
.hero-sub {
  font-size: 15px; font-weight: 300; line-height: 1.75;
  color: rgba(255, 255, 255, 0.72); margin-bottom: 36px;
  letter-spacing: 0.03em;
}
.hero-btn {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  background: white; padding: 14px 36px;
  transition: background 0.25s ease;
}
.hero-btn:hover { background: var(--cream); }

/* Títulos de paneles secundarios */
.panel-title {
  font-family: var(--serif); font-size: clamp(40px, 6vw, 90px);
  font-weight: 400; line-height: 0.95; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.panel-body {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: rgba(255, 255, 255, 0.68); max-width: 420px;
}
.panel-stats {
  display: flex; gap: 48px; margin-top: 36px;
}
.stat-num {
  display: block; font-family: var(--serif);
  font-size: 28px; font-weight: 400; line-height: 1; color: white;
  letter-spacing: 0.01em;
}
.stat-label {
  display: block; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: clamp(28px, 5vh, 48px); right: var(--px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; transition: opacity 0.6s ease 1.5s; z-index: 10;
}
.scroll-hint.is-visible { opacity: 1; }
.scroll-hint span {
  font-size: 9px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase; writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 48px; background: rgba(255, 255, 255, 0.2); overflow: hidden;
}
.scroll-fill {
  width: 100%; height: 100%; background: rgba(255, 255, 255, 0.6);
  transform: translateY(-100%);
  animation: scrollAnim 1.8s ease-in-out infinite 2s;
}
@keyframes scrollAnim {
  0%   { transform: translateY(-100%); }
  45%  { transform: translateY(0%); }
  55%  { transform: translateY(0%); }
  100% { transform: translateY(100%); }
}

/* ── PRODUCTS ──────────────────────── */
.products {
  padding: var(--py) var(--px);
  background: var(--white);
}
.products-header {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section-tag {
  display: block; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.section-tag--light { color: var(--dark-muted); }
.section-title {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 56px);
  font-weight: 400; letter-spacing: -0.01em; color: var(--charcoal);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  max-width: 1400px; margin: 0 auto;
}

/* Card */
.card { cursor: pointer; }
.card-img-wrap {
  position: relative; overflow: hidden;
  background: var(--cream);
  aspect-ratio: 3 / 4;
}
.card-img-wrap img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; padding: 16px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover .card-img-wrap img { transform: scale(1.05); }
.card-hover {
  position: absolute; inset: 0;
  background: rgba(28, 25, 22, 0.48);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 24px;
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover .card-hover { opacity: 1; }
.card-hover-btn {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--charcoal); text-decoration: none;
  background: white; padding: 12px 28px;
  transition: background 0.2s ease;
}
.card-hover-btn:hover { background: var(--cream); }
.card-body { padding: 14px 0 8px; }
.card-cat {
  display: block; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.card-name {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  color: var(--charcoal); letter-spacing: 0.01em;
}

/* ── ABOUT ─────────────────────────── */
.about {
  padding: var(--py) var(--px);
  background: var(--dark);
  color: white;
}
.about-inner { max-width: 700px; }
.about-title {
  font-family: var(--serif); font-size: clamp(44px, 7vw, 100px);
  font-weight: 400; line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.about-text {
  font-size: 16px; line-height: 1.9; font-weight: 300;
  color: rgba(248, 245, 240, 0.58); max-width: 500px;
}

/* ── CONTACT ────────────────────────── */
.contact {
  padding: var(--py) var(--px);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--border);
}
.contact-inner { text-align: center; }
.contact-title {
  font-family: var(--serif); font-size: clamp(40px, 6vw, 90px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.contact-sub {
  font-size: 15px; color: var(--muted); font-weight: 300;
  margin-bottom: 40px; letter-spacing: 0.03em;
}
.contact-btn {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: white; text-decoration: none;
  background: var(--charcoal); padding: 16px 48px;
  transition: background 0.25s ease;
}
.contact-btn:hover { background: var(--brown); }

.contact-actions {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.contact-btn-secondary {
  font-size: 12px; font-weight: 400; letter-spacing: 0.03em;
  color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.contact-btn-secondary:hover { color: var(--charcoal); }

/* ── FOOTER ─────────────────────────── */
.footer {
  padding: 32px var(--px);
  background: var(--white);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px 32px;
  max-width: 1400px; margin: 0 auto;
}
.footer-logo {
  height: 72px;
  width: auto;
  display: block;
}
.footer-copy { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

.footer-links {
  display: flex; align-items: center; gap: 28px;
}
.footer-ig {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--muted);
  font-size: 12px; letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.footer-ig:hover { color: var(--charcoal); }
.footer-ig-icon {
  width: 20px; height: 20px; flex-shrink: 0;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }
  .footer-logo { height: 56px; }
}

/* ── VIDEO DESTACADO ────────────────── */
.video-section {
  background: var(--dark);
  padding: var(--py) var(--px);
  color: white;
}
.video-section-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.video-section-header {
  max-width: 700px;
  margin-bottom: 48px;
}
.video-section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}
.video-section-title em { font-style: italic; }
.video-section-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(248, 245, 240, 0.58);
  line-height: 1.7;
  max-width: 480px;
}
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-fallback-play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(28, 25, 22, 0.55);
  border: 1px solid rgba(248, 245, 240, 0.4);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease;
}
.video-fallback-play:hover { background: rgba(28, 25, 22, 0.75); }
.video-fallback-play[hidden] { display: none; }
.video-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.video-caption {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.35);
}
.video-cta {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(248, 245, 240, 0.35);
  padding: 14px 32px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.video-cta:hover {
  border-color: white;
  background: rgba(248, 245, 240, 0.08);
}
@media (max-width: 600px) {
  .video-foot { justify-content: center; text-align: center; }
}

/* ── NAV DROPDOWN ──────────────────────── */
.nav-item-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em;
  color: var(--muted); padding: 0; font-family: var(--sans);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s ease;
}
.nav-dropdown-toggle:hover { color: var(--charcoal); }

/* Chevron CSS puro */
.nav-dropdown-arrow {
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-item-dropdown:hover .nav-dropdown-arrow,
.nav-item-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(-135deg) translateY(-2px);
}

.nav-dropdown {
  position: absolute; top: calc(100% + 18px); left: -16px;
  min-width: 192px; list-style: none;
  background: white; border: 1px solid var(--border);
  padding: 6px 0; z-index: 200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-link {
  display: block; padding: 11px 20px;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted); text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown-link:hover { color: var(--charcoal); background: var(--cream); }
.nav-dropdown li:not(:last-child) .nav-dropdown-link {
  border-bottom: 1px solid var(--border);
}

/* ── HAMBURGER ──────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 36px; height: 36px; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ────────────────────── */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--border);
  padding: 20px var(--px) 28px;
  display: flex; flex-direction: column;
  z-index: 490;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu-section {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding: 16px 0 4px;
  border-top: 1px solid var(--border); margin-top: 4px;
}
.mobile-menu-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.mobile-menu-link {
  display: block; padding: 9px 0;
  font-size: 17px; font-family: var(--serif); font-weight: 400;
  color: var(--charcoal); text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.mobile-menu-link:hover { color: var(--brown); }

/* ── PRODUCTOS — variantes ──────────── */
.products-sub {
  font-size: 15px; font-weight: 300;
  color: var(--muted); line-height: 1.7;
  max-width: 480px; margin: 16px auto 0;
  letter-spacing: 0.02em;
}

.products--japandi { background: var(--cream); }
.products--japandi .card-img-wrap { background: var(--cream); }

/* Fotos lifestyle → cover sin padding para llenar el encuadre */
.products--japandi .card-img-wrap img {
  object-fit: cover;
  padding: 0;
}

/* Grid 3 columnas para 6 productos (2 filas de 3) */
#gridJapandi { grid-template-columns: repeat(3, 1fr); }

.section-tag--japandi { color: var(--brown); }

/* ── REVEAL ─────────────────────────── */
.reveal-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up.is-revealed { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  /* Japandi mantiene 3 cols hasta tablet */
  #gridJapandi { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero { height: 500vh; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  #gridJapandi { grid-template-columns: repeat(2, 1fr); }
  .scroll-hint { display: none; }
  .video-foot { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  :root { --px: 20px; --py: 60px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  #gridJapandi { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav-btn { display: none; }
}

/* ══ PRODUCT MODAL ════════════════════════════════════ */

/* Overlay */
.modal {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 25, 22, 0.6);
  backdrop-filter: blur(4px);
}

/* Container */
.modal-container {
  position: relative; z-index: 1;
  background: white;
  width: 100%; max-width: 1080px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}
.modal.is-open .modal-container { transform: translateY(0); }

/* Close button */
.modal-close {
  position: absolute; top: 20px; right: 24px; z-index: 10;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--charcoal); }

/* ── Gallery (left panel) ───────────── */
.modal-gallery {
  background: var(--cream);
  display: flex; flex-direction: column;
}
.gallery-main-wrap {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 360px;
}
.gallery-main-img {
  max-width: 80%; max-height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}
.gallery-main-img.is-fading { opacity: 0; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: white; border: 1px solid var(--border);
  width: 40px; height: 40px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--charcoal);
  transition: background 0.2s ease;
}
.gallery-arrow:hover { background: var(--cream); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-thumbs {
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; border-top: 1px solid var(--border);
}
.gallery-thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  object-fit: contain; cursor: pointer;
  border: 2px solid transparent;
  background: white; padding: 4px;
  transition: border-color 0.2s ease;
}
.gallery-thumb.is-active { border-color: var(--charcoal); }

/* ── Info (right panel) ─────────────── */
.modal-info {
  padding: clamp(32px, 5%, 56px);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
.modal-cat {
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.modal-name {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 44px);
  font-weight: 400; letter-spacing: -0.01em; color: var(--charcoal);
  line-height: 1.1;
}
.modal-price-label {
  font-size: 13px; color: var(--muted); font-weight: 300;
  letter-spacing: 0.04em;
}
.modal-divider {
  height: 1px; background: var(--border); margin: 4px 0;
}
.modal-desc {
  font-size: 14px; line-height: 1.9; color: var(--muted);
  font-weight: 300;
}
.modal-colors-label {
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--charcoal);
  margin-bottom: 10px;
}
.modal-swatches {
  display: flex; gap: 10px; margin-bottom: 6px;
}
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.swatch:hover { transform: scale(1.15); }
.swatch.is-active {
  border-color: var(--charcoal);
  outline: 2px solid white;
  outline-offset: -4px;
}
.modal-color-name {
  font-size: 11px; color: var(--muted); letter-spacing: 0.06em;
  min-height: 16px;
}
.modal-cta {
  margin-top: auto;
  display: block; width: 100%;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: white;
  background: var(--charcoal); border: none; cursor: pointer;
  padding: 16px; text-align: center;
  transition: background 0.25s ease;
}
.modal-cta:hover { background: var(--brown); }

/* ── Modal responsive ───────────────── */
@media (max-width: 768px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 92vh;
    border-radius: 0;
    overflow-y: auto;
  }
  .gallery-main-wrap { min-height: 260px; }
}

/* ══ ACCESOS RÁPIDOS DE CONTACTO (FAB) ══════════════════ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.fab-group {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px) + 16px);
  bottom: max(20px, env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.fab-group.is-away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

.fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(28, 25, 22, 0.12);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.45s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.fab-group.is-visible .fab {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fab-group.is-visible .fab[data-fab="instagram"] { transition-delay: 0.08s; }

.fab:hover,
.fab:focus-visible {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
  box-shadow: 0 10px 26px rgba(28, 25, 22, 0.22);
  transform: translateY(-3px) scale(1);
}
.fab:active {
  transform: translateY(-1px) scale(0.94);
}
.fab:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

.fab-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Tooltip minimalista, solo en dispositivos con hover real (desktop) */
.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: var(--charcoal);
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fab:hover .fab-tooltip,
  .fab:focus-visible .fab-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 480px) {
  .fab { width: 50px; height: 50px; }
  .fab-icon { width: 22px; height: 22px; }
  .fab-group { gap: 12px; }
}
