:root {
    --primary: #5C4033;        /* Marrón Eevee oscuro */
    --secondary: #8B6B4F;      /* Marrón medio */
    --accent: #CFAE70;         /* Crema Eevee */
    --bg: #F6F3EE;             /* Fondo claro cálido */
    --surface: #FFFFFF;        /* Tarjetas */
    --border: #E3DED6;         /* Bordes suaves */
    --text: #2B2B2B;           /* Texto principal */
    --muted: #6B6B6B;          /* Texto secundario */

    --radius: 10px;
    --shadow: 0 6px 20px rgba(0,0,0,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* HEADER */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* NAV */
nav {
    background-color: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
}

nav a:hover {
    background-color: var(--primary);
    color: #fff;
}

/* MAIN */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* SECTIONS */
.fondoArticulo {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.fondoArticulo h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--primary);
    border-left: 6px solid var(--accent);
    padding-left: 14px;
}

/* GRID TARJETAS */
section > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* CARD */
article {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform .2s ease, box-shadow .2s ease, border .2s ease;
    height: 100%;
}

article h3 {
    margin-bottom: 8px;
    color: var(--primary);
}

article p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* LINK */
section a {
    text-decoration: none;
}

/* HOVER CARD */
article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    border-color: var(--secondary);
}

/* FOOTER */
footer {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

footer i {
    font-size: 26px;
    margin-bottom: 10px;
}
