/*
 * Estilos generales para el sitio CorazónActivo45.
 * Utiliza una paleta neutra con acentos en azul para transmitir confianza y bienestar.
 * Las secciones están bien separadas y las tarjetas poseen sombras suaves para mejorar la legibilidad.
 * El diseño es responsivo y se adapta a distintos tamaños de pantalla.
 */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #02577a;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    margin-bottom: 10px;
    color: #02577a;
}

/* Estilos para el artículo principal */
article {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

article h3 {
    color: #02577a;
    margin-top: 20px;
}

/* Tarjetas de cursos */
.courses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.course-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1 1 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card h3 {
    margin-top: 0;
    color: #02577a;
}

.course-card p {
    flex-grow: 1;
}

.course-card .price {
    font-weight: bold;
    margin-top: 10px;
    color: #008000;
}

/* Testimonios */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.testimonial {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-style: italic;
}

.testimonial .author {
    margin-top: 10px;
    font-weight: bold;
    color: #02577a;
}

/* Formularios */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
}

form label {
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form input[type="checkbox"] {
    margin-right: 5px;
}

form button {
    background-color: #02577a;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #013f57;
}

/* Popup de agradecimiento para reseñas */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-content button {
    margin-top: 10px;
    background-color: #02577a;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #013f57;
}