/* ============================================================
   AZIST — ESTILOS GLOBALES
   Nav, footer, botones, utilidades, scroll reveal
   ============================================================ */

/* BASE ------------------------------------------------------ */
body {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-near-black);
  background-color: var(--color-white);
}

/* CONTENEDOR ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--color-black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background-color var(--duration-base) var(--ease-out);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo img {
  height: 28px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__link {
  font-family: var(--font-manrope);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}
.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
}
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-blue);
}

/* Dropdown */
.nav__item {
  position: relative;
}
.nav__link--dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav__link--dropdown svg {
  width: 10px;
  height: 10px;
  transition: transform var(--duration-fast) var(--ease-out);
  fill: currentColor;
}
.nav__item:hover .nav__link--dropdown svg {
  transform: rotate(180deg);
}
/* Outer wrapper — sin background. Tiene padding-top que actúa como puente
   invisible: el hover persiste mientras el mouse pasa al panel. */
.nav__dropdown {
  position: absolute;
  top: 100%;
  padding-top: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  z-index: 100;
}
/* Variantes de posicionamiento */
.nav__dropdown--mega {
  /* Anclado a la izquierda del trigger, ancho fijo */
  left: -16px;
  width: 540px;
}
.nav__dropdown--simple {
  left: 50%;
  width: 220px;
  margin-left: -110px; /* centrado */
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
/* Panel visible — la "tarjeta" con borde y fondo */
.nav__dropdown-panel {
  background-color: var(--color-black);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.nav__dropdown--mega .nav__dropdown-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.nav__dropdown-col {
  display: flex;
  flex-direction: column;
}
/* Heading clickeable (Slide Center / Creative Hub) */
.nav__dropdown-heading {
  display: block;
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  position: relative;
}
.nav__dropdown-heading::after {
  content: '→';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0;
  font-weight: 400;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.nav__dropdown-heading:hover {
  background-color: rgba(255,255,255,0.06);
  color: var(--color-sky-blue);
}
.nav__dropdown-heading:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
/* Sub-items (Templates, Formatting, etc.) */
.nav__dropdown-sub {
  display: block;
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  padding: 8px var(--space-4);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              padding-left var(--duration-fast) var(--ease-out);
}
.nav__dropdown-sub:hover {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.04);
  padding-left: calc(var(--space-4) + 6px);
}

/* CTA Nav */
.nav__cta {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-white);
  background-color: var(--color-blue);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.nav__cta:hover {
  background-color: #FF6B35 !important;
  border-color: #FF6B35 !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menú móvil */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-black);
  padding: var(--space-8) var(--gutter);
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
  z-index: 99;
}
.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
}
.nav__mobile-link {
  display: block;
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(32px, 8vw, 56px);
  color: var(--color-white);
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--duration-fast) var(--ease-out);
}
.nav__mobile-link:hover { color: var(--color-blue); }
.nav__mobile-sub {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.nav__mobile-sub a {
  display: block;
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--duration-fast) var(--ease-out);
}
.nav__mobile-sub a:hover { color: var(--color-white); }
.nav__mobile-sub-heading {
  font-weight: 700 !important;
  font-size: var(--text-base) !important;
  color: var(--color-white) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-3);
}
.nav__mobile-sub-heading:first-child {
  margin-top: 0;
}
.nav__mobile-cta {
  display: inline-block;
  margin-top: var(--space-10);
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-white);
  background-color: var(--color-blue);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn--dark {
  background-color: var(--color-black);
  color: var(--color-white);
}
.btn--dark:hover { background-color: #1a1a1a; }
.btn--blue {
  background-color: var(--color-blue);
  color: var(--color-white);
}
.btn--blue:hover { background-color: #2f53fc; }
.btn--orange {
  background-color: var(--color-orange);
  color: var(--color-white);
}
.btn--orange:hover { background-color: #d8431f; }
.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--outline-white:hover {
  border-color: var(--color-white);
  background-color: rgba(255,255,255,0.06);
}
.btn--outline-dark {
  background-color: transparent;
  color: var(--color-black);
  border: 1.5px solid rgba(0,0,0,0.2);
}
.btn--outline-dark:hover {
  border-color: var(--color-black);
}
.btn--lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}
/* ============================================================
   FLOATING CTA — siempre visible mientras scroleas
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 24px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(65, 100, 254, 0.35),
              0 2px 8px rgba(0, 0, 0, 0.10);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.92);
  transition: opacity 320ms var(--ease-out),
              transform 320ms var(--ease-out),
              background-color 180ms var(--ease-out),
              box-shadow 180ms var(--ease-out);
  white-space: nowrap;
}
.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.floating-cta:hover {
  background-color: #2f53fc;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(65, 100, 254, 0.45),
              0 4px 12px rgba(0, 0, 0, 0.14);
}
.floating-cta__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.floating-cta:hover .floating-cta__icon {
  transform: translateX(2px);
}
@media (max-width: 600px) {
  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta {
    transition: opacity 180ms linear !important;
    transform: none !important;
  }
  .floating-cta.is-visible { transform: none !important; }
}

.btn--magnetic {
  will-change: transform;
  /* JS controla transform — combinamos con la transition del .btn base
     pero más rápida para que el "vuelta al origen" se sienta crisp */
  transition: transform 120ms var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}
.btn--magnetic:hover {
  transform: none; /* deja al JS el control total */
}
@media (prefers-reduced-motion: reduce) {
  .btn--magnetic {
    transform: none !important;
    transition: background-color var(--duration-fast) var(--ease-out) !important;
  }
}
.btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ============================================================
   SECCIÓN GENÉRICA
   ============================================================ */
.section {
  padding-block: clamp(120px, 14vw, 200px);
  position: relative;
  overflow: hidden;
}
.section--dark {
  background-color: var(--color-black);
  color: var(--color-white);
}
.section--grey {
  background-color: var(--color-off-white);
}
.section--light-grey {
  background-color: var(--color-light-grey);
}

/* Etiqueta de sección */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-near-black);
  margin-bottom: var(--space-6);
}
.section-label--white {
  color: rgba(255,255,255,0.70);
}

/* Eyebrow alternativo — italic Eiko, sin uppercase, con barra vertical */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-eiko);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-near-black);
  margin-bottom: var(--space-5);
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 2px;
  height: 20px;
  background-color: var(--color-blue);
  opacity: 0.7;
}
.eyebrow--white {
  color: rgba(255,255,255,0.75);
}
.eyebrow--white::before {
  background-color: var(--color-sky-blue);
  opacity: 0.9;
}
.eyebrow--center {
  justify-content: center;
}

/* Divisor */
.divider {
  height: 1px;
  background-color: var(--color-light-grey);
}
.divider--dark {
  background-color: rgba(255,255,255,0.08);
}

/* ============================================================
   TEXTO FANTASMA (brand pattern: "building depth")
   ============================================================ */
.ghost-text {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: var(--text-ghost);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  position: absolute;
  z-index: 0;
  letter-spacing: -0.02em;
}
.ghost-text--white {
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
}
.ghost-text--filled {
  color: rgba(0,0,0,0.04);
  -webkit-text-stroke: none;
}
.ghost-text--filled-white {
  color: rgba(255,255,255,0.04);
  -webkit-text-stroke: none;
}

/* ============================================================
   TARJETAS DE SERVICIO
   ============================================================ */
.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 48px);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card--dark {
  background-color: #0f0f0f;
  border-color: rgba(255,255,255,0.08);
}
.service-card--dark:hover {
  border-color: transparent;
}
.service-card__number {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-mid-grey);
  margin-bottom: var(--space-8);
}
.service-card__number--white {
  color: rgba(255,255,255,0.3);
}
.service-card__title {
  font-family: var(--font-frama);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: var(--color-near-black);
  margin-bottom: var(--space-4);
}
.service-card__title--white {
  color: var(--color-white);
}
.service-card__body {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-grey);
  margin-bottom: var(--space-6);
}
.service-card__body--white {
  color: rgba(255,255,255,0.55);
}
.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.service-card__list li {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-grey);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.service-card__list--white li {
  color: rgba(255,255,255,0.55);
}
.service-card__tagline {
  font-family: var(--font-eiko);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-blue);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-light-grey);
}
.service-card__tagline--white {
  color: rgba(255,255,255,0.45);
  border-top-color: rgba(255,255,255,0.1);
}

/* ============================================================
   CHIPS DE SERVICIO
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-5);
}
.chip {
  font-family: var(--font-manrope);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--color-grey);
  background-color: var(--color-off-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  white-space: nowrap;
}
.chip--dark {
  color: rgba(255,255,255,0.65);
  background-color: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

/* ============================================================
   PASOS / PROCESO
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-6);
}
.step {
  position: relative;
}
.step__num {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.10em;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
  display: block;
}
.step__title {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-near-black);
  margin-bottom: var(--space-2);
}
.step__title--white { color: var(--color-white); }
.step__body {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-sm);
  color: var(--color-grey);
  line-height: 1.6;
}
.step__body--white { color: rgba(255,255,255,0.50); }

/* Línea conectora entre pasos */
.steps--connected .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 6px;
  right: -12px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-light-grey) 0%, transparent 100%);
}

/* ============================================================
   BLOQUE CTA BANNER
   ============================================================ */
.cta-banner {
  background-color: var(--color-black);
  padding-block: clamp(100px, 12vw, 160px);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate; /* contiene el blend del mesh */
}
/* Gradient mesh animado — atmósfera detrás del CTA.
   Dos radial-gradients superpuestos que respiran en colores brand. */
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(60px);
  opacity: 0.5;
}
.cta-banner::before {
  background: radial-gradient(circle at 25% 30%, rgba(65,100,254,0.55) 0%, transparent 50%),
              radial-gradient(circle at 75% 70%, rgba(233,75,36,0.35) 0%, transparent 50%);
  animation: mesh-drift-1 16s ease-in-out infinite alternate;
}
.cta-banner::after {
  background: radial-gradient(circle at 80% 20%, rgba(125,196,255,0.45) 0%, transparent 55%),
              radial-gradient(circle at 20% 80%, rgba(206,166,252,0.35) 0%, transparent 55%);
  animation: mesh-drift-2 22s ease-in-out infinite alternate;
}
@keyframes mesh-drift-1 {
  0%   { transform: translate(0, 0)       scale(1);   }
  100% { transform: translate(4%, -3%)    scale(1.1); }
}
@keyframes mesh-drift-2 {
  0%   { transform: translate(0, 0)       scale(1);   }
  100% { transform: translate(-3%, 4%)    scale(1.15);}
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner::before,
  .cta-banner::after { animation: none !important; }
}
.cta-banner__title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-8);
  max-width: 820px;
  margin-inline: auto;
}
.cta-banner__title em {
  font-family: var(--font-eiko);
  font-weight: 300;
  font-style: italic;
  color: var(--color-sky-blue);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-block: clamp(48px, 6vw, 80px) 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer__brand {}
.footer__logo {
  height: 24px;
  width: auto;
  margin-bottom: var(--space-5);
}
/* Footer wordmark — "azist" as text, mirroring the .footer__tagline family + weight */
.footer__wordmark {
  display: inline-block;
  /* The 20px wordmark's line-box is ~14px taller than the 11px col-titles; subtract that
     from the shared header margin so the tagline lines up with the first link row. */
  margin-bottom: calc(var(--space-5) - 14px);
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--color-white);
}
.footer__tagline {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.40);
  line-height: 1.6;
  max-width: 220px;
}
.footer__col-title {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: var(--space-5);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__links a {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__links a:hover { color: var(--color-white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copy {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}


/* ============================================================
   SCROLL REVEAL — base + variantes
   ============================================================ */
/* Default (sin valor o data-reveal="") — translate Y simple */
[data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Variante CLIP — máscara de abajo hacia arriba.
   Sin transform inicial, sólo clip-path. */
[data-reveal="clip"] {
  opacity: 0;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: opacity 900ms var(--ease-out),
              clip-path 900ms var(--ease-out);
}
[data-reveal="clip"].revealed {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Variante SCALE — entra con scale 0.94 + opacity */
[data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out);
}
[data-reveal="scale"].revealed {
  opacity: 1;
  transform: scale(1);
}

/* Variantes direccionales */
[data-reveal="left"]  { opacity: 0; transform: translateX(-60px); }
[data-reveal="right"] { opacity: 0; transform: translateX( 60px); }
[data-reveal="left"].revealed,
[data-reveal="right"].revealed { opacity: 1; transform: none; }

/* Variante grande — más translate */
[data-reveal="up-lg"] { opacity: 0; transform: translateY(90px); transition-duration: 900ms; }
[data-reveal="up-lg"].revealed { opacity: 1; transform: none; }

[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal-delay="4"] { transition-delay: 400ms; }
[data-reveal-delay="5"] { transition-delay: 500ms; }
[data-reveal-delay="6"] { transition-delay: 600ms; }

/* WORD SPLIT — cada palabra entra desde abajo con stagger */
[data-split-words] {
  /* El contenedor permanece visible; los hijos .word controlan la animación */
}
[data-split-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out);
  will-change: transform, opacity;
}
[data-split-words].words-revealed .word {
  opacity: 1;
  transform: none;
}

/* Reduce motion — todo visible sin animar */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].revealed,
  [data-reveal="clip"],
  [data-reveal="scale"],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal="up-lg"],
  [data-split-words] .word {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* ============================================================
   CIRCULOS CONCÉNTRICOS (motivo gráfico de la marca)
   ============================================================ */
.circles {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.circles svg {
  width: 100%;
  height: 100%;
}

/* Decoración a nivel sección — animada por scroll (parallax).
   Consume --scroll-progress (0..1) seteado por animations.js
   en el contenedor con [data-scroll-parallax]. */
.section-circles {
  position: absolute;
  width: clamp(280px, 32vw, 460px);
  height: clamp(280px, 32vw, 460px);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.5;
  /* Parallax: traslada vertical e infla suavemente al scrollear */
  transform:
    translate3d(
      0,
      calc((var(--scroll-progress, 0) - 0.5) * 80px),
      0
    )
    rotate(calc(var(--scroll-progress, 0) * 30deg))
    scale(calc(0.92 + var(--scroll-progress, 0) * 0.16));
  transition: transform 60ms linear;
}
.section-circles--left {
  left: -8%;
  top: 30%;
}
.section-circles--right {
  right: -10%;
  bottom: 10%;
}
@media (prefers-reduced-motion: reduce) {
  .section-circles {
    transform: none !important;
    transition: none !important;
  }
}
@media (max-width: 700px) {
  .section-circles { display: none; }
}

/* ============================================================
   MISCELÁNEA "TRAMA" — mesh de marca (compartido entre páginas)
   ============================================================ */
.trama-cell { opacity: 0; }
.trama-cell--1 { animation: trama-scan 9s ease-in-out infinite; }
.trama-cell--2 { animation: trama-scan 9s ease-in-out infinite 3s; }
.trama-cell--3 { animation: trama-scan 9s ease-in-out infinite 6s; }
@keyframes trama-scan {
  0%, 100% { opacity: 0; }
  12%      { opacity: 0.13; }
  28%      { opacity: 0.13; }
  40%      { opacity: 0; }
}
.trama-ring { animation: trama-ring-pulse 6s ease-in-out infinite; }
@keyframes trama-ring-pulse { 0%, 100% { opacity: 0.78; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .trama-cell, .trama-ring { animation: none !important; }
  .trama-cell--2 { opacity: 0.10; }
}

/* ============================================================
   PLACEHOLDER DE PROYECTOS
   ============================================================ */
.project-placeholder {
  aspect-ratio: 4/3;
  background-color: var(--color-light-grey);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.project-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--color-light-grey) 0%,
    rgba(65,100,254,0.08) 100%);
}
.project-placeholder--dark {
  background-color: #111111;
}
.project-placeholder--dark::after {
  background: linear-gradient(135deg,
    #111111 0%,
    rgba(65,100,254,0.15) 100%);
}
.project-placeholder__label {
  font-family: var(--font-manrope);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-mid-grey);
  position: relative;
  z-index: 1;
}
.project-placeholder--dark .project-placeholder__label {
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: block; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .btn--lg {
    padding: 16px 28px;
    font-size: var(--text-sm);
  }
}

/* Laptop / notebook (1200–1800px): contained width with real auto side
   margins so content no longer stretches edge to edge. Placed last so it
   wins the cascade over .container / .nav__inner base rules. Desktop
   (≥1801px) and tablet/mobile (≤1199px) are untouched. */
@media (min-width: 1200px) and (max-width: 1800px) {
  .container, .nav__inner, .wrapper {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ============================================================
   LATEST PROJECTS — fullscreen mixed-media lightbox (shared by Slide Center
   and Creative Hub; driven by setupLightbox() in js/animations.js).
   One carousel can interleave images and videos — the JS shows <img> or
   <video> per item by file extension and hides the other (display toggle). */
.sc-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms;
}
.sc-lb.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 240ms var(--ease-out);
}
.sc-lb__stage { position: relative; width: 90vw; height: 85vh; }
.sc-lb__img,
.sc-lb__video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 85vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  user-select: none;
  -webkit-user-drag: none;
}
.sc-lb__video { background: #000; }
.sc-lb__counter {
  position: absolute;
  bottom: clamp(16px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #fff;
}
.sc-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 24, 0.55);
  color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.sc-lb__nav:hover { background: rgba(40, 40, 48, 0.85); transform: translateY(-50%) scale(1.08); }
.sc-lb__nav--prev { left: clamp(12px, 3vw, 36px); }
.sc-lb__nav--next { right: clamp(12px, 3vw, 36px); }
.sc-lb__close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  z-index: 4;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 24, 0.6);
  color: #fff; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.sc-lb__close:hover { background: rgba(40, 40, 48, 0.85); transform: rotate(90deg); }
.sc-lb--handoff { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .sc-lb { transition: none; } }
