/* ============================================================
   Accesos Seguros Biométricos — styles.css
   Diseño moderno inspirado en Microsoft / Stripe / Apple
   Paleta: Azul corporativo, Rojo corporativo, Blanco
   ============================================================ */

:root {
  --blue-900: #08296B;
  --blue-700: #0B3D91;
  --blue-600: #124DB0;
  --blue-500: #1656C9;
  --blue-100: #EAF1FF;
  --red-600: #E4002B;
  --red-500: #FF2D4E;
  --ink-900: #0B1220;
  --ink-700: #3C4657;
  --ink-500: #6B7280;
  --ink-300: #A6ADB8;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --border-soft: #E6EAF1;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 1px 1px rgba(11,18,32,.04);
  --shadow-md: 0 10px 28px rgba(11,18,32,.08);
  --shadow-lg: 0 28px 70px rgba(11,18,32,.16);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

.container { max-width: 1180px; }

/* ===== Reveal on scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.as-navbar {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  padding: 16px 0;
  transition: all .3s var(--ease);
  z-index: 1000;
}
.as-navbar.is-scrolled {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--border-soft);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.as-brand { display: flex; align-items: center; gap: 10px; }
.as-brand-mark {
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.as-brand-mark svg { display: block; width: 58px; height: 36px; }
.as-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.as-brand-text-main {
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink-900);
}
.as-brand-text-main strong { color: var(--blue-700); font-weight: 800; }
.as-brand-text-sub {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 2px;
}
.as-brand--footer .as-brand-text-main { color: #fff; }
.as-brand--footer .as-brand-text-sub { color: #8891A3; }

.navbar-nav .nav-link {
  color: var(--ink-700);
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 999px;
  transition: all .2s var(--ease);
}
.navbar-nav .nav-link:hover { color: var(--blue-700); background: var(--blue-100); }

.as-btn-portal {
  background: var(--ink-900);
  color: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  transition: all .2s var(--ease);
}
.as-btn-portal:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); }

/* ===== Buttons ===== */
.as-btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(11,61,145,.25);
  transition: all .25s var(--ease);
}
.as-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11,61,145,.32); }

.as-btn-outline {
  background: #fff;
  color: var(--ink-900);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  transition: all .25s var(--ease);
}
.as-btn-outline:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); }

.as-btn-whatsapp {
  background: linear-gradient(135deg, #1FAF52, #17A34A);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(23,163,74,.3);
  transition: all .25s var(--ease);
}
.as-btn-whatsapp:hover { color: #fff; transform: translateY(-2px); }

/* ===== Eyebrow / badges / pills ===== */
.as-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  padding: 7px 16px;
  border-radius: 999px;
}
.as-eyebrow--light { background: rgba(255,255,255,.1); color: #EAF1FF; }

.as-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.as-badge--blue { background: var(--blue-100); color: var(--blue-700); }
.as-badge--red { background: #FDE7EB; color: var(--red-600); }

.as-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.as-pill {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--ink-700);
  font-size: .82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
}

/* ===== Hero ===== */
.as-hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
  background: linear-gradient(180deg, #FCFDFF 0%, #FFFFFF 60%);
}
.as-hero-glow {
  position: absolute;
  top: -220px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(22,86,201,.16) 0%, rgba(22,86,201,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.as-hero-glow--dark {
  background: radial-gradient(circle, rgba(255,45,78,.18) 0%, rgba(255,45,78,0) 70%);
}

.as-hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  margin-top: 20px;
  color: var(--ink-900);
}
.as-hero-sub {
  font-size: 1.15rem;
  color: var(--ink-500);
  margin-top: 18px;
  max-width: 540px;
  line-height: 1.6;
}

/* Hero visual */
.as-hero-visual {
  position: relative;
  height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.as-hero-core {
  position: relative;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.as-hero-core i { font-size: 4rem; color: #fff; }
.as-face-scan-icon {
  width: 92px; height: 92px;
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.as-face-scan-icon circle { fill: rgba(255,255,255,.12); }
.as-hero-core-ring {
  position: absolute;
  inset: -22px;
  border: 1.5px dashed rgba(22,86,201,.35);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.as-float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.as-float-card i { font-size: 1.4rem; color: var(--blue-600); }
.as-float-card div { display: flex; flex-direction: column; line-height: 1.25; }
.as-float-card strong { font-size: .85rem; color: var(--ink-900); }
.as-float-card span { font-size: .75rem; color: var(--ink-500); }
.as-float-card--1 { top: 8%; left: 0; animation-delay: 0s; }
.as-float-card--2 { bottom: 14%; right: 0; animation-delay: 1.2s; }
.as-float-card--3 { bottom: -2%; left: 8%; animation-delay: 2.4s; }
.as-float-card--3 i { color: #17A34A; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Sections ===== */
.as-section { padding: 100px 0; }
.as-section--soft { background: var(--bg-soft); }
.as-section--dark {
  position: relative;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: #fff;
  overflow: hidden;
}

.as-section-head { max-width: 660px; margin-bottom: 52px; }
.as-section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 16px; }
.as-lead { color: var(--ink-500); font-size: 1.05rem; margin-top: 14px; line-height: 1.6; }
.as-muted { color: var(--ink-500); font-weight: 500; }

/* ===== Cards ===== */
.as-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all .3s var(--ease);
}
.as-card--solution:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.as-card--solution h3 { font-size: 1.4rem; margin-bottom: 14px; }
.as-card--solution p { color: var(--ink-500); line-height: 1.6; margin-bottom: 24px; }

.as-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.as-check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-700); font-size: .95rem; line-height: 1.5; }
.as-check-list i { color: var(--blue-600); margin-top: 3px; flex-shrink: 0; }

/* Tech cards */
.as-tech-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  height: 100%;
  transition: all .25s var(--ease);
}
.as-tech-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.as-tech-card i { font-size: 1.8rem; color: var(--blue-600); display: block; margin-bottom: 12px; }
.as-tech-card span { font-weight: 600; font-size: .88rem; color: var(--ink-900); }

/* ===== AI Assistant dark section ===== */
.as-dark-title { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 18px; }
.as-dark-tagline { color: #A7C2F2; font-weight: 600; font-size: 1.15rem; margin-top: 10px; }
.as-dark-body { color: #CBD8ED; font-size: 1.02rem; line-height: 1.7; margin-top: 16px; max-width: 520px; }

.as-chat-mock {
  background: #0F1B33;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.as-chat-mock-head {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.05);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.as-chat-mock-head i { font-size: 1.4rem; color: #25D366; }
.as-chat-mock-head strong { display: block; color: #fff; font-size: .92rem; }
.as-chat-mock-head span { color: #7FE0A0; font-size: .74rem; }
.as-chat-mock-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }

.as-bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.5;
}
.as-bubble--in { align-self: flex-start; background: #1B2A47; color: #E7EDF9; border-bottom-left-radius: 4px; }
.as-bubble--out { align-self: flex-end; background: #1FAF52; color: #fff; border-bottom-right-radius: 4px; }
.as-bubble--typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  background: #1B2A47;
  padding: 14px 16px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.as-bubble--typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7C8CB0;
  animation: blink 1.2s infinite ease-in-out;
}
.as-bubble--typing span:nth-child(2) { animation-delay: .2s; }
.as-bubble--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ===== Contact ===== */
.as-contact-info { display: flex; flex-direction: column; gap: 16px; }
.as-contact-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all .25s var(--ease);
}
.as-contact-item:hover { border-color: var(--blue-500); transform: translateX(4px); }
.as-contact-item i { font-size: 1.5rem; color: var(--blue-600); }
.as-contact-item strong { display: block; font-size: .95rem; color: var(--ink-900); }
.as-contact-item span { font-size: .85rem; color: var(--ink-500); }

.as-form { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 32px; }
.as-input {
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .92rem;
}
.as-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(22,86,201,.12); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink-700); margin-bottom: 6px; }
.as-form-status { font-size: .88rem; font-weight: 600; color: #17A34A; }

/* ===== Footer ===== */
.as-footer { background: var(--ink-900); color: #C4CBD9; padding: 70px 0 30px; }
.as-footer-tagline { margin-top: 14px; color: #8891A3; font-size: .92rem; max-width: 280px; }
.as-footer-heading { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.as-footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.as-footer-links a { color: #A9B2C3; font-size: .92rem; transition: color .2s; }
.as-footer-links a:hover { color: #fff; }
.as-footer-rule { border-color: rgba(255,255,255,.08); margin: 40px 0 20px; }
.as-footer-bottom { font-size: .82r