/* Impuestox — hoja de estilos del sitio */
:root {
  --navy: #1F2937;
  --navy-2: #374151;
  --teal: #4B5563;
  --teal-dark: #374151;
  --ink: #1B2733;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F3F4F6;
  --ok: #138A5E;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17,24,39,.06), 0 8px 24px rgba(17,24,39,.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); padding: 9px 18px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #F3F4F6; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand img { width: 160px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #E5E7EB; padding: 72px 0 140px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border: 60px solid rgba(255,255,255,.06); transform: rotate(25deg); }
.hero .container { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--teal); margin: 0 0 12px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 760px; }
.lead { font-size: 1.15rem; max-width: 680px; margin: 0 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
.hero-points li { padding-left: 26px; position: relative; color: #fff; font-weight: 500; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Planes */
.plans { margin-top: -96px; padding-bottom: 48px; position: relative; z-index: 2; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.3rem; }
.plan-desc { color: var(--muted); margin: 0 0 18px; min-height: 3.1em; }
.price { margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.price strong { font-size: 2.6rem; color: var(--navy); letter-spacing: -.02em; }
.price .from, .price .per { font-size: .95rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-list li { padding: 7px 0 7px 28px; position: relative; }
.plan-list li:not(:has(b))::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.2 3.1L13 4.6' fill='none' stroke='%234B5563' stroke-width='2.2'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan-list li:has(b) { padding-left: 0; color: var(--navy); }
.plan .btn { width: 100%; }
.plan-featured { border: 2px solid var(--teal); position: relative; }
.plan-featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--teal); border-radius: 10px 10px 0 0; }
.note { text-align: center; color: var(--muted); font-size: .92rem; margin: 24px 0 0; }

/* Comparativa */
.compare { background: var(--bg-soft); padding: 64px 0; }
.compare h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 32px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.ctable { width: 100%; border-collapse: collapse; min-width: 640px; }
.ctable th, .ctable td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.ctable thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-size: 1rem; }
.ctable thead th span { display: block; font-weight: 400; font-size: .85rem; color: #D1D5DB; }
.ctable thead th:first-child { text-align: left; }
.ctable thead th.col-featured { background: var(--teal-dark); }
.ctable tbody th[scope="row"] { text-align: left; font-weight: 600; color: var(--ink); width: 52%; }
.ctable tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 3px; line-height: 1.45; }
.ctable td.col-featured { background: #F9FAFB; }
.ctable tr.group th { background: var(--bg-soft); color: var(--navy); text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; padding: 10px 18px; }
.ctable tbody tr:not(.group):hover th, .ctable tbody tr:not(.group):hover td { background: #FAFCFD; }
.yes, .no { display: inline-block; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.yes { background: #E3F4EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l3 2.9L12.5 5' fill='none' stroke='%23138A5E' stroke-width='2.2'/%3E%3C/svg%3E") center/14px no-repeat; }
.no { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8h7' stroke='%23A8B4C0' stroke-width='2'/%3E%3C/svg%3E") center/16px no-repeat; }
.num { font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.opt { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--teal-dark); background: #F3F4F6; padding: 3px 10px; border-radius: 999px; }

/* CTA */
.cta { background: var(--teal-dark); color: #F3F4F6; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; font-size: 1.6rem; }
.cta p { margin: 0; }

/* Pie */
.site-footer { background: var(--navy); color: #D1D5DB; padding: 56px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.site-footer img { width: 160px; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E5E7EB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 16px; margin-top: 14px !important; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-block: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.legal p { margin: 0; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 60; }
.wa-float:hover { transform: scale(1.06); }

/* Responsive */
@media (max-width: 960px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-desc { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ctable th, .ctable td { padding: 12px 10px; }
  .ctable tbody th[scope="row"] { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 210px; }
  .cta-inner .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
