/* AstaRegistra · sitio v2
   Criterio: sobrio, declarativo, denso en hechos. Un azul de marca, un azul noche,
   grises. Sin degradés en el texto ni adornos: que pese lo que se dice. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #0b1f3a;
    --navy-2: #12305a;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f6f8fb;
    --blue: #1a6dd8;
    --blue-dark: #1558b0;
    --blue-soft: #eaf2fd;
    --teal: #0f9d8a;
    --white: #ffffff;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg: 0 24px 60px -18px rgba(11,31,58,.35);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
.eyebrow {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 680px; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
    font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn.is-disabled { opacity: .55; pointer-events: none; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Encabezado y menú ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border-radius: 6px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: .93rem; font-weight: 500; color: var(--text); text-decoration: none;
}
.nav-link:hover, .nav-link.is-active { color: var(--blue); }
.site-nav .btn { margin-left: 10px; }
.dropdown { position: relative; }
.dropdown-panel {
    position: absolute; top: calc(100% + 10px); left: -12px; width: 380px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 8px; display: none;
}
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.dropdown:hover .dropdown-panel, .dropdown.is-open .dropdown-panel, .dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-item { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; }
.dropdown-item:hover, .dropdown-item.is-active { background: var(--soft); }
.dropdown-item strong { display: block; color: var(--ink); font-size: .95rem; }
.dropdown-item span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(1200px 500px at 80% -10%, #1b4a8a 0%, transparent 60%), var(--navy);
    color: #fff; padding: 88px 0 0; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 880px; }
.hero .eyebrow { color: #8cc0ff; }
.hero .lead { color: #c9d8ee; margin-top: 22px; font-size: 1.22rem; max-width: 720px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-proof { margin-top: 18px; color: #9db4d4; font-size: .95rem; max-width: 640px; }
.hero-shot { margin-top: 64px; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-bottom: 0; box-shadow: var(--shadow-lg); background: #fff; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: block; }
.shot-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }

/* Hero de página interior */
.page-hero { background: var(--navy); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; font-size: 2.6rem; max-width: 820px; }
.page-hero .eyebrow { color: #8cc0ff; }
.page-hero .lead { color: #c9d8ee; margin-top: 18px; }
.page-hero .hero-actions { margin-top: 28px; }

/* ---------- Franja de datos ---------- */
.stats { border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 92px 0; }
.section.soft { background: var(--soft); }
.section.tight { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 + p { margin-top: 14px; font-size: 1.08rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
a.card .more { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 600; font-size: .92rem; }
.card-num { font-size: .8rem; font-weight: 700; color: var(--blue); letter-spacing: .1em; margin-bottom: 12px; display: block; }

/* Pregunta de ejemplo dentro de una tarjeta */
.card .ask { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--soft); border-radius: 0 6px 6px 0; font-size: .93rem; font-style: italic; color: var(--ink); }

/* Bloque problema / respuesta */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 16px; }
.split p + p { margin-top: 12px; }
.checklist { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg) scale(.8); transform-origin: left; }
.checklist strong { color: var(--ink); }

/* Marco de captura */
.frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.frame.pending { border-style: dashed; box-shadow: none; background: var(--soft); min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); font-size: .92rem; }

/* Captura a lo ancho, con epígrafe */
.figura-ancha { margin-top: 40px; }
.figura-ancha figcaption { margin-top: 14px; font-size: .95rem; color: var(--muted); max-width: 760px; }

/* Capas */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.layer { padding: 32px 28px; border-left: 1px solid var(--line); }
.layer:first-child { border-left: 0; }
.layer .card-num { margin-bottom: 14px; }
.layer h3 { font-size: 1.2rem; margin-bottom: 10px; }
.layer p { font-size: .96rem; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: paso; }
.step { border-top: 3px solid var(--navy); padding-top: 22px; }
.step::before { counter-increment: paso; content: "0" counter(paso); display: block; font-size: .85rem; font-weight: 800; color: var(--blue); letter-spacing: .1em; margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .96rem; }
.note-line { margin-top: 36px; padding: 18px 22px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }

/* Cita */
.quote { display: grid; grid-template-columns: 120px 1fr; gap: 36px; align-items: start; max-width: 900px; }
.quote img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.quote blockquote { font-size: 1.3rem; line-height: 1.55; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: .95rem; color: var(--muted); }
.quote cite strong { color: var(--ink); }

/* Listas de definición de capacidades */
.spec { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.spec-row h3 { font-size: 1.05rem; }
.spec-row p { font-size: .98rem; }

/* Precio */
.price-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; background: #fff; box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.price-close { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.05rem; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item.open { border-color: var(--blue); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); text-align: left; }
.faq-q svg { flex-shrink: 0; transition: transform .25s ease; color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; font-size: .97rem; }

/* Aprender */
.tabs-anchor { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.pill { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; }
.pill:hover { background: rgba(255,255,255,.1); }
.video-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.video-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-2)); position: relative; display: flex; align-items: center; justify-content: center; }
.video-thumb .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; }
.video-thumb .play svg { margin-left: 3px; }
.video-thumb .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.video-body { padding: 20px 22px 22px; }
.video-body h3 { font-size: 1.02rem; margin-bottom: 6px; line-height: 1.35; }
.video-body p { font-size: .9rem; color: var(--muted); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 3px 8px; margin-bottom: 10px; }
.tag.soon { color: var(--muted); background: #eef2f7; }
.tag.early { color: #8a5a00; background: #fff4d6; }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.guide-group { padding: 22px 0; border-top: 1px solid var(--line); }
.guide-group h3 { margin-bottom: 10px; }
.guide-group a { display: block; padding: 5px 0; text-decoration: none; font-size: .96rem; }
.guide-group a:hover { text-decoration: underline; }

/* Hacia dónde vamos: un bloque por problema */
.theme { padding: 56px 0; border-top: 1px solid var(--line); }
.theme:first-child { padding-top: 0; border-top: 0; }
.theme:last-child { padding-bottom: 0; }
.theme-head { max-width: 760px; margin-bottom: 28px; }
.theme-head h2 { margin-bottom: 12px; }
.checklist.two-col { grid-template-columns: repeat(2, 1fr); column-gap: 48px; margin-top: 0; }
.theme-link { margin-top: 22px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { text-align: left; }
.contact-card .btn { margin-top: 18px; }

/* Franja de cierre */
.cta-band { background: var(--navy); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.9rem; }
.cta-band p { color: #c9d8ee; margin-top: 10px; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pie */
.site-footer { background: #071529; color: #9db4d4; padding: 64px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.site-footer .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 300px; line-height: 1.6; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a:not(.brand) { display: block; color: #9db4d4; text-decoration: none; padding: 4px 0; }
.site-footer a:not(.brand):hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }

/* Contenido pendiente: visible en el borrador para que no se publique por error */
.pending-text { color: var(--muted); font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .steps, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .split.reverse > :first-child { order: 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
    h1, .page-hero h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 64px 0; }
    .hero { padding-top: 56px; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .site-nav .btn { margin: 10px 0 0; }
    .dropdown-panel { position: static; width: auto; display: block; border: 0; box-shadow: none; padding: 0 0 6px 10px; }
    .dropdown-trigger svg { display: none; }
    .dropdown-item span { display: none; }
    .dropdown-item { padding: 8px 14px; }
    .grid-2, .grid-3, .grid-4, .steps, .layers, .guide-list, .contact-grid, .stats-grid, .checklist.two-col { grid-template-columns: 1fr; }
    .layer { border-left: 0; border-top: 1px solid var(--line); }
    .layer:first-child { border-top: 0; }
    .stat, .stat:nth-child(3) { border-left: 0; padding: 20px 0; border-top: 1px solid var(--line); }
    .stat:first-child { border-top: 0; }
    .spec-row { grid-template-columns: 1fr; gap: 8px; }
    .quote { grid-template-columns: 1fr; gap: 20px; }
    .quote img { width: 88px; height: 88px; }
    .quote blockquote { font-size: 1.12rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .price-card { padding: 28px 22px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}
