/* ==========================================================================
   Africa Navarro — Event Freelancer
   CSS puro, mobile-first, BEM
   ========================================================================== */

/* ---------- @font-face ---------- */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Kalam';
  src: url('/assets/fonts/Kalam-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kalam';
  src: url('/assets/fonts/Kalam-Bold-ext.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

/* ---------- Variables ---------- */
:root {
  /* Colores — extraidos de Figma */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-sunflower: #e0e621;
  --color-cod-gray: #0a0a0a;
  --color-mine-shaft: #363636;
  --color-mine-shaft-dark: #333333;
  --color-tundora: #4b4b4b;
  --color-silver-chalice: #9d9d9d;
  --color-dusty-gray: #9b9b9b;
  --color-boulder: #7a7a7a;
  --color-silver-light: #a8a8a8;

  /* Tipografias */
  --font-inter: 'Inter', sans-serif;
  --font-roboto: 'Roboto', sans-serif;
  --font-handwriting: 'Kalam', cursive;
  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;

  /* Tamanos tipograficos (desktop) */
  --fs-display: clamp(64px, 8.07vw, 116.3px);
  --fs-hero-heading: clamp(48px, 6.2vw, 89.2px);
  --fs-subtitle: clamp(20px, 1.875vw, 27px);
  --fs-body: clamp(15px, 1.16vw, 16.7px);
  --fs-body-small: clamp(12px, 1vw, 14.4px);
  --fs-caption: clamp(10px, 0.82vw, 11.8px);
  --fs-label: 12px;
  --fs-role-number: clamp(22px, 2.08vw, 30px);
  --fs-role-name: clamp(18px, 1.59vw, 22.9px);
  --fs-contact-value: clamp(20px, 1.67vw, 24px);
  --fs-client-initials: clamp(32px, 3.06vw, 44px);
  --fs-image-caption: clamp(16px, 1.39vw, 20px);
  --fs-handwriting: clamp(28px, 2.76vw, 39.7px);

  /* Line-heights */
  --lh-display: clamp(72px, 8.89vw, 128px);
  --lh-hero: clamp(52px, 6.47vw, 93.12px);
  --lh-body: 29.3px;
  --lh-tight: 24px;
  --lh-role: 32px;

  /* Letter-spacings */
  --ls-display: clamp(-3.5px, -0.44vw, -6.4px);
  --ls-hero: -4.656px;
  --ls-role: 0.6px;
  --ls-upper: 0.8px;
  --ls-upper-wide: 1.2px;
  --ls-link: 1.8px;
  --ls-client: 1.5px;

  /* Espaciado */
  --space-xs: 10px;
  --space-sm: 20px;
  --space-md: 34px;
  --space-lg: 45px;
  --space-xl: 80px;
  --space-2xl: 115px;

  /* Bordes */
  --radius-card: 8px;
  --radius-image: 12px;

  /* Transiciones */
  --transition: 300ms ease;
  --transition-slow: 600ms ease;
}

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

html {
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-cod-gray);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- Accesibilidad ---------- */
:focus-visible {
  outline: 2px solid var(--color-sunflower);
  outline-offset: 2px;
}

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

/* ---------- Secciones ---------- */
.section {
  position: relative;
}

@media (min-width: 768px) {
  html:has(main:not(.legal-page)) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  body:has(main:not(.legal-page)) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  main:not(.legal-page) {
    will-change: transform;
  }

  .section {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .section.wdid-roles {
    overflow: visible;
  }
}

/* ---------- Page transition overlay ---------- */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.page-transition__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-transition__panel--1 { background: var(--color-black); }
.page-transition__panel--2 { background: var(--color-sunflower); }
.page-transition__panel--3 { background: var(--color-cod-gray); }

/* ==========================================================================
   SCROLL HINT — Texto "scroll" + linea vertical (igual en todas las secciones)
   ========================================================================== */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-mine-shaft);
  opacity: 0.6;
}

/* Secciones oscuras — indicador claro */
.hero .scroll-hint {
  color: var(--color-white);
}

.wdid-roles .scroll-hint {
  color: var(--color-white);
}

/* Posiciones por seccion (desktop) */
@media (min-width: 768px) {
  /* Hero: lado izquierdo */
  .hero .scroll-hint {
    left: 24px;
    transform: none;
  }

  /* About Cont: lado izquierdo, sobre la imagen, blanco */
  .about-cont .scroll-hint {
    left: 25%;
    transform: translateX(-50%);
    color: var(--color-white);
  }
}

.scroll-hint__label {
  font-family: var(--font-inter);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-hint__line {
  width: 1px;
  height: 0;
  background-color: currentColor;
  animation: hint-line 2.2s ease-in-out infinite;
}

@keyframes hint-line {
  0% { height: 0; opacity: 0; }
  40% { height: 44px; opacity: 1; }
  80%, 100% { height: 44px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__line {
    animation: none;
    height: 30px;
    opacity: 1;
  }
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-sunflower);
  z-index: 300;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.nav__logo-wrapper {
  position: relative;
  height: 32px;
  width: 32px;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__logo-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  transition: opacity 0.4s ease;
}

.nav__logo-img--white {
  opacity: 1;
}

.nav__logo-img--black {
  opacity: 0;
}

/* Secciones oscuras: logo negro */
.nav__logo--dark .nav__logo-img--white {
  opacity: 0;
}

.nav__logo--dark .nav__logo-img--black {
  opacity: 1;
}

/* Menu abierto: forzar blanco */
.nav__logo--menu-open .nav__logo-img--white {
  opacity: 1;
}

.nav__logo--menu-open .nav__logo-img--black {
  opacity: 0;
}

.nav__toggle {
  width: 35px;
  height: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 101;
  padding: 0;
}

.nav__toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-sunflower);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-black);
  display: flex;
  flex-direction: column;
  padding: 80px 40px 8px;
  transition: right var(--transition-slow);
  z-index: 99;
}

.nav__menu--open {
  right: 0;
}

/* Logo dentro del menu */
/* Links de navegacion */
.nav__menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.nav__link {
  display: block;
  text-decoration: none;
}

/* Slot machine para links del menu */
.nav__link-slot {
  overflow: hidden;
  position: relative;
  font-family: var(--font-roboto);
  font-weight: 300;
  font-size: var(--fs-hero-heading);
  line-height: 1.2;
  height: 1.2em;
  letter-spacing: var(--ls-hero);
}

.nav__link-text {
  display: block;
  color: var(--color-white);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav__link-text--clone {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
  color: var(--color-sunflower);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav__link:hover .nav__link-text {
  transform: translateY(-100%);
}

.nav__link:hover .nav__link-text--clone {
  transform: translateY(0);
}

/* Get in touch */
.nav__menu-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--color-mine-shaft-dark);
}

.nav__menu-contact-label {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-link);
  text-transform: uppercase;
  color: var(--color-boulder);
  margin-bottom: 4px;
}

.nav__menu-contact-link {
  font-family: var(--font-roboto);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-sunflower);
  text-decoration: none;
  transition: opacity var(--transition);
}

.nav__menu-contact-link:hover {
  opacity: 0.7;
}

/* Footer del menu */
.nav__menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-bottom: 0;
}

.nav__menu-footer-copy {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 10px;
  color: var(--color-mine-shaft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__menu-footer-credit {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 10px;
  color: var(--color-mine-shaft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__menu-footer-studio {
  color: var(--color-mine-shaft);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__menu-footer-studio:hover {
  color: var(--color-sunflower);
}

/* ---------- Lang switcher (visible en desktop dentro del menu o siempre) ---------- */
.lang-switch {
  position: fixed;
  bottom: 34px;
  right: 24px;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-link);
  color: var(--color-silver-chalice);
  pointer-events: auto;
}

.lang-switch__option {
  cursor: pointer;
  transition: color var(--transition);
  padding: 4px;
}

.lang-switch__option--active {
  color: var(--color-sunflower);
}

.lang-switch__option:hover {
  color: var(--color-white);
}

/* ==========================================================================
   HERO (Section 1) — 3 paneles
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
}

.hero__panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-black);
  opacity: 0.66;
  transition: opacity var(--transition-slow);
}

.hero__panel:hover .hero__overlay {
  opacity: 0.45;
}

.hero__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-roboto);
  font-weight: 300;
  font-size: var(--fs-hero-heading);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__panel:hover .hero__label {
  opacity: 1;
  transform: translateY(0);
  animation: hero-float 2s ease-in-out infinite 0.4s;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__label::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-sunflower);
  transition: width 0.4s ease 0.1s, left 0.4s ease 0.1s;
}

.hero__panel:hover .hero__label::after {
  width: 100%;
  left: 0;
}

/* Overlay amarillo solido que sube desde abajo */
.hero__panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background-color: var(--color-sunflower);
  z-index: 1;
  transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__panel:hover::after {
  height: 42%;
}

@media (prefers-reduced-motion: reduce) {
  .hero__label {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__label::after {
    transition: none;
  }
}

.hero__logo {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.hero__logo-img {
  max-width: 80%;
  height: auto;
  margin: 0 auto;
}

/* ==========================================================================
   ABOUT (Section 2) — Texto + Imagen
   ========================================================================== */
.about {
  display: flex;
  flex-direction: column;
}

.about__text-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 24px 40px;
}

.about__img-side {
  position: relative;
  overflow: hidden;
  display: none;
  background-color: var(--color-sunflower);
}

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

.about__img-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-black);
  opacity: 0.23;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.about__img-side:hover .about__img-overlay {
  opacity: 0.55;
  backdrop-filter: blur(4px);
}

.about__img-caption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  font-family: var(--font-system);
  font-weight: 700;
  font-size: var(--fs-image-caption);
  line-height: var(--lh-tight);
  letter-spacing: -0.9px;
  color: var(--color-white);
  text-align: center;
  padding: 0 var(--space-xs);
  transition: font-size 0.4s ease;
}

.about__img-side:hover .about__img-caption {
  font-size: calc(var(--fs-image-caption) * 1.08);
}

.about__img-caption::after {
  content: '';
  display: block;
  margin: 8px auto 0;
  width: 0;
  height: 1px;
  background-color: var(--color-sunflower);
  transition: width 0.4s ease 0.1s;
}

.about__img-side:hover .about__img-caption::after {
  width: 60%;
}

/* Titulos de seccion — compartido */
.section-title {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--color-black);
}

.section-title--light {
  color: var(--color-white);
}

.section-subtitle {
  font-family: var(--font-roboto);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-subtitle);
  line-height: 36px;
  color: var(--color-sunflower);
}

.section-body {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-cod-gray);
}

.section-body + .section-body {
  margin-top: 13px;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__texts {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* ==========================================================================
   ABOUT CONTINUED (Section 3) — Imagen + Texto
   ========================================================================== */
.about-cont {
  display: flex;
  flex-direction: column;
}

.about-cont__img-side {
  position: relative;
  overflow: hidden;
  display: none;
}

.about-cont__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-cont__text-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 24px 40px;
}

.about-cont__content {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.about-cont__texts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 9px 10px 14px;
}

.about-cont__location {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-body-small);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-upper);
  text-transform: uppercase;
  color: var(--color-mine-shaft);
  padding-top: 10px;
}

/* ==========================================================================
   WDID TEXT (Section 4) — Titulo + Texto largo + Imagen
   ========================================================================== */
.wdid-text {
  display: flex;
  flex-direction: column;
}

.wdid-text__text-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 24px 40px;
}

.wdid-text__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.wdid-text__img-side {
  position: relative;
  overflow: hidden;
  display: none;
  background-color: var(--color-sunflower);
}

.wdid-text__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wdid-text__img-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-black);
  opacity: 0.5;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.wdid-text__img-side:hover .wdid-text__img-overlay {
  opacity: 0.55;
  backdrop-filter: blur(4px);
}

.wdid-text__img-caption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  font-family: var(--font-system);
  font-weight: 700;
  font-size: var(--fs-image-caption);
  line-height: var(--lh-tight);
  letter-spacing: -0.9px;
  color: var(--color-white);
  text-align: center;
  padding: 0 var(--space-xs);
  transition: font-size 0.4s ease;
}

.wdid-text__img-side:hover .wdid-text__img-caption {
  font-size: calc(var(--fs-image-caption) * 1.08);
}

.wdid-text__img-caption::after {
  content: '';
  display: block;
  margin: 8px auto 0;
  width: 0;
  height: 1px;
  background-color: var(--color-sunflower);
  transition: width 0.4s ease 0.1s;
}

.wdid-text__img-side:hover .wdid-text__img-caption::after {
  width: 60%;
}

/* ==========================================================================
   WDID ROLES (Section 5) — Roles + Carousel clientes (oscura)
   ========================================================================== */
.wdid-roles {
  display: flex;
  flex-direction: column;
  background-color: var(--color-black);
  position: relative;
}

.wdid-roles__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wdid-roles__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wdid-roles__bg-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-black);
  opacity: 0.85;
}

.wdid-roles__left {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 60px 24px;
}

.wdid-roles__content-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  padding: 0 24px;
}

.wdid-roles__header {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wdid-roles__roles-label {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-contact-value);
  line-height: var(--lh-tight);
  color: var(--color-white);
  margin-top: 32px;
}

.wdid-roles__list {
  margin-top: var(--space-sm);
}

.wdid-roles__role {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0 20px 15px;
  border-bottom: 1px solid var(--color-mine-shaft-dark);
  position: relative;
  cursor: pointer;
}

.wdid-roles__role:last-child {
  border-bottom: none;
}

.wdid-roles__role-number {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-role-number);
  line-height: var(--lh-role);
  letter-spacing: var(--ls-role);
  color: var(--color-mine-shaft-dark);
}

/* Slot machine container */
.wdid-roles__role-slot {
  overflow: hidden;
  position: relative;
  font-size: var(--fs-role-name);
  line-height: 1.3;
  height: 1.3em;
}

.wdid-roles__role-name {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: var(--ls-role);
  color: var(--color-white);
  display: block;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.wdid-roles__role-name--clone {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
  color: var(--color-sunflower);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.wdid-roles__role:hover .wdid-roles__role-name {
  transform: translateY(-100%);
}

.wdid-roles__role:hover .wdid-roles__role-name--clone {
  transform: translateY(0);
}

/* Imagen flotante al hover de cada rol (hover image reveal) */
.wdid-roles__role-img {
  display: none;
}

@media (min-width: 768px) {
  /* Overlay blur al hacer hover en un rol */
  .wdid-roles__bg-overlay {
    transition: backdrop-filter 0.5s ease, opacity 0.5s ease;
  }

  .wdid-roles__left:has(.wdid-roles__role:hover) ~ .wdid-roles__bg-overlay,
  .wdid-roles__role:hover ~ .wdid-roles__role .wdid-roles__role-img {
    /* fallback — handled below */
  }

  .wdid-roles.has-role-hover .wdid-roles__bg-overlay {
    opacity: 0.92;
    backdrop-filter: blur(4px);
  }

  .wdid-roles__role {
    z-index: 1;
  }

  .wdid-roles__role:hover {
    z-index: 20;
  }

  .wdid-roles__role-img {
    display: block;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.85);
    width: 460px;
    height: 460px;
    border-radius: var(--radius-image);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
    filter: saturate(0);
  }

  .wdid-roles__role-img--visible {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    filter: saturate(1);
  }

  .wdid-roles__role-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .wdid-roles__role-img--visible img {
    transform: scale(1.08);
  }
}

/* Carousel de clientes — horizontal en la parte inferior */
.wdid-roles__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 24px 0;
}

.clients-carousel {
  overflow: hidden;
  position: relative;
}

.clients-carousel__track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scroll-horizontal 20s linear infinite;
  width: max-content;
}

@keyframes scroll-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clients-carousel:hover .clients-carousel__track {
  animation-play-state: paused;
}

.clients-carousel__fade-left,
.clients-carousel__fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}

.clients-carousel__fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
}

.clients-carousel__fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
}

.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.client-logo:hover {
  opacity: 1;
}

.client-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.client-logo--square img {
  height: 42px;
}

/* ==========================================================================
   CONNECT (Section 6) — Texto + Contacto
   ========================================================================== */
.connect {
  display: flex;
  flex-direction: column;
}

.connect__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px 80px;
  position: relative;
}

.connect__content {
  display: flex;
  flex-direction: column;
  gap: 49px;
}

.connect__heading {
  display: flex;
  flex-direction: column;
}

.connect__tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin-top: 17px;
  padding-bottom: 8px;
}

.connect__tagline-text {
  font-family: var(--font-roboto);
  font-weight: 400;
  font-size: var(--fs-subtitle);
  line-height: 32.4px;
  color: var(--color-silver-light);
}

.connect__tagline-coming {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  margin-left: 0.3em;
}

.connect__tagline-struck {
  font-family: var(--font-roboto);
  font-weight: 400;
  font-size: 26.2px;
  line-height: 32.4px;
  color: var(--color-silver-light);
  text-decoration: line-through;
}

.connect__tagline-calling {
  font-family: var(--font-handwriting);
  font-weight: 700;
  font-size: var(--fs-handwriting);
  line-height: 1;
  color: var(--color-sunflower);
  transform: rotate(-6deg);
  display: block;
  margin-top: -4px;
  margin-left: 4px;
}

.connect__copy {
  position: absolute;
  bottom: 10px;
  left: 24px;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-mine-shaft);
  text-transform: uppercase;
}

/* Columna derecha — fondo negro con info de contacto */
.connect__right {
  background-color: var(--color-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 24px 80px;
  position: relative;
}

.connect__info {
  width: 100%;
  max-width: 560px;
  border-bottom: 1px solid rgba(157, 157, 157, 0.54);
  padding-bottom: 31px;
}

.connect__info-item {
  padding: 20px;
}

.connect__info-label {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-caption);
  line-height: 16px;
  letter-spacing: var(--ls-upper-wide);
  color: var(--color-sunflower);
  text-transform: uppercase;
}

.connect__info-value {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-contact-value);
  line-height: 33px;
  color: var(--color-white);
  transition: color var(--transition);
}

.connect__info-value:hover {
  color: var(--color-sunflower);
}

.connect__location {
  width: 100%;
  max-width: 560px;
  padding-top: var(--space-sm);
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 14px;
  letter-spacing: var(--ls-upper-wide);
  color: var(--color-silver-chalice);
}

.connect__legal {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 0;
}

.connect__legal-link {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-mine-shaft);
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 8px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.connect__legal-link:hover {
  color: var(--color-silver-chalice);
}

.connect__copy--mobile {
  display: none;
}

/* ==========================================================================
   FOOTER — visible solo en paginas legales, oculto en index
   ========================================================================== */
.footer {
  padding: 24px;
  background-color: var(--color-black);
  color: var(--color-silver-chalice);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-upper-wide);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.footer__legal {
  display: flex;
  gap: 16px;
}

.footer__link {
  color: var(--color-boulder);
  font-weight: 600;
  letter-spacing: var(--ls-link);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__consent-btn {
  color: var(--color-boulder);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-link);
  transition: color var(--transition);
}

.footer__consent-btn:hover {
  color: var(--color-white);
}

/* ==========================================================================
   PAGINAS LEGALES
   ========================================================================== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-cod-gray);
}

.legal-page h1 {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p {
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--color-sunflower);
  text-decoration: underline;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 32px;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-link);
  text-transform: uppercase;
  color: var(--color-boulder);
  transition: color var(--transition);
}

.legal-page__back:hover {
  color: var(--color-cod-gray);
}

.legal-page__data {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal-page__data li {
  padding: 4px 0;
}

.legal-page ul:not(.legal-page__data) {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-page ul:not(.legal-page__data) li {
  margin-bottom: 8px;
  list-style: disc;
}

.legal-page__table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.legal-page__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.legal-page__table th,
.legal-page__table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
}

.legal-page__table th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-mine-shaft);
}

.legal-page__table code {
  font-size: 13px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

.legal-page__updated {
  margin-top: 40px;
  font-style: italic;
  color: var(--color-silver-chalice);
  font-size: 13px;
}

/* Lang switch en paginas legales (fondo claro) */
body:has(.legal-page) .lang-switch .lang-switch__option:hover {
  color: var(--color-cod-gray);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .clients-carousel__track {
    animation: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   RESPONSIVE — Tablet (768px)
   ========================================================================== */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
  }

  .about {
    flex-direction: row;
  }

  .about__text-side {
    flex: 1;
    padding: 80px 60px 80px 80px;
  }

  .about__img-side {
    flex: 1;
    display: flex;
  }

  .about-cont {
    flex-direction: row;
  }

  .about-cont__img-side {
    flex: 1;
    display: flex;
  }

  .about-cont__text-side {
    flex: 1;
    padding: 80px 60px;
  }

  .wdid-text {
    flex-direction: row;
  }

  .wdid-text__text-side {
    flex: 1;
    padding: 80px 60px 80px 80px;
  }

  .wdid-text__img-side {
    flex: 1;
    display: flex;
  }

  .wdid-roles__left {
    padding: 0;
  }

  .wdid-roles__content-wrap {
    padding: 0 0 0 100px;
  }

  .connect {
    flex-direction: row;
  }

  .connect__left {
    flex: 1;
    padding: 10px 100px 10px 50px;
  }

  .connect__right {
    flex: 1;
    padding: 10px;
  }
}

/* ==========================================================================
   RESPONSIVE — Desktop (1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .header {
    padding: 55px 35px 0 35px;
  }

  .nav__link-slot {
    font-size: clamp(60px, 6.2vw, 89.2px);
  }

  .nav__menu {
    padding: 80px 60px 8px;
  }

  .about__text-side {
    padding: var(--space-2xl) var(--space-2xl) 255px;
  }

  .about-cont__text-side {
    padding: var(--space-2xl) var(--space-xl);
  }

  .wdid-text__text-side {
    padding: var(--space-2xl) var(--space-xl) var(--space-2xl);
  }

  .wdid-roles__content-wrap {
    padding: 0 0 0 100px;
  }

  .connect__left {
    padding: 10px 100px 10px 95px;
  }

  .connect__content {
    padding-left: 45px;
  }
}

/* ==========================================================================
   RESPONSIVE — Desktop grande (1440px)
   ========================================================================== */
@media (min-width: 1440px) {
  .about__text-side {
    padding: var(--space-2xl) var(--space-2xl) 255px;
  }

  .about__content {
    max-width: 490px;
  }

  .about-cont__text-side {
    padding: var(--space-2xl) var(--space-xl);
  }

  .about-cont__content {
    max-width: 561px;
  }

  .wdid-text__content {
    max-width: 540px;
  }

  .connect__content {
    max-width: 515px;
  }
}

/* ==========================================================================
   RESPONSIVE — Movil (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  /* --- Hero: altura completa en movil --- */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__panel {
    min-height: 33.34vh;
  }

  .hero__label {
    font-size: clamp(28px, 8vw, 42px);
    opacity: 1;
    transform: none;
  }

  .hero__logo-img {
    max-width: 60%;
  }

  /* --- Secciones de contenido: altura auto --- */
  .about,
  .about-cont,
  .wdid-text,
  .connect {
    min-height: auto;
  }

  /* --- About --- */
  .about__text-side {
    padding: 80px 24px 40px;
  }

  .about__img-side {
    display: block;
    height: 50vh;
    position: relative;
    overflow: hidden;
  }

  /* --- About continued --- */
  .about-cont__img-side {
    display: block;
    height: 50vh;
    position: relative;
    overflow: hidden;
    order: -1;
  }

  .about-cont__text-side {
    padding: 40px 24px 40px;
  }

  /* --- WDID text --- */
  .wdid-text__text-side {
    padding: 60px 24px 40px;
  }

  .wdid-text__img-side {
    display: block;
    height: 50vh;
    position: relative;
    overflow: hidden;
  }

  /* --- Roles --- */
  .wdid-roles {
    min-height: auto;
    padding-bottom: 80px;
  }

  .wdid-roles__left {
    padding: 60px 24px 24px;
  }

  .wdid-roles__content-wrap {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 0;
  }

  .wdid-roles__bottom {
    position: relative;
    bottom: auto;
  }

  /* Imagenes de roles en movil — tap para mostrar */
  .wdid-roles__role-img {
    display: block;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.85);
    width: 260px;
    height: 260px;
    border-radius: var(--radius-image);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
    filter: saturate(0);
  }

  .wdid-roles__role-img--visible {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    filter: saturate(1);
  }

  .wdid-roles__role-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* --- Connect --- */
  .connect__left {
    padding: 60px 24px 40px;
    position: relative;
  }

  .connect__right {
    padding: 40px 24px 60px;
    position: relative;
  }

  .connect__copy {
    display: none;
  }

  .connect__right {
    padding-bottom: 24px;
  }

  .connect__legal {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 40px;
    flex-wrap: wrap;
  }

  .connect__copy--mobile {
    display: block;
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--color-mine-shaft);
    text-transform: uppercase;
    margin-top: 16px;
    padding: 0 8px;
  }

  /* --- Nav menu --- */
  .nav__link-slot {
    font-size: clamp(36px, 10vw, 56px);
  }

  /* --- Scroll hint oculto en movil --- */
  .scroll-hint {
    display: none;
  }

  /* --- Lang switch ajuste movil --- */
  .lang-switch {
    bottom: 16px;
    right: 16px;
  }

  /* --- Section titles mas pequeños en movil --- */
  .section-title {
    font-size: clamp(48px, 14vw, 72px);
    line-height: 1.05;
  }
}

@media (max-width: 550px) {
  .nav__menu-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================================================
   COOKIECONSENT — Override estilos del banner y modal de preferencias
   ========================================================================== */
#cc-main {
  --cc-font-family: var(--font-inter);
  --cc-bg: #0a0a0a;
  --cc-primary-color: var(--color-white);
  --cc-secondary-color: var(--color-silver-chalice);
  --cc-btn-primary-bg: var(--color-sunflower);
  --cc-btn-primary-color: var(--color-black);
  --cc-btn-primary-border-color: var(--color-sunflower);
  --cc-btn-primary-hover-bg: #ccd01e;
  --cc-btn-primary-hover-color: var(--color-black);
  --cc-btn-primary-hover-border-color: #ccd01e;
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--color-white);
  --cc-btn-secondary-border-color: var(--color-mine-shaft);
  --cc-btn-secondary-hover-bg: var(--color-mine-shaft);
  --cc-btn-secondary-hover-color: var(--color-white);
  --cc-btn-secondary-hover-border-color: var(--color-mine-shaft);
  --cc-separator-border-color: var(--color-mine-shaft-dark);
  --cc-toggle-on-bg: var(--color-sunflower);
  --cc-toggle-off-bg: var(--color-mine-shaft);
  --cc-toggle-on-knob-bg: var(--color-black);
  --cc-toggle-off-knob-bg: var(--color-silver-chalice);
  --cc-toggle-readonly-bg: var(--color-mine-shaft-dark);
  --cc-toggle-readonly-knob-bg: var(--color-silver-chalice);
  --cc-overlay-bg: rgba(0, 0, 0, 0.65);
  --cc-cookie-category-block-bg: #111111;
  --cc-cookie-category-block-hover-bg: #1a1a1a;
  --cc-section-border: var(--color-mine-shaft-dark);
  --cc-modal-border-radius: 0;
  --cc-btn-border-radius: 0;
}

#cc-main .cm,
#cc-main .pm {
  border-radius: 0;
}

#cc-main .cm__title,
#cc-main .pm__title {
  font-family: var(--font-inter);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#cc-main .cm__desc,
#cc-main .pm__body {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-silver-chalice);
}

#cc-main .cm__btn,
#cc-main .pm__btn {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
}

#cc-main .pm__section-title {
  font-family: var(--font-inter);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#cc-main .pm__section-desc {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-silver-chalice);
}
