/* Reset and base styles */
:root {
    --primary: #9370DB;
    --primary-light: #A88BDB;
    --primary-dark: #7652C9;
    --secondary: #333;
    --text: #333;
    --text-light: #666;
    --background: #F8F8F8;
    --white: #FFF;
    --gray-light: #F2F2F2;
    --gray: #EEE;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

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

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

.secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* Nuestra Esencia Section */
.esencia {
    background-color: var(--background);
}

.esencia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.esencia-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.esencia-item .icon {
    margin-bottom: 20px;
}

.esencia-item h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Programas Section */
.programas {
    background-color: var(--white);
}

.programas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.programa-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.programa-img {
    height: 200px;
    overflow: hidden;
}

.programa-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programa-content {
    padding: 20px;
}

.programa-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.programa-meta {
    margin-bottom: 20px;
}

.programa-meta div {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.duracion, .nivel {
    font-weight: 500;
}

/* Beneficios Section */
.beneficios {
    background-color: var(--background);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.beneficio-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.beneficio-item .icon {
    margin-bottom: 20px;
}

.beneficio-item h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Historias Section */
.historias {
    background-color: var(--white);
}

.historias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.historia-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.historia-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.historia-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.profile-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.testimonio {
    font-style: italic;
    color: var(--text-light);
}

/* Contacto Section */
.contacto {
    background-color: var(--background);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-contacto h3, .form-contacto h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contacto-item .icon {
    margin-right: 15px;
}

.contacto-data h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contacto-data p {
    margin: 0;
    color: var(--text-light);
}

.redes-sociales h4 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-light);
    border-radius: 50%;
    margin-right: 10px;
}

.social-icons a:hover {
    background-color: var(--primary-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: #212a38;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
}

.footer-legal h3, .footer-subscribe h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-legal ul li a {
    color: #aaa;
}

.footer-legal ul li a:hover {
    color: var(--primary-light);
}

.subscribe-form {
    display: flex;
    margin-top: 20px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.subscribe-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    max-width: 400px;
    z-index: 1000;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Thank you popup */
.thank-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.thank-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.thank-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 400px;
}

.thank-content h2 {
    margin-bottom: 30px;
}

/* Media Queries */
@media (max-width: 992px) {
    .esencia-grid, .programas-grid, .historias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .beneficios-grid, .contacto-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .esencia-grid, .programas-grid, .historias-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input, .subscribe-form button {
        width: 100%;
        border-radius: var(--border-radius);
    }
    
    .subscribe-form button {
        margin-top: 10px;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}