/*
 * Estilos principales para VidaActiva45.
 * Define colores, tipografía y distribución para la página principal,
 * cursos, testimonios y formularios.
 */

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

header {
    background-color: #155fa0;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-family: 'Georgia', serif;
    font-size: 2rem;
}

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

.hero {
    position: relative;
    margin-bottom: 30px;
}

.hero img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.hero .overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    max-width: 70%;
}

.article-section h2 {
    font-family: 'Georgia', serif;
    color: #155fa0;
    margin-top: 0;
}

.courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.course-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.course-card h3 {
    margin-top: 0;
    color: #155fa0;
    font-family: 'Georgia', serif;
}

.course-card p {
    margin-bottom: 5px;
}

.testimonials {
    background-color: #eef3f8;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.testimonials h3 {
    font-family: 'Georgia', serif;
    color: #155fa0;
    margin-top: 0;
}

.testimonial {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.testimonial:last-child {
    border-bottom: none;
}

.testimonial strong {
    display: block;
    margin-bottom: 5px;
    color: #155fa0;
}

.review-form,
.contact-form {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-form h3,
.contact-form h3 {
    color: #155fa0;
    margin-top: 0;
    font-family: 'Georgia', serif;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    background-color: #155fa0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #0d4775;
}

/* Popup para agradecer los comentarios */
#review-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#review-popup .popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#review-popup .popup-content button {
    margin-top: 15px;
    background-color: #155fa0;
}

footer {
    background-color: #155fa0;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
}

footer a {
    color: #d0e6fa;
    text-decoration: none;
}