:root {
    --bg-main: #f0f4f8;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --brand-color: #0d9488;    /* Verde esmeralda financiero / moderno */
    --brand-dark: #134e4a;
    --border-subtle: #cbd5e1;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Cabecera minimalista flotante */
.header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    color: var(--text-primary);
    font-weight: 900;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--brand-color);
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    font-weight: 500;
}

.links a:hover {
    color: var(--brand-color);
}

/* Contenedor principal */
.main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.muted {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.muted a {
    color: var(--brand-color);
    text-decoration: none;
}

/* Sección de Bienvenida tipo Banner Moderno */
.course {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-color));
    color: #ffffff;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.3);
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.course h1 {
    color: #ffffff;
    font-size: 34px;
    margin-top: 0;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.course p {
    color: #ccfbf1;
    font-size: 16px;
    margin-bottom: 1.5rem;
}

/* Botones modernos */
.btn {
    display: inline-block;
    background-color: #ffffff;
    color: var(--brand-dark);
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Estructura asimétrica */
.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

.box {
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Artículos */
article {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

article h3 a {
    font-size: 17px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

article h3 a:hover {
    color: var(--brand-color);
}

article p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0.4rem 0 0 0;
}

/* Lateral */
.pill {
    background-color: #ccfbf1;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Espacio publicitario */
.ad-slot {
    background-color: #e2e8f0;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.ad-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Pie de página moderno */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.foot {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.foot b {
    color: var(--text-primary);
}

.foot a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 10px;
}

.foot a:hover {
    color: var(--brand-color);
}
/* ESTILOS PARA EL AVISO DE COOKIES CENTRADO */
#cookieConsentBanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.cookie-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cookie-modal h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 10px;
}

.cookie-modal p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-modal button {
    background: var(--brand-color);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-modal button:hover {
    opacity: 0.9;
}