/*
 * Estilos para Esencia Viva 45
 * Diseñado con una paleta fresca y tipografía cálida para un público adulto.
 */

:root {
    --primary-color: #014f86;
    --secondary-color: #f28d35;
    --accent-color: #a7c957;
    --light-bg: #fafafa;
    --dark-text: #333;
    --heading-font: 'Ubuntu', sans-serif;
    --body-font: 'Nunito', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav a {
    margin-left: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav a:first-child {
    margin-left: 0;
}

/* Hero */
.hero {
    position: relative;
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 79, 134, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.8rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: #fefefe;
    margin: 1rem 0 2rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #d6762b;
}

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

.btn-secondary:hover {
    background-color: #8aa944;
}

/* Article */
.article-section {
    padding: 4rem 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.article-text p {
    font-size: 1.05rem;
    color: #555;
}

.article-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Courses */
.courses-section {
    background-color: #f4f8fb;
    padding: 4rem 0;
}

.courses-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.2s ease;
}

.course-card:hover {
    transform: translateY(-4px);
}

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

.course-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.course-card .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Opinions */
.opinions-section {
    padding: 4rem 0;
}

.opinions-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.opinions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.opinion-card {
    background-color: #fff;
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.opinion-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.opinion-card p {
    font-size: 0.95rem;
    color: #555;
}

.opinion-form {
    margin-top: 2rem;
    text-align: center;
}

.opinion-form h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.opinion-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.opinion-form input,
.opinion-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 0.95rem;
}

.opinion-form button {
    margin-top: 0.5rem;
}

/* Popup */
.popup {
    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;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

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

.popup-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Contact */
.contact-section {
    background-color: #f4f8fb;
    padding: 4rem 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-section p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

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

.contact-form .checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.contact-form .checkbox input {
    margin-right: 0.5rem;
}

/* Thank you section */
.thankyou-section {
    padding: 6rem 0;
    background-color: #f4f8fb;
    text-align: center;
}

.thankyou-section h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.thankyou-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: #01405e;
    color: #e5e5e5;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

.footer-info h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: #d0d0d0;
    font-size: 0.9rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.5rem;
    color: #d0d0d0;
    font-size: 0.9rem;
}

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

.footer-social a {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #d0d0d0;
}

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

.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #c8c8c8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .header {
        padding: 1rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}