/* ==========================================
   Base de las páginas independientes (calculadoras y preguntas frecuentes)
   Marca oscura y acento turquesa: barra superior, hero, botones, secciones,
   acordeón de preguntas, llamado a la acción y footer.
   ========================================== */

:root {
    color-scheme: dark;
    --ink: #061414;
    --panel: #0a1f1f;
    --panel-2: #0f2a2a;
    --line: #1d3d3d;
    --fg: #eaf6f6;
    --muted: #9dbcbc;
    --accent: #00ced1;
    --accent-deep: #00b8bb;
    --accent-soft: rgba(0, 206, 209, 0.12);
    --wa: #25d366;
    --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --body: "Lato", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 10px; padding: 12px 20px; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-wa { background: var(--wa); color: #052b14; }
.btn-wa:hover { background: #1fbe5a; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 10; background: rgba(6, 20, 20, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.top img { height: 56px; width: auto; display: block; }
.top-actions { display: flex; align-items: center; gap: 10px; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); background: radial-gradient(900px 420px at 85% 0%, rgba(0, 206, 209, 0.16), transparent 70%), var(--ink); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin-block: 12px 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }

/* Secciones */
section.block { padding-block: clamp(48px, 7vw, 88px); }
.alt { background: var(--panel); border-block: 1px solid var(--line); }
.head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }
.head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }

/* Preguntas frecuentes (acordeón con <details>) */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 20px; transition: border-color .15s ease; }
.faq details[open] { border-color: rgba(0, 206, 209, 0.45); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.02rem; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.faq details p, .faq-answer { color: var(--muted); font-size: 15.5px; }
.faq details > p { padding-bottom: 18px; }
.faq-answer { padding-bottom: 18px; display: grid; gap: 10px; }
.faq-answer ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq-answer strong { color: var(--fg); }

/* Llamado a la acción */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.cta h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; margin-block: 12px 14px; }
.cta-actions { display: grid; gap: 12px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-block: 24px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
    .cta .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .top img { height: 44px; }
    .top .back span { display: none; }
}
