/* ==========================================================================
   CIBRAN ARQUITECTOS - ESTILOS GLOBALES
   ========================================================================== */

/* 1. TIPOGRAFÍA LOCAL (@font-face)
   ========================================================================== */
@font-face {
  font-family: 'Helia';
  src: url('../assets/fonts/Helia-Light.woff2') format('woff2'),
       url('../assets/fonts/Helia-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helia';
  src: url('../assets/fonts/Helia-Regular.woff2') format('woff2'),
       url('../assets/fonts/Helia-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helia';
  src: url('../assets/fonts/Helia-Bold.woff2') format('woff2'),
       url('../assets/fonts/Helia-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sk-Modernist';
  src: url('../assets/fonts/sk-modernist-light-webfont.woff2') format('woff2'),
       url('../assets/fonts/sk-modernist-light-webfont.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sk-Modernist';
  src: url('../assets/fonts/sk-modernist-regular-webfont.woff2') format('woff2'),
       url('../assets/fonts/sk-modernist-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sk-Modernist';
  src: url('../assets/fonts/sk-modernist-bold-webfont.woff2') format('woff2'),
       url('../assets/fonts/sk-modernist-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* 2. TOKENS Y VARIABLES DE DISEÑO
   ========================================================================== */
:root {
  /* Paleta Cromática */
  --color-primary: #0a0a0a;       /* Fondo principal (legacy name) */
  --color-background: #0a0a0a;    /* Fondo del sitio */
  --color-brand: #2c2b2b;         /* Color primario de marca */
  --color-secondary-medium: #a9aaa9;
  --color-secondary-light: #e2e2e2;
  --color-text: #e5e7eb;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Tipografía */
  --font-heading: 'Sk-Modernist', sans-serif;
  --font-body: 'Helia', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* Sistema de Espaciado (8px Grid System) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --space-x-large: 160px;
  --header-height: 140px; /* Separación mayor para nuevas secciones */

  /* Geometría */
  --radius-zero: 0px;

  /* Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Layout constraints */
  --container-max-width: 1440px;
  --container-padding: var(--space-3);
}

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-8);
  }
}

/* 3. RESET Y TIPOGRAFÍA BASE
   ========================================================================== */
html {
  /* scroll-snap-type: y mandatory; */
  /* scroll-behavior: smooth; */
}

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

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-light);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force system cursor for specific contexts (Posts/Archive) */
body.use-default-cursor {
  cursor: auto !important;
}
body.use-default-cursor .c-cursor {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  color: var(--color-white);
}

main {
  position: relative;
  z-index: 25;
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: -0.01em; } /* ~24px */
h3 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

/* Accessibility: Skip to Content */
.c-skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  color: var(--color-black);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  transition: top 0.3s ease;
}

.c-skip-link:focus {
  top: 20px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.c-section-padding {
  padding-block: var(--space-10);
}
@media (min-width: 1024px) {
  .c-section-padding { padding-block: var(--space-x-large); }
}

.c-section-title {
  margin-bottom: var(--space-6);
}

.c-section-title h1,
.c-section-title h2 {
  margin-bottom: var(--space-1);
}

.c-section-title span {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  color: var(--color-secondary-medium);
}

/* Section-title mobile: allow link to wrap to next line */
@media (max-width: 768px) {
  .c-section-title {
    flex-wrap: wrap !important;
    gap: var(--space-3);
  }
  .c-section-title .c-link {
    font-size: 0.75rem;
  }
}

/* Breadcrumbs */
.c-breadcrumbs-container {
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-6);
}

.c-breadcrumbs-container p,
.c-breadcrumbs-fallback {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary-medium);
}

.c-breadcrumbs-container a,
.c-breadcrumbs-fallback a {
  color: var(--color-secondary-medium);
  transition: color 0.3s ease;
}

.c-breadcrumbs-container a:hover,
.c-breadcrumbs-fallback a:hover {
  color: var(--color-white);
}

.c-breadcrumbs-container span,
.c-breadcrumbs-fallback span {
  color: var(--color-white);
}

/* 4. CLASES UTILITARIAS Y LAYOUT (BEM Objects)
   ========================================================================== */
.o-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Botón Geométrico BEM */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
  border-radius: var(--radius-zero);
  border: 1px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.c-btn:hover,
.c-btn:focus {
  background: var(--color-white);
  color: var(--color-primary);
  outline: none;
}

@media (min-width: 768px) {
  .c-btn {
    padding: var(--space-2) var(--space-5);
    font-size: 0.875rem;
  }
}


/* ============================================================
   FASE 2 — TEXT REVEAL POR LÍNEA
   Clip de línea individual con stagger controlado via JS.
   ============================================================ */
.js-reveal__line {
  overflow: hidden;
  display: block;
}

.js-reveal__inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.8s ease;
}

.js-reveal__inner.is-revealed {
  transform: translateY(0);
  opacity: 1;
}


/* ============================================================
   FASE 3 — CURSOR PERSONALIZADO
   Punto flotante posicionado absolutamente, sigue con lerp.
   mix-blend-mode: difference para contraste automático.
   ============================================================ */
.c-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 35px;
  height: 35px;
  background: var(--color-white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  /* El translate se aplica via JS: transform: translate(x,y) */
  will-change: transform;
  /* Compensar el offset del radio para que el centro del círculo siga el puntero */
  margin-left: calc(var(--space-1) * -1); /* was -5px */
  margin-top: calc(var(--space-1) * -1); /* was -5px */
}

.c-cursor--expanded {
  width: 44px;
  height: 44px;
  margin-left: calc(var(--space-3) * -1); /* was -22px */
  margin-top: calc(var(--space-3) * -1); /* was -22px */
}


/* ============================================================
   FASE 4 — HOVER FILL EN BOTONES Y LINKS DE ACCIÓN
   Pseudo-elemento ::before que desliza de izquierda a derecha.
   ============================================================ */
.c-btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.c-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.c-btn:hover::before {
  transform: scaleX(1);
}

/* Aplicar también a .c-btn-outline */
.c-btn-outline {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.c-btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.c-btn-outline:hover::before {
  transform: scaleX(1);
}

.c-btn-outline:hover {
  color: var(--color-black);
}


.c-link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  border-bottom: 1px solid var(--color-white);
  padding-bottom: 4px;
}
.c-link:hover {
  color: var(--color-secondary-medium);
  border-bottom-color: var(--color-secondary-medium);
}

/* Arrow after c-link — moves with hover-roll */
.c-link::after {
  content: ' →';
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.c-link:hover::after {
  transform: translateX(3px);
}

/* CTA hover on dark backgrounds (hero) — keep white */
.c-sp-hero .c-link:hover,
.c-hero .c-link:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

/* CTA Link — marco parcial L-shape + flecha SVG, completa en hover */
.c-cta-link {
  border-bottom: none;
  padding-bottom: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.c-cta__arrow {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-cta-link:hover .c-cta__arrow {
  transform: translateX(3px);
}

.c-cta__frame {
  position: absolute;
  background: currentColor;
  pointer-events: none;
}

.c-cta__frame--top {
  top: -3px;
  left: -8px;
  width: calc(100% + 16px);
  height: 1px;
}

.c-cta__frame--left {
  top: -3px;
  left: -8px;
  width: 1px;
  height: calc(100% + 6px);
}

.c-cta__frame--right {
  top: -3px;
  right: -8px;
  width: 1px;
  height: 0;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-cta__frame--bottom {
  bottom: -3px;
  right: -8px;
  width: 0;
  height: 1px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.c-cta-link:hover .c-cta__frame--right {
  height: calc(100% + 6px);
}

.c-cta-link:hover .c-cta__frame--bottom {
  width: calc(100% + 16px);
}


/* 5. HEADER & NAVEGACIÓN BEM
   ========================================================================== */
.c-header {
  position: absolute; /* Mueve con el scroll */
  top: 0;
  left: 0;
  width: 100%;
  padding-top: var(--space-5);
  padding-bottom: var(--space-3);
  z-index: 100;
  border-bottom: none;
  background: transparent;
}

.c-header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-5) var(--container-padding);
  display: flex;
  justify-content: flex-end;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.c-header-sticky.is-scrolled {
  opacity: 1;
  pointer-events: auto;
}

.c-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo centrado en header — solo páginas interiores */
.c-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  animation: headerLogoFade 0.8s ease forwards;
  animation-delay: 0.6s;
}

.c-header__logo svg {
  height: clamp(2.5rem, 4vw + 1rem, 3.75rem);
  width: auto;
  fill: var(--color-white);
  transition: opacity 0.3s ease;
}

.c-header__logo:hover svg {
  opacity: 0.85;
}

@keyframes headerLogoFade {
  to { opacity: 1; }
}

@media (min-width: 1024px) {
  .c-header__logo svg {
    height: clamp(3rem, 3.5vw + 1rem, 3.75rem);
  }
}

@media (max-width: 768px) {
  .c-header__inner > div {
    width: 60px !important;
  }
  .c-header__inner .c-link {
    display: none !important;
  }
  .c-header__inner .c-sp-back {
    font-size: 0;
  }
  /* Hide sticky header link on mobile to avoid content overlap */
  .c-header-sticky {
    display: none;
  }
}

.c-logo img,
.c-logo svg {
  height: 50px; /* Tamaño menor para móvil */
  width: auto;
  position: relative;
  z-index: 200;
}

@media (min-width: 1024px) {
  .c-logo img,
  .c-logo svg {
    height: 80px; /* Tamaño solicitado */
  }
}

/* Burger Menu */
.c-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
  position: relative;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  animation: burgerReveal 0.5s ease forwards;
  animation-delay: 3.2s; /* Sincronizado con el texto */
}
@keyframes burgerReveal {
  to {
    max-width: 24px;
    opacity: 1;
  }
}
.c-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-white);
  transition: var(--transition-smooth);
}
.c-burger.is-active span:nth-child(1) {
  transform: translateY(6.25px) rotate(45deg);
}
.c-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.c-burger.is-active span:nth-child(3) {
  transform: translateY(-6.25px) rotate(-45deg);
}

/* Floating Menu Pill BEM */
.c-menu-pill {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  max-width: 48px;
  background-color: rgba(111, 111, 111, 0.3);
  border: 1px solid rgba(125, 125, 141, 0.5);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  animation: pillEntry 2s cubic-bezier(0.22, 1, 0.36, 1) forwards, pillGap 0.5s ease forwards;
  animation-delay: 2.2s, 3.2s;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

@keyframes pillGap {
  to { gap: var(--space-2); }
}

@keyframes pillEntry {
  0% {
    transform: translateX(-50%) translateY(150px);
    max-width: 48px;
    padding: var(--space-1);
  }
  30% {
    transform: translateX(-50%) translateY(0);
    max-width: 48px;
    padding: var(--space-1);
  }
  100% {
    transform: translateX(-50%) translateY(0);
    max-width: 300px;
    padding: var(--space-1) var(--space-3);
  }
}

@media (min-width: 768px) {
  .c-menu-pill {
    bottom: var(--space-5);
    max-width: 56px;
    padding: var(--space-2);
  }
  @keyframes pillEntry {
    0% {
      transform: translateX(-50%) translateY(150px);
      max-width: 56px;
      padding: var(--space-2);
    }
    30% {
      transform: translateX(-50%) translateY(0);
      max-width: 56px;
      padding: var(--space-2);
    }
    100% {
      transform: translateX(-50%) translateY(0);
      max-width: 350px;
      padding: var(--space-2) var(--space-5);
    }
  }
}

.c-menu-pill__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-menu-pill__logo img {
  height: 24px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.c-menu-pill__text {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  animation: pillTextReveal 0.5s ease forwards;
  animation-delay: 3.2s;
}

@keyframes pillTextReveal {
  to {
    opacity: 1;
    max-width: 150px;
  }
}

.c-menu-pill .c-burger {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  animation: pillBurgerReveal 0.5s ease forwards;
  animation-delay: 3.2s;
}

@keyframes pillBurgerReveal {
  to {
    opacity: 1;
    max-width: 50px;
  }
}

.c-menu-pill:hover {
  background-color: rgba(167, 167, 167, 0.45);
  border-color: rgba(177, 177, 178, 0.6);
}

.c-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, visibility 0.6s;
  z-index: 150;
}
.c-nav.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
@media (min-width: 1024px) {
  .c-nav {
    width: 75vw;
  }
}

.c-nav__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: var(--space-10) var(--space-6) 200px;
  overflow-y: auto;
}

/* Mobile: main links first, sedes second */
@media (max-width: 767px) {
  .c-nav__inner {
    flex-direction: column;
  }
  .c-nav__list {
    order: 1;
    margin-bottom: var(--space-8);
  }
  .c-nav__locations {
    order: 2;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .c-nav__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-10) var(--space-12) calc(var(--space-12) + 80px);
    overflow-y: visible;
    position: relative;
  }
  
  /* Separador vertical centrado en desktop */
  .c-nav__inner::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.15);
  }
}

/* Sedes side */
.c-nav__locations {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
@media (min-width: 768px) {
  .c-nav__locations {
    margin-bottom: 0;
  }
}
.c-nav.is-active .c-nav__locations {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: locations sits below the nav links — add separator */
@media (max-width: 767px) {
  .c-nav__locations {
    margin-bottom: 0;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: var(--space-3);
  }
  .c-nav__location h4 {
    font-size: 1.25rem; /* Ajustado en móvil */
  }
  .c-nav__location a {
    font-size: 0.875rem; /* Ajustado en móvil */
  }
}

.c-nav__locations-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary-medium);
  margin-bottom: var(--space-6);
}

/* Bloque de cada sede */
.c-nav__location {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

/* Ciudad — grande, light */
.c-nav__location h4 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-light);
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 0;
  line-height: 1.1;
}

/* Teléfono */
.c-nav__location__tel {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
  margin-bottom: var(--space-2);
}
.c-nav__location__tel:hover {
  color: var(--color-secondary-light);
}

/* Dirección completa — "encajonarse" */
.c-nav__location__address {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-white);
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 280px; /* Encajonarse */
  margin-bottom: var(--space-2);
}

/* Contenedor Map Link con línea */
.c-nav__location__map-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.c-nav__location__map-row::before {
  content: "";
  flex: 0 0 30px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

/* "VER MAPA" */
.c-nav__location__map-link {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}
.c-nav__location__map-link:hover {
  color: var(--color-secondary-light);
}

/* Derecha links */
.c-nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  list-style: none;
}
@media (min-width: 768px) {
  .c-nav__list {
    align-items: flex-end;
  }
}

.c-nav__link {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); /* Tamaño reducido según guía de diseño */
  text-transform: uppercase;
  letter-spacing: 0.05em
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

.c-nav__link.is-entering {
  opacity: 1;
  transform: translateY(0);
}

/* 6. HERO SECTION BEM
   ========================================================================== */
.c-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  z-index: 1;
}

.c-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 115%;
  height: 115%;
  object-fit: cover;
  z-index: 0;
}

.c-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.45); /* Ajustado a #0a0a0a rgba */
  z-index: 1;
}

.c-hero__content {
  width: 100%;
  max-width: 1000px;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Loop Text Animation BEM */
.c-hero__loop-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(3rem, 6vw, 5.5rem);
}

.c-hero__word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 5vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  letter-spacing: -0.02em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
  white-space: nowrap;
}

.c-hero__word.is-visible {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

/* Wrapper over hero for scrolling reveal */
.c-content-overlay {
  position: relative;
  z-index: 10;
  background-color: var(--color-primary); /* Para tapar al hero fijo en scroll */
}

/* Spacer for snap align fixing overlap issues */
.c-spacer-fs {
  height: 100vh;
  width: 100%;
  background: transparent;
}

/* 7. BLOQUES FULL SCREEN BEM
   ========================================================================== */
.c-section-fs {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: var(--space-8);
}

.c-section-fs__inner {
  width: 100%;
}

.c-section-fs__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 1; /* Sutil transparencia de las curvas sobre el #0a0a0a */
}

.c-section-fs__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10,10,10,0.8), rgba(10,10,10,0.3));
  z-index: -1;
}

.c-section-fs::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh; /* Altura del fade */
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 1) 100%);
  z-index: -1; /* Por encima del bg pero debajo del contenido */
  pointer-events: none;
}

.c-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  width: 100%;
}
@media (min-width: 1024px) {
  .c-split-layout { grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: flex-end; }
}

.c-intro {
  max-width: 900px;
}
.c-intro__text {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.5vw, 4rem);
  font-weight: 400; /* Usamos 400 porque es el peso más ligero disponible para esta fuente */
  line-height: 1.6; /* Aumentado para que respire mejor */
  letter-spacing: 0.02em; /* Añadido para dar más espacio entre las letras */
  margin-bottom: var(--space-5);
  color: var(--color-white);
}

.c-intro__highlight {
  font-weight: 700; /* Usamos 700 (bold) para garantizar el contraste visual */
}

/* 8. LISTAS TEXTUALES Y SERVICIOS / PREMIOS BEM
   ========================================================================== */
.c-list-bordered {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.c-list-bordered__item {
  display: flex;
  flex-direction: column;
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .c-list-bordered__item {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

/* Awards Blocks */
.c-awards {
  width: 100%;
  margin-top: var(--space-10);
}
.c-awards__label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--color-secondary-medium);
  display: block;
  margin-bottom: var(--space-4);
}
.c-awards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.c-awards__item {
  padding: var(--space-6) var(--space-5);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.c-awards__item:first-child {
  padding-left: 0;
  border-left: none;
}

@media (max-width: 768px) {
  .c-awards__grid {
    grid-template-columns: 1fr;
    border-top: none;
  }
  .c-awards__item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-right: 0;
    min-height: auto;
  }
}
.c-awards__item h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: var(--space-4);
  font-weight: 400;
  color: var(--color-white);
}
.c-awards__item span {
  color: var(--color-secondary-medium);
  font-size: 0.8125rem;
  font-family: var(--font-body);
}

.c-list-bordered__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-1);
}
@media (min-width: 768px) {
  .c-list-bordered__title { margin-bottom: 0; }
}

.c-list-bordered__meta {
  color: var(--color-secondary-medium);
  font-size: 1rem;
}

/* Modificador Compacto para panel de premios */
.c-list-bordered--compact .c-list-bordered__item {
  padding-block: var(--space-2);
}
.c-list-bordered--compact .c-list-bordered__title {
  font-size: 1.125rem;
}

/* 9. GALERÍA DE PROYECTOS BEM
   ========================================================================== */
.c-project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .c-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.c-project-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.c-project-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: var(--color-black);
}
.c-project-grid--fs .c-project-card__image-wrapper {
  aspect-ratio: 16/9; /* Imágenes panorámicas para encajar en el formato Full Screen del grid a 2 columnas */
}

.c-project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Regla estricta de Hover (Zoom out para hipervínculos de imágenes sólamente) */
a.c-project-card:hover .c-project-card__image {
  transform: scale(0.95);
}

.c-project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-3);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-smooth);
}

a.c-project-card:hover .c-project-card__content {
  transform: translateY(0);
  opacity: 1;
}

.c-project-card__title {
  margin-bottom: var(--space-1);
  font-size: 1.5rem;
}

.c-project-card__meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary-light);
}

/* 9b. PROYECTOS DESTACADOS — HERO + MASONRY PARALLAX BEM
   ========================================================================== */

/* Contenedor principal de la sección */
.c-pf-section {
  background-color: var(--color-primary);
  padding-bottom: var(--space-x-large);
}

/* Encabezado flotante sobre el hero */
.c-pf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .c-pf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding-top: var(--space-8);
  }
}

.c-pf-header__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary-medium);
  display: block;
  margin-bottom: var(--space-2);
}

.c-pf-header__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-light);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: var(--color-white);
}

.c-pf-header__link {
  display: flex;
  align-items: center;
  gap: var(--space-1); /* was 8px */
  align-self: flex-end;
  padding-bottom: 4px;
}

/* ---- Proyecto 1: Fullscreen Hero ---- */
.c-pf-hero {
  display: block;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  text-decoration: none;
}

/* La imagen es un div con background-image para poder mover background-position con parallax */
.c-pf-hero__img {
  position: absolute;
  inset: -15% 0; /* Extra height para tener margen de movimiento parallax */
  background-size: cover;
  background-position: center 50%;
  will-change: background-position;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zoom-out en hover: aplica porque es un hipervínculo */
.c-pf-hero:hover .c-pf-hero__img {
  transform: scale(0.98);
}

.c-pf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.2) 50%,
    rgba(10, 10, 10, 0.05) 100%
  );
  z-index: 1;
}

.c-pf-hero__content {
  position: absolute;
  bottom: var(--space-8);
  left: 0;
  right: 0;
  z-index: 2;
}

.c-pf-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.c-pf-hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: var(--font-weight-light);
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 0;
  line-height: 1;
}

/* ---- Texto compartido de cards ---- */
.c-pf-card__num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary-medium);
}

.c-pf-card__location,
.c-pf-card__year {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary-light);
}

.c-pf-card__name {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: var(--font-weight-light);
  color: var(--color-white);
  margin-bottom: var(--space-1);
  line-height: 1.1;
}

/* ---- Masonry grid (proyectos 2 & 3) ---- */
.c-pf-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
  align-items: start;
  /* Extra padding inferior para acomodar el desplazamiento de la card --wide */
  padding-bottom: 180px;
}

/* Card genérica */
.c-pf-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  /* El translateY inicial vendrá del data-parallax-offset, controlado por JS */
}

.c-pf-card__img {
  width: 100%;
  background-size: cover;
  background-position: center 50%;
  will-change: transform, background-position;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Tamaños distintos según modificador */
/* Card 2: portrait tall — más alta */
.c-pf-card--tall .c-pf-card__img {
  height: 78vh;
}

/* Card 3: landscape wider — más corta y ancha */
.c-pf-card--wide .c-pf-card__img {
  height: 55vh;
}

/* Zoom-out en hover: solo en hipervínculos */
.c-pf-card:hover .c-pf-card__img {
  transform: scale(0.97);
}

/* Card info row */
.c-pf-card__info {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-top: var(--space-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.c-pf-card:hover .c-pf-card__info {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .c-pf-hero {
    height: 80vh;
  }

  .c-pf-masonry {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-bottom: 0;
  }

  .c-pf-card--tall .c-pf-card__img,
  .c-pf-card--wide .c-pf-card__img {
    height: 60vw;
  }

  .c-pf-card__info {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   10b. PRENSA — Nueva sección con curvas01 + miniaturas verticales
   ============================================================ */
.c-press-section {
  position: relative;
  padding-top: var(--space-x-large);
  padding-bottom: var(--space-x-large);
  overflow: hidden;
  background-color: var(--color-primary);
}

/* Imagen decorativa curvas01 */
.c-press-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: 0;
}

/* Degradado oscuro encima de las curvas: más denso abajo, difuminado arriba */
.c-press-section__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.3) 40%,
    rgba(10, 10, 10, 0.75) 100%
  );
  z-index: 1;
}

.c-press-section__inner {
  position: relative;
  z-index: 2;
}

/* Encabezado de prensa */
.c-press-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.c-press-header__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary-medium);
  display: block;
  margin-bottom: var(--space-2);
}

.c-press-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: var(--font-weight-light);
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: var(--color-white);
}

/* Grid de noticias: 3 columnas */
.c-press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .c-press-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .c-press-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .c-press-card {
    gap: var(--space-3);
  }
}

/* Card de noticia */
.c-press-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-decoration: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-press-card:hover {
  transform: translateY(-8px);
}

/* Miniatura vertical 3:4 */
.c-press-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
}

.c-press-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-press-card:hover .c-press-card__img-wrap img {
  transform: scale(1.08);
}

.c-press-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 2.25rem);
  font-weight: var(--font-weight-light);
  line-height: 1.2;
  color: var(--color-white);
  margin: 0;
}

a.c-press-card:hover .c-press-card__title {
  color: var(--color-secondary-medium);
}

/* Cursor pill glass — Prensa en homepage */
.c-press-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  will-change: transform, opacity;
}

.c-press-cursor.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.c-press-cursor__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
}

@media (hover: hover) and (pointer: fine) {
  .c-press-card {
    cursor: none;
  }
}

/* Cursor pill glass — Proyectos en homepage */
.c-pf-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  will-change: transform, opacity;
}

.c-pf-cursor.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.c-pf-cursor__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
}

@media (hover: hover) and (pointer: fine) {
  .c-pf-card,
  .c-pf-hero {
    cursor: none;
  }
}



/* 10. PRENSA BEM
   ========================================================================== */
.c-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .c-news-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}

.c-news-card {
  display: block;
}
.c-news-card:hover .c-news-card__title {
  color: var(--color-secondary-medium);
}

.c-news-card__image-wrapper {
  aspect-ratio: 16/9;
  background-color: var(--color-black);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.c-news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.c-news-card:hover .c-news-card__image {
  transform: scale(0.95);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.c-news-card__meta {
  font-size: 0.8em;
  color: var(--color-secondary-medium);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}
.c-news-card__title {
  font-size: 1.25rem;
  margin-bottom: 0;
  transition: color 0.3s ease;
}


/* Utilidad para Lazy Loading y animaciones */
.js-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .js-fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 11. FOOTER BEM — Video fijo revelado por scroll
   ========================================================================== */

/* Video fijo al fondo — mismo patrón que el hero de entrada */
.c-footer-video {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 19; /* Por encima del main (10) y el hero content (2) */
  overflow: hidden;
  background-color: var(--color-black);
}

.c-footer-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Degradado para legibilidad del texto sobre el video */
.c-footer-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.3) 55%,
    rgba(10, 10, 10, 0.1) 100%
  );
}

/* Footer layout — sin fondo, se apoya sobre el video fijo */
.c-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: stretch;
}

.c-footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding-top: var(--space-x-large);
  padding-bottom: var(--space-16);
}

/* Logo centrado en la parte superior */
.c-footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-footer__logo img {
  height: 100px;
  width: auto;
  opacity: 0.9;
}

/* Fila inferior: redes · copyright · sedes */
.c-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
}

/* Redes sociales — izquierda */
.c-footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.c-footer__social-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
  width: fit-content;
}

.c-footer__social-link:hover {
  color: var(--color-white);
}

/* Copyright — centro */
.c-footer__copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-white);
  text-align: center;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Sedes — derecha */
.c-footer__sedes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: right;
}

.c-footer__sede {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  line-height: 1.5;
  margin: 0;
}

.c-footer__sede span {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: none;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .c-footer__inner {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12); /* was 100px */
  }

  .c-footer__logo img {
    height: 50px;
  }

  .c-footer__bottom {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: left;
  }

  .c-footer__sedes {
    text-align: left;
  }

  .c-footer__copy {
    text-align: left;
  }

  /* Increase footer social link tap targets */
  .c-footer__social {
    gap: var(--space-3);
  }

  .c-footer__social-link {
    font-size: 0.875rem;
    padding: 4px 0;
  }
}


/* 12. HORIZONTAL SCROLL BEM (Arquitectura)
   ========================================================================== */
.c-page-header {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.c-hs-wrapper {
  /* La altura determina la duración del scroll. 300vh nos da buen tiempo. */
  height: 300vh; 
  position: relative;
  background-color: var(--color-primary);
}

.c-hs-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* Ocultamos el scrollbar nativo de este container */
  display: flex;
  align-items: center;
}

.c-hs-container {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  width: max-content;
  /* El transform será inyectado por JS */
  will-change: transform;
}

.c-hs-item {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-4);
  /* Eliminamos el borde entre elementos o usamos flex params */
  flex-shrink: 0;
}

/* El primer elemento (texto) según el boceto: alineado a la izq y tomando un poco más de un tercio */
.c-hs-item--text {
  width: 34vw;
  min-width: 300px;
  align-items: flex-end; /* Mover texto al bottom */
  padding: var(--space-10) var(--space-6) var(--space-10) var(--space-8);
}

/* El segundo elemento (video vertical) toma ancho idéntico o similar */
.c-hs-item--video {
  width: 32vw; 
}
.c-hs-item--video video {
  height: 80vh;
  width: 100%;
  object-fit: contain; /* Usando contain o un aspect-ratio para que parezca una caja vertical según un boceto, o dejamos cover con un border-radius */
  border-radius: 4px;
}

/* El tercer elemento asoma en el resto del espacio (100 - 32 - 32 = 36vw de espacio visible inicial). Mantenemos widescreen con 1400px de ancho como fue solicitado. */
.c-hs-item--image {
  width: 1400px;
  max-width: 90vw; /* limit for very small screens */
}
.c-hs-item--image img {
  height: 80vh;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.c-hs-item--video-landscape {
  width: 1400px;
  max-width: 90vw;
}
.c-hs-item--video-landscape video {
  height: 80vh;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .c-hs-item--text, .c-hs-item--video, .c-hs-item--image, .c-hs-item--video-landscape {
    width: 90vw;
  }
}

/* 13. SCROLL CARDS BEM (Interiorismo)
   Inspirado en Volta SKAI — scroll vertical → cards deslizantes horizontales
   Panel de info fijo a la izquierda + track de cards que se mueve con el scroll
   ========================================================================== */

/* Wrapper externo: define la "duración" del scroll */
.c-sc-wrapper {
  height: 350vh;
  position: relative;
  background-color: var(--color-primary);
}

/* Modificador para secciones con más cards (4+) */
.c-sc-wrapper--long {
  height: 450vh;
}

/* Capa sticky que permanece en pantalla durante el scroll */
.c-sc-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ------ Panel de información izquierdo (fijo) ------ */
.c-sc-info {
  flex-shrink: 0;
  width: 34vw;
  min-width: 300px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: var(--space-10) var(--space-6) var(--space-10) var(--space-8);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background-color: var(--color-primary);
  position: relative;
  z-index: 2;
}

.c-sc-info__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 380px;
}

.c-sc-info__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary-medium);
}

.c-sc-info__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-light);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
  color: var(--color-white);
}

.c-sc-info__text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--font-weight-light);
  color: var(--color-secondary-medium);
  line-height: 1.8;
  margin-top: var(--space-5);
}

/* Contador tipo "01 — 03" */
.c-sc-info__counter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.c-sc-info__current {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: var(--font-weight-light);
  color: var(--color-white);
  transition: all 0.4s ease;
  min-width: 2.5ch;
}

.c-sc-info__sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
}

.c-sc-info__total {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-secondary-medium);
}

/* ------ Track de cards (se mueve con JS translateX) ------ */
.c-sc-track-wrapper {
  flex: 1;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.c-sc-track {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
  will-change: transform;
  padding: 0 var(--space-6);
}

/* ------ Cards individuales ------ */
.c-sc-card {
  flex-shrink: 0;
  width: 55vw;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.c-sc-card__media {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background-color: var(--color-black);
}

.c-sc-card__media img,
.c-sc-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* SIN zoom-out: imágenes decorativas según regla del proyecto */
  transition: none;
}

/* Meta row debajo de la card */
.c-sc-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-1);
}

.c-sc-card__num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-secondary-medium);
  letter-spacing: 0.1em;
  min-width: 2ch;
}

.c-sc-card__caption {
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary-medium);
}

/* Modificador para card de video (mismo tamaño) */
.c-sc-card--video .c-sc-card__media {
  /* Sin cambios adicionales, el video hereda los estilos base */
}

/* ------ Responsive mobile ------ */
@media (max-width: 768px) {
  .c-sc-wrapper,
  .c-sc-wrapper--long {
    height: auto;
  }

  .c-sc-sticky {
    position: relative;
    height: auto;
    flex-direction: column;
  }

  .c-sc-info {
    width: 100%;
    min-width: unset;
    height: auto;
    padding: var(--space-6) var(--space-3) var(--space-3);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: flex-start;
  }

  .c-sc-info__title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .c-sc-info__text {
    font-size: 0.875rem;
  }

  .c-sc-track-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* Scrollbar invisible en mobile */
    scrollbar-width: none;
  }
  .c-sc-track-wrapper::-webkit-scrollbar {
    display: none;
  }

  .c-sc-track {
    /* En mobile: scroll nativo horizontal, sin JS */
    transform: none !important;
    padding: var(--space-3);
    gap: var(--space-3);
  }

  .c-sc-card {
    width: 80vw;
  }

  .c-sc-card__media {
    height: 55vw;
  }

  .c-sc-card__caption {
    font-size: 0.75rem;
  }
}


/* ============================================================
   FASE 6 — MARQUEE / TICKER CONTINUO
   Band of scrolling services text using CSS @keyframes.
   Se pausa en hover para accesibilidad.
   ============================================================ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.c-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-5);
  background-color: var(--color-primary);
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.c-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

.c-marquee:hover .c-marquee__track {
  animation-play-state: paused;
}

.c-marquee__item {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-light);
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-transform: uppercase;
  flex-shrink: 0;
}

.c-marquee__sep {
  font-size: 1.25rem;
  color: var(--color-secondary-medium);
  flex-shrink: 0;
}

/* ============================================================
   TEXT OPEN EFFECT (Información Estudio)
   ============================================================ */
.c-intro__opening {
  width: 100%;
  height: 0;
  margin: 0;
  transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1), margin 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-text-open.is-split .c-intro__opening {
  height: clamp(80px, 15vh, 160px);
  margin: var(--space-4) 0;
}
.c-intro__text--top,
.c-intro__text--bottom {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
.js-text-open.is-split .c-intro__text--top {
  transform: translateY(-5%);
}
.js-text-open.is-split .c-intro__text--bottom {
  transform: translateY(5%);
}
/* ============================================================
   ANIMATED LOGO HERO + SERVICES TAGLINE
   ============================================================ */

/* Wrapper que centra logo + tagline como una unidad */
.c-hero__center-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2); /* was 20px */
}

/* Logo en flujo estático dentro del grupo */
.c-hero__center-group .c-hero__intro-logo {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    height: 90px;
    animation: none; /* El logo se queda visible tras el draw+fill */
}

/* Fallback: logo fuera de center-group (otras páginas, si las hubiera) */
.c-hero__intro-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 150px;
    z-index: 30;

    --logo-color: #ffffff;
    --anim-draw-duration: 1.2s;
    --anim-fill-duration: 0.5s;
    --stroke-thickness: 15px;
}

/* Tagline de servicios debajo del logo */
.c-hero__content--services {
    position: static;
    width: max-content;
    max-width: 90vw;
    text-align: center;
    opacity: 0; /* Controlado por JS para la animación de entrada */
}

.c-hero__services-line {
    font-family: var(--font-body);
    font-size: clamp(0.6rem, 1.1vw, 0.8rem);
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-secondary-light);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    white-space: nowrap;
}

.c-hero__services-dot {
    color: var(--color-secondary-medium);
    opacity: 0.7;
    font-size: 0.5em;
    line-height: 1;
}

@media (max-width: 767px) {
    .c-hero__center-group .c-hero__intro-logo {
        height: 60px;
    }
    .c-hero__center-group {
        gap: var(--space-2); /* was 14px */
    }
    .c-hero__services-line {
        font-size: 0.55rem;
        letter-spacing: 0.22em;
        gap: 0.6em;
    }
}



.c-hero__animated-logo {
    position: absolute;
    bottom: clamp(2rem, 5vh, 4rem);
    left: var(--container-padding);
    height: 70px;
    z-index: 20;

    /* Animation Variables */
    --logo-color: #ffffff;
    --anim-draw-duration: 2s;
    --anim-fill-duration: 1s;
    --stroke-thickness: 15px;

    /* Inicialmente invisible, aparece tras el intro logo */
    opacity: 0;
    animation: fadeInSmallLogo 0.5s ease forwards;
    animation-delay: 1.5s; /* Sincronizado con la desaparición del grande */
}

/* Mobile: logo top-center */
@media (max-width: 767px) {
    .c-hero__animated-logo {
        bottom: auto;
        top: var(--space-5);
        left: 50%;
        transform: translateX(-50%);
        height: 48px;
    }
}

@keyframes fadeInSmallLogo {
    to { opacity: 1; }
}

/* Comparten la animación del SVG */
.c-hero__intro-logo .logo-svg,
.c-hero__animated-logo .logo-svg {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
    animation: glow 4s infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.02)); }
    to { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15)); }
}

.c-hero__intro-logo .logo-path,
.c-hero__animated-logo .logo-path {
    fill: transparent;
    stroke: var(--logo-color);
    stroke-width: var(--stroke-thickness);
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: 
        draw var(--anim-draw-duration) cubic-bezier(0.4, 0, 0.2, 1) forwards, 
        fillIn var(--anim-fill-duration) ease-in-out calc(var(--anim-draw-duration) - 0.1s) forwards;
}

/* Al pequeño le damos un delay a los trazos para que empiece a dibujarse cuando aparece */
.c-hero__animated-logo .logo-path {
    animation: 
        draw var(--anim-draw-duration) cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards, 
        fillIn var(--anim-fill-duration) ease-in-out calc(1.5s + var(--anim-draw-duration) - 0.2s) forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes fillIn {
    from {
        fill: transparent;
        stroke-width: var(--stroke-thickness);
    }
    to {
        fill: var(--logo-color);
        stroke-width: 0;
    }
}

/* 7. UTILITIES (Limpieza de Inline Styles) */
.u-w-200 { width: 200px; }
.u-text-center { text-align: center; }
.u-fill-white { fill: var(--color-white); }
.u-flex-end { display: flex; justify-content: flex-end; }
.u-flex-center-gap { display: flex; align-items: center; gap: var(--space-1); /* was 8px */ }
.u-w-16 { width: 16px; }
.u-bg-curvas01 { background-image: url('../assets/ui/curvas01.png'); }
.u-bg-curvas02 { background-image: url('../assets/ui/curvas02.png'); }
.u-h-140 { height: 140px; }
.u-mb-6 { margin-bottom: var(--space-6); }
.u-w-full { width: 100%; }
.u-flex-center { justify-content: center; }
.u-flex-between-start { display: flex; justify-content: space-between; align-items: flex-start; }
.u-bg-black { background-color: var(--color-black); }
.u-mb-8 { margin-bottom: var(--space-8); }
.u-flex-col-center { display: flex; flex-direction: column; align-items: center; }
.u-mx-auto { margin-inline: auto; }
.u-max-w-1000 { max-width: 1000px; }
.u-m-0 { margin: 0; }
.u-text-left { text-align: left; }
.u-pl-4 { padding-left: var(--space-4); }
.u-max-w-450 { max-width: 450px; }
.u-text-overline { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-secondary-medium); display: block; margin-bottom: var(--space-2); }
.u-text-h2-large { font-size: clamp(2.5rem, 5vw, 4rem); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-text-body-large { font-size: 1.125rem; font-weight: var(--font-weight-light); color: var(--color-secondary-light); line-height: 1.8; }
.u-flex-wrap-between-start { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.u-gap-16 { gap: var(--space-2); /* was 16px */ }
.u-bg-primary { background-color: var(--color-primary); }
.u-relative { position: relative; }
.u-z-10 { z-index: 10; }
.u-w-12 { width: 12px; }
.u-brightness-70 { filter: brightness(0.7); }
.u-h-40vh { height: 40vh; }
.u-flex-col-between { display: flex; flex-direction: column; justify-content: space-between; }
.u-flex-1 { flex: 1; }
.u-delay-100 { transition-delay: 0.1s; }
.u-delay-200 { transition-delay: 0.2s; }
.u-delay-50 { transition-delay: 0.05s; }
.u-delay-150 { transition-delay: 0.15s; }
.u-delay-250 { transition-delay: 0.25s; }
.u-aspect-4-5 { aspect-ratio: 4/5; }
.u-aspect-1-1 { aspect-ratio: 1/1; }
.u-aspect-3-4 { aspect-ratio: 3/4; }
.u-aspect-16-9 { aspect-ratio: 16/9; }
.u-aspect-2-3 { aspect-ratio: 2/3; }
.u-aspect-4-3 { aspect-ratio: 4/3; }
.u-w-14 { width: 14px; }
.u-rotate-180 { transform: rotate(180deg); }
.u-opacity-60 { opacity: 0.6; }
.u-z-2 { z-index: 2; }
.u-flex-col-center-center { display: flex; flex-direction: column; justify-content: center; }
.u-mb-clamp-30-50 { margin-bottom: clamp(30px, 4vw, 50px); }
.u-flex-center-wrap { display: flex; justify-content: center; flex-wrap: wrap; }
.u-gap-40 { gap: var(--space-5); /* was 40px */ }
.u-mt-40 { margin-top: var(--space-5); /* was 40px */ }
.u-scroll-mt-120 { scroll-margin-top: calc(var(--header-height) - var(--space-3)); /* was 120px */ }
.u-mt-6 { margin-top: var(--space-6); }
.u-text-overline-light { font-family: var(--font-body); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-secondary-medium); font-weight: var(--font-weight-regular); }
.u-text-heading-contact { font-family: var(--font-heading); font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: var(--font-weight-light); text-transform: lowercase; letter-spacing: 0.02em; }
.u-text-heading-phone { font-family: var(--font-heading); font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: var(--font-weight-light); letter-spacing: 0.05em; }
.u-bg-curvas-overlay { background-image: url('../assets/ui/curvas01.png'); opacity: 0.3; min-height: 40vh; margin-top: 0; position: absolute; bottom: 0; left: 0; width: 100%; z-index: 1; }
.u-pt-clamp-80-150 { padding-top: clamp(80px, 10vw, 150px); }
.u-mb-clamp-60-100 { margin-bottom: clamp(60px, 8vw, 100px); }
.u-text-quote { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: var(--font-weight-bold); line-height: 1.2; max-width: 1200px; }

.u-hero-layout { min-height: 100vh; padding-top: clamp(120px, 15vw, 240px); padding-bottom: clamp(40px, 5vw, 80px); }

/* SEO Images Fix */
.c-pf-hero__img { width: 100%; height: 100%; object-fit: cover; }
.c-pf-card__img { width: 100%; height: 100%; object-fit: cover; }
.c-sp-hero__bg { width: 100%; height: 100%; object-fit: cover; }
.c-sp-cinematic__img { width: 100%; height: 100%; object-fit: cover; }
.c-sp-gimg__inner { width: 100%; height: 100%; object-fit: cover; }
.c-sp-nav-item__img { width: 100%; height: 100%; object-fit: cover; }
.c-proy-card__img { width: 100%; height: 100%; object-fit: cover; }
.c-sede-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; }


/* --------------------------------------------------------------------------
   HOVER ROLL GLOBAL (CSS-only, sin manipulacion DOM)
   Aplica a todos los enlaces con data-text. Excluye botones y enlaces
   que ya tienen hover-roll hardcodeado.
   El texto debe estar envuelto en <span class="c-hover-roll__text">.
   -------------------------------------------------------------------------- */
a[data-text] {
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

a[data-text] .c-hover-roll__text {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

a[data-text]::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--color-secondary-light);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

a[data-text]:hover .c-hover-roll__text {
  transform: translateY(-100%);
}

a[data-text]:hover::after {
  transform: translateY(-100%);
}

/* Exclusiones */
a.c-btn[data-text]::after,
a.c-btn-outline[data-text]::after,
a.c-prensa-card[data-text]::after,
a.c-sp-nav-item[data-text]::after {
  display: none;
}

a.c-btn[data-text] .c-hover-roll__text,
a.c-btn-outline[data-text] .c-hover-roll__text,
a.c-prensa-card[data-text] .c-hover-roll__text,
a.c-sp-nav-item[data-text] .c-hover-roll__text {
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  a[data-text]::after,
  a[data-text] .c-hover-roll__text {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   FOOTER POST (Global — usado en Single Post y Archive Prensa)
   -------------------------------------------------------------------------- */
.c-footer-post {
    position: relative;
    padding: var(--space-16) 0 var(--space-12);
    background-color: #000000;
    color: #ffffff;
    z-index: 20;
    overflow: hidden;
}

.c-footer-post::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.94);
    z-index: 1;
}

.c-footer-post__bg {
    position: absolute;
    inset: 0;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.c-footer-post__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-footer-post__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-8);
}

/* Logo centrado */
.c-footer-post__logo-link {
    display: block;
    margin-bottom: var(--space-10);
}

.c-footer-post__logo-link svg {
    height: clamp(2rem, 3vw + 1rem, 3rem);
    width: auto;
    fill: var(--color-white);
}

/* Bottom layout: enlaces+copy izquierda | redes derecha */
.c-footer-post__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.c-footer-post__left {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.c-footer-post__social {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.c-footer-post__social-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.c-footer-post__social-link:hover {
    color: #ffffff;
}

.c-footer-post__links {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.c-footer-post__link {
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.c-footer-post__link:hover {
    color: #ffffff;
}

.c-footer-post__link[data-text]::after {
    color: #ffffff;
}

.c-footer-post__copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin: 0;
}

@media (max-width: 768px) {
    .c-footer-post__inner {
        align-items: center;
    }

    .c-footer-post__bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-6);
    }

    .c-footer-post__left {
        align-items: center;
    }

    .c-footer-post__social {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-3);
    }

    .c-footer-post__links {
        justify-content: center;
    }
}
