/* --- VARIABLES DE COLOR --- */
:root {
    --color-gold: #d4af37; /* Dorado elegante */
    --color-dark-gray: #2c2c2c;
    --color-light-gray: #f4f4f4;
    --color-white: #ffffff;
    --color-text: #333333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden; 
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

h1, h2, h3 {
    color: var(--color-dark-gray);
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4rem;
}

section {
    padding: 60px 0;
}

a {
    text-decoration: none;
}

/* --- HEADER --- */
.main-header {
    background-color: var(--color-white);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    max-height: 120px;
    width: auto;
    display: block; 
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--color-gold);
}

.cta-button {
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b89b2e;
}

/* --- HERO SECTION --- */
.hero {
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.hero .container {
    position: relative; 
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slideshow 30s infinite;
    z-index: 0; 
}

@keyframes slideshow {
    0% { background-image: url('../images/back1.webp'); }
    10% { } 
    23% { } 
    24% { background-image: url('../images/back2.webp');}
    33% { } 
    43% { } 
    56% { } 
    57% { background-image: url('../images/back3.webp'); }
    66% { } 
    76% { } 
    89% { } 
    100% { background-image: url('../images/back1.webp'); } 
}


.hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    background: var(--color-white);
    max-width: 900px;
    margin: auto;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-box input, .search-box select {
    border: 1px solid #ccc;
    padding: 15px;
    font-size: 1rem;
    border-radius: 5px;
    background-color: var(--color-white);
    color: var(--color-text);
    width: 100%;
}

.search-box select {
    cursor: pointer;
}

.search-box button {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: none;
    padding: 0 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #b89b2e;
}

.search-box i {
    margin-right: 8px;
}

.hero .free-class-button {
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero .free-class-button:hover {
    background-color: #b89b2e;
    transform: translateY(-3px);
}

.free-class-grad-cap {
    background-color: var(--color-gold); 
    color: var(--color-white);
    width: 250px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 5;
    clip-path: polygon(0% 20%, 15% 0, 85% 0, 100% 20%, 100% 80%, 85% 100%, 15% 100%, 0% 80%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
    margin-left: 20px;
    padding: 10px;
}

.free-class-grad-cap:hover {
    background-color: #b89b2e;
    transform: translateY(-50%) scale(1.05);
}

.hero-content-wrapper {
    flex-grow: 1;
    margin-left: 280px;
    padding-left: 20px;
    text-align: center;
}

/* --- HOW IT WORKS --- */
.how-it-works {
    background-color: var(--color-light-gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step .icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: inline-block;
    background-color: var(--color-white);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- SUBJECTS --- */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.subject-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.subject-card .icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.subject-card h3 {
    font-size: 1.2rem;
}

/* --- CLIENT TESTIMONIALS SECTION --- */
.testimonials {
    background-color: var(--color-light-gray);
    padding: 60px 0;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
    flex-grow: 1; 
}

.testimonial-author {
    font-weight: bold;
    color: var(--color-dark-gray);
    margin-top: 10px;
}

.testimonial-rating {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-top: 10px;
}

/* --- PRICES SECTION --- */
.prices {
    background-color: var(--color-white); 
    padding: 60px 0;
    text-align: center;
}

.price-carousel {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 0; 
    padding-top: 80%;
    margin: 40px auto 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.price-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out; 
}

.price-carousel-image.active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* --- CTA BANNER --- */
.cta-banner {
    background-color: var(--color-gold);
    color: var(--color-dark-gray);
    text-align: center;
    padding: 50px 20px;
}

.cta-banner h2 {
    color: var(--color-dark-gray);
    font-size: 2rem;
}

.cta-banner p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-button-large {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button-large:hover {
    background-color: #1a1a1a;
    transform: translateY(-3px);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-dark-gray);
    color: var(--color-light-gray);
    padding-top: 50px;
}

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

.footer-grid h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-about .logo-img {
    max-height: 100px; 
    margin-bottom: 1rem; 
}

.footer-about p {
    margin-top: 1rem;
    color: #ccc;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: #ccc;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links ul li a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.social-icons a {
    color: var(--color-light-gray);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* --- Custom Alert Modal Styles --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.custom-modal-content h3 {
    margin-bottom: 15px;
    color: var(--color-dark-gray);
}

.custom-modal-content p {
    margin-bottom: 25px;
    color: var(--color-text);
}

.custom-modal-content button {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-modal-content button:hover {
    background-color: #b89b2e;
}

/* --- RESPONSIVE DESIGN --- */
@media(max-width: 920px) {
    .search-box {
        grid-template-columns: 1fr 1fr;
    }
    .search-box input, .search-box select, .search-box button {
        padding: 12px; 
    }
    .search-box input {
        grid-column: 1 / 3; 
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
    .price-carousel {
        width: 90%; 
    }
    .free-class-grad-cap {
        width: 180px;
        height: 110px;
        font-size: 0.9rem;
        top: 30px;
        left: 30px;
    }
    .hero-content-wrapper {
        margin-left: 200px;
    }
}

@media(max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .main-nav {
        margin-top: 1rem;
    }
    .main-nav ul {
        flex-wrap: wrap; 
        justify-content: center;
    }
    .main-nav ul li {
        margin: 5px 10px; 
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-box {
        grid-template-columns: 1fr;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 15px; 
    }
    
    .steps-grid, .footer-grid, .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .social-icons {
        text-align: center;
    }

    section {
        padding: 40px 0; 
    }

    .cta-banner h2 { font-size: 1.8rem; }
    .cta-banner p { font-size: 1rem; }

    .price-carousel {
        width: 95%; 
        padding-top: 95%;
    }
    .carousel-arrow {
        padding: 8px 12px;
        font-size: 1.3rem;
    }

    .hero .free-class-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .free-class-grad-cap {
        position: static;
        margin: 20px auto;
        width: 150px;
        height: 90px;
        font-size: 0.8rem;
        transform: none;
    }
    .hero .container {
        flex-direction: column;
    }
    .hero-content-wrapper {
        margin-left: 0;
        padding-left: 0;
    }
}

@media(max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }
    .section-subtitle { font-size: 0.9rem; }
    .subject-card h3 { font-size: 1.1rem; }
    .subject-card p { font-size: 0.9rem; }
    .testimonial-card p { font-size: 0.95rem; }
    .testimonial-author { font-size: 0.9rem; }
    .cta-button-large { padding: 12px 25px; font-size: 1rem; }
    .price-carousel {
        padding-top: 100%;
    }
    .carousel-arrow {
        padding: 6px 10px;
        font-size: 1.1rem;
    }
    .free-class-grad-cap {
        width: 120px;
        height: 70px;
        font-size: 0.7rem;
    }
}
/* --- AÑADIR ESTOS ESTILOS AL FINAL DE main.css --- */

/* ESTILOS PARA EL NUEVO MODAL DE AGENDAMIENTO */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 44, 44, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.booking-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.booking-modal-content {
    background: var(--color-white);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.booking-modal-overlay.active .booking-modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}

.booking-modal-content h3 {
    text-align: center;
    font-size: 1.6rem;
    color: var(--color-dark-gray);
}
.booking-modal-content p {
    text-align: center;
    margin-bottom: 25px;
}

/* Estilos del calendario dentro del modal (reutilizados) */
#modal-dynamic-scheduler { margin-top: 10px; }
#modal-scheduler-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
#modal-scheduler-nav button { background: none; border: 1px solid #ccc; border-radius: 5px; padding: 5px 10px; cursor: pointer; }
#modal-week-display { font-weight: 600; font-size: 1.1rem; }
#modal-schedule-grid-container { overflow-x: auto; border: 1px solid #e0e0e0; border-radius: 5px; padding: 5px; }
#modal-schedule-grid { display: grid; grid-template-columns: 60px repeat(7, 1fr); gap: 5px; min-width: 500px; }

/* Mensaje de éxito dentro del modal */
#modal-success-message .icon {
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}