@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

:root {
  --color-amarillo: #FCD116;
  --color-azul: #003893;
  --color-rojo: #CE1126;
  --color-claro: #f4f4f4;
  --color-oscuro: #333333;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

/* Hero Section for Topics */
.hero-topics {
    background-color: var(--color-azul);
    color: white;
    padding: 100px 20px 60px;
    text-align: center;
}

.hero-topics h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-topics p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}


/* Topics Grid Section */
.topics-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-azul);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-amarillo);
    margin: 10px auto 0;
    border-radius: 2px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.topic-card {
    background-color: var(--color-claro);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--color-azul);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.topic-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.topic-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-oscuro);
    margin-bottom: 15px;
}

.topic-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

@media screen and (max-width: 768px) {
    .hero-topics h1 {
        font-size: 2.8rem;
    }
}
