/* =========================
   OPTILUS — HOME
========================= */

:root {
  --teal: #0e818f;
  --cyan: #16b8c8;
  --cyan-light: #5ee0f0;
  --cyan-glow: #7ef4ff;
  --shadow-teal: rgba(14, 129, 143, 0.35);
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: white;
  overflow-x: hidden;
  overflow-y: hidden;
  background: #000;
  height: 100vh;
  min-height: 100vh;
}

/* BACKGROUND */
.bg-layer {
  display: none;
  pointer-events: none;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.78));
  z-index: -1;
  pointer-events: none;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

/* NAV */
nav {
  width: 100%;
  padding: 30px 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
}

.logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  height: 140px;
  transition: transform 0.25s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* HELP BUTTON */
.info-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.info-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(53, 210, 227, 0.14), transparent 72%);
  opacity: 0;
  transition: 0.25s ease;
}

.info-btn:hover::before {
  opacity: 1;
}

.info-btn:hover {
  transform: scale(1.08);
  border-color: #0e818f;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 40px rgba(14, 129, 143, 0.18);
}

.info-btn img {
  width: 67px;
  height: 67px;
  object-fit: contain;
  opacity: 0.92;
  transition: 0.25s ease;
}

.info-btn:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* HERO */
.hero {
  --hero-y: 0.85;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: clamp(calc(120px * var(--hero-y)), calc(13vh * var(--hero-y)), calc(152px * var(--hero-y))) 40px clamp(12px, 2vh, 24px);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-content {
  max-width: 1000px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding-top: 0;
}

/* BADGE */
.badge {
  --badge-s: 0.7225;
  font-size: calc(13px * var(--badge-s));
  letter-spacing: calc(7px * var(--badge-s));
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: clamp(calc(12px * var(--badge-s)), calc(2vh * var(--badge-s)), calc(22px * var(--badge-s)));
  display: inline-block;
  position: relative;
  padding-bottom: calc(10px * var(--badge-s));
}

.badge::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: rgba(143, 211, 255, 0.18);
}

.badge::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -30%;
  width: 35%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(143, 211, 255, 0.55), transparent);
  filter: blur(1px);
  opacity: 0.55;
  animation: badgeLight 5.5s ease-in-out infinite;
}

@keyframes badgeLight {
  0% {
    left: -30%;
    opacity: 0.2;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    left: 100%;
    opacity: 0.2;
  }
}

/* TITLE */
.hero-title {
  font-size: clamp(72px, 9.2vh, 105px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -5px;
  margin-bottom: clamp(10px, 1.5vh, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line-white {
  color: white;
}

.line-blue {
  color: #0e818f;
}

/* SUBTITLE */
.hero-subtitle {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 2.2vh, 24px);
  opacity: 0.82;
  margin-bottom: clamp(24px, 4vh, 48px);
  letter-spacing: 0.01em;
}

/* CTA — botón claro, destello celeste eléctrico */
.cta-main {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  text-decoration: none;
  isolation: isolate;
}

.cta-main::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  animation: ctaElectricAura 1.4s ease-in-out infinite;
}

@keyframes ctaElectricAura {
  0%,
  100% {
    opacity: 0.2;
    box-shadow:
      0 0 12px rgba(22, 184, 200, 0.25),
      0 0 24px rgba(126, 244, 255, 0.1);
  }
  50% {
    opacity: 0.95;
    box-shadow:
      0 0 22px rgba(22, 184, 200, 0.75),
      0 0 44px rgba(126, 244, 255, 0.45),
      0 0 64px rgba(94, 224, 240, 0.2);
  }
}

.cta-border-spin {
  display: none;
}

.cta-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 44px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(34, 118, 132, 0.96) 0%,
    rgba(22, 92, 106, 0.98) 52%,
    rgba(16, 72, 84, 1) 100%
  );
  border: 1px solid rgba(126, 244, 255, 0.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  box-shadow:
    0 5px 0 rgba(8, 42, 50, 0.85),
    0 8px 18px rgba(0, 0, 0, 0.32),
    -3px 0 12px rgba(0, 0, 0, 0.16),
    3px 0 12px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.28),
    inset 3px 0 0 rgba(255, 255, 255, 0.1),
    inset -3px 0 0 rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(126, 244, 255, 0.08) 42%,
    rgba(94, 224, 240, 0.55) 50%,
    rgba(126, 244, 255, 0.08) 58%,
    transparent 70%
  );
  transform: translateX(-120%) skewX(-18deg);
  opacity: 0;
  animation: ctaElectricSweep 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaElectricSweep {
  0%,
  18% {
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  52% {
    transform: translateX(120%) skewX(-18deg);
    opacity: 0.85;
  }
  68%,
  100% {
    transform: translateX(120%) skewX(-18deg);
    opacity: 0;
  }
}

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

.cta-arrow {
  font-size: 16px;
  font-weight: 400;
  color: var(--cyan-glow);
  line-height: 1;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.cta-main .cta-inner {
  transform: translateY(-2px);
  border-color: rgba(186, 252, 255, 0.85);
  box-shadow:
    0 5px 0 rgba(8, 42, 50, 0.8),
    0 10px 22px rgba(0, 0, 0, 0.28),
    -3px 0 14px rgba(0, 0, 0, 0.14),
    3px 0 14px rgba(0, 0, 0, 0.14),
    0 0 20px rgba(22, 184, 200, 0.65),
    0 0 40px rgba(126, 244, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    inset 3px 0 0 rgba(186, 252, 255, 0.2),
    inset -3px 0 0 rgba(0, 0, 0, 0.16);
}

.cta-main:hover .cta-inner {
  transform: translateY(-3px);
  border-color: rgba(210, 255, 255, 0.95);
  box-shadow:
    0 5px 0 rgba(8, 42, 50, 0.75),
    0 12px 26px rgba(0, 0, 0, 0.3),
    -3px 0 16px rgba(0, 0, 0, 0.12),
    3px 0 16px rgba(0, 0, 0, 0.12),
    0 0 28px rgba(22, 184, 200, 0.85),
    0 0 52px rgba(126, 244, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    inset 3px 0 0 rgba(210, 255, 255, 0.28),
    inset -3px 0 0 rgba(0, 0, 0, 0.14);
}

.cta-main .cta-arrow {
  color: #eaffff;
  text-shadow: 0 0 14px rgba(126, 244, 255, 0.85);
}

.cta-main:hover .cta-arrow {
  color: #fff;
  text-shadow:
    0 0 16px rgba(126, 244, 255, 0.95),
    0 0 28px rgba(94, 224, 240, 0.45);
}

.cta-active .cta-inner {
  transform: translateY(-1px);
}

/* LEFT FEATURES */
.hero-features {
  position: fixed;
  left: clamp(24px, 4vw, 64px);
  top: 50%;
  transform: translateY(-48%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
}

.hero-feature-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature-icon svg {
  width: 100%;
  height: 100%;
}

.hero-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-feature-line {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.hero-feature-sep {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 1px;
  margin: 4px 0 4px 36px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

/* BOTTOM RIGHT CERTS */
.hero-certs {
  position: fixed;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(100px, 14vh, 140px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.hero-cert {
  display: flex;
  align-items: flex-end;
}

.hero-cert-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.hero-cert-line {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
}

.hero-cert-line--dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
}

.hero-cert-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-light);
  box-shadow:
    0 0 8px var(--cyan-light),
    0 0 18px rgba(94, 224, 240, 0.65);
  animation: certPulse 2.8s ease-in-out infinite;
}

.hero-cert:nth-child(2) .hero-cert-dot {
  animation-delay: 1.4s;
}

@keyframes certPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.85);
    box-shadow:
      0 0 4px rgba(94, 224, 240, 0.4),
      0 0 8px rgba(94, 224, 240, 0.25);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow:
      0 0 10px var(--cyan-light),
      0 0 22px rgba(94, 224, 240, 0.75);
  }
}

/* FOOTER — anclado al pie de la interfaz */
.home-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: clamp(14px, 2.2vh, 28px) 24px clamp(16px, 2.5vh, 32px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.home-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.home-footer-text {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.home-footer-deco {
  position: relative;
  width: clamp(72px, 14vw, 140px);
  height: 1px;
  background: rgba(143, 211, 255, 0.18);
  flex-shrink: 0;
  overflow: hidden;
}

.home-footer-deco--left {
  background: linear-gradient(90deg, transparent, rgba(143, 211, 255, 0.18));
}

.home-footer-deco--right {
  background: linear-gradient(270deg, transparent, rgba(143, 211, 255, 0.18));
}

.home-footer-deco::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -30%;
  width: 35%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(143, 211, 255, 0.55), transparent);
  filter: blur(1px);
  opacity: 0.55;
  animation: badgeLight 5.5s ease-in-out infinite;
}

.home-footer-deco--right::after {
  animation: badgeLightReverse 5.5s ease-in-out infinite;
}

@keyframes badgeLightReverse {
  0% {
    left: 100%;
    opacity: 0.2;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    left: -30%;
    opacity: 0.2;
  }
}

/* MODAL — guía rápida */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #fafcfd 0%, #eef4f6 100%);
  border-radius: 28px;
  padding: 36px 32px 32px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal-content--instructions {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow-y: visible;
  padding: 30px 28px 26px;
  background: linear-gradient(135deg, rgba(18, 20, 21, 0.94) 0%, rgba(26, 29, 30, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-content--instructions .modal-eyebrow {
  color: var(--teal);
}

.modal-content--instructions .modal-title {
  color: #f5f5f5;
  margin-bottom: 22px;
}

@keyframes modalIn {
  from {
    transform: translateY(16px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.modal-title {
  text-align: center;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #1a2228;
  margin-bottom: 10px;
  line-height: 1.1;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-content--instructions .steps {
  flex: 0 0 auto;
  gap: 14px;
  justify-content: flex-start;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(14, 129, 143, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: stepIn 0.5s ease forwards;
  opacity: 0;
}

.modal-content--instructions .step {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 18px 20px 18px 56px;
}

.modal-content--instructions .step-num {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.step:nth-child(1) { animation-delay: 0.05s; }
.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.15s; }

@keyframes stepIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 129, 143, 0.22);
  box-shadow: 0 12px 32px rgba(14, 129, 143, 0.1);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #0e818f, #16b8c8);
  box-shadow: 0 6px 16px var(--shadow-teal);
}

.step h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1a2228;
  margin-bottom: 4px;
}

.modal-content--instructions .step h3 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 400;
  color: #4a5560;
  line-height: 1.45;
  text-align: center;
}

.modal-content--instructions .step-body {
  flex: 1;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  font-size: 22px;
  color: #1a2228;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.05);
  background: rgba(14, 129, 143, 0.12);
  color: #0e818f;
}

.modal-content--instructions .close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}

.modal-content--instructions .close-btn:hover {
  background: rgba(14, 129, 143, 0.14);
  color: var(--teal);
}

.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cta-main::after,
  .cta-inner::before,
  .badge::after,
  .home-footer-deco::after,
  .hero-cert-dot,
  .bg-layer,
  .bg-video,
  body::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-features {
    display: none;
  }

  .hero {
    flex-direction: column;
    justify-content: flex-start;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding-top: clamp(calc(108px * var(--hero-y, 0.85)), calc(14vh * var(--hero-y, 0.85)), calc(140px * var(--hero-y, 0.85)));
    padding-bottom: clamp(16px, 2vh, 28px);
  }

  .hero-content {
    display: contents;
  }

  .badge {
    order: 1;
    margin-bottom: clamp(12px, 2vh, 20px);
  }

  .hero-title {
    order: 2;
    margin-bottom: clamp(8px, 1.2vh, 10px);
  }

  .hero-subtitle {
    order: 3;
  }

  .hero-certs {
    order: 5;
    position: static;
    align-items: center;
    margin-top: clamp(10px, 1.8vh, 16px);
    margin-bottom: clamp(48px, 7vh, 64px);
    gap: clamp(6px, 1vh, 10px);
    transform: none;
  }

  .cta-main {
    --cta-s: 1.1;
    order: 4;
    margin-top: clamp(104px, 38vh, 260px);
    margin-bottom: 0;
  }

  .cta-inner {
    padding: calc(17px * var(--cta-s)) calc(44px * var(--cta-s));
    font-size: calc(11px * var(--cta-s));
    gap: calc(10px * var(--cta-s));
  }

  .cta-arrow {
    font-size: calc(16px * var(--cta-s));
  }

  .hero-cert {
    align-items: center;
  }

  .hero-cert-copy {
    align-items: center;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 24px 28px;
  }

  .logo img {
    height: 100px;
  }

  .hero-title {
    font-size: 64px;
    letter-spacing: -3px;
  }

  .hero-subtitle {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .bg-video {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
  }

  .bg-layer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: url("assets/movil2.jpeg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -2;
    animation: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .hero {
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    overflow: hidden;
    padding-top: clamp(calc(112px * var(--hero-y, 0.85)), calc(14vh * var(--hero-y, 0.85)), calc(128px * var(--hero-y, 0.85)));
    padding-bottom: clamp(12px, 2vh, 20px);
  }

  .hero-subtitle {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: calc(108px * var(--hero-y, 0.85)) 18px 24px;
  }

  .hero-title {
    font-size: 44px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }

  .badge {
    margin-bottom: 14px;
    font-size: calc(11px * var(--badge-s, 0.7225));
    letter-spacing: calc(5px * var(--badge-s, 0.7225));
  }

  .hero-certs {
    margin-top: clamp(10px, 1.8vh, 16px);
    margin-bottom: clamp(48px, 7vh, 64px);
    gap: 8px;
  }

  .cta-main {
    margin-top: clamp(96px, 36vh, 240px);
    margin-bottom: 0;
  }

  .info-btn {
    width: 56px;
    height: 56px;
  }

  .info-btn img {
    width: 53px;
    height: 53px;
  }

  .cta-inner {
    padding: calc(14px * 1.1) calc(28px * 1.1);
    font-size: calc(10px * 1.1);
    letter-spacing: 0.14em;
  }

  .cta-arrow {
    font-size: calc(16px * 1.1);
  }

  .modal-content--instructions {
    padding: 24px 20px 22px;
  }

  .modal-content--instructions .step {
    min-height: 0;
    padding: 16px 14px 16px 50px;
  }

  .modal-content--instructions .step-num {
    left: 14px;
  }

  .home-footer-deco {
    width: clamp(40px, 12vw, 72px);
  }
}

/* Móvil en horizontal — celular con rotación activa */
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1100px) {
  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding-top: clamp(calc(64px * var(--hero-y, 0.85)), calc(8vh * var(--hero-y, 0.85)), calc(84px * var(--hero-y, 0.85)));
    padding-bottom: clamp(72px, 14vh, 96px);
  }

  .hero-subtitle {
    display: none;
  }

  .hero-title {
    font-size: clamp(30px, 5.2vh, 42px);
    letter-spacing: -0.03em;
    margin-bottom: clamp(4px, 0.8vh, 8px);
  }

  .badge {
    margin-bottom: clamp(6px, 1vh, 10px);
  }

  .hero-certs {
    margin-top: clamp(8px, 1.5vh, 12px);
    margin-bottom: 0;
    gap: clamp(4px, 0.8vh, 8px);
  }

  .cta-main {
    margin-top: clamp(10px, 4vh, 28px);
    margin-bottom: 0;
  }
}

/* Landscape ancho (iPhone Pro Max, etc.) — >920px no entra el A52 (~915px) */
@media (orientation: landscape) and (max-height: 540px) and (min-width: 920px) and (max-width: 1100px) {
  nav {
    padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  }

  .logo img {
    height: clamp(64px, 14dvh, 80px);
  }

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

  .info-btn img {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: clamp(48px, 11dvh, 60px);
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .badge {
    --badge-s: 0.65;
    margin-bottom: 4px;
    padding-bottom: 6px;
    letter-spacing: calc(4px * var(--badge-s));
  }

  .hero-title {
    font-size: clamp(22px, 4.8dvh, 30px);
    margin-bottom: 4px;
    line-height: 0.95;
  }

  .hero-certs {
    margin-top: 4px;
    gap: 4px;
  }

  .hero-cert-line {
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .cta-main {
    margin-top: clamp(6px, 2dvh, 12px);
  }

  .cta-inner {
    padding: 10px 26px;
    font-size: 9px;
    gap: 8px;
  }

  .cta-arrow {
    font-size: 13px;
  }

  .home-footer {
    position: relative;
    padding: 6px 16px max(10px, env(safe-area-inset-bottom, 8px));
  }

  .home-footer-text {
    font-size: 8px;
    letter-spacing: 0.28em;
  }

  .home-footer-deco {
    width: clamp(32px, 8vw, 56px);
  }
}

/* Portrait compacto — pantallas estrechas / bajas (ej. Galaxy A13) */
@media (max-width: 400px) and (orientation: portrait),
(max-height: 720px) and (max-width: 430px) and (orientation: portrait) {
  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
    padding-top: calc(100px * var(--hero-y, 0.85));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .hero-title {
    font-size: clamp(36px, 10.5vw, 42px);
    margin-bottom: 6px;
  }

  .badge {
    margin-bottom: 10px;
  }

  .cta-main {
    margin-top: clamp(48px, 20vh, 112px);
    margin-bottom: 4px;
  }

  .hero-certs {
    margin-top: 8px;
    margin-bottom: clamp(10px, 2vh, 18px);
    gap: 6px;
  }

  .hero-cert-line {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .home-footer {
    position: relative;
    padding: 12px 18px max(20px, calc(12px + env(safe-area-inset-bottom, 0px)));
  }
}
