/*
 * Estilos para Pulso Equilibrado
 *
 * Este archivo define la apariencia del sitio, utilizando una paleta de
 * colores serena y tipografías legibles para crear una experiencia
 * agradable y moderna. Los estilos son únicos en comparación con
 * generaciones anteriores y utilizan layout flexbox y grid para
 * garantizar la adaptabilidad en distintos dispositivos.
 */

/* Variables de color */
:root {
    --color-primary: #004B40; /* verde oscuro */
    --color-secondary: #E27D60; /* coral suave */
    --color-accent: #00796B; /* verde azulado */
    --color-light: #F3ECE7; /* beige claro */
    --color-neutral: #f9f9f9;
    --color-text: #2b2b2b;
}

/* Reset básico y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Trebuchet MS", Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-neutral);
}

h1, h2, h3 {
    font-family: "Georgia", serif;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

ul {
    list-style: none;
}

/* Contenedor general */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Encabezado */
.main-header {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-secondary);
}

/* Hero */
.hero {
    position: relative;
    background-image: url("images/hero.png");
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 75, 64, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fefefe;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
}

/* Secciones genéricas */
.section {
    padding: 60px 0;
    background-color: var(--color-neutral);
}

.section:nth-of-type(even) {
    background-color: var(--color-light);
}

/* Presentación */
.presentacion-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.presentacion-image {
    flex: 1 1 350px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.presentacion-text {
    flex: 1 1 400px;
}

.presentacion-text p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Hábitos */
.habits h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.habit-card {
    background-color: white;
    border-left: 5px solid var(--color-secondary);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.habit-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-accent);
}

.habit-card p {
    font-size: 0.95rem;
}

/* Programas */
.programs h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.program-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.program-card p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.price {
    font-weight: bold;
    color: var(--color-secondary);
    margin-top: 0.5rem;
}

/* Reseñas */
.reviews h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.review-card {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.review-text {
    margin-bottom: 0.5rem;
    font-style: italic;
}

.review-author {
    text-align: right;
    font-weight: bold;
}

.review-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.review-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.review-form button {
    width: 100%;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 6px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Contacto */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.contact-details {
    flex: 1 1 300px;
}

.contact-form-container {
    flex: 1 1 350px;
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-container label {
    margin-left: 8px;
    font-size: 0.9rem;
}

.contact-form button {
    width: 100%;
}

/* Pie de página */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer a {
    color: #d1f0eb;
    text-decoration: underline;
}

.footer-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .hero {
        height: 50vh;
    }
    .presentacion-content {
        flex-direction: column;
    }
    .contact-grid {
        flex-direction: column;
    }
    .review-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}