/* ============================================================
   ENCUENTRA — styles.css
   ============================================================ */

:root {
  /* Colores corporativos */
  --c-main:   #E7A643;   /* principal (ámbar) */
  --c-green:  #D4E09B;
  --c-cream:  #F6F4D2;
  --c-olive:  #545643;
  --c-mauve:  #A790A5;

  --bg:       #F6F4D2;
  --ink:      #2c2d24;   /* olive muy oscuro para texto */
  --font-head:'Bricolage Grotesque', sans-serif;
  --font-body:'Poppins', sans-serif;

  --radius:   22px;
  --radius-lg:32px;
  --ease:     cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Tipografía de apoyo ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--c-main);
  margin: 0 0 14px;
}
.eyebrow--dark { color: var(--c-main); }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.section-title em { font-style: normal; color: var(--c-main); }

.section-sub {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  max-width: 46ch;
  margin: 0;
}

/* ============================================================
   NAVBAR — transparente arriba → pill flotante con blur
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0;
  transition: padding .5s var(--ease);
  will-change: padding;
}
.nav__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    max-width .55s var(--ease),
    padding   .55s var(--ease),
    margin    .55s var(--ease),
    border-radius .55s var(--ease),
    background .45s ease,
    border-color .45s ease,
    box-shadow .45s ease,
    backdrop-filter .45s ease;
}

/* Estado scrolleado → pill */
.nav.is-scrolled { padding: 14px 20px; }
.nav.is-scrolled .nav__inner {
  max-width: 880px;
  padding: 8px 14px 8px 20px;
  border-radius: 999px;
  /* Cristal oscuro: el logo blanco y los links claros se leen bien */
  background: color-mix(in srgb, var(--c-olive) 78%, transparent);
  border-color: color-mix(in srgb, #fff 14%, transparent);
  box-shadow: 0 10px 34px rgba(30,31,24,.28);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.nav__logo { display: flex; align-items: center; }
.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: height .55s var(--ease);
}
.nav.is-scrolled .nav__logo-img { height: 36px; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  transition: opacity .25s ease;
}
.nav__links a:hover { opacity: .7; }

.nav__cta {
  background: var(--c-main);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .3s ease;
}
.nav__cta:hover { transform: translateY(-2px); opacity: 1 !important; }

/* Pill de idioma ES / EN (toggle con indicador deslizante) */
.lang-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  touch-action: none;   /* permite el gesto de arrastre */
}
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0;
  border-radius: 999px;
  background: var(--c-main);
  z-index: 0; pointer-events: none;
  will-change: transform, width;
  transition: transform .4s cubic-bezier(.5, 1.5, .5, 1), width .4s cubic-bezier(.5, 1.5, .5, 1);
}
/* Durante el arrastre, el thumb sigue el dedo sin transición */
.lang-pill.is-dragging .lang-thumb { transition: none; }
.lang-pill.is-dragging { cursor: grabbing; }
.lang-opt {
  position: relative; z-index: 1;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; color: rgba(255,255,255,.72);
  background: transparent; border: none; cursor: pointer;
  padding: 4px 9px; line-height: 1;
  transition: color .3s ease;
}
.lang-opt:hover { color: #fff; }
.lang-opt.is-active { color: #fff; }

/* ============================================================
   TRANSICIÓN CURVA (curve swipe → Contacto)
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;              /* por encima del nav (100) */
  pointer-events: none;
  visibility: hidden;
}
.page-transition.is-active { visibility: visible; }
.page-transition svg { width: 100%; height: 100%; display: block; }
.page-transition__path { fill: var(--c-olive); }   /* mismo color del contenedor de Contacto */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 330vh;               /* recorrido de scroll para el scrub (más rápido) */
  background: var(--c-olive);
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  /* Degradado de respaldo (solo se ve si faltaran los fotogramas) */
  background:
    radial-gradient(120% 120% at 20% 10%, #6a6c52 0%, transparent 55%),
    radial-gradient(120% 120% at 90% 90%, var(--c-mauve) 0%, transparent 50%),
    var(--c-olive);
}
/* Primer frame estático: visible al instante, debajo del canvas */
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity .4s ease;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;            /* encima del poster; transparente hasta que dibuja */
  background: transparent;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(30,31,24,.35), rgba(30,31,24,.15) 40%, rgba(30,31,24,.5));
}
.hero__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}

.hero__hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.hero__hint-arrow {
  color: rgba(255,255,255,.85);
  animation: hintArrow 1.6s var(--ease) infinite;
}
@keyframes hintArrow {
  0%   { transform: translateY(0);   opacity: .4; }
  50%  { transform: translateY(7px); opacity: 1; }
  100% { transform: translateY(0);   opacity: .4; }
}

/* ---- Texto hero (tu componente, adaptado) ---- */
.hx-root {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.hx-rule {
  width: 0; height: 1px;
  background: rgba(255,255,255,.5);
  margin-bottom: 28px; display: block;
}
.hx-line1 { display: flex; justify-content: center; align-items: flex-end; gap: .2em; flex-wrap: wrap; }
.hx-word { display: block; overflow: hidden; line-height: 1.15; }
.hx-word span {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(24px, 5.2vw, 76px);
  font-weight: 300; letter-spacing: -.01em;
  color: #fff; line-height: 1.15;
  transform: translateY(110%); opacity: 0;
}
.hx-line2 { display: flex; justify-content: center; align-items: baseline; flex-wrap: nowrap; margin-top: .12em; }
.hx-char {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(54px, 14vw, 200px);
  font-weight: 800; letter-spacing: -.04em;
  color: #fff; line-height: .9;
  transform: translateY(60px) rotate(6deg); opacity: 0;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery {
  position: relative;
  background: var(--bg);
  padding: clamp(60px, 9vh, 110px) 0 0;   /* sin padding lateral: el escenario es full-bleed */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -32px;              /* sube sobre el hero para el efecto de curva */
  z-index: 5;
}
.section-head {
  max-width: 1240px;
  margin: 0 auto clamp(24px, 4vw, 40px);
  padding: 0 clamp(20px, 5vw, 60px);
}
.section-head .section-sub { margin-top: 8px; }

/* Escenario que se "pinea" mientras la pieza central se expande */
.gallery__stage {
  position: relative;         /* contiene a la pieza que se expande a pantalla completa */
  height: 100vh;
  display: grid;
  place-items: center;
}
.gallery__grid {
  width: min(1320px, 94vw);
  height: min(82vh, 720px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}
/* Bento: 4 columnas × 3 filas */
.g-a       { grid-area: 1 / 1 / 2 / 2; }
.g-feature { grid-area: 1 / 2 / 3 / 4; z-index: 3; }
.g-b       { grid-area: 1 / 4 / 2 / 5; }
.g-c       { grid-area: 2 / 1 / 3 / 2; }
.g-d       { grid-area: 2 / 4 / 3 / 5; }
.g-e       { grid-area: 3 / 1 / 4 / 3; }
.g-f       { grid-area: 3 / 3 / 4 / 4; }
.g-g       { grid-area: 3 / 4 / 4 / 5; }
/* Estado final que Flip captura: el grid crece a pantalla completa y la
   pieza central lo abarca todo → imagen fullscreen y centrada */
.gallery__grid.is-final { width: 100vw; height: 100vh; gap: 0; }
.gallery__grid.is-final .g-feature { grid-area: 1 / 1 / 4 / 5; z-index: 5; border-radius: 0; }

.tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-olive);
  box-shadow: 0 12px 30px rgba(84,86,67,.14);
}

/* Overlay "Sobre nosotros" sobre la pieza central (aparece al expandir) */
.tile__about {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; gap: 10px; padding: 24px;
  opacity: 0; color: #fff; pointer-events: none;
}
.tile__about-eye {
  margin: 0; font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; font-size: 13px; color: var(--c-green);
}
.tile__about-title {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 6vw, 76px); line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.tile__media {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  /* placeholder degradado con la paleta */
  background: linear-gradient(135deg, var(--ph, var(--c-olive)), var(--ph2, var(--c-main)));
}
.tile:hover .tile__media { transform: scale(1.05); }

/* Foto/video real encima del degradado; si el archivo falta, queda el degradado */
.tile__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.tile:hover .tile__photo { transform: scale(1.05); }

.tile__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  color: #fff; font-family: var(--font-head); font-weight: 500;
  font-size: 17px; letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.tile__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(30,31,24,.45));
  pointer-events: none;
}

/* ============================================================
   SOBRE NOSOTROS — paneles que se revelan con el scroll
   ============================================================ */
.work_section {
  position: relative;
  z-index: 5;
  background: var(--bg);           /* crema: contra esto sube la curva olive del footer */
}
.work_item {
  background-color: #2c2d24;       /* olive muy oscuro */
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  will-change: clip-path;
}
.work_image-wrapper {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  will-change: transform;
}
.work_image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
}
.work_item-wrapper {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center; gap: clamp(24px, 5vh, 60px);
  padding: 8vh 4vw;
}
.work_video-wrapper {
  display: flex; gap: 2.5vw;
  justify-content: center; align-items: center;
}
.work_media {
  position: relative;
  aspect-ratio: 16 / 9;
  flex: 1 1 0; min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ph, var(--c-olive)), var(--ph2, var(--c-main)));
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.work_media__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.work_text {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4vw;
}
.work_text-title {
  color: #fff;
  text-transform: uppercase;
  display: flex; flex-direction: column;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(40px, 8vw, 130px); line-height: 1;
  letter-spacing: -.01em;
}
.work-text-subtitle {
  color: #fff;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: .35vw;
  padding-bottom: .6vw;
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(12px, 1.1vw, 18px); letter-spacing: .03em;
  text-align: right;
}
.line-wrapper { overflow: hidden; }
.line { will-change: transform; line-height: 1.06; }
.work_item-overlay {
  z-index: 2;
  pointer-events: none;
  background-color: #000;
  display: none;
  position: absolute; inset: 0;
}
.color-0 { color: var(--c-cream); }
.color-1 { color: var(--c-main); }
.color-2 { color: var(--c-mauve); }
.color-3 { color: var(--c-green); }

@media (max-width: 720px) {
  /* ====== MÓVIL: se CONSERVAN las animaciones y la estructura del escritorio ======
     (galería bento que se expande, paneles con clip-path, parallax, videos
     deslizándose y líneas de texto). Aquí solo ajustamos TAMAÑO y ESPACIADO
     para que todo quepa y sea legible en pantallas pequeñas. */

  /* --- Paneles "Sobre nosotros" --- */
  .work_item-wrapper { padding: 84px 20px 34px; gap: clamp(18px, 4vh, 34px); }
  .work_video-wrapper { gap: 8px; }              /* tríptico de videos, más compacto */
  .work_media { border-radius: 12px; aspect-ratio: 3 / 4; }  /* verticales: presencia en móvil */
  .work_text { flex-direction: column; align-items: flex-start; gap: 14px; }
  .work_text-title { font-size: clamp(38px, 13vw, 60px); }
  .work-text-subtitle {
    text-align: left; font-size: 13px; letter-spacing: .01em;
    gap: 5px; padding-bottom: 0;
  }

  /* --- Galería (bento + expansión de la pieza central) --- */
  .tile__cap { font-size: 12px; left: 10px; bottom: 8px; }
  .tile__about-eye { font-size: 11px; letter-spacing: .18em; }
  .tile__about-title { font-size: clamp(30px, 9vw, 54px); }
}

/* ============================================================
   NUESTROS PRODUCTOS (grid + hover)
   ============================================================ */
.products {
  position: relative;
  z-index: 5;
  background: var(--bg);
  padding: clamp(115px, 17vh, 200px) clamp(20px, 5vw, 60px) clamp(275px, 30vh, 330px);
}
.products__grid {
  max-width: 1240px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.product-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--pc, var(--c-green));
  box-shadow: 0 14px 34px rgba(84,86,67,.14);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(84,86,67,.24); }
.product-card__media {
  position: absolute; inset: 8% 10% 22%;
  z-index: 1;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  transition: transform .55s var(--ease);
}
.product-card:hover .product-card__media { transform: scale(1.08) rotate(-1.5deg); }
/* Lluvia de headlines (nombre del producto) detrás del PNG */
.product-card__rain {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  display: flex; justify-content: center;
  opacity: 0; pointer-events: none;
}
.product-card__rain-inner { display: block; will-change: transform; }
.rain-set {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(31px, 3.7vw, 53px);   /* +20% */
  line-height: 0.8;                 /* sin interlineado */
  letter-spacing: -.01em;
  text-align: center; white-space: nowrap;
}
/* Badge circular "Descubre" que aparece al hover */
.product-card__badge {
  position: absolute; top: 0; left: 0; z-index: 3;
  width: clamp(78px, 8vw, 104px); height: clamp(78px, 8vw, 104px);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
  opacity: 0; pointer-events: none;
  backdrop-filter: blur(4px);
  will-change: transform;
}
/* El badge "Descubre" reemplaza al cursor dentro de la tarjeta */
.product-card:hover { cursor: none; }
.product-card__info {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  text-align: left; z-index: 2;
}
.product-card__name {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(16px, 1.5vw, 21px); color: var(--ink); line-height: 1.05;
}
.product-card__cat {
  margin: 2px 0 0; font-size: 12px; font-weight: 500;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  text-transform: uppercase; letter-spacing: .08em;
}
/* Tarjeta con fondo oscuro (colores invertidos): texto claro para contraste */
.product-card--dark .product-card__name { color: var(--c-cream); }
.product-card--dark .product-card__cat { color: color-mix(in srgb, var(--c-cream) 65%, transparent); }

/* ---- Modal de producto ---- */
.pm {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 20px;
  visibility: hidden;
}
.pm.is-open { visibility: visible; }
.pm__backdrop {
  position: absolute; inset: 0;
  background: rgba(30,31,24,.55);
  opacity: 0;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  cursor: pointer;
}
.pm__card {
  position: relative;
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-lg);
  background: var(--c-cream);
  box-shadow: 0 40px 100px rgba(30,31,24,.4);
  opacity: 0;
  will-change: transform;
  touch-action: none;   /* permite el gesto de arrastre */
}
.pm__grabber {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 5px; border-radius: 999px;
  background: rgba(30,31,24,.22);
  z-index: 3; cursor: grab;
}
.pm__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.85);
  color: var(--ink); font-size: 16px;
  display: grid; place-items: center;
  transition: transform .2s var(--ease), background .2s ease;
}
.pm__close:hover { transform: rotate(90deg); background: #fff; }
.pm__media {
  min-height: 260px;
  background-color: var(--pc, var(--c-green));
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.pm__body {
  padding: clamp(24px, 3vw, 44px);
  overflow-y: auto;
}
.pm__cat {
  margin: 0 0 8px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--c-main);
}
.pm__title {
  margin: 0 0 12px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.02; color: var(--ink);
}
.pm__desc {
  margin: 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.pm__meta {
  list-style: none; margin: 20px 0 0; padding: 18px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  display: grid; gap: 10px;
}
.pm__meta li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pm__meta b { font-weight: 600; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.pm__meta span { font-family: var(--font-head); color: var(--ink); }

@media (max-width: 900px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .pm__card { grid-template-columns: 1fr; max-height: 90vh; }
  .pm__media { min-height: 200px; }
}
@media (max-width: 520px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  background: var(--c-olive);
  color: var(--c-cream);
  padding: clamp(70px, 12vh, 140px) clamp(20px, 5vw, 60px) clamp(50px, 7vh, 90px);
  margin-top: 0;
  position: relative; z-index: 6;
}
/* Borde superior curvo (olive, mismo color del contenedor) que rebota */
.contact__curve {
  position: absolute;
  left: 0;
  bottom: calc(100% - 2px);   /* solapa 2px con Contacto para tapar la costura beige */
  width: 100%;
  height: clamp(100px, 12vw, 150px);
  display: block;
  overflow: visible;          /* deja ver el "resorte" (overshoot) por encima del recto */
}
.contact__curve path { fill: var(--c-olive); }
.contact .section-title { color: var(--c-cream); }
.contact .section-title em { color: var(--c-main); }
.contact .section-sub { color: color-mix(in srgb, var(--c-cream) 78%, transparent); }

.contact__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact__meta { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact__meta li { display: flex; flex-direction: column; gap: 3px; }
.contact__meta span {
  font-size: 12px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--c-main);
}
.contact__meta a, .contact__meta address {
  font-style: normal; font-size: 18px; font-family: var(--font-head);
  color: var(--c-cream);
}

/* Formulario */
.contact__form {
  background: color-mix(in srgb, var(--c-cream) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-cream) 16%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: color-mix(in srgb, var(--c-cream) 85%, transparent);
}
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px;
  color: var(--c-cream);
  background: color-mix(in srgb, var(--c-olive) 60%, #000 8%);
  border: 1px solid color-mix(in srgb, var(--c-cream) 18%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--c-cream) 45%, transparent); }
.field input:focus, .field textarea:focus {
  border-color: var(--c-main);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-main) 25%, transparent);
}

.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: #fff; background: var(--c-main);
  border: none; border-radius: 999px;
  padding: 15px 26px; cursor: pointer;
  justify-self: start;
  transition: transform .25s var(--ease), box-shadow .25s ease;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--c-main) 40%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--c-main) 50%, transparent); }

/* Botón magnético (magnetic only) */
.mag-zone {
  justify-self: start;
  display: inline-block;
  padding: 30px;
  margin: -30px;            /* campo magnético invisible alrededor; no altera el layout */
}
.mag-btn { transition: box-shadow .25s ease; will-change: transform; }
.mag-btn:hover { transform: translateY(0); }   /* GSAP controla x/y; evita el salto del hover */
.mag-btn .label { display: inline-block; pointer-events: none; will-change: transform; }
.form-note { color: var(--c-green); font-weight: 500; margin: 0; }
.form-note--error { color: #c0392b; }

/* Barra final dentro de la sección de contacto (que es el footer) */
.contact__footer {
  max-width: 1240px;
  margin: clamp(48px, 8vh, 90px) auto 0;
  padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--c-cream) 16%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contact__footer .footer__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--c-cream);
}
.site-footer__copy { font-size: 14px; color: color-mix(in srgb, var(--c-cream) 62%, transparent); }

/* ============================================================
   REVEAL (estado inicial; GSAP lo anima)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); }
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   RED DE SEGURIDAD: si GSAP/JS no inicializan, revela lo oculto
   (frase del hero, "Encuentra" y bloques .reveal) para que nunca
   quede la página en blanco esperando animaciones que no llegan.
   ============================================================ */
.enc-failsafe .hx-word span { transform: none !important; opacity: 1 !important; }
.enc-failsafe .hx-char     { transform: none !important; opacity: 1 !important; }
.enc-failsafe .hx-rule     { width: 90px !important; }
.enc-failsafe .reveal      { opacity: 1 !important; transform: none !important; }
.enc-failsafe .hero__hint  { opacity: 1 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .gallery__grid { gap: 10px; height: min(80vh, 640px); }
  .contact__inner { grid-template-columns: 1fr; }
  .nav.is-scrolled .nav__inner { max-width: 92%; }
}

@media (max-width: 560px) {
  .nav__inner { padding: 16px 20px; }
  .nav__links { gap: 14px; }
  .nav__links a:not(.nav__cta) { display: none; }   /* deja solo el CTA en móvil */
  .gallery__grid { gap: 8px; width: 94vw; height: 72vh; }
  .tile__cap { font-size: 13px; left: 10px; bottom: 8px; }
  .hero { height: 270vh; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__hint-arrow { animation: none; }
}
