/* Fuentes autoalojadas (subset latin): sin pedido a Google, sin salto al cargar. */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bebas-neue-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/poppins-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #05070a;
  --color-bg-overlay: rgba(5, 7, 10, 0.75);
  --color-primary: #2c4870;
  --color-accent: #6fa8dc;
  --color-text: #f5f5f5;
  --color-text-muted: #a0a8b5;
  --container-max: 1200px;

  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Poppins", sans-serif;
}

@media (min-width: 1920px) {
  :root {
    --container-max: 1560px;
  }
}

/* ========================================
   RESET
======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* PRIMERA SECCION HERO */

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ========================================
   HEADER
======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1rem max(5%, calc((100% - var(--container-max)) / 2));

  background: rgba(5, 7, 10, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  height: 64px;
  width: auto;
  max-width: none;
  display: block;
}

.navigation ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navigation a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  transition: color 0.3s ease;
}

.navigation a:hover {
  color: var(--color-accent);
}

/* ========================================
   LANGUAGE SWITCH
======================================== */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.4rem 0.75rem;

  background: rgba(5, 7, 10, 0.55);

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);

  font-family: var(--font-body);
  font-size: 0.85rem;
}

.lang-btn {
  appearance: none;
  -webkit-appearance: none;

  background: none;
  border: none;

  color: var(--color-text-muted);

  cursor: pointer;

  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;

  padding: 0.25rem;

  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-btn.active {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
}

/* ========================================
   MOBILE MENU TOGGLE (HAMBURGUESA)
======================================== */

.menu-toggle {
  display: none;

  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;

  width: 40px;
  height: 40px;
  padding: 8px;

  appearance: none;
  -webkit-appearance: none;
  background: rgba(5, 7, 10, 0.55);

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);

  cursor: pointer;

  order: -1;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;

  background: var(--color-text);
  border-radius: 2px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   MOBILE MENU DRAWER
======================================== */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.6);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 205;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;

  width: min(300px, 80vw);

  display: flex;
  flex-direction: column;

  padding: 100px 2rem 2rem;

  background: #0b0e13;
  border-right: 1px solid rgba(255, 255, 255, 0.08);

  transform: translateX(-100%);
  transition: transform 0.35s ease;

  overflow-y: auto;

  z-index: 210;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-logo {
  position: absolute;
  top: 24px;
  left: 2rem;

  height: 36px;
  width: auto;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--color-accent);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;

  color: var(--color-text);
  font-size: 1.8rem;
  line-height: 1;

  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-bar,
  .mobile-menu,
  .mobile-menu-overlay {
    transition: none;
  }
}

/* ========================================
   HERO
======================================== */

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 110px max(5%, calc((100% - var(--container-max)) / 2 + 40px)) 190px; /* ← CAMBIO */

  background-image: url("photos/heroimage.webp");
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* ========================================
   HERO OVERLAY
======================================== */

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.78) 30%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.08) 100%
  );

  z-index: 0;

  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* ========================================
   HERO TEXT
======================================== */

.hero-text {
  position: relative;
  z-index: 1;

  margin-top: 40px;

  margin-bottom: 20px;

  max-width: 480px;
}

.hero-text p:nth-of-type(1),
.hero-text p:nth-of-type(2) {
  font-family: var(--font-display);

  font-size: clamp(2.1rem, 3.6vw, 3.2rem);

  line-height: 1;

  color: #228be6;

  letter-spacing: 0.02em;
}

.hero-text h1 {
  font-family: var(--font-display);

  font-weight: 400;

  font-size: clamp(2.4rem, 4vw, 3.4rem);

  line-height: 1;

  margin: 1.5rem 0 1rem;

  color: var(--color-text);

  text-wrap: balance;
}

.hero-text > p:last-child {
  font-family: var(--font-body);

  font-weight: 300;

  font-size: 1rem;

  text-wrap: pretty;

  line-height: 1.6;

  color: var(--color-text-muted);

  max-width: 480px;
}

/* ========================================
   HERO BUTTON
======================================== */

.hero-button {
  position: relative;
  z-index: 2;

  margin-top: 1rem;
}

.boton-hero {
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.9rem 1.8rem;

  background-color: #11151c;

  border: 1px solid var(--color-accent);
  border-radius: 8px;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;

  letter-spacing: 0.04em;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.boton-hero:hover {
  background-color: var(--color-accent);

  color: #05070a;

  transform: translateY(-3px);

  box-shadow:
    0 8px 25px rgba(111, 168, 220, 0.2),
    0 0 20px rgba(111, 168, 220, 0.08);
}

.boton-hero:active {
  transform: translateY(-1px);
}

.boton-hero:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.45rem;

  margin-top: 1rem;

  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: var(--color-accent);
}

.hero-social-proof::before {
  content: "";
  flex-shrink: 0;

  width: 6px;
  height: 6px;

  background: var(--color-accent);
  border-radius: 50%;
}

/* ========================================
   HERO SPECS / STATS CONTAINER
======================================== */

.hero-specs {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;

  display: grid;

  grid-template-columns: repeat(4, 170px);

  justify-content: center;

  gap: 40px;

  padding: 18px 5%;

  background: rgba(3, 5, 10, 0.94);

  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Aparición escalonada al entrar en viewport (una sola vez, vía JS).
   Sin JS o con prefers-reduced-motion, las tarjetas quedan visibles
   directamente: la clase .js-anim solo la agrega el script. */

html.hero-anim .hero-specs .spec-card {
  opacity: 0;
  transform: translateY(10px);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

html.hero-anim .hero-specs.is-visible .spec-card {
  opacity: 1;
  transform: translateY(0);
}

html.hero-anim .hero-specs .spec-card:nth-child(1) {
  transition-delay: 0ms;
}

html.hero-anim .hero-specs .spec-card:nth-child(2) {
  transition-delay: 90ms;
}

html.hero-anim .hero-specs .spec-card:nth-child(3) {
  transition-delay: 180ms;
}

html.hero-anim .hero-specs .spec-card:nth-child(4) {
  transition-delay: 270ms;
}

@media (prefers-reduced-motion: reduce) {
  html.hero-anim .hero-specs .spec-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   STAT CARD
======================================== */

.spec-card {
  position: relative;

  width: 200px;
  min-height: 125px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 18px;

  background: rgba(35, 39, 45, 0.72);

  border: 1px solid rgba(255, 255, 255, 0.09);

  border-radius: 10px;

  overflow: hidden;

  cursor: default;

  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Línea azul superior */

.spec-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: var(--color-accent);

  opacity: 0.35;

  transition:
    opacity 0.35s ease,
    height 0.35s ease;
}

/* Glow interno */

.spec-card::after {
  content: "";

  position: absolute;

  width: 120px;
  height: 120px;

  top: -70px;
  right: -70px;

  background: rgba(111, 168, 220, 0.08);

  border-radius: 50%;

  filter: blur(20px);

  opacity: 0;

  transition: opacity 0.35s ease;
}

/* Hover */

.spec-card:hover {
  transform: translateY(-5px);

  background: rgba(45, 50, 58, 0.88);

  border-color: rgba(111, 168, 220, 0.5);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(111, 168, 220, 0.14);
}

.spec-card:hover::before {
  opacity: 1;
  height: 3px;
}

.spec-card:hover::after {
  opacity: 1;
}

/* ========================================
   STAT ICON
======================================== */

.spec-icon-wrapper {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 10px;

  color: var(--color-accent);

  transition:
    transform 0.35s ease,
    color 0.35s ease;
}

.spec-icon {
  width: 26px;
  height: 26px;

  display: block;

  color: inherit;

  flex-shrink: 0;
}

.spec-card:hover .spec-icon-wrapper {
  transform: scale(1.12);

  color: #ffffff;
}

/* ========================================
   STAT NUMBER
======================================== */

.spec-number {
  font-family: var(--font-display);

  font-size: 1.8rem;

  line-height: 1;

  letter-spacing: 0.02em;

  color: var(--color-text);

  transition: color 0.35s ease;
}

.spec-card:hover .spec-number {
  color: var(--color-accent);
}

/* ========================================
   STAT LABEL
======================================== */

.spec-card p {
  margin-top: 6px;

  font-family: var(--font-body);

  font-size: 0.68rem;

  font-weight: 600;

  line-height: 1.3;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--color-text-muted);
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {
  .hero-specs {
    grid-template-columns: repeat(4, minmax(130px, 1fr));

    gap: 10px;

    padding-left: 3%;
    padding-right: 3%;
  }

  .spec-card {
    width: 100%;
  }

  /* Header: switch to hamburger nav */

  .navigation {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {
  /* Header */

  .header {
    padding: 0.85rem 5%;
  }

  .logo {
    height: 48px;
  }

  /* Hero */

  .hero {
    min-height: 100svh;

    padding: 100px 5% 250px;

    justify-content: center;

    background-position: 62% center;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.78) 50%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }

  /* Hero text */

  .hero-text {
    max-width: 100%;

    margin-top: 0;
  }

  .hero-text h1 {
    margin-top: 1.2rem;
  }

  .hero-text > p:last-child {
    font-size: 0.9rem;

    line-height: 1.5;

    max-width: 100%;
  }

  /* Button */

  .hero-button {
    margin-top: 1.5rem;
  }

  .boton-hero {
    width: 100%;

    padding: 0.85rem 1.5rem;
  }

  /* Stats */

  .hero-specs {
    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    padding: 12px 5%;
  }

  .spec-card {
    width: 100%;

    min-height: 105px;

    padding: 14px;
  }

  .spec-icon-wrapper {
    width: 26px;
    height: 26px;

    margin-bottom: 7px;
  }

  .spec-icon {
    width: 22px;
    height: 22px;
  }

  .spec-number {
    font-size: 1.5rem;
  }

  .spec-card p {
    font-size: 0.62rem;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {
  .header {
    padding: 1rem 4%;
  }

  .lang-switch {
    font-size: 0.75rem;
  }

  .lang-btn {
    font-size: 0.75rem;
  }

  .hero {
    padding-left: 4%;
    padding-right: 4%;
    padding-bottom: 240px;
  }

  .hero-text > p:last-child {
    font-size: 0.85rem;
  }

  .hero-specs {
    padding-left: 4%;
    padding-right: 4%;
  }

  .spec-card {
    min-height: 100px;
    padding: 12px;
  }

  .spec-number {
    font-size: 1.35rem;
  }

  .spec-card p {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
}

/* SEGUNDA SECCION SERVICIOS */

/* ========================================
   SERVICES
======================================== */

.services {
  position: relative;

  padding: 120px 0;

  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;
}

/* Fondo ambiental: glow radial azul muy oscuro + un par de ondas
   abstractas muy difuminadas. Todo generado con gradientes/blur,
   sin fotos ni ilustraciones, e inset negativo para que el blur no
   corte en un borde duro contra el overflow:hidden de la sección. */

.services::before {
  content: "";

  position: absolute;
  inset: -10%;
  z-index: 0;

  background-image:
    radial-gradient(
      ellipse 900px 550px at 50% 35%,
      rgba(28, 58, 120, 0.16) 0%,
      rgba(28, 58, 120, 0) 70%
    ),
    linear-gradient(
      115deg,
      transparent 42%,
      rgba(40, 90, 180, 0.045) 50%,
      transparent 58%
    ),
    linear-gradient(
      65deg,
      transparent 58%,
      rgba(30, 70, 150, 0.035) 66%,
      transparent 74%
    );

  filter: blur(40px);

  pointer-events: none;
}

/* Textura de grano fina, opacidad máxima ~2.5% (va horneada en el
   propio SVG vía feColorMatrix, no con `opacity` del elemento). */

.services::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 120px 120px;

  pointer-events: none;
}

.services-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: var(--container-max);

  margin: 0 auto;

  padding: 0 40px;
}

/* ========================================
   SERVICES HEADER
======================================== */

.services-header {
  max-width: 700px;

  margin-bottom: 60px;
}

.section-label {
  display: inline-block;

  margin-bottom: 15px;

  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;

  letter-spacing: 0.18em;

  color: var(--color-accent);
}

.services-header h2 {
  max-width: 650px;

  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);

  font-weight: 400;
  line-height: 1;

  color: var(--color-text);
}

.services-intro {
  max-width: 550px;

  margin-top: 18px;

  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;

  color: var(--color-text-muted);
}

/* ========================================
   SERVICES GRID
======================================== */

.services-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

/* ========================================
   SERVICES CTA (final)
======================================== */

.services-cta {
  margin-top: 60px;

  text-align: center;
}

.services-cta p {
  margin-bottom: 16px;

  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;

  color: var(--color-text-muted);
}

.services-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.75rem 1.6rem;

  background-color: #11151c;

  border: 1px solid var(--color-accent);
  border-radius: 8px;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;

  letter-spacing: 0.04em;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.services-cta-link:hover {
  background-color: var(--color-accent);

  color: #05070a;

  transform: translateY(-3px);

  box-shadow:
    0 8px 25px rgba(111, 168, 220, 0.2),
    0 0 20px rgba(111, 168, 220, 0.08);
}

.services-cta-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* ========================================
   SERVICE CARD
======================================== */

.service-card {
  position: relative;

  min-height: 330px;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  padding: 35px;

  background: #11151b;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;

  overflow: hidden;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Línea superior */

.service-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: var(--color-accent);

  opacity: 0.25;

  pointer-events: none;

  transition:
    opacity 0.35s ease,
    height 0.35s ease;
}

/* Glow */

.service-card::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: -100px;
  bottom: -120px;

  background: rgba(34, 139, 230, 0.08);

  border-radius: 50%;

  filter: blur(45px);

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.4s ease;
}

/* Hover */

.service-card:hover {
  transform: translateY(-4px);

  background: #151a21;

  border-color: rgba(111, 168, 220, 0.35);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(111, 168, 220, 0.06);
}

.service-card:hover::before {
  height: 3px;
  opacity: 1;
}

.service-card:hover::after {
  opacity: 1;
}

/* ========================================
   SERVICE NUMBER
======================================== */

.service-number {
  margin-bottom: 35px;

  font-family: var(--font-display);

  font-size: 1.1rem;

  letter-spacing: 0.08em;

  color: var(--color-accent);

  opacity: 0.8;
}

/* ========================================
   SERVICE ICON
======================================== */

.service-icon {
  width: 34px;
  height: 34px;

  margin-bottom: 20px;

  color: var(--color-accent);

  transition:
    transform 0.35s ease,
    color 0.35s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);

  color: #ffffff;
}

/* ========================================
   SERVICE TITLE
======================================== */

.service-card h3 {
  margin-bottom: 12px;

  font-family: var(--font-display);

  font-size: 2rem;

  font-weight: 400;

  line-height: 1;

  letter-spacing: 0.02em;

  color: var(--color-text);
}

/* ========================================
   SERVICE DESCRIPTION
======================================== */

.service-card p {
  max-width: 480px;

  margin-bottom: 0;

  font-family: var(--font-body);

  font-size: 0.85rem;

  font-weight: 300;

  line-height: 1.7;

  color: var(--color-text-muted);
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 768px) {
  .services {
    padding: 90px 0;
  }

  .services-container {
    padding: 0 5%;
  }

  .services-header {
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .service-card {
    min-height: 300px;

    padding: 28px;
  }

  .service-number {
    margin-bottom: 28px;
  }

  .service-card h3 {
    font-size: 1.8rem;
  }

  .services-cta {
    margin-top: 40px;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {
  .services {
    padding: 75px 0;
  }

  .services-container {
    padding: 0 4%;
  }

  .service-card {
    min-height: 280px;

    padding: 24px;
  }

  .service-number {
    margin-bottom: 24px;
  }

  .service-card h3 {
    font-size: 1.7rem;
  }

  .service-card p {
    font-size: 0.8rem;
  }
}

/* TERCERA SECCION SOBRE MI */

/* ========================================
   SOBRE MÍ
======================================== */

.about {
  padding: 120px 0;
  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: hidden;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* IMAGEN */

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.about-image img {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;

  filter: saturate(0.75) contrast(1.08);

  transform: translateY(var(--parallax-y, 0px));

  /* Corta a propósito (no 0.6s): esta misma propiedad se actualiza
     en cada frame de scroll para el parallax, una transición larga
     generaría un desfasaje notorio siguiendo al scroll. */
  transition: transform 0.2s ease-out;
}

.about-image:hover img {
  transform: translateY(var(--parallax-y, 0px)) scale(1.03);
}

/* ========================================
   ENTRADA ANIMADA (una sola vez, vía JS)
======================================== */
/* .js-anim lo agrega el script; sin JS el contenido queda visible
   por defecto (no depende de la animación para mostrarse). */

.about.js-anim .about-image {
  opacity: 0;
  transform: translateX(-220px);

  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.about.js-anim .about-content {
  opacity: 0;
  transform: translateX(16px);

  transition:
    opacity 0.6s ease 0.12s,
    transform 0.6s ease 0.12s;
}

.about.js-anim.is-visible .about-image,
.about.js-anim.is-visible .about-content {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .about.js-anim .about-image,
  .about.js-anim .about-content {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-image img {
    transform: none;
  }
}

/* CONTENIDO */

.about-content {
  max-width: 560px;
}

.about-content .section-label {
  margin-bottom: 18px;

  font-size: 20px;
  font-weight: 600;

  color: var(--color-accent);
}

.about-content h2 {
  margin-bottom: 25px;

  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1;

  color: var(--color-text);
}

.about-content p {
  margin-bottom: 18px;

  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;

  color: var(--color-text-muted);
}

.about-content a {
  display: inline-block;
  margin-top: 15px;

  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--color-text);

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.about-content a:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {
  .about {
    padding: 90px 0;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 0 5%;
  }

  .about-image img {
    height: 500px;
  }

  .about-content {
    max-width: 700px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 480px) {
  .about {
    padding: 75px 0;
  }

  .about-container {
    padding: 0 4%;
    gap: 35px;
  }

  .about-image img {
    height: 420px;
  }

  .about-content p {
    font-size: 0.82rem;
  }

  .about.js-anim .about-image {
    transform: translateX(-100px);
  }
}

/* CUARTA SECCION ANTES Y DESPUES */

/* ========================================
   ANTES / DESPUÉS
======================================== */

.before-after {
  position: relative;

  padding: 120px 0;

  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;
}

.before-after::before {
  content: "";

  position: absolute;
  inset: -10%;
  z-index: 0;

  background-image:
    radial-gradient(
      ellipse 900px 550px at 50% 35%,
      rgba(28, 58, 120, 0.16) 0%,
      rgba(28, 58, 120, 0) 70%
    ),
    linear-gradient(
      115deg,
      transparent 42%,
      rgba(40, 90, 180, 0.045) 50%,
      transparent 58%
    ),
    linear-gradient(
      65deg,
      transparent 58%,
      rgba(30, 70, 150, 0.035) 66%,
      transparent 74%
    );

  filter: blur(40px);

  pointer-events: none;
}

.before-after::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 120px 120px;

  pointer-events: none;
}

.before-after-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.before-after-header {
  max-width: 650px;
  margin-bottom: 50px;
}

.before-after-header h2 {
  margin-bottom: 15px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.before-after-header p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.before-after-header .section-label {
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-accent);
}

.before-after-compare-note {
  margin: 0 0 30px;

  font-size: 0.9rem;
  font-weight: 300;
  text-align: center;

  color: var(--color-text-muted);
}

/* PLAYER */

.audio-player {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 35px;

  background: #11151b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;

  overflow: hidden;
}

/* Flechas para cambiar de canción (al lado de Demo/Master) */

.track-nav-btn {
  flex-shrink: 0;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;

  background: transparent;
  color: var(--color-text);

  font-size: 1.1rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.track-nav-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.track-nav-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.track-nav-btn[hidden] {
  display: none;
}

.audio-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.audio-status {
  width: fit-content;
  margin-bottom: 5px;

  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;

  color: var(--color-accent);
}

/* Audio activo todavía sin datos suficientes: el estado parpadea. */
.audio-player.is-buffering .audio-status {
  animation: audio-buffering 0.9s ease-in-out infinite alternate;
}

@keyframes audio-buffering {
  to {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-player.is-buffering .audio-status {
    animation: none;
    opacity: 0.5;
  }
}

.audio-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

#audioTrackArtist {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* WAVEFORM */

.audio-waveform {
  width: 100%;
  height: 100px;

  display: block;

  margin: 35px 0;

  cursor: pointer;
}

/* TRANSICIÓN AL CAMBIAR DE CANCIÓN (se salta con prefers-reduced-motion,
   ver loadTrack() en script.js) */

.audio-info,
.audio-waveform {
  transition: opacity 0.2s ease;
}

.audio-player.is-switching .audio-info,
.audio-player.is-switching .audio-waveform {
  opacity: 0;
}

/* CONTROLES */

.audio-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.audio-play {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--color-accent);
  border-radius: 50%;

  background: transparent;
  color: var(--color-text);

  font-variant-emoji: text;
  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.audio-play:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.audio-play:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.audio-time,
.audio-duration {
  min-width: 40px;

  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.audio-duration {
  text-align: right;
}

.audio-progress {
  flex: 1;
  min-width: 0;

  height: 3px;

  appearance: none;
  -webkit-appearance: none;

  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;

  cursor: pointer;
}

.audio-progress::-webkit-slider-thumb {
  appearance: none;

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: var(--color-accent);

  cursor: pointer;
}

.audio-progress::-moz-range-thumb {
  width: 11px;
  height: 11px;

  border: none;
  border-radius: 50%;

  background: var(--color-accent);

  cursor: pointer;
}

/* DEMO / MASTER */

.audio-switch {
  display: flex;
  justify-content: center;

  gap: 8px;

  margin-top: 30px;
}

.audio-option {
  padding: 8px 18px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;

  background: transparent;
  color: var(--color-text-muted);

  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.audio-option:hover,
.audio-option.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.audio-option.active {
  box-shadow: 0 0 12px rgba(111, 168, 220, 0.45);
}

.audio-option:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* CTA FINAL */

.before-after-cta-wrap {
  margin-top: 40px;
  text-align: center;
}

.before-after-cta {
  display: inline-block;

  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--color-text);

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.before-after-cta:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.before-after-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ========================================
   TABLET / MOBILE
======================================== */

@media (max-width: 768px) {
  .before-after {
    padding: 90px 0;
  }

  .before-after-container {
    padding: 0 5%;
  }

  .before-after-header {
    margin-bottom: 35px;
  }

  .audio-player {
    padding: 25px;
  }

  .audio-waveform {
    height: 75px;
    margin: 25px 0;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {
  .before-after {
    padding: 75px 0;
  }

  .before-after-container {
    padding: 0 4%;
  }

  .audio-player {
    padding: 20px;
  }

  .audio-info h3 {
    font-size: 1.7rem;
  }

  .audio-controls {
    gap: 10px;
  }

  .audio-switch {
    margin-top: 25px;
  }
}

/* QUINTA SECCIÓN ARTISTAS */

/* ========================================
   ARTISTAS QUE CONFIARON EN MÍ
======================================== */

.artistas-section {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 6rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.artistas-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.artistas-header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.artistas-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.3px;
  margin: 0.75rem 0;
}

.artistas-header p {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.artistas-header .section-label {
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-accent);
}

/* ---------- Carrusel ---------- */

.carousel-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* padding-top: overflow-x: auto fuerza overflow-y a auto también
     (regla de la spec de CSS Overflow), así que sin este margen el
     translateY(-4px) del hover de .artist-card queda recortado
     arriba en vez de simplemente "levantar" la card. */
  padding: 8px 0 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Mientras se arrastra: nada de snap ni de scroll-behavior:smooth
   peleando con los scrollLeft que pone el mousemove (eso era lo que
   se sentía "trabado"); se suelta el control 1 a 1 con el mouse y
   recién al soltar se vuelve a habilitar el snap suave hacia la
   card más cercana. */
.carousel-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.carousel-track.dragging .artist-photo {
  pointer-events: none;
}

/* Sin efecto hover mientras se arrastra: el translateY/scale
   re-renderizándose en cada mousemove causaba un parpadeo en el
   borde inferior de la foto. */
.carousel-track.dragging .artist-card,
.carousel-track.dragging .artist-card:hover,
.carousel-track.dragging .artist-card:focus-within {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.06);
  transition: none;
}

.carousel-track.dragging .artist-card:hover .artist-photo,
.carousel-track.dragging .artist-card:focus-within .artist-photo {
  transform: none;
  transition: none;
}

.carousel-track:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ---------- Card ---------- */

.artist-card {
  flex: 0 0 clamp(220px, 26vw, 290px);
  scroll-snap-align: start;
  background: #11151b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.artist-card:hover,
.artist-card:focus-within {
  border-color: rgba(111, 168, 220, 0.45);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

/* FOTO (con fallback prolijo si no hay imagen: ver script.js, que
   oculta el <img> sin src o roto y deja ver este degradado) */

.artist-photo-frame {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(155deg, #262b32, #14171c);
  /* Capa propia: evita que el scale de la foto y el translateY de la
     card generen una línea/parpadeo de subpíxel en el borde inferior. */
}

.artist-photo-frame::after {
  content: "";
  position: absolute;
  /* -1px abajo: tapa la costura de subpíxel entre la foto y el body */
  inset: 0 0 -1px 0;
  background: linear-gradient(to bottom, transparent 60%, #11151b 100%);
  pointer-events: none;
}

.artist-photo {
  --photo-focus: center;

  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus);
  display: block;
  transition: filter 0.25s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.artist-card:hover .artist-photo,
.artist-card:focus-within .artist-photo {
  /* Sin scale: el zoom de 1.02 dentro del frame con overflow:hidden
     provocaba un parpadeo en el borde inferior de la foto. */
  filter: brightness(1.06);
}

.artist-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.artist-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.3px;
  margin: 0;
}

.artist-role {
  font-family: var(--font-body);
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.artist-quote {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.artist-track {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: auto;
}

.artist-link {
  display: inline-block;
  margin-top: 0.6rem;

  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--color-accent);

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.artist-link:hover {
  color: var(--color-text);
  transform: translateX(4px);
}

.artist-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ---------- Controles ---------- */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--color-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.carousel-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.carousel-progress {
  position: relative;
  flex: 1;
  max-width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.carousel-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    width 0.25s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .artist-card {
    flex-basis: clamp(220px, 40vw, 300px);
  }
}

@media (max-width: 768px) {
  .artistas-section {
    padding: 4.5rem 1.25rem;
  }

  .artist-card {
    flex-basis: 82vw;
  }

  .artist-photo-frame {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 480px) {
  /* Una card por vez, con swipe nativo (scroll-snap ya está en
     .carousel-track) */
  .artist-card {
    flex-basis: calc(100vw - 2.5rem);
  }

  .artist-photo-frame {
    aspect-ratio: 3 / 4;
  }

  .carousel-controls {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    scroll-behavior: auto;
  }

  .artist-card {
    transition: none;
  }

  .artist-card:hover,
  .artist-card:focus-within {
    transform: none;
  }

  .artist-photo {
    transition: none;
  }

  .artist-card:hover .artist-photo,
  .artist-card:focus-within .artist-photo {
    transform: none;
  }
}

/* SÉPTIMA SECCIÓN FORMULARIO */

/* ========================================
   FORMULARIO DE CONTACTO
======================================== */

.contact-section {
  position: relative;

  /* Padding fijo en vez de min-height:100vh + centrado: así el aire
     debajo del formulario (antes del footer) queda siempre en el
     mismo rango, sin depender de la altura del viewport. */
  padding: 140px 0 110px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(3, 5, 10, 0.88) 0%,
    rgba(3, 5, 10, 0.82) 50%,
    rgba(3, 5, 10, 0.92) 100%
  );
}

.contact-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Card del formulario ---------- */

.contact-form-box {
  width: 100%;
  max-width: 560px;

  padding: 50px;

  background: rgba(17, 21, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.contact-form-box .section-label {
  margin-bottom: 18px;
}

.contact-form-box h2 {
  margin-bottom: 18px;

  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1;

  color: var(--color-text);
}

.contact-form-box > p {
  margin-bottom: 35px;

  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;

  color: var(--color-text-muted);
}

/* ---------- Campos ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-field input,
.form-field textarea {
  appearance: none;
  -webkit-appearance: none;

  padding: 0.85rem 1rem;

  background: rgba(5, 7, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 0.9rem;

  /* Sin transición en background-color: al borrar un campo autocompletado
     Chrome soltaba su fondo claro y se veía un parpadeo blanco. */
  transition: border-color 0.3s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 6.5em;
  line-height: 1.5;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;

  border-color: var(--color-accent);
  background: rgba(5, 7, 10, 0.85);
}

/* Chrome pinta los campos autocompletados con fondo claro y no deja
   cambiarlo con background; se tapa con un box-shadow inset. */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  caret-color: var(--color-text);
  -webkit-box-shadow: 0 0 0 1000px #0b0f16 inset;
  box-shadow: 0 0 0 1000px #0b0f16 inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #e08585;
}

.field-error {
  min-height: 1em;

  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #e08585;
}

.field-error:empty {
  display: none;
}

.form-hint {
  margin-top: -10px;

  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ---------- Checkboxes de servicios ---------- */

.form-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  padding: 0;

  border: none;
}

.form-services legend {
  width: 100%;
  margin-bottom: 4px;

  padding: 0;

  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 0.65rem 1rem;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;

  cursor: pointer;

  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-muted);

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.form-services.invalid .checkbox-option {
  border-color: #e08585;
}

.checkbox-option:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.checkbox-option:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(111, 168, 220, 0.1);
  color: var(--color-text);
}

.checkbox-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  flex-shrink: 0;

  width: 16px;
  height: 16px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;

  background: rgba(5, 7, 10, 0.6);

  cursor: pointer;

  position: relative;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.checkbox-option input[type="checkbox"]:hover {
  border-color: var(--color-accent);
}

.checkbox-option input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-option input[type="checkbox"]:checked::after {
  content: "";

  position: absolute;
  left: 4px;
  top: 0px;

  width: 4px;
  height: 9px;

  border: solid var(--color-bg);
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

.checkbox-option input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Privacidad / botón ---------- */

.form-privacy-note {
  margin: 0;

  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.form-privacy-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-privacy-note a:hover {
  color: var(--color-text);
}

.form-privacy-note a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-response-time {
  margin: -6px 0 0;

  font-family: var(--font-body);
  font-size: 0.78rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* ---------- Confirmación de envío ---------- */

.form-success {
  text-align: center;
}

.form-success h3 {
  margin-bottom: 12px;

  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;

  color: var(--color-text);
}

.form-success h3:focus-visible {
  outline: none;
}

.form-success p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---------- Toast de envío (éxito / error) ---------- */

.form-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 200;

  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  max-width: min(90vw, 420px);
  padding: 14px 18px;

  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}

.form-toast[hidden] {
  display: none;
}

.form-toast.success {
  background: #2f9e5c;
}

.form-toast.error {
  background: #c94f4f;
}

.form-toast-close {
  appearance: none;
  -webkit-appearance: none;

  flex-shrink: 0;

  width: 22px;
  height: 22px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);

  color: #fff;
  font-size: 1rem;
  line-height: 1;

  cursor: pointer;

  transition: background-color 0.2s ease;
}

.form-toast-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.form-submit-button {
  appearance: none;
  -webkit-appearance: none;

  align-self: stretch;

  padding: 0.9rem 2.2rem;

  background-color: rgba(5, 7, 10, 0.6);

  border: 1px solid var(--color-accent);
  border-radius: 5px;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;

  letter-spacing: 0.04em;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.form-submit-button:hover {
  background-color: var(--color-accent);

  color: var(--color-bg);

  transform: translateY(-3px);

  box-shadow:
    0 8px 25px rgba(111, 168, 220, 0.2),
    0 0 20px rgba(111, 168, 220, 0.08);
}

.form-submit-button:active {
  transform: translateY(-1px);
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {
  .contact-section {
    padding: 100px 0 90px;
    background-attachment: scroll;
  }

  .contact-container {
    padding: 0 5%;
  }

  .contact-form-box {
    padding: 40px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 480px) {
  .contact-section {
    padding: 70px 0 60px;
  }

  .contact-container {
    padding: 0 4%;
  }

  .contact-form-box {
    padding: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* OCTAVA SECCIÓN FOOTER */

/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: #03050a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 30px;
}

.footer-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Top grid ---------- */

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;

  padding-bottom: 50px;
  margin-bottom: 30px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Brand ---------- */

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  margin-bottom: 8px;

  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;

  color: var(--color-text-muted);
}

.footer-services-line {
  margin-bottom: 22px;

  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.03em;

  color: var(--color-text-muted);
  opacity: 0.75;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social:empty {
  display: none;
}

.social-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;

  color: var(--color-text-muted);

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.footer-social--contact {
  margin-top: 18px;
}

.footer-social--contact .social-icon {
  font-size: 16px;
  line-height: 1;
}

.social-icon:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.social-icon:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Nav / Contact columns ---------- */

.footer-nav h3,
.footer-contact h3 {
  margin-bottom: 20px;

  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--color-text);
}

.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 12px;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-nav li,
.footer-contact a:not(.social-icon),
.footer-contact li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;

  color: var(--color-text-muted);

  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-nav a:focus-visible,
.footer-contact a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Bottom bar ---------- */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;

  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: 10px;
}

.footer-legal li + li::before {
  content: "·";
  margin-right: 10px;
  color: var(--color-text-muted);
}

.footer-legal a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;

  color: var(--color-text-muted);

  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (min-width: 1025px) {
  /* Los íconos de redes salen del flujo de la columna de Contacto y
     bajan debajo de las listas, así Navegación y Contacto quedan
     con la misma altura y sus links alineados fila por fila. */
  .footer-top {
    padding-bottom: 100px;
  }

  .footer-contact {
    position: relative;
  }

  .footer-social--contact {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 28px;
  }
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {
  .site-footer {
    padding: 60px 0 25px;
  }

  .footer-container {
    padding: 0 5%;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 480px) {
  .site-footer {
    padding: 50px 0 25px;
  }

  .footer-container {
    padding: 0 4%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;

    padding-bottom: 35px;
  }

  /* Links más fáciles de tocar: más separación y área de toque */
  .footer-nav ul {
    row-gap: 4px;
    column-gap: 16px;
  }

  .footer-contact ul {
    gap: 4px;
  }

  .footer-nav a,
  .footer-contact a:not(.social-icon) {
    display: inline-block;
    padding: 8px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    gap: 18px;
  }
}

/* NOVENA SECCION BOTON FLOTANTE DE CONTACTO */

/* ========================================
   BOTONES FLOTANTES DE CONTACTO
======================================== */

.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  /* Reposo: oscuro con borde azul sutil de marca, no el color
     corporativo de cada red — ese solo aparece en hover/foco.
     El "borde" es un box-shadow (inset ring), no la propiedad
     border: mezclar border + border-radius:50% + fondo en
     degradado genera una costura/raya visible en el círculo por
     cómo el navegador rasteriza ambas capas por separado. */
  background: rgba(8, 11, 16, 0.92);
  border: none;
  color: var(--color-text);

  box-shadow:
    0 0 0 1px rgba(111, 168, 220, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.35);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.float-btn svg {
  width: 26px;
  height: 26px;
}

.float-btn:hover {
  transform: translateY(-2px);
}

.float-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* WhatsApp: verde de marca solo en hover/foco */
.float-btn-whatsapp:hover,
.float-btn-whatsapp:focus-visible {
  background: #25d366;

  box-shadow:
    0 0 0 1px #25d366,
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(37, 211, 102, 0.45);
}

/* Instagram: degradado de marca solo en hover/foco */
.float-btn-instagram:hover,
.float-btn-instagram:focus-visible {
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(238, 42, 123, 0.4);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 480px) {
  .floating-contact {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .float-btn svg {
    width: 22px;
    height: 22px;
  }
}

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

  .float-btn:hover {
    transform: none;
  }
}

/* ========================================
   PÁGINA: ESTUDIO
   (estudio.html — reutiliza header, footer,
   fuentes, variables, .section-label y .boton-hero
   ya definidos arriba)
======================================== */

.navigation a.nav-current,
.mobile-menu a.nav-current {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
}

.accent {
  color: var(--color-accent);
}

/* Numeración editorial — mismo tratamiento que
   .service-number en Home. */

.index-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  opacity: 0.8;
}

/* Tratamiento cinematográfico azul, reutilizado
   en todas las fotos de esta página. */

.editorial-photo {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.editorial-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  filter: saturate(0.72) contrast(1.12) brightness(0.96);

  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-photo::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    160deg,
    rgba(44, 72, 112, 0.32),
    rgba(5, 7, 10, 0.5)
  );
  mix-blend-mode: multiply;

  pointer-events: none;
}

.editorial-photo:hover img {
  transform: scale(1.035);
}

/* Fondo ambiental compartido — misma receta que
   .services::before/::after en Home (glow radial
   azul + grano muy sutil). Se usa en hero,
   micrófono y CTA. */

.ambient-glow {
  position: relative;
  overflow: hidden;
}

.ambient-glow::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;

  background-image: radial-gradient(
      ellipse 900px 550px at 50% 30%,
      rgba(28, 58, 120, 0.18) 0%,
      rgba(28, 58, 120, 0) 70%
    ),
    linear-gradient(
      115deg,
      transparent 42%,
      rgba(40, 90, 180, 0.05) 50%,
      transparent 58%
    );

  filter: blur(40px);

  pointer-events: none;
}

.ambient-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 120px 120px;

  pointer-events: none;
}

/* Entrada suave al scroll (.reveal la agrega el
   markup; .is-visible la agrega shared.js). Sin
   JS el contenido queda visible por defecto. */

.reveal {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .editorial-photo img {
    transition: none;
  }

  .editorial-photo:hover img {
    transform: none;
  }
}

/* ----------------------------------------
   HERO
---------------------------------------- */

.studio-hero {
  padding: 150px max(5%, calc((100% - var(--container-max)) / 2)) 0;
}

.studio-hero-meta {
  position: relative;
  z-index: 1;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 10px;

  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--color-text-muted);
}

.studio-hero-meta-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.studio-hero-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 18px;
  height: 18px;

  border: 1px solid rgba(111, 168, 220, 0.55);
  border-radius: 50%;

  color: var(--color-accent);

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.studio-hero-map-btn svg {
  width: 9px;
  height: 9px;
}

.studio-hero-map-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 0 10px rgba(111, 168, 220, 0.6);
}

.studio-hero-map-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.studio-hero-grid {
  position: relative;
  z-index: 1;

  max-width: var(--container-max);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(30px, 5vw, 60px);

  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 5vw, 70px);
}

.studio-hero-text {
  padding-top: 0;
}

.studio-hero-text h1 {
  margin-bottom: 12px;

  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;

  color: var(--color-text);
}

.studio-hero-title-accent {
  color: var(--color-accent);
}

html.title-anim .studio-hero-text h1 {
  visibility: hidden;
}

.studio-hero-text h1 .word {
  display: inline-block;
  white-space: nowrap;
}

.studio-hero-text h1 .letter {
  display: inline-block;

  animation: studio-letter-power-on 0.5s ease-out backwards;
  animation-delay: calc(var(--i) * 55ms);
}

@keyframes studio-letter-power-on {
  0% {
    opacity: 0.15;
    filter: brightness(0.4);
    text-shadow: none;
  }
  55% {
    opacity: 1;
    filter: brightness(1.6);
    text-shadow: 0 0 14px currentColor;
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    text-shadow: 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-hero-text h1 .letter {
    animation: none;
  }
}

.studio-hero-waveform {
  display: block;

  width: 136px;
  height: 22px;
  margin: 0 auto 28px;
  padding: 14px 0;

  overflow: visible;
  cursor: pointer;
}

.studio-hero-waveform rect {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 4px rgba(111, 168, 220, 0.55));

  transform-box: fill-box;
  transform-origin: center;

  animation: studio-waveform-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i) * 35ms + 0.95s);
}

@keyframes studio-waveform-rise {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(calc(1 + var(--boost, 0)));
    opacity: 1;
  }
}

.studio-hero-waveform.is-live rect {
  animation: studio-waveform-idle 1.3s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes studio-waveform-idle {
  0% {
    transform: scaleY(calc(0.5 + var(--boost, 0)));
  }
  50% {
    transform: scaleY(calc(1.15 + var(--boost, 0)));
  }
  100% {
    transform: scaleY(calc(0.65 + var(--boost, 0)));
  }
}

.studio-hero-waveform.is-peak rect {
  animation: studio-waveform-peak 0.4s ease-out;
}

@keyframes studio-waveform-peak {
  0% {
    transform: scaleY(1);
    filter: drop-shadow(0 0 4px rgba(111, 168, 220, 0.55));
  }
  40% {
    transform: scaleY(1.9);
    filter: drop-shadow(0 0 10px rgba(111, 168, 220, 0.95));
  }
  100% {
    transform: scaleY(1);
    filter: drop-shadow(0 0 4px rgba(111, 168, 220, 0.55));
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-hero-waveform rect,
  .studio-hero-waveform.is-live rect,
  .studio-hero-waveform.is-peak rect {
    animation: none;
  }
}

.studio-hero-text p {
  max-width: 760px;
  margin: 0 auto;

  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.6;

  color: var(--color-text-muted);
}

.studio-hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);

  width: 100%;
  max-width: 1140px;
}

.studio-hero-media {
  width: 100%;
  aspect-ratio: 1 / 1;

  border: 1.5px solid rgba(111, 168, 220, 0.55);
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(111, 168, 220, 0.18);
}

/* ----------------------------------------
   LO QUE HACEMOS + EQUIPO
---------------------------------------- */

.studio-work {
  padding: 120px max(5%, calc((100% - var(--container-max)) / 2));

  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.studio-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 90px);

  max-width: var(--container-max);
  margin: 0 auto;
}

.studio-work-list .index-num {
  display: block;
  margin-bottom: 12px;
}

.studio-work-items {
  margin-top: 30px;
}

.studio-work-items li {
  display: flex;
  align-items: baseline;
  gap: 16px;

  padding: 18px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: 0.01em;

  color: var(--color-text);
}

.studio-work-items li h3 {
  font: inherit;
  color: inherit;
}

.studio-work-items li::before {
  content: "";
  flex-shrink: 0;

  width: 8px;
  height: 8px;
  margin-bottom: 0.35em;
  border-radius: 50%;

  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(111, 168, 220, 0.5);
}

.studio-work-items li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-gear {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  border: 1.5px solid rgba(111, 168, 220, 0.55);
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(111, 168, 220, 0.18);

  overflow: hidden;
}

.studio-gear-heading {
  margin: 0;
}

.studio-gear-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;

  padding: clamp(22px, 3vw, 30px) clamp(24px, 3vw, 34px);

  background: none;
  border: none;

  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;

  color: var(--color-text);
}

.studio-gear-title-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.studio-gear-eq {
  flex-shrink: 0;

  width: 14px;
  height: 12px;
}

.studio-gear-eq rect {
  fill: var(--color-accent);

  transform-box: fill-box;
  transform-origin: bottom;

  animation: studio-gear-eq-bounce 1.1s ease-in-out infinite;
}

.studio-gear-eq rect:nth-child(1) {
  animation-delay: 0s;
}

.studio-gear-eq rect:nth-child(2) {
  animation-delay: 0.2s;
}

.studio-gear-eq rect:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes studio-gear-eq-bounce {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-gear-eq rect {
    animation: none;
  }
}

.studio-gear-list {
  padding: 0 clamp(24px, 3vw, 34px) clamp(22px, 3vw, 30px);
}

.studio-gear-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;

  padding: 16px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-gear-item-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--color-text-muted);
}

.studio-gear-item-value {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  text-align: right;

  color: var(--color-text);
}

/* ----------------------------------------
   DETRÁS DEL ESTUDIO
---------------------------------------- */

.studio-behind {
  position: relative;

  min-height: 92vh;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border-top: 1px solid rgba(255, 255, 255, 0.07);

  overflow: hidden;
}

.studio-behind-media {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.studio-behind::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;

  height: 68%;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(5, 7, 10, 0.6) 45%,
    rgba(5, 7, 10, 0.94) 100%
  );

  pointer-events: none;
}

.studio-behind-panel {
  position: relative;
  z-index: 2;

  max-width: 520px;
  margin: 0 max(5%, calc((100% - var(--container-max)) / 2));
  padding-bottom: clamp(60px, 9vw, 110px);
}

.studio-behind-panel h2 {
  margin: 14px 0 20px;

  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;

  color: var(--color-text);
}

.studio-behind-panel p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;

  color: var(--color-text-muted);
}

.studio-behind-panel p + p {
  margin-top: 10px;
}

/* ----------------------------------------
   CTA FINAL
---------------------------------------- */

.studio-cta {
  padding: 120px 5%;

  border-top: 1px solid rgba(255, 255, 255, 0.07);

  text-align: center;
}

.studio-cta-inner {
  position: relative;
  z-index: 1;

  max-width: 640px;
  margin: 0 auto;
}

.studio-hero-meta-small {
  display: inline-block;
  margin-bottom: 22px;

  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--color-text-muted);
}

.studio-cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 1;

  color: var(--color-text);
}

.studio-cta p {
  margin: 22px 0 40px;

  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;

  color: var(--color-text-muted);
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */

@media (max-width: 768px) {
  .studio-hero {
    padding-top: 110px;
  }

  .studio-hero-grid {
    gap: 40px;
    padding: 50px 0 50px;
  }

  .studio-hero-gallery {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .studio-work {
    padding: 70px 6% 90px;
  }

  .studio-work-grid {
    grid-template-columns: 1fr;
  }

  .studio-behind {
    min-height: 80vh;
  }

  .studio-behind-panel {
    margin: 0 6%;
    text-align: center;
  }

  .studio-cta {
    padding: 90px 6%;
  }
}

@media (max-width: 480px) {
  .studio-hero-meta {
    font-size: 0.62rem;
    gap: 10px 8px;
  }

  .studio-hero-text h1 {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }

  .studio-gear-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .studio-gear-item-value {
    text-align: left;
  }
}

/* ========================================
   PÁGINAS LEGALES (Privacidad / Términos)
======================================== */

.legal-page {
  padding: 150px max(5%, calc((100% - var(--container-max)) / 2)) 100px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  margin: 6px 0 8px;

  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;

  color: var(--color-text);
}

.legal-updated {
  margin-bottom: 40px;

  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.legal-content h2 {
  margin: 36px 0 10px;

  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;

  color: var(--color-text);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--color-text);
}

/* ========================================
   PÁGINA 404
======================================== */

.not-found {
  min-height: 90vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 150px 6% 100px;
  text-align: center;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 400;
  line-height: 1;

  color: var(--color-accent);
}

.not-found h1 {
  margin-top: 10px;

  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;

  color: var(--color-text);
}

.not-found p {
  max-width: 460px;
  margin: 16px 0 0;

  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;

  margin-top: 36px;
}

.not-found-secondary {
  margin-top: 40px;

  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.not-found-secondary a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========================================
   LIGHTBOX (galería del hero de estudio)
======================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(5, 7, 10, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(245, 245, 245, 0.25);
  border-radius: 50%;
  background: rgba(5, 7, 10, 0.6);
  color: var(--color-text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;

  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* ========================================
   COOKIE BANNER
======================================== */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
  background: #0b0f16;
  color: var(--color-text);
  border: 1px solid rgba(111, 168, 220, 0.25);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  color: var(--color-text-muted);
}

.cookie-banner-options[hidden] {
  display: none;
}

.cookie-banner-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cookie-banner-options strong {
  color: var(--color-text);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--color-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-ghost {
  background: transparent;
  color: var(--color-accent);
}

.cookie-btn-primary {
  background: var(--color-accent);
  color: #05070a;
}

@media (max-width: 480px) {
  .cookie-btn {
    flex: 1 1 100%;
  }
}

/* En pantallas grandes los títulos con salto de línea manual van en una sola línea. */
@media (min-width: 1025px) {
  br.br-small {
    display: none;
  }
}
