/* ============================================================
   HYPERZAS — Hoja de estilos
   Paleta estricta:
   --deep   #001A2E  Azul profundo
   --steel  #3A6D82  Azul acero (acento)
   --mist   #CDD3D6  Gris niebla
   --ice    #F8FBFE  Blanco hielo
   ============================================================ */

:root {
  --deep: #001a2e;
  --steel: #3a6d82;
  --mist: #cdd3d6;
  --ice: #f8fbfe;

  /* Variaciones por opacidad de los 4 colores base */
  --steel-12: rgba(58, 109, 130, 0.12);
  --steel-20: rgba(58, 109, 130, 0.2);
  --steel-35: rgba(58, 109, 130, 0.35);
  --deep-06: rgba(0, 26, 46, 0.06);
  --deep-10: rgba(0, 26, 46, 0.1);
  --deep-65: rgba(0, 26, 46, 0.65);
  --ice-70: rgba(248, 251, 254, 0.7);
  --ice-12: rgba(248, 251, 254, 0.12);
  --mist-50: rgba(205, 211, 214, 0.5);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1440px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(0, 26, 46, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--deep);
  background: var(--ice);
  line-height: 1.65;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 3rem);
}

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--steel);
  color: var(--ice);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  --btn-bg: var(--steel);
  --btn-fg: var(--ice);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
  will-change: transform;
}
.btn__icon {
  flex: none;
}

.btn--primary {
  background: var(--steel);
  color: var(--ice);
  box-shadow: 0 10px 24px -12px var(--steel);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px var(--steel);
  background: #44809a; /* opacidad/tono derivado del acero */
}

/* Variante grande y llamativa para CTAs principales */
.btn--lg {
  font-size: 1.12rem;
  padding: 1.1rem 2.1rem;
  gap: 0.7rem;
}
.btn--lg .btn__icon {
  width: 22px;
  height: 22px;
}
.btn--cta {
  position: relative;
  box-shadow:
    0 14px 30px -10px var(--steel),
    0 0 0 0 var(--steel-35);
  animation: cta-pulse 2.8s var(--ease) infinite;
}
.btn--cta:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -10px var(--steel);
}
@keyframes cta-pulse {
  0% {
    box-shadow:
      0 14px 30px -10px var(--steel),
      0 0 0 0 var(--steel-35);
  }
  70% {
    box-shadow:
      0 14px 30px -10px var(--steel),
      0 0 0 14px rgba(58, 109, 130, 0);
  }
  100% {
    box-shadow:
      0 14px 30px -10px var(--steel),
      0 0 0 0 rgba(58, 109, 130, 0);
  }
}

.btn--ghost {
  background: transparent;
  color: var(--ice);
  border-color: var(--ice-70);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ice);
  background: var(--ice-12);
}

.btn--light {
  background: var(--ice);
  color: var(--deep);
}
.btn--light:hover {
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ice);
  border-bottom: 1px solid var(--mist);
  box-shadow: 0 2px 16px -10px rgba(0, 26, 46, 0.35);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand__logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: none;
}
.brand__logo--invert {
  /* El logo es azul oscuro; lo invertimos a blanco hielo para el footer oscuro */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__menu a {
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__menu a:not(.nav__cta):hover {
  color: var(--steel);
}
.nav__menu a:not(.nav__cta):hover::after {
  transform: scaleX(1);
}

.nav__menu a.nav__cta {
  background: var(--steel);
  color: var(--ice) !important;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px -10px var(--steel);
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.nav__menu a.nav__cta:hover {
  color: var(--ice) !important;
  background: #44809a;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px var(--steel);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--deep);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO — split de dos columnas (texto + visual circular)
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(
      140% 120% at 100% 0%,
      rgba(58, 109, 130, 0.28) 0%,
      transparent 55%
    ),
    var(--deep);
  color: var(--ice);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(4rem, 10vh, 7rem);
}
.hero__content {
  position: relative;
  text-align: left;
  max-width: 680px;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--steel);
}
.hero__title {
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.3rem;
}
.hero__title .accent {
  color: var(--steel);
}
.hero__subtitle {
  font-size: clamp(1.02rem, 1rem + 0.35vw, 1.22rem);
  color: var(--mist);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}
.hero__points {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2.1rem;
}
.hero__points li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ice);
  font-size: 1rem;
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 0 4px var(--steel-20);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  color: var(--mist);
  font-size: 0.9rem;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__badges li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel);
}

/* --- Visual circular a la derecha --- */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.hero__rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--steel-35);
  background: radial-gradient(
    circle,
    rgba(58, 109, 130, 0.18) 0%,
    transparent 62%
  );
}
.hero__rings::before,
.hero__rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--steel-20);
}
.hero__rings::before {
  inset: 9%;
  border-style: dashed;
  animation: ring-spin 60s linear infinite;
}
.hero__rings::after {
  inset: 20%;
  border-color: var(--steel-35);
}
@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}
.hero__canvas {
  position: absolute;
  inset: 11%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 64%, transparent 70%);
  mask: radial-gradient(circle, #000 64%, transparent 70%);
}
.hero__logo {
  position: relative;
  z-index: 1;
  width: 40%;
  display: grid;
  place-items: center;
  border-radius: 26%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--steel-35),
    0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.hero__logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SECCIONES (estructura común)
   ============================================================ */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section--dark {
  background: var(--deep);
  color: var(--ice);
  position: relative;
  isolation: isolate;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    circle,
    rgba(205, 211, 214, 0.18) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}
.section--soft {
  background: linear-gradient(180deg, #e8f0f5 0%, #d8e5ed 100%);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.section__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.9rem;
}
.section__eyebrow--light {
  color: var(--mist);
}
.section__title {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.section__lead {
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.18rem);
  color: var(--deep-65);
}
.section__lead--light {
  color: var(--mist);
}

/* ============================================================
   SERVICIOS — Slider (carrusel nativo, scroll-snap)
   ============================================================ */
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}
.slider__nav {
  display: flex;
  gap: 0.7rem;
  flex: none;
}
.slider__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--mist);
  background: var(--ice);
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}
.slider__btn:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: var(--ice);
  transform: translateY(-2px);
}
.slider__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: var(--ice);
  color: var(--steel);
  border-color: var(--mist);
}

.slider {
  position: relative;
  overflow: hidden;
  margin-inline: calc(-1 * clamp(1.1rem, 4vw, 3rem));
  padding-inline: clamp(1.1rem, 4vw, 3rem);
}
.slider:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.slider__track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 0.5rem 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slider__track::-webkit-scrollbar {
  display: none;
}
.slider.is-dragging .slider__track {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.slide {
  flex: 0 0 auto;
  width: calc((100% - 2 * 1.4rem) / 3);
  scroll-snap-align: start;
  display: flex;
}
.card {
  background: var(--ice);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card__index {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--steel-20);
  letter-spacing: -0.03em;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--steel-35);
}
.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--steel-12);
  color: var(--steel);
  margin-bottom: 0.4rem;
}
.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: 1.22rem;
  font-weight: 600;
}
.card__text {
  color: var(--deep-65);
  font-size: 0.98rem;
}
.card__link {
  margin-top: auto;
  color: var(--steel);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card__link span {
  transition: transform 0.25s var(--ease);
}
.card__link:hover span {
  transform: translateX(4px);
}

.card--accent {
  background: var(--deep);
  color: var(--ice);
  border-color: var(--deep);
  justify-content: center;
}
.card--accent::before {
  display: none;
}
.card--accent .card__text {
  color: var(--mist);
}
.card--accent .btn {
  margin-top: 0.6rem;
  align-self: flex-start;
}

/* Puntos indicadores */
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
  cursor: pointer;
  transition:
    width 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.slider__dot.is-active {
  width: 30px;
  background: var(--steel);
}

/* ============================================================
   POR QUÉ — Features
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.feature {
  border-top: 1px solid var(--ice-12);
  padding-top: 1.4rem;
}
.feature--light {
  border-top: none;
  border-left: 3px solid var(--steel);
  background: var(--ice);
  border-radius: 12px;
  padding: 2rem 2rem 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -6px rgba(0, 26, 46, 0.1);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.feature--light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(0, 26, 46, 0.15);
}
.feature__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--steel);
  display: block;
  margin-bottom: 0.7rem;
}
.feature--light .feature__num {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 4.5rem;
  line-height: 1;
  margin: 0;
  color: rgba(58, 109, 130, 0.1);
}
.feature__title {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.feature__text {
  color: var(--mist);
  font-size: 0.98rem;
}
.feature--light .feature__title {
  color: var(--deep);
  font-size: 1.22rem;
  font-weight: 700;
}
.feature--light .feature__text {
  color: var(--deep-65);
}

/* ============================================================
   PROCESO — Steps
   ============================================================ */
/* ============================================================
   PROCESO — Timeline horizontal
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: clamp(1rem, 4vw, 2rem);
}
/* Línea conectora entre pasos */
.timeline::before {
  content: "";
  position: absolute;
  top: 21px; /* centro del marcador */
  left: calc(12.5% + 21px); /* desde el centro del primer número */
  right: calc(12.5% + 21px);
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--steel-35),
    var(--steel),
    var(--steel-35)
  );
}
.timeline__step {
  padding: 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.timeline__step:first-child {
  padding-left: 0;
}
.timeline__step:last-child {
  padding-right: 0;
}

.timeline__marker {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  flex: none;
}
.timeline__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--deep);
  border: 1.5px solid var(--steel);
  color: var(--steel);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 5px var(--deep);
}
.timeline__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.timeline__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.timeline__title {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ice);
}
.timeline__text {
  color: var(--mist);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Responsive: 2 columnas en tablet, 1 en móvil */
@media (max-width: 860px) {
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }
  .timeline::before {
    top: 21px;
    left: calc(25% + 21px);
    right: calc(25% + 21px);
    width: calc(50% - 42px);
  }
  .timeline__step:nth-child(2)::before,
  .timeline__step:nth-child(4)::before {
    display: none;
  }
  .timeline__step {
    padding: 0;
  }
}
@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .timeline::before {
    display: none;
  }
  .timeline__step {
    flex-direction: row;
    gap: 1.2rem;
    align-items: flex-start;
  }
  .timeline__marker {
    margin-top: 0.1rem;
  }
}

/* ============================================================
   CLIENTES
   ============================================================ */
.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.logos li {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--ice);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.logos li:hover {
  border-color: var(--steel-35);
  box-shadow: 0 4px 16px -4px rgba(0, 26, 46, 0.1);
}
.logos li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
}
.logos li img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.2s var(--ease);
}
.logos li:hover img {
  filter: grayscale(0) opacity(1);
}
@media (max-width: 860px) {
  .logos {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }
}
.quote {
  margin: 0;
  max-width: 760px;
  border-left: 3px solid var(--steel);
  padding-left: 1.6rem;
}
.quote blockquote {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.4;
}
.quote figcaption {
  color: var(--deep-65);
  font-size: 0.95rem;
}
.quote__note {
  color: var(--steel);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__channels {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
  max-width: 360px;
}
.contact__channels .btn {
  width: 100%;
}
.contact__mail {
  color: var(--mist);
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid var(--steel);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}
.contact__mail:hover {
  color: var(--ice);
}

.form {
  background: var(--ice);
  color: var(--deep);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
.field label span {
  color: var(--steel);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--deep);
  background: var(--ice);
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px var(--steel-20);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3402f; /* derivado para error, accesible AA */
}
.field__error {
  display: block;
  color: #b3402f;
  font-size: 0.82rem;
  margin-top: 0.35rem;
  min-height: 1em;
}
.form__status {
  margin-top: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--steel);
}
.form__note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--deep-65);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--deep);
  color: var(--mist);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--steel-35) 15%,
    var(--steel) 35%,
    var(--ice) 50%,
    var(--steel) 65%,
    var(--steel-35) 85%,
    transparent 100%
  );
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ice-12);
}
.brand--footer {
  margin-bottom: 1rem;
}
.brand--footer .brand__logo {
  height: 56px;
}
.footer__tagline {
  font-size: 0.95rem;
  max-width: 34ch;
  color: var(--mist);
}
.footer__title {
  font-size: 0.95rem;
  color: var(--ice);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.footer__col ul li {
  margin-bottom: 0.6rem;
}
.footer__col a {
  color: var(--mist);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover {
  color: var(--ice);
}
.footer__social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.2rem;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(248, 251, 254, 0.08);
  color: var(--mist);
  border: 1px solid rgba(248, 251, 254, 0.12);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.footer__social a:hover {
  background: var(--steel);
  color: var(--ice);
  border-color: var(--steel);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--mist-50);
}
.footer__legal a {
  color: var(--mist-50);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.footer__legal a:hover {
  color: var(--mist);
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 200;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--steel);
  color: var(--ice);
  box-shadow: 0 12px 28px -8px rgba(0, 26, 46, 0.6);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--steel);
  animation: wa-pulse 2.4s var(--ease) infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 34px -8px rgba(0, 26, 46, 0.7);
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ============================================================
   REVEAL al hacer scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .slide {
    width: calc((100% - 1.4rem) / 2);
  }
}

@media (max-width: 860px) {
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ice);
    border-bottom: 1px solid var(--mist);
    padding: 0.5rem 1.2rem 1.2rem;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open {
    transform: translateY(0);
  }
  .nav__menu li {
    border-bottom: 1px solid var(--mist);
  }
  .nav__menu a {
    display: block;
    padding: 0.9rem 0.2rem;
  }
  .nav__cta {
    text-align: center;
    margin-top: 0.8rem;
    padding: 0.8rem;
  }
  .nav__menu li:last-child {
    border-bottom: 0;
  }

  .contact {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 8vw, 3.5rem);
    text-align: center;
  }
  .hero__content {
    max-width: 640px;
    margin-inline: auto;
  }
  .hero__points {
    display: inline-grid;
    text-align: left;
    justify-self: center;
  }
  .hero__actions,
  .hero__badges {
    justify-content: center;
  }
  .hero__visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: unset;
    margin: 0;
    pointer-events: none;
  }
  .hero__rings,
  .hero__logo {
    display: none;
  }
  .hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    -webkit-mask: none;
    mask: none;
    opacity: 0.25;
  }

  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .slide {
    width: 84%;
  }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* ============================================================
   LEGAL PAGES — Términos / Privacidad
   ============================================================ */
.legal-hero {
  background: var(--deep);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  padding-top: calc(76px + clamp(3.5rem, 8vw, 5.5rem));
}
.legal-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.legal-hero__eyebrow a {
  color: var(--mist);
  transition: color 0.2s var(--ease);
}
.legal-hero__eyebrow a:hover {
  color: var(--ice);
}
.legal-hero__eyebrow span {
  color: var(--steel-35);
}
.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ice);
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 1rem;
}
.legal-hero__meta {
  font-size: 0.9rem;
  color: var(--mist);
}
.legal-body {
  background: var(--ice);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.legal-doc {
  max-width: 72ch;
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep);
  margin-top: 2.8rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--mist);
}
.legal-doc h2:first-of-type {
  margin-top: 0;
}
.legal-doc p {
  color: var(--deep-65);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
.legal-doc ul,
.legal-doc ol {
  color: var(--deep-65);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
  padding-left: 1.4rem;
}
.legal-doc li {
  margin-bottom: 0.35rem;
}
.legal-doc strong {
  color: var(--deep);
  font-weight: 600;
}
.legal-doc a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.legal-doc a:hover {
  color: var(--deep);
}
.legal-doc .legal-note {
  background: rgba(58, 109, 130, 0.08);
  border-left: 3px solid var(--steel);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin-block: 1.5rem;
}
.legal-doc .legal-note p {
  margin-bottom: 0;
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .wa-float::after {
    display: none;
  }
}
