/* ================================================
   LUMEN STUDIO — styles.css
   por Misraim Orozco

   Dirección visual: nocturna cinematográfica.
   Oscuridad serena, luz con intención.

   Tipografía: DM Serif Display (hero, títulos editoriales, cursivas puntuales)
             + Nunito (nav, párrafos, botones, etiquetas, precios)

   TODO componente consume los tokens de :root. No metas valores
   sueltos de color, espaciado o transición — agrégalos como token.
   ================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
figure, figcaption { margin: 0; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; }
button { background: none; border: none; cursor: pointer; }

/* ==============================================
   TOKENS — única fuente de verdad del sistema
   ============================================== */
:root {
  /* ---- Color ---- */
  --bg:            #0C0B0A;                      /* fondo principal */
  --bg-2:          #151310;                      /* fondo secundario */
  --surface:       #241E19;                      /* superficie cálida */
  --accent:        #C49A68;                      /* ámbar, con moderación */
  --accent-hover:  #D4AE80;
  --text:          #F0EAE1;                      /* marfil, no blanco puro */
  --text-2:        #A69D92;                      /* texto secundario */
  --text-3:        rgba(240, 234, 225, 0.58);    /* texto terciario */
  --border:        rgba(240, 234, 225, 0.12);
  --border-strong: rgba(196, 154, 104, 0.32);    /* borde con énfasis */
  --border-card:   rgba(240, 234, 225, 0.10);
  --border-card-h: rgba(196, 154, 104, 0.30);
  --overlay:       rgba(8, 7, 6, 0.58);          /* overlay fotográfico */
  --overlay-strong:rgba(8, 7, 6, 0.78);

  /* Componentes RGB: necesarios para construir alfas del mismo color */
  --bg-rgb:     12, 11, 10;
  --accent-rgb: 196, 154, 104;
  --text-rgb:   240, 234, 225;

  /* Verde de WhatsApp: color de marca ajeno, no se toca */
  --whatsapp:   #25D366;

  /* ---- Tipografía ---- */
  --font-h: 'DM Serif Display', Georgia, serif;   /* hero, títulos editoriales */
  --font-b: 'Nunito', system-ui, sans-serif;      /* nav, textos, UI */

  /* ---- Escala de espaciado ---- */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  26px;
  --space-lg:  44px;
  --space-xl:  88px;
  --pad-sec:   clamp(112px, 12vw, 168px);   /* aire generoso, editorial */

  /* ---- Layout ---- */
  --max-w:   1180px;
  --nav-h:   76px;

  /* ---- Bordes ---- */
  --radius:    6px;          /* sobrio: ni cuadrado duro ni pastilla */
  --radius-lg: 10px;         /* superficies e imágenes */
  --hairline:  1px solid var(--border);
  --focus-ring: 2px solid var(--accent);
  --focus-offset: 3px;

  /* ---- Movimiento — lento y suave ---- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --t-fast:    0.25s;        /* estados hover */
  --t-base:    0.4s;         /* cambios de superficie */
  --t-slow:    0.9s;         /* entradas al hacer scroll */

  /* ---- Estados hover ---- */
  --hover-lift:   translateY(-1px);
  --hover-zoom:   scale(1.02);
  --hover-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  font-size: 20px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout ---------- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---------- Tipografía compartida ---------- */
.section-label {
  font-family: var(--font-b);
  font-size: 0.6rem;              /* ~12px */
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;      /* mayúsculas SOLO en etiquetas pequeñas */
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-h);
  font-weight: 400;               /* DM Serif Display solo tiene 400 */
  /* 36–64px es la referencia. El mínimo baja de ahí a propósito: con
     .nowrap-desktop los títulos largos deben caber entre 769px y 1024px,
     y el de contacto se desbordaba 38px a 780px. */
  font-size: clamp(1.35rem, 3.25vw, 3.2rem);
  line-height: 1.08;
  color: var(--text);
  letter-spacing: 0;
}
.section-title em,
.hero__title em {
  /* DM Serif Display Italic: solo en palabras estratégicas, nunca párrafos */
  font-style: italic;
  color: inherit;
}

/* Una sola línea en escritorio; en móvil se libera para que pueda partirse */
.nowrap-desktop { white-space: nowrap; }

.section-header { text-align: center; margin-bottom: 88px; }


/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 0.7rem;              /* ~14px */
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  /* line-height 1: el body hereda 1.6 y desbalanceaba el padding óptico */
  line-height: 1;
  padding: 17px 38px;
  border-radius: var(--radius);
  transition: background var(--t-fast) var(--ease), color var(--t-fast), border-color var(--t-fast),
              transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
/* Microinteracción común: elevación de 1px y sombra casi imperceptible */
.btn:hover {
  transform: var(--hover-lift);
  box-shadow: var(--hover-shadow);
}
.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.btn--accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(var(--text-rgb), 0.20);
}
.btn--outline:hover {
  background: rgba(var(--text-rgb), 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--gold { /* CTA del bloque destacado, sobre --surface */
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn--gold:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--text-link {
  background: transparent;
  color: var(--text-2);
  border: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 300;
  opacity: 0.65;
  padding: 8px 0;
}
.btn--text-link:hover { opacity: 1; color: var(--accent); }
.btn--lg { padding: 21px 50px; font-size: 0.9375rem; }

/* ==============================================
   NAV
   ============================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.nav--scrolled {
  background: rgba(var(--bg-rgb), 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--text);
  transition: color var(--t-fast) var(--ease);
  flex-shrink: 0;
  line-height: 1.1;
}
.nav__logo:hover { color: var(--accent); }
/* Lumen Studio es la marca; "por Misraim Orozco" es firma, no jerarquía */
.nav__logo-marca {
  font-family: var(--font-h);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav__logo-firma {
  font-family: var(--font-b);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text-2);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav__links a {
  font-family: var(--font-b);
  font-size: 0.7rem;              /* ~14px */
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--accent) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast) !important;
}
.nav__cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast);
}
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==============================================
   HERO
   ============================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
/* Fondo de respaldo: es lo que se ve en móvil, donde el video no carga */
.hero__fallback {
  position: absolute;
  inset: 0;
  background: url('../img/hero/terraza.jpg') center / cover no-repeat;
  z-index: 0;
}
.hero__bg { z-index: 1; }        /* el video tapa al fallback en escritorio */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Viñeta arriba y abajo para el nav y el indicador de scroll; el centro
     se deja casi limpio para que el video se vea. El clip ya es oscuro
     de origen (brillo medio 17/255), así que el contraste del título
     sigue por encima de 10:1. */
  background: linear-gradient(
    180deg,
    rgba(var(--bg-rgb), 0.62) 0%,
    rgba(var(--bg-rgb), 0.34) 50%,
    rgba(var(--bg-rgb), 0.72) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 3;
  /* El 5% puro ENCOGE el ancho útil en pantallas grandes: a 1920px daba
     828px y a 2560px ~764px, porque el padding crece con el viewport
     mientras el max-width sigue fijo en 1020px. Topado en 48px, el ancho
     útil se estabiliza en 924px de 1024px para arriba.
     Es `min()`, no `clamp()`: con un mínimo de 20px el móvil cambiaba
     (5% de 375px son 18.75px) y se comía holgura del indicador de scroll.
     Así, por debajo de 960px el padding es idéntico al de antes. */
  padding: 0 min(5%, 48px);
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
  padding-top: var(--nav-h);
}
.hero__title {
  font-family: var(--font-h);
  /* Quiebre FORZADO en 2 líneas con <br class="hero__br">:
     "Producción audiovisual" / "para bienes raíces y arquitectura."
     Por eso ya no se usa `text-wrap: balance` ni `max-width: 24ch`:
     ambos peleaban con el <br> y volvían a partir la segunda línea.
     El tope de tamaño lo manda la línea 2, que es la larga:
     3rem (60px) → la línea 2 mide 868px, contra 924px de ancho
     útil. A 3.6rem medía 1041px y se desbordaba. Sin `nowrap`: si algún
     día no cabe, se parte en 3 líneas en vez de romper el centrado. */
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: none;
  font-weight: 400;              /* DM Serif Display solo tiene 400 */
  line-height: 1.02;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: var(--space-lg);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.hero__scroll span {
  font-family: var(--font-b);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: none;
  color: var(--text-2);
}
.hero__scroll-line {
  width: 2px;
  height: 80px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { top: -100%; }
  60%  { top: 0%; }
  100% { top: 100%; }
}

/* ==============================================
   FILOSOFÍA — bloque corto: título + 2 líneas
   ============================================== */
.filosofia {
  position: relative;
  padding: clamp(112px, 12vw, 156px) 0;
  background: var(--bg-2);
  overflow: hidden;
}
/* Video de fondo del manifiesto, al 30% como pidió el cliente */
.filosofia__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
}
.filosofia__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg-2) 0%,
    transparent 25%,
    transparent 75%,
    var(--bg-2) 100%
  );
}
.filosofia__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.filosofia__title { margin-bottom: 28px; }

/* ==============================================
   PROCESO
   ============================================== */
.proceso {
  padding: var(--pad-sec) 0;
  background: var(--bg);
}
.proceso .section-label { color: var(--accent); }
.proceso__steps {
  display: flex;
  align-items: flex-start;
  margin-top: 76px;
}
.step { flex: 1; padding: 0 30px; text-align: center; }
.step__divider {
  width: 1px;
  height: 76px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}
.step__number {
  display: block;
  font-family: var(--font-b);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.step__title {
  font-family: var(--font-h);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}
.step__desc {
  font-family: var(--font-b);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  opacity: 0.78;
}

/* ==============================================
   SERVICIOS — bloques grandes alternados
   ============================================== */
.servicios {
  padding: var(--pad-sec) 0;
  background: var(--bg);
}
.servicio-bloque {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  /* Sin divisores entre bloques: los separa el espacio, no una línea */
  padding: clamp(72px, 8vw, 104px) 0;
}
.servicio-bloque:first-of-type { padding-top: 0; }
.servicio-bloque:last-of-type  { padding-bottom: var(--space-lg); }
.servicio-bloque--reverse .servicio-bloque__media { order: 2; }
.servicio-bloque--reverse .servicio-bloque__texto { order: 1; }

.servicio-bloque__media { position: relative; min-width: 0; }
.servicio-bloque__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-b);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 16px;
}

/* Video vertical 9:16 dentro del bloque */
.servicio-bloque__video {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-2);
}
.servicio-bloque__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carrusel de fotos — bloque Fotografía (contenido, no full-bleed) */
.foto-carrusel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.foto-carrusel__track::-webkit-scrollbar { display: none; }
/* Altura compartida + aspect-ratio por pieza = sin recortes (mezcla 3:2 y 3:4) */
.foto-carrusel__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: clamp(260px, 30vw, 400px);
  overflow: hidden;
  background: var(--bg-2);
}
.foto-carrusel__item--3-4 { aspect-ratio: 3 / 4; }
.foto-carrusel__item--3-2 { aspect-ratio: 3 / 2; }
.foto-carrusel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.foto-carrusel__item:hover img { transform: scale(1.02); }

/* Texto del bloque */
.servicio-bloque__num {
  display: block;
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.servicio-bloque__titulo {
  font-family: var(--font-h);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 16px;
}
.servicio-bloque__desc {
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 30px;
  max-width: 430px;
}
.servicio-bloque__precio {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  margin-bottom: var(--space-lg);
  max-width: 430px;
}
.servicio-bloque__precio-label {
  font-family: var(--font-b);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-2);
  opacity: 0.7;
}
.servicio-bloque__precio-monto {
  font-family: var(--font-b);
  font-size: 1.15rem;             /* secundario respecto al título del servicio */
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-2);
  line-height: 1.2;
}
.servicio-bloque__precio-monto small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  opacity: 0.65;
  margin-left: 5px;
}

/* Bloque destacado — Video */
.servicio-bloque--featured {
  /* Sin caja: un lavado de superficie que se desvanece a los lados.
     Da presencia sin que parezca una card de SaaS. */
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(36, 30, 25, 0.55) 18%,
    rgba(36, 30, 25, 0.55) 82%,
    transparent 100%
  );
  border: none;
  border-radius: 0;
  padding: clamp(72px, 8vw, 108px) clamp(28px, 4vw, 56px);
  margin: clamp(20px, 3vw, 36px) 0;
}
/* La superficie del bloque destacado ya es oscura y cálida, así que los
   colores de texto por defecto funcionan: no hacen falta overrides. */

/* ==============================================
   CLIENTES
   ============================================== */
.clientes {
  padding: clamp(104px, 11vw, 148px) 0;   /* más aire vertical */
  background: var(--bg-2);
}
.clientes__label { text-align: center; }
.clientes__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap 32px: con 6 logos de 168px la fila mide 1168px y cabe en los
     1180px del contenedor. Si se agrega un séptimo, hay que bajar el
     ancho de .cliente-logo img o dejar que se vaya a dos filas. */
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
/* Los PNG ya vienen en crema monocromo para el fondo nocturno, así que
   no hace falta grayscale: basta modular la opacidad. */
.cliente-logo {
  opacity: 0.72;                  /* más visibles, siguen siendo discretos */
  transition: opacity var(--t-base) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cliente-logo:hover { opacity: 1; }
/* Los PNG vienen normalizados: todos en un lienzo de 370×185 y con el
   arte escalado a la misma área óptica (~26.000 px²). Por eso basta una
   caja fija idéntica para los seis — no hace falta topar cada uno aparte.
   Al agregar un logo nuevo hay que pasarlo por el mismo proceso. */
.cliente-logo img {
  width: 168px;
  height: 84px;
  object-fit: contain;
}

/* ==============================================
   PORTAFOLIO — carrusel horizontal full-bleed
   ============================================== */
.portafolio {
  padding: var(--pad-sec) 0;
  background: var(--bg);
  border-top: var(--hairline);
}
.portafolio .section-label { color: var(--accent); }

.portafolio__carrusel { width: 100%; }
.portafolio__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 5%;
}
.portafolio__track::-webkit-scrollbar { display: none; }

/* Altura compartida + aspect-ratio propio = anchos naturales, cero recortes */
.portafolio__item {
  position: relative;
  flex: 0 0 auto;
  height: clamp(340px, 50vh, 580px);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  background: var(--bg-2);
}
.portafolio__item--9-16 { aspect-ratio: 9 / 16; }
.portafolio__item--3-4  { aspect-ratio: 3 / 4; }
.portafolio__item--3-2  { aspect-ratio: 3 / 2; }
.portafolio__item--16-9 { aspect-ratio: 16 / 9; }

.portafolio__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.portafolio__item:hover .portafolio__media { transform: scale(1.02); }

/* Ficha editorial: aparece al pasar el cursor, sin tapar la fotografía.
   Degradado solo en el tercio inferior para que el detalle se conserve. */
.portafolio__ficha {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(to top, var(--overlay-strong) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
  pointer-events: none;
}
.portafolio__item:hover .portafolio__ficha,
.portafolio__item:focus-within .portafolio__ficha {
  opacity: 1;
  transform: translateY(0);
}
.portafolio__nombre {
  font-family: var(--font-h);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
}
.portafolio__lugar {
  font-family: var(--font-b);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-2);
}
.portafolio__servicios {
  font-family: var(--font-b);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--space-xs);
}

/* En táctil no hay hover: la ficha se muestra siempre, más contenida */
@media (hover: none) {
  .portafolio__ficha { opacity: 1; transform: none; }
}
.portafolio__hint {
  font-family: var(--font-b);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-2);
  opacity: 0.45;
  margin-top: 26px;
  text-align: right;
}

/* ==============================================
   CONTACTO
   ============================================== */
.contacto {
  position: relative;
  padding: clamp(140px, 15vw, 200px) 0;
  background: var(--bg);
  overflow: hidden;
}
/* Imagen de cierre: mismo lenguaje que el hero, para que el sitio abra
   y cierre con la misma fuerza visual. */
.contacto__fondo {
  position: absolute;
  inset: 0;
  background: url('../img/contacto/cierre.jpg') center / cover no-repeat;
  opacity: 0.28;
}
.contacto__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--overlay) 38%,
    var(--overlay) 62%,
    var(--bg) 100%
  );
}
.contacto__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.contacto .section-label { text-align: center; }
.contacto__text {
  font-family: var(--font-b);
  /* Va en una sola línea con .nowrap-desktop: sin tope de ancho, y el
     clamp le permite encoger antes de que el corte móvil lo libere. */
  font-size: clamp(0.72rem, 1.35vw, 1.0625rem);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.8;
  max-width: none;
  margin: var(--space-md) auto var(--space-lg);
  opacity: 0.8;
}
.contacto__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--bg-2);
  padding: 84px 0 42px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: var(--hairline);
}
.footer__logo {
  font-family: var(--font-h);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.footer__firma {
  font-family: var(--font-b);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text-2);
  margin-bottom: 20px;
}
.footer__lugar {
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-3);
  margin-top: var(--space-xs);
}
.footer__tagline {
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
}
.footer__col-title {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 22px;
}
.footer__links { display: flex; flex-direction: column; gap: 13px; }
.footer__links a {
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--bg); }
.footer__bottom { padding-top: 36px; text-align: center; }
.footer__bottom p {
  font-family: var(--font-b);
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

/* ==============================================
   WHATSAPP FAB
   ============================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  /* Integrado a la paleta: superficie oscura con el icono en verde.
     Sigue siendo reconocible, pero deja de dominar la composición. */
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.whatsapp-fab:hover {
  transform: scale(1.04);
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--bg);
}

/* ==============================================
   SCROLL REVEAL
   ============================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.22s; }
[data-reveal-delay="3"] { transition-delay: 0.34s; }
[data-reveal-delay="4"] { transition-delay: 0.46s; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  /* align-items: stretch para que todos los pasos midan lo mismo.
     Con flex-start cada uno se encogía a su texto y el 3, más corto,
     quedaba descentrado respecto a los demás. */
  .proceso__steps { flex-direction: column; gap: 0; align-items: stretch; }
  .step { padding: 28px 0; }
  .step__divider { width: 40px; height: 1px; margin: 0 30px; align-self: flex-start; }

  /* Servicios: el visual pasa arriba y el texto abajo */
  .servicio-bloque { grid-template-columns: 1fr; gap: 36px; }
  .servicio-bloque--reverse .servicio-bloque__media,
  .servicio-bloque--reverse .servicio-bloque__texto { order: 0; }
  .servicio-bloque__video { max-height: 460px; }
  .servicio-bloque__desc,
  .servicio-bloque__precio { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(var(--bg-rgb), 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 56px 8% 40px;
    gap: 34px;
    align-items: flex-start;
  }
  .nav--open .nav__links a {
    font-family: var(--font-b);   /* navegación en la fuente de cuerpo, igual que en escritorio */
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
  }
  .nav--open .nav__cta { border: none !important; padding: 0 !important; color: var(--accent) !important; }


  .hero__content { text-align: center; }
  .hero__actions { justify-content: center; }
  .hero::before { display: none; }

  /* En móvil los títulos largos sí pueden partirse en varias líneas */
  .nowrap-desktop { white-space: normal; }
  .hero__title { font-size: 2rem; }

  /* El quiebre en 2 líneas es de escritorio. En móvil no cabe "para bienes
     raíces y arquitectura." en una sola línea, así que se quita el <br>
     y se libera el nowrap para que el texto se acomode solo. */
  .hero__br { display: none; }
  .hero__title { white-space: normal; text-wrap: balance; max-width: 24ch; }
  
  /* El aire extra del hero y el min-height mayor son refinamientos de
     escritorio: en pantallas cortas (iPhone SE y similares) el contenido
     chocaba con el indicador de scroll. Aquí se acotan. */
  .hero { min-height: 620px; }
  .hero__title { margin-bottom: 28px; }
    /* El indicador mide 116px en escritorio; en pantallas de 667px de alto
     se encimaba con el contenido. Aquí vuelve a una escala proporcional. */
  .hero__scroll { bottom: 28px; gap: 6px; }
  .hero__scroll-line { height: 48px; }

  /* Carrusel de portafolio: piezas más bajas para que quepan en pantalla */
  .portafolio__item { height: clamp(300px, 46vh, 420px); }
  .portafolio__hint { text-align: center; }

  /* Logos más chicos en móvil, conservando la proporción entre ellos:
     se encoge la caja, no cada logo por separado */
  .clientes__logos { gap: 28px; }
  .cliente-logo img { width: 118px; height: 59px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .contacto__actions .btn--lg { width: 100%; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .clientes__logos { gap: 22px; }
  .cliente-logo img { width: 104px; height: 52px; }
  .servicio-bloque--featured { padding-left: 22px; padding-right: 22px; }
  .foto-carrusel__item { height: 260px; }
}


/* ==============================================
   ACCESIBILIDAD
   ============================================== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius);
}

/* Quien pide menos movimiento no debe recibir animación */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ==============================================
   NOTAS EDITORIALES — jerarquía baja, tono sereno
   ============================================== */
.filosofia__nota,
.section-nota,
.servicios__nota {
  font-family: var(--font-b);
  font-size: clamp(0.8rem, 1vw, 0.9rem);   /* 16–18px */
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-3);
  max-width: 56ch;                          /* ancho de lectura controlado */
}
.filosofia__nota { margin: var(--space-md) auto 0; }
.section-nota    { margin: var(--space-md) auto 0; }
.servicios__nota {
  color: var(--accent);          /* ámbar de marca, no texto terciario */
  max-width: none;                          /* va en una línea, sin tope de 56ch */
  font-size: clamp(0.62rem, 1.15vw, 0.9rem);
  margin: var(--space-lg) auto 0;           /* pegada al último bloque */
  text-align: center;
}
