/* Estilo general para la página */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Encabezado */
header {
    background: linear-gradient(135deg, #4e6e81, #f4c542);
    color: white;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header img {
    width: 300px;
    margin-bottom: 15px;
    border-radius: 50%;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

/* Sección de introducción */
.intro {
    max-width: 900px;
    margin: 50px auto;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.intro h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.8;
    
    margin-bottom: 30px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta {
    padding: 16px 35px;
    background-color: #6e7dff;
    color: white;
    font-size: 1.2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.cta:hover {
    background-color: #5a6ee0;
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.cta:active {
    transform: translateY(1px);
}

/* Cards */
.cards-container {
    display: none;
    margin: 20px auto;
    margin-bottom: 80px;
    width: 70%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    gap: 30px;
}

.card {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    text-align: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.card-header {
    display: flex;
    flex-flow: column wrap;
    justify-content: start;
}

.card-header a {
    text-decoration: none;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    /* height: 200px; */
    object-fit: cover;
}

.card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    padding: 20px;
    text-align: center;
}

.card-footer {
    font-size: 0.9rem;
    color: #7f8c8d;
    background-color: #f4f4f4;
    padding: 10px 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1rem;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header img {
        width: 100px;
    }

    .intro {
        width: 94%;
        margin: 50px auto;
        margin-bottom: 0;
        padding: 1.5em;
    }

    .intro h2 {
        font-size: 1.8rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .cta {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .cards-container {
        width: 100%;
        padding: 1.5em;
    }
}
