/* =========================================================
   JR&Partners — Landing page
   Estética: negro profundo, tipografía sans geométrica,
   tarjetas de cristal y acento azul hielo.
   ========================================================= */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --fg: #f7f7f7;
  --muted: rgba(247, 247, 247, 0.72);
  --muted-2: rgba(247, 247, 247, 0.48);
  --card: #0b0b0c;
  --card-2: #111112;
  --line: rgba(210, 212, 216, 0.16);
  --line-soft: rgba(210, 212, 216, 0.08);
  --blue-deep: #0f1024;
  --silver-blue: #3d516c;
  --ice: #a6cad6;
  --pearl: #d2d4d8;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 18px;
  --r-xl: 24px;
  --max: 1160px;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Allison", cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ritmo-seccion: clamp(5.5rem, 3.6rem + 6vw, 9rem);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(15, 16, 36, 0.24) 0%, rgba(15, 16, 36, 0.13) 32%, rgba(15, 16, 36, 0.05) 58%, transparent 100%) 0 0 / 100% 1180px no-repeat,
    var(--bg);
}

::selection {
  color: #fff;
  background: rgba(166, 202, 214, 0.32);
}

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

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

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

.section {
  padding: var(--ritmo-seccion) 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2,
.about h2 {
  font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.5rem);
}

/* Segunda línea del título en gris, como "Jugando a escala / Opera en otra liga" */
.muted {
  display: block;
  color: var(--muted-2);
}

.section-head p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ice);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: -0.005em;
}

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

/* ---------- Logo ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__word {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__word span {
  color: var(--ice);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--fg);
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 16px 42px rgba(166, 202, 214, 0.2);
}

.btn--primary:hover {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34), 0 18px 52px rgba(166, 202, 214, 0.38);
}

.btn--ghost {
  border-color: var(--line);
  background: linear-gradient(rgba(247, 247, 247, 0.08), rgba(247, 247, 247, 0.02));
  color: var(--fg);
  backdrop-filter: blur(14px);
}

.btn--ghost:hover {
  border-color: rgba(210, 212, 216, 0.4);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

/* Halo que respira en el botón principal */
.cta-luz {
  animation: cta-aura 7s ease-in-out 1.5s 5;
}

@keyframes cta-aura {
  0%, 16%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 16px 42px rgba(166, 202, 214, 0.2);
  }
  8% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34), 0 18px 52px rgba(166, 202, 214, 0.38);
  }
}

/* ---------- Glass / cards ---------- */

.glass-panel {
  border: 1px solid var(--line);
  background: linear-gradient(rgba(247, 247, 247, 0.11), rgba(247, 247, 247, 0.035)), rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(22px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 24px 80px rgba(0, 0, 0, 0.35);
}

.card-eco {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  background-image: radial-gradient(120% 55% at 50% 0, rgba(255, 255, 255, 0.055), transparent 65%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 32px 80px -40px rgba(0, 0, 0, 0.9);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card-eco:hover {
  border-color: rgba(166, 202, 214, 0.32);
  transform: translateY(-3px);
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
  border-color: var(--line-soft);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a:not(.btn) {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--fg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--fg);
  padding: 8px;
  cursor: pointer;
}

/* ---------- Desplegable de Servicios ---------- */

.nav__dropdown {
  position: relative;
}

.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.2s;
}

.nav__trigger:hover,
.nav__dropdown.is-open .nav__trigger {
  color: var(--fg);
}

.nav__chev {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.nav__dropdown.is-open .nav__chev {
  transform: rotate(180deg);
}

.nav__menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 300px;
  padding: 8px;
  border-radius: var(--r-md);
  background: linear-gradient(rgba(247, 247, 247, 0.08), rgba(247, 247, 247, 0.03)), rgba(10, 10, 10, 0.92);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Puente invisible para que el menú no se cierre al bajar el ratón */
.nav__menu::before {
  content: "";
  position: absolute;
  inset: -18px 0 auto;
  height: 18px;
}

.nav__dropdown.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (min-width: 761px) {
  .nav__dropdown:hover .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .nav__dropdown:hover .nav__chev {
    transform: rotate(180deg);
  }
  .nav__dropdown:hover .nav__trigger {
    color: var(--fg);
  }
}

.nav__menu a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  transition: background 0.2s ease;
}

.nav__menu a:hover,
.nav__menu a:focus-visible,
.nav__menu a[aria-current="page"] {
  background: rgba(166, 202, 214, 0.08);
  outline: none;
}

.nav__menu strong {
  display: block;
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav__menu span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.4;
}

.nav__menu a[aria-current="page"] strong {
  color: var(--ice);
}

/* Cabecera de las páginas de servicio */
.hero--page {
  padding-bottom: 90px;
}

@media (max-width: 760px) {
  .nav__dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .nav__trigger {
    font-size: 1rem;
  }
  .nav__menu {
    position: static;
    display: none;
    width: 100%;
    max-width: 360px;
    opacity: 1;
    visibility: visible;
    transform: none;
    text-align: center;
  }
  .nav__menu::before {
    display: none;
  }
  .nav__dropdown.is-open .nav__menu {
    display: block;
    margin-top: 14px;
    transform: none;
  }
}

/* ---------- Hero / VSL ---------- */

.hero {
  position: relative;
  padding: 170px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* Haces de luz verticales en la parte superior */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 22px, rgba(255, 255, 255, 0.05) 22px 23px, rgba(255, 255, 255, 0) 23px 58px),
    radial-gradient(60% 70% at 50% 0%, rgba(166, 202, 214, 0.2), rgba(61, 81, 108, 0.08) 45%, transparent 75%);
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 80%);
}

.hero > .container {
  position: relative;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
}

.hero__subtitle {
  max-width: 620px;
  margin: 0 auto 56px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
}

.vsl {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(166, 202, 214, 0.12), transparent 70%),
    linear-gradient(180deg, #0d0f17, #050506);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px -30px rgba(166, 202, 214, 0.18), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.vsl iframe,
.vsl video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vsl__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.vsl__play {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--fg);
  color: #0a0a0a;
  box-shadow: 0 0 0 10px rgba(247, 247, 247, 0.08), 0 20px 60px rgba(166, 202, 214, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vsl__placeholder:hover .vsl__play {
  transform: scale(1.06);
  box-shadow: 0 0 0 16px rgba(247, 247, 247, 0.1), 0 24px 70px rgba(166, 202, 214, 0.42);
}

.vsl__play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 52px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted-2);
}

/* ---------- Logos ---------- */

.logos {
  padding: 30px 0 70px;
}

.logos__title {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 30px;
}

.logos__track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logos__row {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.logos__row:hover {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  align-items: center;
  height: 44px;
  color: var(--pearl);
  opacity: 0.78;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s;
}

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

/* Logos en imagen (con fondo negro): el negro se funde con la web y se pasan a gris */
.logo-item {
  height: 80px;
}

.logo-item img {
  height: var(--h, 48px);
  width: auto;
  max-width: none;
  filter: grayscale(1) brightness(1.15);
  mix-blend-mode: screen;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- About ---------- */

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

.about__photo-wrap {
  position: relative;
}

.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(166, 202, 214, 0.1), transparent 70%),
    var(--card-2);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.about__photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.about__badge {
  position: absolute;
  right: -24px;
  bottom: 40px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  line-height: 1.3;
  font-size: 0.86rem;
  color: var(--muted);
}

.about__badge strong {
  display: block;
  color: var(--fg);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.about h2 {
  margin-bottom: 28px;
}

.about p {
  color: var(--muted);
}

.signature {
  display: block;
  margin: -6px 0 6px;
  font-family: var(--font-script);
  font-size: 4rem;
  line-height: 1;
  color: var(--fg);
  opacity: 0.9;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 34px 0 40px;
}

.stat {
  padding: 20px;
  border-radius: var(--r-md);
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.stat span {
  font-size: 0.86rem;
  color: var(--muted-2);
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 36px 30px 38px;
  text-align: center;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid rgba(166, 202, 214, 0.3);
  background: radial-gradient(circle at 50% 30%, rgba(166, 202, 214, 0.22), rgba(166, 202, 214, 0.03) 70%);
  color: var(--ice);
  box-shadow: 0 0 40px rgba(166, 202, 214, 0.14);
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

.card p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  padding: 32px 30px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(166, 202, 214, 0.3);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.step p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px 28px;
}

.testimonial__stars {
  margin-bottom: 18px;
  color: var(--ice);
  font-size: 0.9rem;
  letter-spacing: 3px;
}

.testimonial blockquote {
  flex: 1;
  margin: 0 0 28px;
  color: var(--fg);
  font-size: 1.02rem;
  line-height: 1.6;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ice);
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
}

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

.testimonial__author strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
}

.testimonial__author span {
  font-size: 0.84rem;
  color: var(--muted-2);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 84px 48px;
  border-radius: var(--r-xl);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(166, 202, 214, 0.22), transparent 70%);
}

.cta-band {
  isolation: isolate;
}

.cta-band h2 {
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem);
}

.cta-band p {
  max-width: 520px;
  margin: 0 auto 34px;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact__info h3 {
  margin-bottom: 28px;
}

.contact__steps {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 24px;
}

.contact__steps li {
  display: flex;
  gap: 16px;
}

.contact__steps li > span {
  flex-shrink: 0;
  height: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(166, 202, 214, 0.3);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.contact__steps strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.contact__steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact__direct {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
  color: var(--muted-2);
}

.contact__direct a {
  display: block;
  margin-top: 4px;
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 500;
}

.contact__direct a:hover {
  color: var(--ice);
}

.form {
  padding: 36px;
  border-radius: var(--r-xl);
}

.form__hp {
  position: absolute;
  left: -9999px;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.45);
  color: var(--fg);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6cad6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

.field select:invalid {
  color: var(--muted-2);
}

.field select option {
  background: #111112;
  color: var(--fg);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(247, 247, 247, 0.32);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(166, 202, 214, 0.6);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(166, 202, 214, 0.12);
}

.field__error {
  display: none;
  color: #f2a7a7;
  font-size: 0.8rem;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: rgba(242, 167, 167, 0.6);
}

.field.is-invalid .field__error {
  display: block;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #0a0a0a;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.check__box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
}

.check input:checked + .check__box {
  background: var(--ice);
  border-color: var(--ice);
}

.check input:checked + .check__box svg {
  opacity: 1;
}

.check input:focus-visible + .check__box {
  box-shadow: 0 0 0 4px rgba(166, 202, 214, 0.2);
}

.field.is-invalid .check__box {
  border-color: rgba(242, 167, 167, 0.6);
}

.link {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(166, 202, 214, 0.5);
}

.form__submit {
  width: 100%;
  padding: 16px 26px;
}

.form__submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form__status {
  margin: 14px 0 0;
  min-height: 1.2em;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.form__status.is-error {
  color: #f2a7a7;
}

/* Estado de éxito */
.form__success {
  padding: 40px 10px;
  text-align: center;
}

.form__success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid rgba(166, 202, 214, 0.35);
  background: radial-gradient(circle at 50% 30%, rgba(166, 202, 214, 0.25), rgba(166, 202, 214, 0.03) 70%);
  color: var(--ice);
}

.form__success-icon svg {
  width: 28px;
  height: 28px;
}

.form__success p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  padding: 50px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.88rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__links {
  display: flex;
  gap: 26px;
}

.footer__links a:hover {
  color: var(--fg);
}

.footer__legal {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
}

.footer__legal a:hover {
  color: var(--fg);
}

/* ---------- Páginas legales ---------- */

.legal-hero {
  padding-bottom: 60px;
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 52px;
  border-radius: var(--r-xl);
  color: var(--muted);
  font-size: 1rem;
}

.legal h2 {
  margin: 40px 0 14px;
  color: var(--fg);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--fg);
  font-weight: 600;
}

.legal a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(166, 202, 214, 0.4);
}

.legal__date {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--muted-2);
}

@media (max-width: 760px) {
  .logos__row {
    gap: 48px;
  }
  .logo-item {
    height: 64px;
  }
  .logo-item img {
    height: calc(var(--h, 48px) * 0.78);
  }
  .legal {
    padding: 30px 20px;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .logos__row,
  .cta-luz {
    animation: none;
  }
}

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

@media (max-width: 960px) {
  .about {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .about__photo-wrap {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .contact {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
  .services,
  .steps,
  .testimonials {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 16px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 22px;
    padding: 28px 16px 32px;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.is-open {
    display: flex;
  }
  .hero {
    padding: 130px 0 70px;
  }
  .vsl {
    border-radius: var(--r-lg);
  }
  .vsl__play {
    width: 66px;
    height: 66px;
  }
  .hero__ctas .btn {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .about__badge {
    right: 12px;
  }
  .cta-band {
    padding: 56px 22px;
  }
  .form {
    padding: 26px 18px;
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; }
.cookie-banner__text strong { color: var(--fg); }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; bottom: 12px; padding: 16px; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
