/*
 * Estilos para Escuela Dulce Equilibrio
 *
 * Paleta cálida y moderna con acentos mediterráneos. Utiliza fuentes de Google (Montserrat y Source Sans Pro).
 * El diseño es adaptable y utiliza flex y grid para una experiencia fluida en móviles y escritorio.
 */

:root {
    --primary: #e86d53; /* coral suave */
    --secondary: #3a7d8c; /* verde azulado */
    --accent: #f5c063; /* amarillo melocotón */
    --background: #fdfdfd;
    --text: #333;
    --light: #f7f7f7;
    --dark: #1f3d4a;
    --radius: 8px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Contenedor genérico */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Navegación */
header {
    background: var(--light);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.flex {
    display: flex;
    align-items: center;
}

.between { justify-content: space-between; }

.logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav ul li a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    background: var(--primary);
    color: #fff;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    transition: background 0.3s;
}

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

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

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

/* Hero */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 600px;
    color: #fff;
}

/* Asegura que el texto dentro de la sección hero sea blanco */
.hero-content h1,
.hero-content p,
.hero-content a {
    color: #fff;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* About */
.about {
    background: var(--light);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cursos */
.cursos {
    background: var(--background);
}
.cursos .course-grid {
    display: grid;
    gap: 2rem;
}

.course-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card h3 {
    margin-bottom: 0.5rem;
}

.course-card .price {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0.5rem 0;
    font-weight: 600;
}

.course-card ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.course-card ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.course-card .btn {
    margin-top: auto;
}

@media (min-width: 768px) {
    .cursos .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cursos .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Benefits */
.benefits {
    background: var(--light);
}
.benefits .benefit-grid {
    display: grid;
    gap: 1.5rem;
}
.benefits .benefit-item {
    background: var(--background);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .benefits .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits .benefit-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ingredients */
.ingredients .grid {
    align-items: center;
}
.ingredients .text {
    order: 2;
}
.ingredients .image {
    order: 1;
}

@media (min-width: 768px) {
    .ingredients .text { order: 1; }
    .ingredients .image { order: 2; }
}

.ingredients img {
    border-radius: var(--radius);
}

/* Tutor */
.tutor {
    background: var(--light);
}
.tutor-grid {
    align-items: center;
}
.image-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}
.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ */
.faq {
    background: var(--background);
}
.faq-item {
    margin-bottom: 1.5rem;
}
.faq-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact */
.contact {
    background: var(--light);
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: var(--font-body);
}
.form-group textarea {
    resize: vertical;
}
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.form-consent label a {
    color: var(--primary);
    text-decoration: none;
}
.form-consent label a:hover {
    text-decoration: underline;
}

/* Newsletter */
.newsletter {
    background: var(--background);
}
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group-inline {
    display: flex;
    gap: 0.5rem;
}
.form-group-inline input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: var(--font-body);
}

/* Footer */
footer {
    background: var(--dark);
    color: #fff;
    padding-top: 2rem;
    padding-bottom: 1rem;
}
.footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}
.footer-info h4,
.footer-links h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #fff;
}
.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}