/* ============================================================
   Pagina "App de conductores"
   ============================================================ */
nav.mainnav a.navlink[aria-current="page"], #mobileMenu a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* --- Hero oscuro --- */
.ah { position: relative; overflow: hidden; color: #fff; padding: 84px 0 120px; scroll-margin-top: 0;
  background:
    radial-gradient(900px 520px at 85% 25%, rgba(47,111,237,0.35) 0%, transparent 62%),
    linear-gradient(160deg, #0b1830 0%, var(--navy) 55%, #14294a 100%);
}
.ah-orb { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.42; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.ah-orb.o1 { width: 420px; height: 420px; background: #2f6fed; top: -140px; left: -110px; }
.ah-orb.o2 { width: 360px; height: 360px; background: #4b4fe0; right: -90px; top: 22%; animation-delay: -5s; }
.ah-orb.o3 { width: 320px; height: 320px; background: #1fa4c6; bottom: -160px; left: 38%; animation-delay: -9s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }

.ah-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.ah h1 { color: #fff; font-size: 54px; letter-spacing: -1px; line-height: 1.08; }
.ah .lead { font-size: 18px; color: #b9c3d9; max-width: 48ch; }
.ah .lead strong { color: #fff; }
.grad { background: linear-gradient(90deg, #7fb0ff 0%, #b7d2ff 45%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.ah-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 640px; }
.ah-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(47,111,237,0.6) 0%, transparent 65%); filter: blur(12px); animation: pulse 6s ease-in-out infinite; z-index: 0; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.12); opacity: 1; } }
.ah-stage .device { position: relative; z-index: 1; }
.device.xl { --w: clamp(250px, 26vw, 330px); }
.device.lg { --w: clamp(250px, 24vw, 320px); }
.ah-device-wrap { position: relative; z-index: 1; }
/* Las etiquetas quedan a los lados del movil, sin tapar la pantalla */
.ah-device-wrap .chip-float.l { left: auto; right: calc(100% - 26px); top: 22%; transform-origin: right center; }
.ah-device-wrap .chip-float.r { right: auto; left: calc(100% - 26px); bottom: 26%; transform-origin: left center; }
@media (max-width: 1180px) { .ah-device-wrap .chip-float { display: none; } }

.ah-tabs { position: relative; z-index: 6; display: flex; gap: 6px; margin-top: 26px; padding: 5px; border-radius: 30px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }
.ah-tab { border: none; background: none; color: #cfd9ee; padding: 9px 16px; border-radius: 24px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.25s, color 0.25s; white-space: nowrap; }
.ah-tab:hover { color: #fff; }
.ah-tab.is-active { background: #fff; color: var(--navy); }
.ah-tab:focus-visible { outline: 2px solid #7fb0ff; outline-offset: 2px; }

.ah-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; }
.ah-scroll span { display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.4); border-radius: 14px; position: relative; }
.ah-scroll span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* --- Ventajas y pasos --- */
.features.features-3 { grid-template-columns: repeat(3, 1fr); }
.steps-sec { background: var(--bg); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 46px; }
.tl-line { position: absolute; top: 19px; left: 16.6%; right: 16.6%; height: 3px; border-radius: 3px; background: rgba(16,35,63,0.12); overflow: hidden; }
.tl-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #7fb0ff); transform: scaleX(0); transform-origin: left; transition: transform 1.7s cubic-bezier(0.3, 0.7, 0.2, 1) 0.4s; }
.timeline.in .tl-line span { transform: scaleX(1); }
.tl-step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.tl-step .step-num { margin: 0 auto 14px; }
.tl-step h3 { font-size: 17px; margin-bottom: 6px; }
.tl-step p { font-size: 14.5px; color: var(--muted); margin: 0 auto; max-width: 30ch; }

/* --- CTA final con QR --- */
.app-cta { padding: 84px 0; text-align: left; }
.app-cta-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.app-cta .muted { margin-left: 0; margin-right: 0; }
.app-cta .hero-ctas { justify-content: flex-start; }
.qr-card { justify-self: center; background: #fff; border-radius: 22px; padding: 22px 22px 16px; text-align: center; box-shadow: 0 30px 70px -28px rgba(0,0,0,0.7); transform: rotate(2deg); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.qr-card:hover { transform: rotate(0) scale(1.03); }
.qr-card img { width: 168px; height: 168px; margin: 0 auto 10px; }
.qr-card span { font-size: 13px; font-weight: 700; color: var(--navy); }

/* --- Responsive --- */
@media (max-width: 1100px) { .ah h1 { font-size: 46px; } }
@media (max-width: 900px) {
  .ah { padding: 56px 0 96px; }
  .ah-grid { grid-template-columns: 1fr; gap: 26px; }
  .ah h1 { font-size: 38px; }
  .ah-stage { min-height: 0; margin-top: 10px; }
  .ah-stage .chip-float { display: none; }
  .ah-scroll { display: none; }
  .features.features-3 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .tl-line { display: none; }
  .app-cta-grid { grid-template-columns: 1fr; text-align: center; }
  .app-cta .hero-ctas { justify-content: center; }
}
@media (max-width: 680px) {
  .ah h1 { font-size: 33px; }
  .ah .lead { font-size: 16px; }
  .features.features-3 { grid-template-columns: 1fr; }
  .ah-tab { padding: 8px 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-orb, .ah-glow, .ah-scroll span::after { animation: none; }
  .tl-line span { transition-duration: 0.01s !important; }
  .qr-card { transform: none; }
}
