/* ── Lumbre Central — Design System ── */
/* Mismo lenguaje visual que el portal Lumbre: marfil calido + terracota. */

:root {
    --bg: #f7f5f0; --surface: #fcfbf8; --ink: #20201e; --muted: #77736d;
    --accent: #c85d3a; --accent-hover: #a94c2e; --accent-soft: #f3e4dc;
    --line: #e7e2d8; --warm: #b0703f;
    --ok: #4f7a3a; --ok-soft: #eaf1e6; --warn: #a5701c; --warn-soft: #f7ecd6;
    --danger: #a94c2e; --danger-soft: #f6e6e0;
    --shadow-sm: 0 1px 2px #20201e0a; --shadow-md: 0 6px 20px #20201e0f; --shadow: var(--shadow-md);
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
    --font-ui: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --font-reading: Georgia, "Times New Roman", serif;
    font-family: var(--font-ui); color: var(--ink); background: var(--bg);
    font-synthesis: none; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 4px; }
h1, h2, h3, p { margin: 0 0 16px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.16; }
h1 { font-size: clamp(36px, 4.4vw, 62px); }
h2 { font-size: 34px; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
em { color: var(--accent); font-weight: 400; }
.container { max-width: 1320px; width: calc(100% - 112px); margin: 0 auto; }
.narrow { max-width: 790px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); line-height: 1.8; text-transform: uppercase; }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 32px; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 6px; z-index: 1000; font-size: 13px; }
.skip-link:focus { top: 8px; }

/* ── Header ── */
.site-header { height: 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 16px; background: var(--surface); position: sticky; top: 0; z-index: 100; }
.brand { display: inline-flex; align-items: center; gap: 7px; font: 600 22px Georgia, serif; letter-spacing: -0.8px; white-space: nowrap; }
.brand > span { color: var(--accent); font-size: 13px; margin-left: 2px; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 20px; }
.main-nav { font-size: 13px; }
.main-nav [aria-current] { color: var(--accent); }
.header-actions { gap: 12px; font-size: 13px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); }
.account-link { font-weight: 500; color: var(--accent); }
.inline-form { display: inline; margin: 0; }

/* ── Buttons ── */
.button { border: 1px solid transparent; background: var(--accent); color: var(--surface); padding: 13px 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 550; min-height: 46px; line-height: 1.4; transition: background .15s, transform .15s; text-decoration: none; }
.button:hover { background: var(--accent-hover); color: var(--surface); transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--accent-soft); }
.button.ghost { color: var(--accent); background: transparent; border-color: transparent; }
.button.ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.button.small { padding: 9px 16px; min-height: 38px; font-size: 12px; }
.button.full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* ── Hero ── */
.hero { min-height: 580px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 72px; padding-top: 66px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(42px, 4.35vw, 65px); line-height: 1.14; margin: 16px 0; letter-spacing: -.052em; }
.hero h1 em { display: inline-block; margin-top: 8px; }
.hero-description { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 450px; margin-bottom: 32px; }

/* ── Hero visual cards ── */
.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.visual-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--accent); }
.visual-card strong { color: var(--ink); font-size: 15px; }
.visual-card small { color: var(--muted); font-size: 12px; }

/* ── Feature grid ── */
.section-heading { margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.feature-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }
.feature-card svg { color: var(--accent); margin-bottom: 12px; }

/* ── Feature list (vertical) ── */
.feature-list { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.feature-item { display: flex; align-items: flex-start; gap: 16px; }
.feature-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.feature-item h3 { font-size: 16px; margin-bottom: 4px; }
.feature-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* ── Info grid ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.info-card h3 { color: var(--accent); margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ── CTA section ── */
.cta-card { padding: 56px 48px; border-radius: var(--radius-lg); background: var(--accent-soft); text-align: center; }
.cta-card h2 { margin-bottom: 12px; }
.cta-card p { color: var(--muted); margin-bottom: 24px; }
.cta-card .actions { justify-content: center; }

/* ── Marketplace placeholder ── */
.marketplace-placeholder { margin: 40px 0; }
.placeholder-card { padding: 56px 40px; border: 2px dashed var(--line); border-radius: var(--radius-lg); text-align: center; }
.placeholder-card svg { color: var(--muted); margin-bottom: 16px; }
.placeholder-card h3 { margin-bottom: 8px; }
.placeholder-card p { color: var(--muted); margin-bottom: 24px; }

/* ── Auth layout ── */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: calc(100vh - 200px); padding-top: 48px; padding-bottom: 48px; }
.auth-intro h1 { font-size: clamp(32px, 3.5vw, 48px); }
.auth-intro p { color: var(--muted); }

/* ── Forms ── */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; }
.form-card h2 { margin-bottom: 4px; }
.form-card h3 { margin-bottom: 16px; }
.form-card label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
.form-card input, .form-card textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 14px; color: var(--ink); }
.form-card input:focus, .form-card textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form-card input:disabled { opacity: .6; cursor: not-allowed; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.checkbox input { width: auto; margin-top: 2px; }
.checkbox span { color: var(--muted); }
.form-foot { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.form-foot a { color: var(--accent); font-weight: 500; }
.form-error { color: var(--danger); font-size: 13px; margin: 8px 0; }

/* ── Account page ── */
.account-header { margin-bottom: 32px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.account-info { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.account-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.account-info dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.account-info dd { margin: 0; font-size: 14px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; }

/* ── Flash ── */
.flash { padding: 14px 24px; background: var(--ok-soft); border: 1px solid var(--ok); border-radius: var(--radius-sm); color: var(--ok); font-size: 14px; text-align: center; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 64px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.site-footer nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.site-footer nav a { display: block; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.site-footer nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; }
.footer-bottom small { color: var(--muted); font-size: 12px; }

/* ── Error page ── */
.error-page main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; text-align: center; padding: 40px 24px; gap: 12px; }
.error-page .brand { margin-bottom: 16px; }
.error-page .eyebrow { color: var(--accent); font-size: 14px; }
.error-page h1 { font-size: 48px; }
.error-page p { color: var(--muted); max-width: 480px; }
.error-page .actions { margin-top: 24px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding-top: 40px; }
    .auth-layout { grid-template-columns: 1fr; gap: 32px; }
    .info-grid { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .container { width: calc(100% - 40px); }
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 16px 24px; gap: 12px; }
    .main-nav.open { display: flex; }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 36px 24px; }
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    .section { padding-top: 40px; padding-bottom: 40px; }
    .form-card { padding: 24px 20px; }
}
