/* ============================================================
   SPEAK TO LEAD by Origen — mobile-first stylesheet
   Palette: ivory/cream paper, ink text, gold & bronze accents.
   ============================================================ */

:root {
    --ivory: #f6f1e7;
    --paper: #fdfbf6;
    --cream: #efe7d7;
    --ink: #1c1712;
    --muted: #6b6152;
    --line: #e3dac8;
    --gold: #a08656;
    --gold-soft: #c9b088;
    --bronze: #78543c;
    --wa: #25d366;
    --ok: #2e7d4f;
    --danger: #b3402e;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --shadow: 0 10px 30px rgba(28, 23, 18, .08);
    --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }

em { font-style: italic; color: var(--bronze); }

a { color: var(--bronze); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

/* ---------- header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(246, 241, 231, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    position: relative;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--bronze);
    letter-spacing: .5px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: 2.5px; font-size: 15px; }
.brand-by { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

.site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
}

.site-nav[data-open="True"], .site-nav[data-open="true"] { display: flex; }

.nav-link {
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}

.nav-link:hover { background: var(--cream); }

.nav-cta { text-align: center; margin-top: 6px; }

@media (min-width: 920px) {
    .nav-toggle { display: none; }
    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .nav-link { padding: 8px 14px; }
    .nav-cta { margin: 0 0 0 10px; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1.2;
}

.btn:active { transform: translateY(1px); }

.btn-lg { padding: 15px 30px; font-size: 16px; }

.btn-block { width: 100%; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--bronze) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(120, 84, 60, .28);
}

.btn-gold:hover { box-shadow: 0 8px 24px rgba(120, 84, 60, .4); }

.btn-outline {
    border-color: var(--gold);
    color: var(--bronze);
    background: transparent;
}

.btn-outline:hover { background: var(--cream); }

.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }

.btn-ghost:hover { background: rgba(255,255,255,.1); }

.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(201, 176, 136, .25), transparent 60%),
        linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%);
    padding: 48px 0 64px;
    overflow: hidden;
}

.hero-grid { display: grid; gap: 40px; align-items: center; }

.eyebrow {
    font-size: 12px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 14px;
}

.hero-title {
    font-size: clamp(40px, 9vw, 64px);
    margin-bottom: 12px;
    position: relative;
}

.hero-by {
    display: block;
    font-size: clamp(16px, 3vw, 22px);
    font-style: italic;
    color: var(--gold);
    letter-spacing: 2px;
    margin-top: 6px;
}

.hero-subtitle { font-size: clamp(17px, 3.5vw, 20px); font-weight: 600; color: var(--ink); margin-bottom: 8px; }

.hero-lede { color: var(--muted); max-width: 520px; margin-bottom: 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.hero-actions-center { justify-content: center; }

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px 28px;
    margin: 26px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
}

.hero-facts div { display: flex; flex-direction: column; }

.hero-facts dt { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--bronze); order: 2; }
.hero-facts dd { margin: 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); order: 1; }

.hero-media { position: relative; }

.hero-photo-frame {
    border-radius: 200px 200px var(--radius) var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
}

.hero-photo-frame::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(201, 176, 136, .55);
    border-radius: 190px 190px 8px 8px;
    pointer-events: none;
}

.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.hero-badge {
    position: absolute;
    left: -6px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px 16px 10px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    max-width: 240px;
}

.hero-badge-num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--bronze);
}

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

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 48px 0 72px; }
.section-cream { background: var(--cream); }

.section-title { font-size: clamp(28px, 6vw, 42px); margin-bottom: 18px; }
.section-title em { display: inline; }

.section-lead { color: var(--muted); max-width: 640px; margin: -6px 0 30px; }

.page-title { font-size: clamp(30px, 6.5vw, 46px); margin-bottom: 14px; }

/* ---------- benefits ---------- */
.benefit-grid { display: grid; gap: 14px; }

.benefit-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 4px 14px rgba(28, 23, 18, .04);
}

.benefit-card p { margin: 0; font-weight: 500; }

.benefit-icon {
    flex: 0 0 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,176,136,.35), rgba(120,84,60,.18));
    color: var(--bronze);
}

.benefit-icon svg { width: 21px; height: 21px; }

@media (min-width: 640px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .benefit-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- programa (day cards) ---------- */
.day-grid { display: grid; gap: 20px; }

.day-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: 0 4px 14px rgba(28, 23, 18, .04);
    display: flex;
    flex-direction: column;
}

.day-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.day-chip {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    padding: 6px 14px;
    border-radius: 999px;
}

.day-duration { font-size: 13px; color: var(--muted); font-weight: 600; }

.day-title { font-size: 24px; margin-bottom: 4px; }

.day-theme { color: var(--bronze); font-weight: 600; font-size: 14.5px; margin: 0 0 10px; }

.day-intro { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

.module { border-top: 1px dashed var(--line); padding: 12px 0 6px; }

.module h4 { font-size: 15px; margin-bottom: 8px; color: var(--ink); }

.module ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

.module li { margin-bottom: 4px; }

.day-extra {
    margin-top: 14px;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--muted);
}

.day-foot {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.day-price { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--bronze); }

@media (min-width: 940px) { .day-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; gap: 18px; align-items: stretch; }

.price-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(28, 23, 18, .04);
}

.price-card h3 { font-size: 21px; }

.price-amount { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--bronze); margin: 6px 0 0; }

.price-detail { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.price-features { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }

.price-features li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14.5px; color: var(--muted); }

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
}

.price-card-featured {
    border: 1.5px solid var(--gold);
    box-shadow: 0 14px 40px rgba(120, 84, 60, .16);
    transform: scale(1);
}

.price-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (min-width: 940px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- instructora ---------- */
.instructora-grid { display: grid; gap: 32px; align-items: center; }

.instructora-mark {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    width: min(260px, 70vw);
    aspect-ratio: 1;
    margin: 0 auto;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.instructora-mark span {
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 700;
    color: var(--bronze);
    letter-spacing: 4px;
}

.instructora-mark small {
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
}

@media (min-width: 860px) {
    .instructora-grid { grid-template-columns: 300px 1fr; gap: 56px; }
}

/* ---------- cta band ---------- */
.cta-band {
    background:
        radial-gradient(700px 300px at 50% -40%, rgba(201, 176, 136, .25), transparent 70%),
        var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 72px 0;
}

.cta-band h2 { color: #fff; font-size: clamp(26px, 6vw, 40px); }

.cta-band h2 em { color: var(--gold-soft); }

.cta-band p { color: rgba(253, 251, 246, .75); max-width: 560px; margin: 0 auto 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(253, 251, 246, .8); padding: 48px 0 0; margin-top: auto; }

.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; }

.site-footer h4 { color: var(--gold-soft); font-size: 15px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }

.site-footer a { display: block; color: rgba(253, 251, 246, .8); text-decoration: none; padding: 4px 0; font-size: 14.5px; }

.site-footer a:hover { color: #fff; }

.footer-tagline { font-size: 14px; color: rgba(253, 251, 246, .6); max-width: 300px; margin: 14px 0 0; }

.footer-loc { margin: 8px 0 0; font-size: 13px; color: rgba(253, 251, 246, .5); }

.site-footer .brand-name { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(253, 251, 246, .12); padding: 18px 20px; font-size: 12.5px; color: rgba(253, 251, 246, .45); }

@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ---------- registro ---------- */
.registro-grid { display: grid; gap: 32px; }

.daypick-list { display: grid; gap: 12px; margin-top: 20px; }

.daypick {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.daypick:hover { border-color: var(--gold-soft); }

.daypick-selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(160, 134, 86, .18); }

.daypick-disabled { opacity: .55; cursor: not-allowed; }

.daypick input { position: absolute; opacity: 0; pointer-events: none; }

.daypick-check {
    flex: 0 0 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--gold);
    border-radius: 8px;
    background: var(--paper);
    color: #fff;
    transition: background .15s ease;
}

.daypick-check svg { width: 15px; height: 15px; opacity: 0; }

.daypick-selected .daypick-check { background: linear-gradient(135deg, var(--gold), var(--bronze)); }

.daypick-selected .daypick-check svg { opacity: 1; }

.daypick-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }

.daypick-name { font-weight: 600; font-size: 15.5px; }

.daypick-theme { font-size: 13px; color: var(--muted); }

.daypick-price { font-family: var(--font-display); font-weight: 700; color: var(--bronze); font-size: 18px; white-space: nowrap; }

.daypick-cert { background: linear-gradient(135deg, rgba(201, 176, 136, .18), var(--paper)); }

.registro-summary {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 22px;
    align-self: start;
    position: sticky;
    top: 84px;
}

.registro-summary h2 { font-size: 22px; }

.summary-lines { list-style: none; margin: 0 0 14px; padding: 0; }

.summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14.5px;
}

.summary-empty { color: var(--muted); justify-content: center !important; border: none !important; }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0 4px;
    font-size: 16px;
}

.summary-total strong { font-family: var(--font-display); font-size: 30px; color: var(--bronze); }

.summary-note { color: var(--ok); font-size: 13.5px; margin: 0 0 14px; }

.summary-secure { font-size: 12.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }

.summary-help { font-size: 13px; color: var(--muted); text-align: center; margin: 6px 0 0; }

.summary-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }

.summary-form h3 { font-size: 18px; }

@media (min-width: 940px) { .registro-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }

/* ---------- forms ---------- */
.form-field { margin-bottom: 14px; }

.form-field-row { display: grid; gap: 0 14px; }

.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

.form-field input, .form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
}

.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(160, 134, 86, .18);
}

.form-error {
    background: rgba(179, 64, 46, .08);
    border: 1px solid rgba(179, 64, 46, .3);
    color: var(--danger);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.form-warn {
    background: rgba(160, 134, 86, .12);
    border: 1px solid var(--gold-soft);
    color: var(--bronze);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
}

.form-warn code { background: var(--cream); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

@media (min-width: 640px) { .form-field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- contacto ---------- */
.contacto-grid { display: grid; gap: 36px; }

.contact-cards { display: grid; gap: 12px; margin-top: 20px; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.contact-card-icon {
    flex: 0 0 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--cream);
    color: var(--bronze);
}

.contact-card-icon svg { width: 22px; height: 22px; }

.contact-card-wa { background: rgba(37, 211, 102, .15); color: #128c4b; }

.contact-card-body { display: flex; flex-direction: column; }

.contact-card-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.contact-card-value { font-weight: 600; color: var(--ink); font-size: 15.5px; }

.contacto-form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 22px;
    align-self: start;
}

.contacto-form-card h2 { font-size: 22px; }

.form-success { text-align: center; padding: 30px 6px; }

.form-success svg { width: 52px; height: 52px; color: var(--ok); margin-bottom: 10px; }

.form-success h2 { font-size: 24px; color: var(--ink); }

.form-success p { color: var(--muted); margin-bottom: 18px; }

@media (min-width: 940px) { .contacto-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- result pages (éxito / cancelado / 404) ---------- */
.result-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 26px;
    text-align: center;
}

.result-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.result-icon svg { width: 34px; height: 34px; }

.result-icon-ok { background: rgba(46, 125, 79, .12); color: var(--ok); }

.result-icon-warn { background: rgba(160, 134, 86, .18); color: var(--bronze); }

.result-detail { color: var(--muted); max-width: 480px; margin: 0 auto 8px; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 55;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    box-shadow: 0 8px 22px rgba(18, 140, 75, .45);
    transition: transform .15s ease;
}

.whatsapp-fab:hover { transform: scale(1.06); }

.whatsapp-fab svg { width: 30px; height: 30px; }

/* ---------- chat widget ---------- */
.chat-fab-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 56; display: flex; align-items: center; gap: 10px; }

.chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(120, 84, 60, .45);
    transition: transform .15s ease;
}

.chat-fab:hover { transform: scale(1.06); }

.chat-fab svg { width: 28px; height: 28px; }

.chat-fab-hint {
    background: var(--ink);
    color: var(--paper);
    font-size: 12.5px;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--shadow);
    animation: hint-in .4s ease;
}

@keyframes hint-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.chat-panel {
    position: fixed;
    right: 14px;
    bottom: 90px;
    z-index: 57;
    width: min(380px, calc(100vw - 28px));
    max-height: min(560px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(28, 23, 18, .25);
    overflow: hidden;
    animation: chat-in .22s ease;
}

@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--ink);
    color: var(--paper);
}

.chat-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: .5px; }

.chat-subtitle { font-size: 11.5px; color: rgba(253, 251, 246, .65); }

.chat-close {
    background: none;
    border: none;
    color: rgba(253, 251, 246, .8);
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.chat-close:hover { background: rgba(255, 255, 255, .1); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--ivory);
    min-height: 200px;
}

.chat-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }

.chat-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.chat-avatar {
    flex: 0 0 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .5px;
}

.chat-bubble {
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-msg-bot .chat-bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }

.chat-msg-user .chat-bubble { background: linear-gradient(135deg, var(--gold), var(--bronze)); color: #fff; border-bottom-right-radius: 4px; }

.chat-signup-row { align-self: flex-start; }

.chat-signup-btn { font-size: 14px; padding: 10px 16px; }

.chat-signup-btn svg { width: 16px; height: 16px; }

.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 13px; }

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: typing 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 2px; background: var(--ivory); }

.chat-chip {
    border: 1px solid var(--gold-soft);
    background: #fff;
    color: var(--bronze);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
    font-family: var(--font-body);
}

.chat-chip:hover { background: var(--cream); }

.chat-input-row { display: flex; gap: 8px; padding: 10px 12px; background: var(--paper); border-top: 1px solid var(--line); }

.chat-input {
    flex: 1;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--font-body);
    background: #fff;
    color: var(--ink);
}

.chat-input:focus { outline: none; border-color: var(--gold); }

.chat-send {
    flex: 0 0 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    color: #fff;
    cursor: pointer;
}

.chat-send svg { width: 18px; height: 18px; }

.chat-send[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- blazor error ui ---------- */
#blazor-error-ui {
    color-scheme: light only;
    background: #fffbeb;
    border-top: 1px solid rgba(160, 134, 86, .5);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .1);
    display: none;
    left: 0;
    right: 0;
    padding: 10px 20px;
    position: fixed;
    z-index: 9999;
    font-size: 14px;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 20px; top: 10px; }
#blazor-error-ui .reload { color: var(--bronze); }

/* ---------- layout shell ---------- */
.site-main { min-height: 60vh; display: flex; flex-direction: column; }
.site-main > * { width: 100%; }

::selection { background: rgba(160, 134, 86, .35); }

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