/* ═══════════════════════════════════════════════════════════════════════
   PUNTOAL — Sistema de diseño único de puntoal.com
   Fuente de verdad: NuevoDiseño/PUNTOAL-WEB-SPEC.md + puntoal-prototipo-verde.html
   Tema claro. Un solo color de acento. Sin framework.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('/fonts/fonts.css');

/* ─────────────────────────── tokens ─────────────────────────── */
:root {
    /* texto y neutros */
    --ink: #1c1c1e;
    --ink-2: #4a4a4f;
    --ink-3: #8a8a90;
    --line: #e8e8ea;
    --bg: #ffffff;
    --bg-soft: #f6f6f7;

    /* bandas oscuras */
    --dark: #111a2b;
    --dark-2: #1b2538;
    --dark-line: #2a3448;
    --dark-social: #34405a;
    --dark-text: #c9c9ce;

    /* acento verde */
    --accent: #10a66f;
    --accent-dark: #0c8758;   /* hover y texto pequeño (AA) */
    --accent-soft: #e4f5ed;
    --accent-ring: #c6ead9;
    --accent-light: #6ee7b7;  /* eyebrow sobre fondo oscuro */

    --ok: #1f8f5a;
    --danger: #c0392b;

    --r-card: 20px;
    --r-band: 48px;
    --max: 1200px;

    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

    --shadow-card: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 50px -30px rgba(0, 0, 0, .25);
    --shadow-float: 0 20px 60px -20px rgba(0, 0, 0, .25);
}

/* ─────────────────────────── base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

/* Los círculos decorativos se salen del viewport a propósito. `clip` los
   recorta sin crear contexto de scroll (a diferencia de `hidden`, que rompería
   el `position:sticky` del header). */
html { scroll-behavior: smooth; overflow-x: clip }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: clip;
}

a { color: inherit; text-decoration: none }
ul { list-style: none }
svg { display: block }
img { max-width: 100%; height: auto }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.08 }
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800 }
h2 { font-size: clamp(30px, 3.8vw, 46px) }
h3 { font-size: 22px; letter-spacing: -0.02em }

:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; border-radius: 4px }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip-link:focus { left: 0 }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

/* ─────────────────────────── layout ─────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1 }
@media (max-width: 640px) { .wrap { padding: 0 20px } }

section { padding: 112px 0; position: relative }
@media (max-width: 760px) { section { padding: 72px 0 } }

.section-head { max-width: 680px; margin-bottom: 56px }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center }
.section-head h2 { margin-bottom: 18px }

.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-dark); margin-bottom: 16px; letter-spacing: .01em }
.accent { color: var(--accent) }
.lead { font-size: 18px; color: var(--ink-2); max-width: 56ch }
.muted { color: var(--ink-3) }
.mono { font-family: var(--mono) }

.soft-block { background: var(--bg-soft); border-radius: var(--r-band) }

/* ─────────────────────────── botones ─────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px;
    font-weight: 700; font-size: 15px; font-family: inherit; line-height: 1;
    border: 2px solid transparent; cursor: pointer; transition: all .18s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .18s }
.btn:hover svg { transform: translateX(3px) }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent) }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark) }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink) }
.btn-outline:hover { background: var(--ink); color: #fff }
.btn-outline.light { color: #fff; border-color: #fff }
.btn-outline.light:hover { background: #fff; color: var(--ink) }
.btn-sm { padding: 10px 18px; font-size: 14px }
.btn-lg { padding: 18px 30px; font-size: 16px }
.btn-block { width: 100%; justify-content: center }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink) }
.link-arrow svg { width: 18px; height: 18px; transition: transform .18s }
.link-arrow:hover svg { transform: translateX(3px) }
.link-accent { color: var(--accent-dark); font-weight: 600 }
.link-accent:hover { text-decoration: underline }
/* Botón que debe pasar por enlace (p. ej. abrir el panel de cookies) */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left }
.linklike:hover { color: #fff; text-decoration: underline }

/* ─────────────────────── círculos decorativos ─────────────────────── */
.circle { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0 }
.circle.ring { border: 56px solid var(--accent-ring) }
.circle.fill { background: var(--accent-soft) }
.circle.dark-ring { border: 56px solid var(--dark-2) }
.circle.grey-ring { border: 56px solid #ececee }

/* ───────────────── marcadores de imagen (fase prototipo) ───────────────── */
.ph {
    position: relative;
    background: repeating-linear-gradient(135deg, #f0f0f2 0 14px, #e9e9ec 14px 28px);
    border: 2px dashed #c4c4ca; border-radius: var(--r-card);
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #6c6c72; overflow: hidden;
}
.ph.dark { background: repeating-linear-gradient(135deg, #2e2e31 0 14px, #343438 14px 28px); border-color: #55555a; color: #b5b5ba }
.ph .lbl {
    font-family: var(--mono); font-size: 12px; line-height: 1.5; padding: 14px 18px;
    background: rgba(255, 255, 255, .8); border-radius: 10px; max-width: 85%; backdrop-filter: blur(4px);
}
.ph.dark .lbl { background: rgba(0, 0, 0, .5) }
.ph .lbl b { display: block; font-size: 13px; margin-bottom: 4px; color: var(--accent-dark) }
.ph.dark .lbl b { color: var(--accent-light) }

/* Foto real: mismo hueco, mismo radio */
.shot { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-card) }

/* ─────────────────────────── header ─────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px) }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px }
/* El logotipo es el SVG incrustado de Components/_Logo: el texto va a
   currentColor, así que hereda la tinta aquí y el blanco en el pie. */
.logo { display: flex; align-items: center; color: var(--ink) }
.logo-svg { display: block; height: 28px; width: auto }
.nav-links { display: flex; gap: 4px; align-items: center }
.nav-links > li { position: relative }
.nav-links a, .nav-links button.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--ink-2);
    border-radius: 999px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-links a:hover, .nav-links button.nav-link:hover,
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-soft) }
.nav-links svg { width: 14px; height: 14px; transition: transform .18s }
.nav-cta { display: flex; gap: 10px; align-items: center }
.nav-toggle {
    display: none; background: none; border: 2px solid var(--ink); border-radius: 50%;
    width: 44px; height: 44px; place-items: center; cursor: pointer; color: var(--ink);
}

/* megamenú de Facturación */
.megamenu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 460px;
    background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-float);
    padding: 14px; display: none; grid-template-columns: 1fr 1fr; gap: 8px; z-index: 60;
}
.nav-links li[data-open="true"] .megamenu { display: grid }
.nav-links li[data-open="true"] > button.nav-link svg { transform: rotate(180deg) }
.megamenu a { display: block; padding: 14px 16px; border-radius: 14px; color: var(--ink) }
.megamenu a:hover { background: var(--bg-soft) }
.megamenu b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 2px }
.megamenu span { font-size: 13px; color: var(--ink-3); font-weight: 500; line-height: 1.4 }

/* selector de idioma */
.lang { display: flex; gap: 2px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-3) }
.lang a { padding: 6px 8px; border-radius: 999px }
.lang a[aria-current="true"] { color: var(--ink); background: var(--bg-soft) }

@media (max-width: 960px) {
    .nav-links, .nav-cta .btn-outline, .nav-cta .lang { display: none }
    .nav-toggle { display: grid }
    .site-header.open .nav-links {
        display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; align-items: stretch; gap: 2px;
    }
    .site-header.open .nav-links .megamenu {
        position: static; display: grid; grid-template-columns: 1fr; box-shadow: none; padding: 0 0 0 12px; min-width: 0;
    }
    .site-header.open .nav-cta .lang { display: flex }
}

/* ─────────────────────────── hero ─────────────────────────── */
.hero { padding: 56px 0 120px; overflow: hidden }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr } }
.hero h1 { margin-bottom: 24px }
.hero .lead { margin-bottom: 36px }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px }
.hero-note { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--ink-2) }
.hero-note li { display: flex; align-items: center; gap: 8px }
.hero-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block }
.hero-visual { position: relative; min-height: 560px }
.hero-visual .ph, .hero-visual .shot { position: absolute; inset: 0; border-radius: 32px }

/* carrusel del hero */
.hero-carousel { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; background: var(--bg-soft) }
.hero-carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease }
.hero-carousel .slide[data-active="true"] { opacity: 1 }
.hero-carousel img, .hero-carousel .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0 }
.hero-dots { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; gap: 8px }
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%; padding: 0; cursor: pointer;
    border: 0; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    transition: background .18s, transform .18s;
}
.hero-dots button[aria-selected="true"] { background: #fff; transform: scale(1.25) }
@media (prefers-reduced-motion: reduce) {
    .hero-carousel .slide { transition: none }
}
/* La línea fina importa: con el carrusel, estas tarjetas caen igual sobre una
   foto oscura que sobre una pared blanca, y solo con la sombra se difuminaban. */
.hero-float {
    position: absolute; background: #fff; border-radius: 16px; padding: 16px 18px;
    font-size: 13px; z-index: 2;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), var(--shadow-float);
}
.hero-float.a { left: -40px; bottom: 64px; width: 280px }
.hero-float.b { right: -24px; top: 56px; width: 220px }
@media (max-width: 980px) { .hero-float.a { left: 12px } .hero-float.b { right: 12px } .hero-visual { min-height: 440px } }
.hero-float .t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700 }
.hero-float .num { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em }
.hero-float .sub { color: var(--ink-3); font-size: 12px }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700 }
.pill.ok { background: #e3f5ec; color: var(--ok) }
.pill.acc { background: var(--accent-soft); color: var(--accent-dark) }

/* ─────────────────────── franja de novedades ─────────────────────── */
.news { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0 }
.news-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap }
.news .date { font-size: 12px; font-weight: 700; color: var(--accent-dark); margin-bottom: 4px }
.news p { font-weight: 600; font-size: 15px; max-width: 70ch }

/* ─────────────────────────── bandas oscuras ─────────────────────────── */
.band { background: var(--dark); color: #fff; border-radius: 0 0 var(--r-band) var(--r-band); overflow: hidden }
.band.top { border-radius: var(--r-band) var(--r-band) 0 0 }
.band.both { border-radius: var(--r-band); margin: 0 16px }
.band h2, .band h3 { color: #fff }
.band p { color: var(--dark-text) }
.band .eyebrow { color: var(--accent-light) }
.band .link-arrow { color: #fff }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr } .band.both { margin: 0 } }
.band .ph { min-height: 380px }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr } }
.stat { border-top: 2px solid var(--dark-line); padding-top: 18px }
.stat b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1 }
.stat span { font-size: 14px; color: var(--dark-text); display: block; margin-top: 8px }

/* ─────────────────── tarjetas de producto (letra grande) ─────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr } }
.card { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column }
/* Las dos mitades (letra y foto) deben medir lo mismo: con una foto real la
   fila la marca la imagen, y sin `stretch` el bloque de la letra se queda corto. */
.card .top { display: grid; grid-template-columns: 1fr 1fr; min-height: 150px; align-items: stretch }
.card .top > * { height: 100% }
.card .letter { background: var(--ink); color: #fff; font-size: 92px; font-weight: 800; letter-spacing: -0.06em; display: grid; place-items: center; line-height: 1 }
.card .letter.accent-bg { background: var(--accent); color: #fff }
.card .letter.grey-bg { background: var(--ink-3); color: #fff }
.card .ph { border-radius: 0; border: 0; border-left: 2px dashed #c4c4ca }
.card .ph .lbl { font-size: 11px; padding: 8px 10px }
.card .shot { border-radius: 0 }
.card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column }
.card .cat { font-size: 12px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px }
.card h3 { margin-bottom: 10px }
.card p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; flex: 1 }
.card ul li a, .card ul li > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px }
.card ul li svg { width: 16px; height: 16px; color: var(--ink-3); flex: none }
.card ul li a:hover { color: var(--accent-dark) }

/* ─────────────────────────── cómo funciona ─────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr } }
.step { background: var(--bg-soft); border-radius: var(--r-card); padding: 32px }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 22px }
.step h3 { margin-bottom: 10px }
.step p { color: var(--ink-2); font-size: 15px }

/* ─────────────────────────── casos ─────────────────────────── */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px }
.carousel::-webkit-scrollbar { display: none }
.carousel > * { scroll-snap-align: start }
@media (min-width: 1001px) { .carousel { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible } }
.case { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3/4; background: var(--dark-2) }
.case .ph, .case .shot { position: absolute; inset: 0; border-radius: var(--r-card) }
.case .ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); z-index: 2; color: #fff }
.case .ov .tag { display: inline-block; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px }
.case .ov b { display: block; font-size: 18px; margin-bottom: 4px }
.case .ov span { font-size: 13px; color: #d5d5da }
.case.active { outline: 3px solid var(--accent); outline-offset: -3px }
.case .logo-dot { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; background: #fff; z-index: 2; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink) }
.arrows { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 32px; font-size: 13px; color: var(--dark-text) }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center }
.arrows button svg { width: 18px; height: 18px }
.arrows button[disabled] { opacity: .35; cursor: default }
.arrows.light button { border-color: var(--ink); color: var(--ink) }
.arrows.light { color: var(--ink-3) }

/* ─────────────────────────── split (asesorías) ─────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px } }
.split h2 { margin-bottom: 18px }
.split p { color: var(--ink-2); margin-bottom: 22px }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--ink-2) }
.checks svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px }
.split .visual { position: relative }
.split .visual .ph { min-height: 460px }
.float-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .3); padding: 16px 18px; font-size: 13px; z-index: 2 }
.float-card ul li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line) }
.float-card ul li:first-child { border: 0 }
.float-card time { font-family: var(--mono); font-size: 11px; color: var(--ink-3) }

/* ─────────────────────────── precios ─────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr } }
.plan { border-radius: var(--r-card); padding: 36px 32px; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-card) }
.plan.featured { background: var(--ink); color: #fff }
.plan.featured .who, .plan.featured .price span, .plan.featured .price-note, .plan.featured ul li { color: var(--dark-text) }
.plan .tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 999px; align-self: flex-start; margin-bottom: 16px }
.plan h3 { font-size: 22px; margin-bottom: 4px }
.plan .who { font-size: 14px; color: var(--ink-3); margin-bottom: 24px }
.price { display: flex; align-items: baseline; gap: 6px }
.price b { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1 }
.price span { color: var(--ink-3); font-size: 14px; font-weight: 600 }
.price-note { font-size: 13px; color: var(--ink-3); margin: 8px 0 28px }
.plan .btn { justify-content: center; margin-bottom: 28px }
.plan ul li { font-size: 14px; color: var(--ink-2); padding: 7px 0; display: flex; gap: 10px; align-items: flex-start; font-weight: 500 }
.plan ul svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px }
.pricing-foot { margin-top: 32px; font-size: 14px; color: var(--ink-3); text-align: center }

/* ─────────────────────────── testimonios ─────────────────────────── */
.testi { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start }
@media (max-width: 900px) { .testi { grid-template-columns: 1fr } }
.tcard { background: #fff; border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow-card); margin-bottom: 20px; display: grid; grid-template-columns: 96px 1fr; gap: 24px }
@media (max-width: 560px) { .tcard { grid-template-columns: 1fr } }
.tcard .ph, .tcard .shot { width: 96px; height: 96px; border-radius: 50% }
.tcard .ph .lbl { font-size: 10px; padding: 6px 8px; border-radius: 8px }
/* Monograma: los testimonios van anónimos, así que en vez de un retrato se
   pinta la inicial de la provincia del pie. Ver Components/_Monograma. */
.tcard .avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent-ring);
    color: var(--accent-dark); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1 }
@media (max-width: 560px) { .tcard .avatar { width: 72px; height: 72px; font-size: 30px } }
.tcard blockquote { font-size: 16px; line-height: 1.6; margin-bottom: 18px }
.tcard b { display: block }
.tcard cite { font-style: normal }
.tcard span { font-size: 13px; color: var(--ink-3) }

/* ─────────────────────────── blog ─────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr } }
.post { background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column }
.post .ph, .post .cover { aspect-ratio: 16/10; border-radius: 0; border: 0; border-bottom: 2px dashed #c4c4ca; width: 100%; object-fit: cover }
.post .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1 }
.post .cat { font-size: 12px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px }
.post h3 { font-size: 19px; margin-bottom: 12px }
.post .meta { font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; margin-top: auto }

/* ─────────────────────────── FAQ ─────────────────────────── */
.faq { max-width: 820px; margin: 0 auto }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0 }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--accent-dark); transition: transform .18s; line-height: 1 }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq p { color: var(--ink-2); font-size: 15px; margin-top: 14px; max-width: 70ch }

/* ─────────────────────────── CTA final ─────────────────────────── */
.cta-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center }
@media (max-width: 900px) { .cta-in { grid-template-columns: 1fr } }
.cta h2 { margin-bottom: 16px; font-size: clamp(32px, 4.4vw, 54px) }
.cta .ph { min-height: 320px }

/* ─────────────────────────── footer ─────────────────────────── */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 128px 0 40px; font-size: 14px; margin-top: -48px }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 56px }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr } }
.fgrid h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 16px; font-weight: 700; line-height: 1.4 }
.fgrid li { margin-bottom: 10px }
.fgrid a:hover { color: #fff; text-decoration: underline }
.site-footer .logo { color: #fff; margin-bottom: 16px }
.newsletter { display: flex; gap: 8px; margin-top: 12px }
.newsletter input { flex: 1; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 999px; padding: 12px 16px; color: #fff; font-family: inherit; font-size: 14px; min-width: 0 }
.newsletter input::placeholder { color: var(--ink-3) }
.fbottom { border-top: 1px solid var(--dark-line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3) }
.social { display: flex; gap: 10px; margin-top: 20px }
.social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--dark-social); display: grid; place-items: center; color: #fff }
.social a:hover { background: var(--dark-2) }
.social svg { width: 16px; height: 16px }

/* ─────────────────────── formularios y flujo de registro ─────────────────────── */
.form-panel { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 36px }
@media (max-width: 640px) { .form-panel { padding: 24px 20px } }
.field { margin-bottom: 20px }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 6px }
.input, .select, .textarea {
    width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft) }
.input[aria-invalid="true"], .input.is-invalid { border-color: var(--danger) }
.field-error, .validation-message { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 6px; display: block }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2) }
.checkbox input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr } }

.alert { border-radius: 14px; padding: 16px 18px; font-size: 14px; font-weight: 600; margin-bottom: 20px }
.alert-error { background: #fdecea; color: #92251a }
.alert-ok { background: #e3f5ec; color: var(--ok) }
.alert-info { background: var(--bg-soft); color: var(--ink-2) }

/* tarjetas de elección de plan dentro del alta */
.plan-card {
    border: 2px solid var(--line); border-radius: var(--r-card); padding: 24px; text-align: center;
    cursor: pointer; transition: border-color .18s, background .18s; background: #fff;
}
.plan-card:hover { border-color: var(--accent-ring) }
.plan-card.selected { border-color: var(--accent); background: var(--accent-soft) }
.plan-card h3 { font-size: 20px; margin-bottom: 6px }
.plan-card .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1 }
.plan-card .free { font-size: 13px; font-weight: 700; color: var(--accent-dark); margin: 8px 0 16px }

/* campo de contraseña con botón de mostrar/ocultar */
.password-wrap { position: relative }
.password-wrap .input { padding-right: 48px }
.toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 4px;
}
.toggle-password svg { width: 20px; height: 20px }

.input.is-valid { border-color: var(--accent) }
.ok-text { color: var(--ok); font-weight: 600 }
.err-text { color: var(--danger); font-weight: 600 }
.warn-text { color: #b26a00; font-weight: 600 }

.spinner {
    display: inline-block; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* pasos del asistente */
.wizard { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; font-size: 13px; font-weight: 700 }
.wizard li { display: flex; align-items: center; gap: 10px; color: var(--ink-3) }
.wizard .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-3); display: grid; place-items: center; font-size: 13px }
.wizard li.done .dot, .wizard li.current .dot { background: var(--accent); color: #fff }
.wizard li.current { color: var(--ink) }
.wizard .sep { flex: 1; height: 2px; background: var(--line); min-width: 16px }
@media (max-width: 640px) { .wizard span.label { display: none } }

.narrow { max-width: 720px; margin: 0 auto }
.page-head { padding: 56px 0 32px }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px }

/* ─────────────────────── contenido largo (legales, blog) ─────────────────────── */
.prose { max-width: 72ch; color: var(--ink-2); font-size: 16px }
.prose h2 { font-size: 28px; color: var(--ink); margin: 40px 0 16px }
.prose h3 { font-size: 20px; color: var(--ink); margin: 28px 0 12px }
.prose p { margin-bottom: 16px }
.prose ul, .prose ol { margin: 0 0 16px 22px }
.prose ul li { list-style: disc; margin-bottom: 8px }
.prose ol li { list-style: decimal; margin-bottom: 8px }
.prose a { color: var(--accent-dark); font-weight: 600; text-decoration: underline }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 15px }
.prose th, .prose td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line) }
.prose th { font-weight: 700; color: var(--ink) }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 0 0 16px; color: var(--ink-2) }
.prose img { border-radius: var(--r-card); margin-bottom: 16px }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px }

.breadcrumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 20px }
.breadcrumbs a:hover { color: var(--ink) }

/* ─────────────────────────── utilidades ─────────────────────────── */
.center { text-align: center }
.mt-0 { margin-top: 0 } .mt-8 { margin-top: 8px } .mt-16 { margin-top: 16px } .mt-24 { margin-top: 24px } .mt-32 { margin-top: 32px } .mt-48 { margin-top: 48px }
.mb-0 { margin-bottom: 0 } .mb-8 { margin-bottom: 8px } .mb-16 { margin-bottom: 16px } .mb-24 { margin-bottom: 24px } .mb-32 { margin-bottom: 32px }
.flex { display: flex } .flex-wrap { flex-wrap: wrap } .items-center { align-items: center } .justify-between { justify-content: space-between }
.gap-8 { gap: 8px } .gap-12 { gap: 12px } .gap-16 { gap: 16px } .gap-24 { gap: 24px }
.pt-0 { padding-top: 0 }
.hide { display: none }
