/* Importación de fuentes de Google Fonts para un estilo más amigable */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Quicksand:wght@500&display=swap');

:root {
    --primary-color: #4CAF50; /* Verde vibrante */
    --secondary-color: #FFC107; /* Amarillo cálido */
    --dark-color: #333;
    --light-color: #f8f8f8;
    --text-color: #555;
    --accent-color: #2196F3; /* Azul para enlaces y botones */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--text-color);
    scroll-behavior: smooth; /* Desplazamiento suave para anclas */
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

header h1 {
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 5px;
    font-size: 2.5em;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: var(--dark-color);
    color: #fff;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 0;
}

nav ul li {
    display: inline-block; /* Cambiado a inline-block para mejor control */
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Main Content Sections */
main {
    padding: 20px 0;
}

.content-section {
    padding: 40px 0;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.light-bg {
    background-color: var(--light-color);
    box-shadow: none; /* Sin sombra para un contraste suave */
}

h2 {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

h3 {
    color: var(--dark-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6dd5ed 100%); /* Degradado de color */
    color: #fff;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero h2 {
    color: #fff;
    font-size: 2.8em;
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif;
}

.hero p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Topic Grid for "Nuestros Temas" */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.topic-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.topic-card h3 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.5em;
    font-family: 'Quicksand', sans-serif;
}

.topic-card p {
    font-size: 0.95em;
    color: var(--text-color);
}

/* Buttons */
.button {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.button:hover {
    background: #1976D2; /* Azul más oscuro */
}

.call-to-action {
    text-align: center;
    font-style: italic;
    margin-top: 40px;
    color: var(--primary-color);
    font-weight: 600;
}


/* List styles for Resources & Contact */
.content-section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.content-section ul li {
    background: #fdfdfd;
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.content-section ul li a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.content-section ul li a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: var(--dark-color);
    color: #fff;
    margin-top: 40px;
    font-size: 0.9em;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .hero h2 {
        font-size: 2em;
    }

    nav ul li {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }
}