:root {
    --bg: #f3efe6;
    --bg-deep: #e7e1d4;
    --surface: #fffcf6;
    --ink: #1b1915;
    --muted: #6d665c;
    --line: #d8d0c2;
    --pine: #16463f;
    --pine-hover: #0f332e;
    --pine-soft: #2a6b61;
    --ya: #c05621;
    --ya-soft: #d9783c;
    --shadow: 0 10px 30px rgba(27, 25, 21, 0.06);
    --radius: 14px;
    --font-sans: "Outfit", system-ui, sans-serif;
    --font-serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    min-height: 100vh;
}

body {
    background:
        radial-gradient(1200px 420px at 8% -10%, rgba(42, 107, 97, 0.09), transparent 60%),
        radial-gradient(900px 380px at 100% 0%, rgba(192, 86, 33, 0.08), transparent 55%),
        var(--bg);
}

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

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 252, 246, 0.88);
    backdrop-filter: blur(8px);
    padding: 22px 0 18px;
}

.header-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
}

.brand span { color: var(--ya); }

.tagline {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero {
    padding: 42px 0 18px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 18ch;
    margin-bottom: 12px;
}

.hero p {
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 28px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 560;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.product-card h5 {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 560;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.product-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.product-card .precio-curso {
    color: var(--pine);
    font-size: 1.08rem;
    font-weight: 600;
    margin: 8px 0 16px;
}

.product-card form { margin-top: auto; }

.form-label,
.small-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.form-control,
.form-select {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    color: var(--ink);
    border-color: var(--pine-soft);
    box-shadow: 0 0 0 0.2rem rgba(22, 70, 63, 0.12);
}

.btn-primary {
    background: var(--pine);
    border: none;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--pine-hover);
}

.legal-panel,
.panel-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-panel {
    max-width: 860px;
    margin: 48px auto 56px;
    padding: 36px 32px;
}

.panel-card {
    max-width: 460px;
    margin: 72px auto;
    padding: 32px 28px;
}

.legal-panel h1,
.panel-card h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 560;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.legal-panel h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-top: 26px;
    margin-bottom: 10px;
}

.legal-panel p,
.legal-panel li,
.panel-card p {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
    margin-top: 28px;
}

.legal-links a {
    color: var(--pine);
    text-decoration: none;
    font-weight: 500;
}

.legal-links a:hover { color: var(--ya); }

#card-element {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .legal-panel { padding: 28px 20px; margin: 28px 12px 40px; }
}
