:root {
    --primary: #2c3e50;
    --secondary: #e67e22;
    --bg: #fdfbf7;
    --text: #333333;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
}

/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px; /* Requisito: 16-18px */
    line-height: 1.6;
}

/* Imágenes Responsive */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Encabezado */
header {
    background-color: var(--primary);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 5px solid var(--secondary);
}

h1, h2, h3 {
    font-family: var(--font-head);
    color: var(--primary);
    margin-bottom: 1rem;
}

header h1 {
    color: white;
    font-size: 3rem; /* Requisito: >32px */
    font-weight: 700;
}

header h2 {
    color: #ecf0f1;
    font-size: 1.5rem; /* Requisito: >24px */
    font-weight: 400;
}

/* Navegación */
nav {
    margin-top: 20px;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 4px;
}

nav ul {
    list-style: none;
    display: flex; /* PC: Horizontal */
    justify-content: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
}

nav a:hover { color: var(--secondary); }

/* Contenido Principal */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    background: white;
    margin-bottom: 50px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary);
}

section h2 {
    font-size: 2.2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

strong { color: var(--secondary); }

footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 20px;
    font-family: var(--font-head);
    margin-top: auto;
}

/* =========================================
   MEDIA QUERIES (Responsive Design)
   ========================================= */

/* 1. Tablet (max 1024px) */
@media (max-width: 1024px) {
    body { font-size: 17px; }
    main { padding: 20px; }
    header h1 { font-size: 2.5rem; }
}

/* 2. Horizontal Móvil (max 768px) */
@media (max-width: 768px) {
    /* Menú Vertical */
    nav ul { flex-direction: column; gap: 15px; }
    nav li { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
    section { padding: 25px; border-left: none; border-top: 5px solid var(--secondary); }
}

/* 3. Celular (max 480px) */
@media (max-width: 480px) {
    body { font-size: 16px; }
    header h1 { font-size: 2rem; }
    header h2 { font-size: 1.2rem; }
    section h2 { font-size: 1.5rem; }
    footer { font-size: 0.8rem; }
}