/* ==========================================================================
   CitasPlus · Landing y páginas públicas (estilo claro editorial)
   CSS propio, sin compilación. Reemplaza a Tailwind Play CDN + Font Awesome JS.
   ========================================================================== */

:root {
    --paper: #f6f2ea;
    --paper-2: #efe8dc;
    --card: #fffdf9;
    --ink: #1d1b18;
    --ink-2: #47423b;
    --muted: #6b645a;
    --line: #ddd4c6;
    --line-strong: #c9bfae;
    --accent: #8c00db;          /* morado del logo de CitasPlus (contraste AA sobre el fondo) */
    --accent-hover: #7300b5;
    --accent-soft: #f2e4fc;
    --on-accent: #ffffff;
    --wa-bubble: #dcf3d0;
    --wa-green: #1f9d55;
    --focus: #8c00db;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --wrap: 1160px;
    --gutter: 16px;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 0 rgba(29, 27, 24, .04), 0 12px 32px -18px rgba(29, 27, 24, .35);
}

@media (min-width: 768px) {
    :root { --gutter: 28px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 100;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Tipografía editorial ---------- */

.display {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144;
    font-weight: 560;
    letter-spacing: -0.022em;
    line-height: 1.02;
}

.kicker {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
.kicker span {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0;
    color: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 120;
    font-weight: 560;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.018em;
    max-width: 18ch;
}

.lead {
    font-size: clamp(1.06rem, 1.6vw, 1.22rem);
    color: var(--ink-2);
    max-width: 52ch;
}

em.serif {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 600 16px/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Encabezado ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 242, 234, .94);
    border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) {
    .site-header { background: rgba(246, 242, 234, .86); backdrop-filter: blur(6px); }
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { color: var(--accent); font-weight: 700; }

.nav-desktop {
    display: none;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}
.nav-desktop a { text-decoration: none; color: var(--ink-2); }
.nav-desktop a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }

.header-actions { display: none; align-items: center; gap: 14px; }
.header-actions .login { font-weight: 600; font-size: 15px; text-decoration: none; }
.header-actions .login:hover { text-decoration: underline; text-underline-offset: 5px; }

.nav-mobile { position: relative; }
.nav-mobile summary {
    list-style: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    cursor: pointer;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }

.nav-mobile-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
    box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .45);
}
.nav-mobile-panel a.nav-item {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}
.nav-mobile-panel .btn { width: 100%; margin-top: 18px; }

@media (min-width: 920px) {
    .nav-desktop, .header-actions { display: flex; }
    .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-green); }

.hero h1 { font-size: clamp(2.6rem, 7vw, 4.9rem); margin-bottom: 22px; max-width: 13ch; }
.hero .lead { margin-bottom: 30px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

@media (min-width: 980px) {
    .hero { padding: 72px 0 96px; }
    .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; }
}

/* Ejemplo del producto (HTML, sin imágenes) */
.demo { margin: 0; position: relative; }

.demo-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.demo-url {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 18px;
}
.demo-url .icon { width: 15px; height: 15px; }
.demo-url strong { color: var(--ink); font-weight: 600; }

.demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.demo-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #2f2a25;
    color: #f6f2ea;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
}
.demo-head strong { display: block; font-size: 17px; line-height: 1.2; }
.demo-head span { font-size: 13px; color: var(--muted); }

.demo-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}

.demo-services { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.demo-services li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
}
.demo-services li span:last-child { color: var(--muted); white-space: nowrap; }
.demo-services li.is-picked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.demo-services li.is-picked span:first-child { font-weight: 600; }

.demo-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.demo-slots span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.demo-slots span.is-picked { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.demo-slots span.is-taken { color: #a39b8f; text-decoration: line-through; }

.demo-cta {
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    padding: 12px;
    font-weight: 600;
}

.demo-wa {
    max-width: 330px;
    margin: -26px 0 0 auto;
    position: relative;
    background: var(--wa-bubble);
    border-radius: 16px 16px 4px 16px;
    padding: 12px 14px 10px;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45);
    border: 1px solid #c4e6b3;
}
.demo-wa .wa-from {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--wa-green);
    margin-bottom: 4px;
}
.demo-wa .wa-from .icon { width: 14px; height: 14px; }
.demo-wa p { margin: 0; }
.demo-wa time { display: block; text-align: right; font-size: 11px; color: #5d7353; margin-top: 4px; }

.demo figcaption {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

@media (min-width: 980px) {
    .demo-card { margin-right: 40px; }
    .demo-wa { margin-right: -8px; }
}

/* ---------- Secciones ---------- */

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-2); }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 900px) {
    .section { padding: 104px 0; }
    .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; margin-bottom: 56px; }
    .section-head .lead { justify-self: end; }
}

/* Para quién */
.audience {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    font-size: clamp(1.5rem, 3.4vw, 2.5rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.audience li { white-space: nowrap; }
.audience li:not(:last-child)::after {
    content: "/";
    color: var(--line-strong);
    margin: 0 .38em;
    font-weight: 400;
}
.audience-note { margin-top: 28px; color: var(--ink-2); max-width: 60ch; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: paso; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps .num {
    display: block;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144;
    font-size: 64px;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 14px;
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* Funciones */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.features li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.features .f-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
}
.features h3 { font-size: 18px; margin-bottom: 4px; }
.features p { margin: 0; color: var(--ink-2); font-size: 16px; }
.features .tag {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    vertical-align: 2px;
}
@media (min-width: 820px) {
    .features { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* Precios */
.calc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.calc label { font-weight: 600; }
.calc small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.stepper button {
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: var(--ink);
}
.stepper button:hover { background: var(--paper-2); }
.stepper input {
    width: 56px;
    height: 48px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font: 600 18px var(--font-body);
    background: transparent;
    color: var(--ink);
    -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.plans { display: grid; gap: 20px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.plan-premium { border-color: var(--ink); }
.plan h3 { font-family: var(--font-display); font-size: 28px; font-weight: 560; margin-bottom: 6px; }
.plan .plan-summary { color: var(--ink-2); margin-bottom: 20px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan .price strong {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144;
    font-size: 52px;
    font-weight: 560;
    line-height: 1;
    letter-spacing: -0.02em;
}
.plan .price span { color: var(--muted); font-size: 15px; }
.plan .total { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; min-height: 1.6em; }
.plan .total b { color: var(--ink); }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.plan li .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 4px; }
.plan .btn { width: 100%; }
.plan .alt-link { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }

.pricing-note {
    margin-top: 24px;
    display: grid;
    gap: 6px;
    font-size: 15px;
    color: var(--ink-2);
}

/* Preguntas */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--accent); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* Llamada final */
.cta-final { background: var(--ink); color: var(--paper); padding: 80px 0; }
.cta-final .wrap { display: grid; gap: 24px; }
.cta-final h2 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144;
    font-weight: 560;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    max-width: 16ch;
}
.cta-final p { color: #cfc7ba; margin: 0; max-width: 50ch; }
.cta-final .btn-ghost { color: var(--paper); border-color: #6b645a; }
.cta-final .btn-ghost:hover { border-color: var(--paper); }
@media (min-width: 900px) {
    .cta-final .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; }
    .cta-final .ctas { justify-self: end; }
}
.cta-final .ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pie ---------- */

.site-footer { padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-about p { color: var(--ink-2); max-width: 38ch; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    color: var(--ink);
}
.footer-social a:hover { border-color: var(--ink); }
.site-footer h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; color: var(--ink-2); }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* Botón de WhatsApp */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { background: #1fbe5b; }

/* ---------- Páginas de texto (aviso de privacidad, términos) ---------- */

.doc-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 12px; }
.doc-hero p { color: var(--ink-2); margin: 0; }

.doc { display: grid; gap: 40px; padding: 48px 0 88px; }
@media (min-width: 960px) { .doc { grid-template-columns: 260px 1fr; gap: 64px; } }

.doc-toc { font-size: 15px; }
@media (min-width: 960px) { .doc-toc nav { position: sticky; top: 96px; } }
.doc-toc h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc-toc a { text-decoration: none; color: var(--ink-2); }
.doc-toc a:hover { color: var(--accent); text-decoration: underline; }

.doc-body { max-width: 72ch; }
.doc-body section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.doc-body section:last-child { border-bottom: 0; }
.doc-body h2 { font-family: var(--font-display); font-weight: 560; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin-bottom: 18px; }
.doc-body h3 { font-size: 19px; margin: 26px 0 10px; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }
.doc-body a { color: var(--accent); }
.doc-callout {
    border-left: 3px solid var(--accent);
    background: var(--card);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0 0 18px;
}
.doc-callout p { margin: 0; }
.doc-meta { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
@media (min-width: 640px) { .doc-meta { grid-template-columns: 1fr 1fr; } }
.doc-meta strong { display: block; color: var(--ink); }
.arco { display: grid; gap: 10px; list-style: none; padding: 0 !important; }
@media (min-width: 640px) { .arco { grid-template-columns: 1fr 1fr; } }
.arco li { display: flex; gap: 12px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.arco b { font-family: var(--font-display); font-size: 26px; color: var(--accent); line-height: 1; }

/* ---------- 404 ---------- */

.not-found { padding: 96px 0 120px; }
.not-found .code {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144;
    font-size: clamp(5rem, 16vw, 10rem);
    line-height: .9;
    color: var(--accent);
    margin-bottom: 18px;
}
.not-found h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; max-width: 18ch; }
.not-found p { color: var(--ink-2); max-width: 50ch; margin-bottom: 28px; }
.not-found .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
