/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Header */
header {
    background-color: #0d6efd;
    color: white;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 2em;
    font-weight: 700;
}

/* Menú de navegación */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffc107;
}

/* Main */
main {
    padding: 40px 10%;
}

h2 {
    color: #0d6efd;
    margin-bottom: 20px;
}

h3 {
    color: #0d6efd;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #212529;
    color: white;
    padding: 25px 10%;
    text-align: center;
}

footer a {
    color: #ffc107;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.3s;
}

footer a:hover {
    color: #0d6efd;
}

/* Tarjetas para secciones */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    flex: 1 1 calc(33% - 25px);
    min-width: 250px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card h3 {
    color: #0d6efd;
    margin-bottom: 10px;
}

.card a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.card a:hover {
    background-color: #ffc107;
    color: #333;
}

/* Responsivo */
@media(max-width: 992px){
    .card-container {
        flex-direction: row;
        justify-content: center;
    }
}

@media(max-width: 768px){
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .card-container {
        flex-direction: column;
        gap: 20px;
    }
}