/* ================================================================
   GRUPO FIXUM — Dark Power Theme
   Paleta: negro profundo + dorado + naranja + azul como acento
   ================================================================ */

:root {
  /* Marca */
  --azul-oscuro:    #0b357f;
  --azul-principal: #08338f;
  --azul-medio:     #335da9;
  --azul-claro:     #4d75ba;
  --celeste:        #5fadde;
  --naranja:        #f0a442;
  --dorado:         #fbc95a;

  /* Sistema oscuro */
  --bg:        #07090f;
  --bg-2:      #0d1120;
  --bg-3:      #111827;
  --surface:   #141c2e;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);

  /* Tinta */
  --ink-100: #f0f4ff;
  --ink-200: #d0daf0;
  --ink-400: #8a9bc0;
  --ink-600: #4a5a80;

  /* Easings */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.77, 0, 0.175, 1);

  /* Z-index */
  --z-nav:      100;
  --z-megamenu: 150;
  --z-modal:    200;
  --z-preloader: 999;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--ink-200);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ================================================================
   UTILIDADES
   ================================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reveal on scroll — contenido visible por defecto, JS lo anima */
.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.will-reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .will-reveal, .will-reveal.revealed { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ================================================================
   GRADIENTE DE RUIDO — textura de fondo sutil
   ================================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.6;
}

/* ================================================================
   NAVEGACIÓN
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  transition: background 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
.nav__inner .nav__logo { justify-self: start; }
.nav__inner .nav__links { justify-self: center; }
.nav__inner .nav__hamburger { justify-self: end; }
.nav__logo img { height: 52px; width: auto; }
.nav__logo-color { display: none; }
.nav__logo-white { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-200);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__link:hover { color: #fff; }

/* Botón de divisiones en nav */
.nav__divisions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}
.nav__chevron {
  transition: transform 0.25s var(--ease-out);
  opacity: 0.55;
}
.nav__item--mega.mega-open .nav__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ================================================================
   MEGA MENU — submenu desplegable con imágenes
   ================================================================ */
.nav__item--mega {
  position: static; /* se expande full-width relativo al nav */
}

.mega-menu {
  position: fixed;
  left: 0; right: 0;
  top: 72px; /* altura del nav */
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-hi);
  z-index: var(--z-megamenu);

  /* Estado oculto */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.nav__item--mega.mega-open .mega-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mega-menu { transition: none; }
}

.mega-menu__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 1.75rem clamp(1.25rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.mega-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.mega-card:hover {
  border-color: rgba(251,201,90,0.35);
  background: var(--surface);
}

.mega-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.mega-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.6);
  transition: filter 0.3s, transform 0.4s var(--ease-out);
}
.mega-card:hover .mega-card__img img {
  filter: brightness(0.85) saturate(0.8);
  transform: scale(1.04);
}

.mega-card__body {
  padding: 0.65rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mega-card__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dorado);
}
.mega-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-100);
  line-height: 1.3;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.35rem;
  background: var(--naranja);
  color: #07090f;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s var(--ease-out);
}
.nav__cta:hover { background: var(--dorado); }
.nav__cta:active { transform: scale(0.97); }

/* ================================================================
   HAMBURGER — botón elegante
   ================================================================ */
.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  padding: 0;
}
.ham__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-100);
  border-radius: 2px;
  transition: transform 0.32s var(--ease-out), opacity 0.22s;
}

/* Estado activo — X */
.nav__hamburger.active .ham__bar--top { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.active .ham__bar--mid { opacity: 0; transform: scaleX(0); }
.nav__hamburger.active .ham__bar--bot { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================================================
   DRAWER MOBILE
   ================================================================ */
@media (max-width: 768px) {
  .nav__links { display: none !important; }
  .nav__hamburger { display: flex; }
  /* En mobile: flex simple — logo izquierda, hamburger derecha */
  .nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) + 10);
  pointer-events: none;
}
.nav__drawer[aria-hidden="false"] { pointer-events: auto; }

.nav__drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 15, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.nav__drawer[aria-hidden="false"] .nav__drawer-backdrop { opacity: 1; }

.nav__drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--border-hi);
  display: flex;
  flex-direction: column;
  padding: 0 0 2rem;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-out);
  overflow-y: auto;
}
.nav__drawer[aria-hidden="false"] .nav__drawer-panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .nav__drawer-backdrop,
  .nav__drawer-panel { transition: none; }
}

.nav__drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.nav__drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 7px;
  color: var(--ink-400);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.nav__drawer-close:hover { color: var(--ink-100); background: rgba(255,255,255,0.08); }

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-200);
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.15s;
  width: 100%;
  text-align: left;
}
.drawer__link:last-child { border-bottom: none; }
.drawer__link:hover, .drawer__link:focus { color: var(--ink-100); background: rgba(255,255,255,0.035); }
.drawer__link:active { background: rgba(255,255,255,0.06); }

.drawer__link--expand svg {
  opacity: 0.5;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.drawer__link--expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
  opacity: 1;
}
.drawer__link--expand[aria-expanded="true"] { color: var(--ink-100); }

.drawer__sub {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.drawer__sub[hidden] { display: none; }

.drawer__sub-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 0.75rem 2rem;
  font-size: 0.875rem;
  color: var(--ink-400);
  transition: color 0.2s;
}
.drawer__sub-link:hover { color: var(--ink-200); }
.drawer__sub-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--naranja);
  flex-shrink: 0;
}

.drawer__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 1.5rem 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--naranja);
  color: #07090f;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  justify-content: center;
  transition: background 0.2s;
}
.drawer__cta:hover { background: var(--dorado); }

.nav__drawer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.5rem;
}
.nav__drawer-certs span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-600);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.18rem 0.5rem;
}

/* ================================================================
   BOTONES GLOBALES
   ================================================================ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.25rem;
  background: var(--dorado);
  color: #07090f;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s var(--ease-out), box-shadow 0.2s;
  box-shadow: 0 0 0 rgba(251,201,90,0);
}
.btn-gold:hover {
  background: #ffd06e;
  box-shadow: 0 6px 32px rgba(251,201,90,0.28);
}
.btn-gold:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--border-hi);
  color: var(--ink-200);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease-out);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}
.btn-outline:active { transform: scale(0.97); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: calc(var(--vh-stable, 1dvh) * 100);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

/* ================================================================
   HERO MOSAIC — carrusel de columnas verticales
   ================================================================ */
.hero__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: -2;
  overflow: hidden;
}

.mosaic__col {
  overflow: hidden;
  position: relative;
}

.mosaic__strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* La animación se aplica por columna con direction alternada */
}

.mosaic__col--1 .mosaic__strip { animation: scroll-up   28s linear infinite; }
.mosaic__col--2 .mosaic__strip { animation: scroll-down 34s linear infinite; }
.mosaic__col--3 .mosaic__strip { animation: scroll-up   22s linear infinite; }
.mosaic__col--4 .mosaic__strip { animation: scroll-down 30s linear infinite; }

@keyframes scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-33.333%); }
}
@keyframes scroll-down {
  from { transform: translateY(-33.333%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic__strip { animation: none !important; }
}

.mosaic__cell {
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.mosaic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  display: block;
}

/* Gradientes encima de la foto */
.hero__bg-grad {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to left,  rgba(7,9,15,0.82) 0%, transparent 55%),
    linear-gradient(to top,   var(--bg) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 50%, rgba(8,51,143,0.2) 0%, transparent 60%);
}

/* Líneas de rejilla decorativas */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(var(--vh-stable, 1dvh) * 100 - 72px);
  padding-top: clamp(1.5rem, calc(var(--vh-stable, 1dvh) * 4), 3.5rem);
  padding-bottom: clamp(1.5rem, calc(var(--vh-stable, 1dvh) * 3), 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Grid 2 columnas: logo izquierda — copy derecha */
.hero__layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
}

/* Zona izquierda: logo enorme centrado verticalmente */
.hero__logo-zone {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero__logo-link {
  display: block;
  transform-origin: left center;
  transition: none; /* JS controla el transform */
}

.hero__logo-link img {
  width: clamp(180px, 22vw, 340px);
  height: auto;
  display: block;
}

/* Bloque derecho: label + headline + sub + botones */
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo del nav: oculto mientras el hero tiene su propio logo */
.nav__logo--hidden-hero {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav.scrolled .nav__logo--hidden-hero {
  opacity: 1;
  pointer-events: auto;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: clamp(1rem, calc(var(--vh-stable, 1dvh) * 2), 2rem);
}
.hero__label-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--naranja);
  box-shadow: 0 0 12px rgba(240,164,66,0.7);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(240,164,66,0.6); }
  50% { box-shadow: 0 0 20px rgba(240,164,66,0.9); }
}
.hero__label-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja);
}

.hero__headline {
  font-family: 'DM Serif Display', serif;
  /* Escala fluida: mínimo 2.2rem (mobile), óptimo 5vw, techo 5rem */
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink-100);
  text-wrap: balance;
  max-width: 16ch;
  margin-bottom: clamp(0.75rem, calc(var(--vh-stable, 1dvh) * 1.5), 1.5rem);
}
.hero__headline strong {
  font-weight: 400;
  color: var(--dorado);
}

.hero__sub {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--ink-200);
  max-width: 50ch;
  line-height: 1.7;
  text-wrap: pretty;
  margin-bottom: clamp(1.25rem, calc(var(--vh-stable, 1dvh) * 2.5), 2.5rem);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Franja inferior hero: métricas + certs en la misma línea */
.hero__bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: clamp(1rem, calc(var(--vh-stable, 1dvh) * 2), 2rem);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hero__metrics {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  flex-wrap: wrap;
}
.hero__metric-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--ink-100);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__metric-num span {
  color: var(--dorado);
}
.hero__metric-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.hero__metric-sep {
  width: 1px; height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Certs — inline en la franja inferior, alineadas a la derecha */
.hero__certs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hero__cert-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 0.25rem;
}
.hero__cert-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hero__cert-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(240,244,255,0.25);
  border-radius: 4px;
  color: var(--ink-200);
  transition: border-color 0.2s, color 0.2s;
}
.hero__cert-pill:hover {
  border-color: rgba(251,201,90,0.4);
  color: var(--dorado);
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  transition: opacity 0.2s;
}
.hero__scroll:hover { opacity: 0.7; }
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ink-400), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  80% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 768px) {
  .hero__inner {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 2.5rem;
    justify-content: flex-start;
    gap: 0;
  }
  /* En mobile: columna única, copy ocupa toda la pantalla */
  .hero__layout {
    grid-template-columns: 1fr;
    min-height: calc(var(--vh-stable, 1dvh) * 100);
    padding-top: calc(var(--vh-stable, 1dvh) * 42);
    padding-bottom: 2rem;
    align-items: flex-start;
    gap: 0;
  }
  .hero__logo-zone {
    justify-content: center;
  }
  .hero__logo-link img {
    width: clamp(160px, 55vw, 240px);
  }
  .hero__copy {
    flex: none;
  }
  /* Stats y certs fluyen debajo del fold */
  .hero__bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    flex-shrink: 0;
  }
  .hero__scroll { display: none; }
  .hero__metrics { gap: 1.25rem; }
  .hero__certs { align-items: flex-start; }
  .hero__cert-list { justify-content: flex-start; }
  /* En mobile: nav logo hace el FLIP — hero logo oculto */
  .nav__logo--hidden-hero {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .hero__logo-zone { display: none; }
  /* Permitir que el nav logo sea transformado por JS */
  .nav__logo--hidden-hero { will-change: transform; }
}

/* ================================================================
   CLIENTES MARQUEE
   ================================================================ */
/* ================================================================
   CLIENTES
   ================================================================ */
.clientes {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding-bottom: clamp(3rem, 6dvh, 5rem);
}
/* Imagen de fondo con oscuridad arriba y abajo */
.clientes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/clientes/fondo.jpeg') center center / cover no-repeat;
  opacity: 0.40;
  z-index: 0;
}
.clientes::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
  z-index: 1;
}
.logo-mosaic { position: relative; z-index: 2; }

/* Texto integrado dentro del mosaico */
.clientes__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 1.25rem;
}
.clientes__headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink-100);
  text-wrap: balance;
  margin-bottom: 0;
}
.clientes__accent {
  width: 40px;
  height: 3px;
  background: var(--dorado);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.clientes__sub {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--ink-400);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ================================================================
   LOGO MOSAIC — col texto + 4 cols logos, mismo ADN que el hero
   ================================================================ */
.logo-mosaic {
  display: grid;
  /* Col texto más angosta, 4 cols de logos iguales */
  grid-template-columns: clamp(200px, 22vw, 320px) repeat(4, 1fr);
  height: clamp(480px, 58vw, 720px);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border);
}

/* Fade top/bottom */
.logo-mosaic::before,
.logo-mosaic::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  pointer-events: none;
}
.logo-mosaic::before {
  top: 0; height: 18%;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}
.logo-mosaic::after {
  bottom: 0; height: 18%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

/* Columna de texto */
.logo-mosaic__col--text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 4;
}
.logo-mosaic__copy { width: 100%; }

/* Columnas de logos */
.logo-mosaic__col {
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.logo-mosaic__strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translateZ(0);
}
.logo-mosaic__strip--up   { animation: scroll-up   28s linear infinite; }
.logo-mosaic__strip--down { animation: scroll-down 28s linear infinite; }

/* Celdas — altura fija generosa, logos grandes */
.logo-mosaic__cell {
  flex-shrink: 0;
  height: clamp(120px, 14vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-bottom: 1px solid var(--border);
}
.logo-mosaic__cell img {
  width: 80%;
  height: auto;
  max-height: clamp(60px, 7vw, 110px);
  object-fit: contain;
}
.logo-mosaic__text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-600);
  text-transform: uppercase;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .logo-mosaic__strip { animation: none; }
}

/* Mobile — texto arriba, 2 cols de logos abajo */
@media (max-width: 768px) {
  .logo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    /* Ocupa exactamente una pantalla completa — congelado con --vh-stable */
    height: calc(var(--vh-stable, 1dvh) * 100);
  }
  .logo-mosaic__col--text {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: clamp(2rem, 6vw, 3rem) clamp(1.25rem, 5vw, 2rem);
    height: auto;
  }
  /* Solo 2 columnas de logos en mobile — ocultar col 4 y 5 */
  .logo-mosaic__col:nth-child(4),
  .logo-mosaic__col:nth-child(5) { display: none; }
  /* Columnas de logos llenan el espacio restante */
  .logo-mosaic__col:not(.logo-mosaic__col--text) {
    height: 100%;
    overflow: hidden;
  }
  .logo-mosaic__cell {
    height: clamp(100px, 25vw, 150px);
  }
  .logo-mosaic__cell img {
    max-height: clamp(50px, 13vw, 85px);
  }
}


/* ================================================================
   DIVISIONES
   ================================================================ */
.divisiones {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.section-head__left { display: block; }
.section-h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--ink-100);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--ink-600);
  max-width: 52ch;
  line-height: 1.7;
  text-wrap: pretty;
  margin-top: 0.75rem;
}

/* ================================================================
   DIVISIONES — Layout fullscreen slides
   ================================================================ */
.divisiones {
  background: var(--bg);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 0;
  border-top: 1px solid var(--border);
}

.divisiones__header {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.divisiones__kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.75rem;
}
.divisiones__header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.divisiones__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--ink-100);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.divisiones__ver-todas {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s;
  padding-bottom: 0.25rem;
}
.divisiones__ver-todas:hover { color: var(--dorado); }

/* ── Slides container ── */
.divisiones__slides {
  display: flex;
  flex-direction: column;
}

/* ── Cada slide — imagen full width, texto encima con overlay ── */
.div-slide {
  position: relative;
  min-height: clamp(420px, 52vw, 600px);
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.div-slide:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Imagen ocupa todo el slide ── */
.div-slide__img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.div-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.65);
  transition: transform 1s cubic-bezier(0.22,1,0.36,1), filter 0.7s;
  transform: scale(1.04);
}
.div-slide:hover .div-slide__img {
  transform: scale(1);
  filter: brightness(0.7) saturate(0.8);
}

/* Overlay oscuro — más denso a la izquierda, transparente a la derecha */
.div-slide__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7,9,15,0.96) 0%,
    rgba(7,9,15,0.82) 35%,
    rgba(7,9,15,0.35) 65%,
    rgba(7,9,15,0.08) 100%
  );
  z-index: 1;
}

/* Pares: overlay invertido — texto a la derecha */
.div-slide:nth-child(even) .div-slide__img-wrap::after {
  background: linear-gradient(
    to left,
    rgba(7,9,15,0.96) 0%,
    rgba(7,9,15,0.82) 35%,
    rgba(7,9,15,0.35) 65%,
    rgba(7,9,15,0.08) 100%
  );
}

/* Número grande decorativo — sobre la imagen, lado claro */
.div-slide__num {
  position: absolute;
  bottom: -0.1em;
  right: 2vw;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(8rem, 16vw, 18rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(251,201,90,0.12);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  transition: -webkit-text-stroke-color 0.5s;
}
.div-slide:nth-child(even) .div-slide__num {
  right: auto;
  left: 2vw;
}
.div-slide:hover .div-slide__num {
  -webkit-text-stroke-color: rgba(251,201,90,0.25);
}

/* ── Contenido texto — encima del overlay ── */
.div-slide__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 48%;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 5vw, 6rem);
}
.div-slide:nth-child(even) .div-slide__content {
  margin-left: auto;
}

.div-slide__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 1.2rem;
}

.div-slide__name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  color: var(--ink-100);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.div-slide__line {
  width: 2.5rem;
  height: 2px;
  background: var(--dorado);
  margin-bottom: 1.25rem;
}

.div-slide__desc {
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  color: var(--ink-400);
  line-height: 1.75;
  max-width: 36ch;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

.div-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--naranja);
  text-decoration: none;
  transition: gap 0.3s cubic-bezier(0.22,1,0.36,1), color 0.25s;
  margin-bottom: 2.5rem;
}
.div-slide__cta:hover { gap: 0.9rem; color: var(--dorado); }

/* Logos placeholder */
.div-slide__logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.div-slide__logo-ph {
  display: block;
  width: clamp(36px, 4vw, 52px);
  height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .div-slide { min-height: clamp(360px, 70vw, 500px); }
  .div-slide__content,
  .div-slide:nth-child(even) .div-slide__content {
    width: 85%;
    margin-left: 0;
    padding: 2rem 1.75rem;
  }
  .div-slide__img-wrap::after,
  .div-slide:nth-child(even) .div-slide__img-wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(7,9,15,0.15) 0%,
      rgba(7,9,15,0.97) 70%
    ) !important;
  }
  .div-slide__content {
    justify-content: flex-end;
  }
  .div-slide__num {
    font-size: clamp(5rem, 22vw, 9rem);
    right: 0.5rem;
    left: auto !important;
  }
  .divisiones__header-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .div-slide { min-height: 420px; }
  .div-slide__content { width: 100%; padding: 1.75rem 1.25rem; }
  .div-slide__name { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

/* ================================================================
   GASTRONOMÍA
   ================================================================ */
.gastronomia {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.gastro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3.5rem;
}
.gastro-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
}
.gastro-card:hover { background: var(--bg-3); }
.gastro-card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gastro-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.75);
}
.gastro-card__body { padding: 1.5rem 1.75rem 2rem; flex: 1; }
.gastro-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.gastro-card__status-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.gastro-card__status--open { color: #4ade80; }
.gastro-card__status--open .gastro-card__status-dot { background: #4ade80; animation: dot-pulse 2s infinite; }
.gastro-card__status--soon { color: var(--naranja); }
.gastro-card__status--soon .gastro-card__status-dot { background: var(--naranja); }

.gastro-card__type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 0.4rem;
}
.gastro-card__name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--ink-100);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.gastro-card__desc {
  font-size: 0.83rem;
  color: var(--ink-400);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}
.gastro-card__loc {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.gastro-card__loc svg { width: 13px; height: 13px; stroke: var(--ink-600); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 2px; }
.gastro-card__loc p { font-size: 0.75rem; color: var(--ink-600); line-height: 1.5; }

@media (max-width: 860px) { .gastro__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gastro__grid { grid-template-columns: 1fr; } }

/* ================================================================
   PROYECTOS
   ================================================================ */
.proyectos {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.proyectos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 380px 280px;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3.5rem;
}
.proy-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.proy-card:first-child { grid-row: span 2; }

.proy-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.5);
  transition: filter 0.5s var(--ease-out);
}
.proy-card:hover .proy-card__img { filter: brightness(0.55) saturate(0.65); }
.proy-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,15,0.95) 0%, transparent 55%);
}
.proy-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
}
.proy-card__cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.4rem;
}
.proy-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--ink-100);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.proy-card:first-child .proy-card__title { font-size: 1.85rem; }
.proy-card__meta { font-size: 0.75rem; color: var(--ink-600); }

@media (max-width: 768px) {
  .proyectos__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .proy-card { height: 260px; }
  .proy-card:first-child { grid-row: span 1; }
}

/* ================================================================
   POSICIONAMIENTO
   ================================================================ */
.posicionamiento {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.posicion__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3.5rem;
}
.posicion-item {
  padding: 2rem 1.75rem;
  background: var(--surface);
  transition: background 0.25s;
}
.posicion-item:hover { background: var(--bg-3); }
.posicion-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-100);
  line-height: 1.4;
  margin-bottom: 0.625rem;
}
.posicion-item__desc {
  font-size: 0.83rem;
  color: var(--ink-400);
  line-height: 1.65;
}

/* ================================================================
   REDES SOCIALES
   ================================================================ */
.redes {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.redes__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.redes__h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  color: var(--ink-100);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.redes__sub {
  font-size: 0.875rem;
  color: var(--ink-600);
  max-width: 40ch;
  line-height: 1.65;
}
.redes__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.red-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink-400);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s var(--ease-out);
}
.red-btn:hover {
  border-color: var(--border-hi);
  color: var(--ink-100);
  background: rgba(255,255,255,0.04);
}
.red-btn:active { transform: scale(0.97); }
.red-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ================================================================
   CTA FINAL
   ================================================================ */
.cta-final {
  padding: clamp(7rem, 14vw, 12rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-final__glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,201,90,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-final__inner {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}
.cta-final__pre {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 1.25rem;
}
.cta-final__h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink-100);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.cta-final__h2 em {
  font-style: italic;
  color: var(--dorado);
}
.cta-final__sub {
  font-size: 1rem;
  color: var(--ink-400);
  line-height: 1.75;
  max-width: 52ch;
  margin-inline: auto;
  text-wrap: pretty;
  margin-bottom: 2.75rem;
}
.cta-final__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer__logo { height: 36px; margin-bottom: 1.25rem; }
.footer__tagline {
  font-size: 0.83rem;
  color: var(--ink-600);
  line-height: 1.7;
  max-width: 30ch;
  text-wrap: pretty;
}
.footer__col-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__link {
  font-size: 0.83rem;
  color: var(--ink-600);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--ink-200); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--ink-600);
}
.footer__certs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.footer__cert {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--ink-600);
}

@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }

/* ================================================================
   MODAL DIVISIONES
   ================================================================ */
.modal-div {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.modal-div[hidden] { display: none; }

.modal-div__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-div__panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  width: 100%;
  max-width: 960px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  /* Entrada */
  animation: modal-in 0.38s var(--ease-out) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .modal-div__panel { animation: none; }
}

.modal-div__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.modal-div__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ink-100);
  letter-spacing: -0.02em;
}

.modal-div__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  color: var(--ink-400);
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.modal-div__close:hover {
  color: var(--ink-100);
  background: rgba(255,255,255,0.07);
}

.modal-div__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 680px) {
  .modal-div__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .modal-div__grid { grid-template-columns: 1fr; }
}

.modal-div__card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.modal-div__card:hover {
  border-color: var(--border-hi);
  background: var(--bg-2);
}

.modal-div__img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.modal-div__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.7);
  transition: filter 0.35s;
}
.modal-div__card:hover .modal-div__img-wrap img {
  filter: brightness(0.9) saturate(0.85);
}

.modal-div__body {
  padding: 1rem 1.1rem 1.25rem;
}

.modal-div__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 0.45rem;
}

.modal-div__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-100);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.modal-div__desc {
  font-size: 0.82rem;
  color: var(--ink-400);
  line-height: 1.6;
}

/* ================================================================
   PRELOADER
   ================================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: #060d1f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3rem);
  /* Salida: clip-path sube hacia arriba */
  transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1),
              opacity 0.15s 0.65s;
}
#preloader.preloader--done {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #preloader.preloader--done {
    clip-path: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
}

@keyframes preloader-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.preloader__logo {
  width: clamp(120px, 22vw, 200px);
  height: auto;
  animation: preloader-fadein 0.55s var(--ease-out) 0.1s both;
}

.preloader__tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 244, 255, 0.45);
  animation: preloader-fadein 0.5s var(--ease-out) 0.3s both;
}

.preloader__bar-wrap {
  width: clamp(160px, 28vw, 280px);
  height: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
  overflow: hidden;
  animation: preloader-fadein 0.4s var(--ease-out) 0.45s both;
}

@media (prefers-reduced-motion: reduce) {
  .preloader__logo,
  .preloader__tagline,
  .preloader__bar-wrap { animation: none; opacity: 1; transform: none; }
}

.preloader__bar {
  height: 100%;
  width: 0%;
  background: var(--dorado);
  border-radius: 1px;
  transition: width 0.25s var(--ease-out);
}
