/*
 * Estilos para Sabores y Energía
 * Colores vibrantes e inspiradores. Diseño modular con énfasis en legibilidad y estructura.
 */

:root {
    --primary: #6542a6; /* púrpura intenso */
    --secondary: #f5b24a; /* dorado suave */
    --accent: #ffde9c; /* crema pastel */
    --dark: #2c274c; /* azul oscuro */
    --light: #f9f6f2; /* beige claro */
    --text: #2f2f2f;
    --radius: 10px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

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

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

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

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }

/* Estructura genérica */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Cabecera */
.site-header {
    background: var(--light);
    border-bottom: 1px solid #e0dfe6;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}

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

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

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

.main-nav a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.2s;
    color: var(--dark);
}

.main-nav a:hover, .main-nav a.cta {
    background: var(--primary);
    color: #fff;
}

/* Hero */
.hero-section {
    background: var(--light);
    padding: 3rem 0;
}
.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}
.hero-text h1 {
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}
.hero-image-wrapper {
    text-align: right;
}
.hero-img {
    border-radius: var(--radius);
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* About */
.about-section {
    background: var(--accent);
}
.about-grid {
    display: grid;
    gap: 2rem;
}
.about-text {
    max-width: 700px;
    margin: 0 auto;
}

/* Courses */
.courses-section {
    background: var(--light);
}
.courses-section .intro {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
}
.courses-grid {
    display: grid;
    gap: 1.5rem;
}
.course {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.course h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.course .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0.5rem 0;
}
.course ul {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}
.course ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.course .btn {
    margin-top: auto;
    align-self: flex-start;
}

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

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

/* Benefits */
.benefits-section {
    background: var(--accent);
}
.benefits-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}
.benefit {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}
.benefit h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

/* Ingredients */
.ingredients-section {
    background: var(--light);
}
.ingredients-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}
.ingredients-image img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}
.ingredients-text {
    line-height: 1.7;
}

@media (min-width: 800px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ingredients-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mentor-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mentor */
.mentor-section {
    background: var(--accent);
}
.mentor-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}
.mentor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mentor-text {
    margin-top: 1rem;
}

/* Contact */
.contact-section {
    background: var(--light);
}
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.form-group {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: var(--font-body);
}
.form-group textarea {
    resize: vertical;
}
.full-width {
    flex: 1 1 100%;
}
.form-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 1rem 0;
}
.form-consent label a {
    color: var(--primary);
}

/* Newsletter */
.newsletter-section {
    background: var(--accent);
    text-align: center;
    padding: 3rem 0;
}
.newsletter-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.newsletter-row input {
    padding: 0.75rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: var(--font-body);
}
.newsletter-row button {
    align-self: center;
}

@media (min-width: 600px) {
    .newsletter-row {
        flex-direction: row;
        justify-content: center;
    }
    .newsletter-row input {
        flex: 1;
        max-width: none;
    }
    .newsletter-row button {
        flex: 0 0 auto;
    }
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #fff;
    padding: 2rem 0;
}
.footer-grid {
    display: grid;
    gap: 2rem;
}
.footer-column h4 {
    margin-bottom: 0.75rem;
    color: var(--secondary);
}
.footer-column p,
.footer-column a,
.footer-column li {
    color: #e6e5ee;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.footer-column a:hover {
    text-decoration: underline;
}
.footer-column ul {
    list-style: none;
    padding-left: 0;
}
.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

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