/* Capital Tributario — estilos del sitio
   Identidad: azul marino #08264A, turquesa #00B8BD (solo acentos),
   verde petróleo #007C82 (botones), fondo #F4F7FA, texto secundario #475569.
   Tipografías: Montserrat (títulos y planes) e Inter (texto, navegación, botones, formularios). */
:root {
  --navy: #08264A;
  --turquoise: #00B8BD;
  --teal: #007C82;          /* botones con texto blanco: contraste 4,99:1 */
  --teal-dark: #005F64;     /* hover y enlaces: 7,44:1 sobre blanco */
  --white: #FFFFFF;
  --bg: #F4F7FA;
  --text-2: #475569;        /* texto secundario: 7,58:1 sobre blanco */
  --text-3: #64748B;        /* notas pequeñas: 4,76:1 sobre blanco */
  --line: #E2E8F0;
  --line-strong: #94A3B8;   /* borde de campos */
  --tint: #E6F7F7;          /* fondo suave turquesa */
  --on-navy: #CBD5E1;       /* texto secundario sobre azul: 10,2:1 */
  --success: #05603A;
  --success-bg: #ECFDF3;
  --success-line: #A6F4C5;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --error-line: #FECDCA;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 38, 74, 0.04), 0 8px 24px rgba(8, 38, 74, 0.06);
  --font-head: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--navy); font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; color: var(--navy); letter-spacing: -0.01em; }
p { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Encabezado ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: block; padding: 6px 0; line-height: 0; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--navy); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--teal-dark); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--turquoise); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.header-phone:hover { color: var(--teal-dark); }
.menu-toggle { display: none; background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; min-height: 44px; }

@media (max-width: 1140px) {
  .header-phone span { display: none; }
}
@media (max-width: 1000px) {
  .brand img { height: 42px; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; order: 3; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--teal-dark); }
  .header-actions { display: none; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 14px 24px; border-radius: 10px; font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; min-height: 48px; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { padding: 10px 18px; font-size: 15px; min-height: 44px; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--teal); color: var(--teal-dark); }
.btn-outline:hover { background: var(--tint); color: var(--navy); border-color: var(--teal-dark); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--tint); color: var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Portada de cada página ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); position: relative; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--turquoise); }
.hero .container { padding-top: 80px; padding-bottom: 80px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.eyebrow { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--turquoise); flex: none; }
.hero h1 { font-size: clamp(32px, 4.8vw, 52px); line-height: 1.12; font-weight: 700; max-width: 820px; }
.hero .lead { font-size: 19px; line-height: 1.65; color: var(--text-2); max-width: 720px; }
.hero-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.hero-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.card-kicker { font-size: 14px; font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.card-kicker-red { font-size: 15px; font-weight: 600; color: var(--error); }
.big-number { font-family: var(--font-head); font-size: clamp(44px, 6vw, 60px); font-weight: 700; line-height: 1.1; color: var(--navy); }
.big-number span { border-bottom: 5px solid var(--turquoise); }
.divider { height: 1px; background: var(--line); }
.text-muted { color: var(--text-2); }
.text-small { font-size: 14px; color: var(--text-3); }
.text-xs { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* ---------- Banda de aviso ---------- */
.band { background: var(--tint); border-bottom: 1px solid #BFE9EA; }
.band .container { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.band a { font-weight: 600; }
.band-lg { background: var(--tint); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.section-head h2, .h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; font-weight: 700; }
.section-head p { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: center; }
.split-top { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lead-text { font-size: 17px; color: var(--text-2); }
.section-cta { margin-top: 32px; }

/* ---------- Tarjetas ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.grid-cards-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--text-2); }
.card-link { text-decoration: none; color: var(--navy); transition: border-color .15s, transform .15s; }
.card-link:hover { color: var(--navy); border-color: var(--turquoise); transform: translateY(-2px); }
.card-link .more { margin-top: auto; font-weight: 600; color: var(--teal-dark); }
.icon-badge { width: 52px; height: 52px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.card-tag { font-size: 13px; font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.feature { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 3px solid var(--turquoise); }
.feature h3 { font-size: 19px; font-weight: 600; }

/* ---------- Pasos ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--turquoise); padding-top: 20px; }
.steps .num { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--teal-dark); }
.steps h3 { font-size: 19px; font-weight: 600; }
.steps p { color: var(--text-2); }
.steps-v { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps-v li { display: flex; gap: 16px; align-items: flex-start; }
.steps-v .dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--font-head); }
.steps-v .dot-teal { background: var(--teal); }
.steps-v span:last-child { padding-top: 6px; }

/* ---------- Lista con check ---------- */
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.checklist li { display: flex; gap: 12px; }
.checklist svg { flex: none; margin-top: 3px; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--teal); }
.plan h3 { font-family: var(--font-head); font-size: 23px; font-weight: 700; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--navy); }
.plan .btn { margin-top: auto; }
.plan-custom { background: var(--navy); border-color: var(--navy); color: var(--white); }
.plan-custom h3 { color: var(--white); }
.plan-custom p { color: var(--on-navy); }
.plan-custom .price, .plan-custom .price small { color: var(--white); }
.badge { align-self: flex-start; background: var(--tint); color: var(--teal-dark); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.price { font-family: var(--font-head); font-size: 36px; font-weight: 700; line-height: 1.15; color: var(--navy); }
.price small { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--text-2); }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.price-card .price { font-size: 32px; }
.price-card-dark { background: var(--navy); border-color: var(--navy); }
.price-card-dark .text-muted { color: var(--on-navy); }
.price-card-dark .price { color: var(--white); }
.price-box { background: var(--white); border: 2px solid var(--teal); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.price-box .price { font-size: 40px; }
.no-charge { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--text-2); font-size: 15px; margin-top: 24px; }
.no-charge svg { flex: none; margin-top: 2px; }

/* ---------- Tabla ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { padding: 16px 20px; text-align: left; vertical-align: top; }
th { font-weight: 600; }
thead tr { background: var(--bg); }
tbody tr { border-top: 1px solid var(--line); }
td:first-child { font-weight: 600; }
td + td { color: var(--text-2); }

/* ---------- Estadísticas y testimonios (desactivada hasta tener datos reales) ---------- */
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 38px; font-weight: 700; }
.quote { margin: 24px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.quote p { font-size: 20px; }
.quote footer { margin-top: 14px; font-size: 15px; color: var(--text-2); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::marker { color: var(--teal); }
.faq details p { margin-top: 12px; color: var(--text-2); }

/* ---------- Simulador ---------- */
.sim { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: var(--shadow); }
.sim label { display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.sim .row { display: flex; justify-content: space-between; gap: 12px; }
.sim output { color: var(--teal-dark); font-weight: 600; }
.sim input[type=range] { width: 100%; height: 28px; accent-color: var(--teal); }
.sim-result { background: var(--tint); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.sim-result strong { font-family: var(--font-head); font-size: 46px; font-weight: 700; color: var(--navy); line-height: 1.1; }

/* ---------- Resumen mensual y costos ---------- */
.summary { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.summary-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.summary .row, .cost-row { display: flex; justify-content: space-between; gap: 16px; }
.cost-row { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cost-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.ok-pill { display: flex; align-items: center; gap: 10px; background: var(--success-bg); border-radius: 10px; padding: 12px 14px; color: var(--success); font-weight: 600; }

/* ---------- Contacto y formulario ---------- */
.contact { background: var(--bg); border-top: 1px solid var(--line); }
.contact .container { padding-top: 88px; padding-bottom: 88px; }
.contact .lead { color: var(--text-2); font-size: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.contact-list a { color: var(--navy); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.contact-list a:hover { color: var(--teal-dark); }
.contact-list svg { color: var(--teal); }
.contact-note { font-size: 15px; color: var(--text-2); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.form { background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.form-title { font-size: 24px; font-weight: 700; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label, .form .label { font-size: 15px; font-weight: 600; }
.form .optional { font-weight: 400; color: var(--text-3); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--navy); width: 100%; min-height: 48px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--text-3); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: 3px solid rgba(0, 184, 189, 0.35); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 14px; font-weight: 500; }
.field-error:empty { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400 !important; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.hidden-field { display: none; }
.form-legal { font-size: 14px; color: var(--text-3); }
.form-status { border-radius: 10px; padding: 14px 16px; font-size: 15px; display: none; }
.form-status.is-success { display: block; background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); }
.form-status.is-error { display: block; background: var(--error-bg); color: var(--error); border: 1px solid var(--error-line); }
.form-status a { color: inherit; font-weight: 600; }
.custom-note { display: none; background: var(--tint); border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--navy); }
.custom-note.is-visible { display: block; }

/* ---------- Banda azul ---------- */
.cta-navy { background: var(--navy); color: var(--white); }
.cta-navy .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta-navy h2 { color: var(--white); max-width: 640px; }
.accent-line { width: 48px; height: 4px; border-radius: 2px; background: var(--turquoise); margin-bottom: 16px; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.site-footer .container { padding-top: 40px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px 40px; align-items: start; }
.footer-logo { display: block; line-height: 0; }
.footer-logo img { height: 60px; width: auto; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { color: var(--teal-dark); text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-title { font-weight: 600; color: var(--navy); }
.footer-bottom { border-top: 1px solid var(--line); background: var(--white); }
.site-footer .footer-bottom .container { display: block; padding-top: 16px; padding-bottom: 16px; color: var(--text-3); font-size: 13px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--teal); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(8, 38, 74, 0.25); }
.wa-float:hover { background: var(--teal-dark); color: var(--white); }

/* ---------- Páginas simples ---------- */
.page-simple { padding: 80px 0; background: var(--white); }
.page-simple .container { max-width: 820px; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .hero .lead { font-size: 17px; }
  .form, .sim, .plan, .hero-card, .price-box { padding: 24px; }
  .contact .container { padding-top: 64px; padding-bottom: 64px; }
}
