:root {
  --blue-900: #0F4C81;
  --blue-700: #155B99;
  --blue-100: #E7F0FA;
  --green-600: #22C55E;
  --green-700: #16A34A;
  --gray-900: #0F172A;
  --gray-700: #334155;
  --gray-500: #64748B;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --white: #FFFFFF;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(2, 6, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.12);
}

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--gray-900);
  background: var(--gray-100);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 20px;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.32); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(0deg, rgba(15, 76, 129, 0.0), rgba(15, 76, 129, 0.06));
  backdrop-filter: saturate(120%) blur(8px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--blue-900); }
.brand-mark { font-size: 22px; }
.main-nav { display: none; gap: 22px; }
.nav-link { color: var(--gray-700); font-weight: 600; }
.nav-link:hover { color: var(--blue-900); }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--gray-900); display: block; border-radius: 2px; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
}

@media (max-width: 959px) {
  .main-nav.open, .nav-cta.open {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 10px;
  }
  .main-nav.open { display: flex !important; flex-direction: column; gap: 8px; }
  .nav-cta.open { display: block !important; margin-top: 8px; text-align: center; }
}

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 80% -200px, rgba(21, 91, 153, 0.36), transparent 60%),
              radial-gradient(900px 400px at 10% -100px, rgba(21, 91, 153, 0.24), transparent 60%),
              var(--blue-900);
  color: var(--white);
  padding: 88px 0 56px;
  position: relative;
}
.hero-wave { position: absolute; inset: auto 0 -1px 0; height: 56px; background: linear-gradient(180deg, rgba(15,76,129,0) 0%, rgba(241,245,249,1) 100%); }
.hero-content { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero-title { font-size: clamp(2rem, 3.8vw + 1rem, 3.2rem); line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 12px; }
.hero-subtitle { font-size: clamp(1rem, 1vw + .6rem, 1.2rem); color: #E8EEF6; margin: 0 0 22px; }
.hero-highlight { font-size: 1.05rem; color: #F4FBFF; background: rgba(255,255,255,.12); display: inline-block; padding: 8px 12px; border-radius: 10px; margin: -10px 0 22px; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-highlights { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.12); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; color: #C5E3FF; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 8px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .2px; margin-bottom: 12px; }
.hero-badge svg { color: #C5E3FF; }

.hero-visual { display: none; }

/* Phone widget */
.phone { width: 320px; max-width: 92vw; aspect-ratio: 9/19.5; background: #0b2f52; border: 10px solid #0a2543; border-radius: 34px; position: relative; box-shadow: 0 16px 50px rgba(0,0,0,.45); overflow: hidden; margin-inline: auto; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 160px; height: 24px; background: #061a31; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 2; }
.phone-screen { position: absolute; inset: 10px; background: linear-gradient(180deg, #0c3056 0%, #0e3c6b 100%); border-radius: 24px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; background: rgba(255,255,255,.12); border-radius: 999px; font-size: 16px; }
.chat-title { display: flex; flex-direction: column; line-height: 1; }
.chat-title strong { color: #E6F2FF; font-size: .95rem; }
.chat-title .status { color: #B9DBFF; font-size: .8rem; }
.chat-window { padding: 12px; overflow: hidden; position: relative; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 10px 12px; border-radius: 14px; color: #06233f; background: #E6F2FF; box-shadow: 0 6px 18px rgba(6, 35, 63, 0.18); transform: translateY(8px); opacity: 0; animation: slideIn .5s ease forwards; }
.bubble.bot { background: #DCFCE7; color: #064e3b; align-self: flex-start; border-top-left-radius: 4px; }
.bubble.user { background: #E6F2FF; color: #06233f; align-self: flex-end; border-top-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; background: rgba(6,35,63,.5); border-radius: 50%; display: inline-block; animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

@keyframes slideIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes blink {
  0%, 80%, 100% { opacity: .2; }
  40% { opacity: 1; }
}

@media (min-width: 992px) {
  .hero-content { grid-template-columns: 1.1fr .9fr; }
  .hero-visual { display: block; }
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 { font-size: clamp(1.6rem, 2.2vw + .6rem, 2.2rem); margin: 0 0 8px; color: var(--blue-900); }
.section-header p { margin: 0; color: var(--gray-700); }

/* Cards & Grid */
.grid { display: grid; gap: 18px; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.benefits-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-grid { grid-template-columns: 1.1fr .9fr; gap: 22px; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.feature { padding: 18px; }
.feature h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--gray-700); }

.icon-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100);
  display: inline-flex; align-items: center; justify-content: center; color: var(--blue-900);
}

.step { background: var(--white); border: 1px solid var(--gray-200); padding: 18px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step-number { width: 38px; height: 38px; background: var(--blue-900); color: var(--white); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 8px; }
.step h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--gray-700); }

.benefit { display: flex; align-items: flex-start; gap: 10px; background: var(--white); border: 1px solid var(--gray-200); padding: 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.check-icon { width: 26px; height: 26px; color: var(--green-600); background: #EBFBEF; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }

.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; margin-top: 18px; border-left: 4px solid var(--green-600); }
.cta-banner h3 { margin: 0 0 4px; }
.cta-banner p { margin: 0; color: var(--gray-700); }

/* Contacto */
.contact-form { padding: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; color: var(--gray-700); }
.form-field input, .form-field textarea {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 12px 12px; font-size: 1rem; outline: none; transition: border-color .15s ease, box-shadow .15s ease; background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(21,91,153,.15); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-note { margin: 0; color: var(--gray-500); font-size: .95rem; }

.contact-aside { padding: 18px; }
.check-list { padding-left: 18px; margin: 10px 0 0; }
.check-list li { margin-bottom: 6px; }
.contact-meta { margin-top: 16px; }
.contact-meta .label { margin: 0 0 6px; color: var(--gray-700); }
.contact-meta .link { color: var(--blue-900); font-weight: 600; }

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

/* Footer */
.site-footer { padding: 28px 0; background: var(--white); border-top: 1px solid var(--gray-200); }
.footer-wrap { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; justify-content: center; color: var(--blue-900); font-weight: 800; }
.footer-nav { display: flex; gap: 14px; justify-content: center; }
.footer-nav a { color: var(--gray-700); font-weight: 600; }
.footer-nav a:hover { color: var(--blue-900); }
.legal { color: var(--gray-500); margin: 0; }

/* Accesibilidad: enfoque visible */
:where(a, button, input, textarea):focus-visible {
  outline: 3px solid rgba(21,91,153,.35);
  outline-offset: 2px;
  border-radius: 6px;
}


