/* ===== VARIABLES ===== */
:root {
    /* Colores */
    --color-bg: #1A1F3B;
    --color-bg-dark: #101428;
    --color-accent: #A6FF00;
    --color-accent-secondary: #FF6B6B;
    --color-text: #F4F4F4;
    --color-mint: #00EACF;
    
    /* Fuentes */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Tamaños */
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-large: 16px;
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ===== RESET Y ESTILOS BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== CONTENEDOR ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: var(--color-accent-secondary);
    color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(16, 20, 40, 0.9);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo svg {
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 50px;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: 1;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-background img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Animaciones de hero */
.animate-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--transition-normal) forwards;
}

.animate-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--transition-normal) 0.3s forwards;
}

.animate-button {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--transition-normal) 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-normal);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background-color: var(--color-bg-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: linear-gradient(145deg, rgba(42, 46, 80, 0.6), rgba(26, 31, 59, 0.6));
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--color-mint);
}

/* ===== PROGRAMS SECTION ===== */
.program-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.program-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    background: linear-gradient(145deg, rgba(42, 46, 80, 0.3), rgba(26, 31, 59, 0.3));
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.program-image {
    height: 100%;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-content {
    padding: 30px 40px 30px 20px;
}

.program-content h3 {
    color: var(--color-accent);
    margin-bottom: 15px;
}

.program-features {
    margin-top: 20px;
}

.program-features li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.program-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--color-accent-secondary);
    border-radius: 50%;
}

/* Alternando dirección en pantallas grandes */
.program-card:nth-child(even) {
    grid-template-columns: 1fr 400px;
    grid-template-areas: "content image";
}

.program-card:nth-child(even) .program-image {
    grid-area: image;
}

.program-card:nth-child(even) .program-content {
    grid-area: content;
    padding: 30px 20px 30px 40px;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background-color: var(--color-bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 350px;
    background: linear-gradient(145deg, rgba(42, 46, 80, 0.6), rgba(26, 31, 59, 0.6));
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-content p {
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--color-mint);
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== SIGNUP SECTION ===== */
.signup {
    background: linear-gradient(135deg, var(--color-bg), var(--color-bg-dark));
    position: relative;
    overflow: hidden;
}

.signup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(166, 255, 0, 0.03) 0%, transparent 70%);
    z-index: 1;
}

.signup-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.signup-text h2 {
    color: var(--color-accent);
}

.signup-form-container {
    background: linear-gradient(145deg, rgba(42, 46, 80, 0.4), rgba(26, 31, 59, 0.4));
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: rgba(16, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
}

.radio-label input,
.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom,
.checkbox-custom {
    position: absolute;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(16, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 5px;
}

.radio-label:hover .radio-custom,
.checkbox-label:hover .checkbox-custom {
    border-color: var(--color-accent);
}

.radio-label input:checked ~ .radio-custom,
.checkbox-label input:checked ~ .checkbox-custom {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.radio-custom::after,
.checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
}

.radio-label input:checked ~ .radio-custom::after,
.checkbox-label input:checked ~ .checkbox-custom::after {
    display: block;
}

.radio-label .radio-custom::after {
    top: 7px;
    left: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-bg);
}

.checkbox-label .checkbox-custom::after {
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid var(--color-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group {
    margin-top: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-bg-dark);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact h3,
.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--color-text);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    opacity: 1;
}

address p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(145deg, rgba(42, 46, 80, 0.95), rgba(26, 31, 59, 0.95));
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 500px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-content form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-more {
    font-size: 0.9rem;
}

/* ===== MENÚ MÓVIL ===== */
.menu-toggle {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .program-card,
    .program-card:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "content";
    }
    
    .program-card .program-image,
    .program-card:nth-child(even) .program-image {
        grid-area: image;
        height: 300px;
    }
    
    .program-card .program-content,
    .program-card:nth-child(even) .program-content {
        grid-area: content;
        padding: 30px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .hero-content {
        margin-left: 20px;
        max-width: 500px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .signup-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .signup-text {
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        margin: 0 auto 60px;
        padding: 0 20px;
        text-align: center;
        z-index: 3;
    }
    
    .hero-background {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        clip-path: none;
        opacity: 0.2;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Menú móvil */
    .menu-toggle {
        position: absolute;
        opacity: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-text);
        border-radius: 3px;
        transition: all var(--transition-fast);
    }
    
    .menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-normal);
        z-index: 1000;
        padding: 80px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-nav a {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .cookie-content form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
    }
} 