:root {
    --primary-color: #112233;
    --secondary-color: #D4AF37;
    --accent-color: #00c853;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #5f6368;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --whatsapp-color: #25D366;
    --whatsapp-dark: #128C7E;
    --star-color: #FFC107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 90px;
    flex: 0 0 auto;
}

.custom-logo {
    max-height: 100%;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
}

.cta-button {
    background-color: var(--secondary-color);
    color: #1a1a1a;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none !important;
    display: inline-block;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: #c19a2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.6);
    color: #000;
}

/* Estilo para botones azules (primarios) */
.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(17, 34, 51, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none !important;
    display: inline-block;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.primary-button:hover::before {
    left: 100%;
}

.primary-button:hover {
    background-color: #0a1826;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(17, 34, 51, 0.5);
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* Botón de cerrar del menú móvil */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu-close:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon-container {
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, var(--whatsapp-dark) 100%);
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 3px solid white;
    text-decoration: none !important;
    transition: box-shadow 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon-container {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    font-size: 2.2rem;
    color: white;
    text-decoration: none !important;
}

.whatsapp-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none !important;
}

.whatsapp-text span {
    text-decoration: none !important;
    color: white !important;
}

.whatsapp-text span:first-child {
    font-size: 0.85rem;
    opacity: 0.9;
}

.whatsapp-text span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
}

.whatsapp-icon-only {
    display: none;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, var(--whatsapp-dark) 100%);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 3px solid white;
    text-decoration: none !important;
    transition: box-shadow 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon-only {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon-only i {
    font-size: 2.8rem;
    color: white;
    text-decoration: none !important;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    border: 2px solid var(--secondary-color);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 25px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        bottom: 20px;
        left: 15px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, rgba(17, 34, 51, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
}

.hero-title .weeks {
    color: var(--secondary-color);
    display: block;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.badge-icon {
    color: var(--accent-color);
}

.hero-video {
    flex: 1;
    position: relative;
    width: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
    background-color: #000;
    aspect-ratio: 16/9;
}

.video-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.video-player::-webkit-media-controls {
    display: none !important;
}

.video-player::-webkit-media-controls-panel {
    display: none !important;
}

.video-player::-webkit-media-controls-play-button {
    display: none !important;
}

.video-player::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonials-container {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 50px 40px 30px;
    background: white;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: 'Georgia', serif;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: var(--star-color);
    font-size: 1.3rem;
    text-shadow: 0 2px 5px rgba(255, 193, 7, 0.3);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(17, 34, 51, 0.3);
    border: 3px solid var(--secondary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.author-info p {
    color: var(--gray-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-info p i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* ===== BOTÓN DE OPINIONES GOOGLE ===== */
.google-reviews-btn {
    text-align: center;
    margin-top: 40px;
}

.google-reviews-btn .primary-button {
    padding: 12px 35px;
    box-shadow: 0 4px 10px rgba(17, 34, 51, 0.3);
}

.google-reviews-btn .primary-button i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* ===== NUEVA UBICACIÓN SECTION ===== */
.new-location {
    padding: 0;
    background: linear-gradient(135deg, rgba(17, 34, 51, 0.03) 0%, rgba(212, 175, 55, 0.06) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.location-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-height: 500px;
}

.location-image-wrapper {
    flex: 0 0 50%;
    position: relative;
    max-width: 50%;
    overflow: hidden;
}

.location-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.6s ease;
}

.location-image-wrapper:hover img {
    transform: scale(1.05);
}

.location-content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.12);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    align-self: flex-start;
}

.location-tag i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.location-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.location-title span {
    color: var(--secondary-color);
    display: block;
    font-size: 2.4rem;
    margin-top: 5px;
}

.location-description {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.7;
    font-weight: 400;
}

.location-features {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.location-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-feature i {
    color: var(--secondary-color);
    font-size: 1rem;
    background: rgba(212, 175, 55, 0.12);
    padding: 8px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.location-feature span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.location-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(17, 34, 51, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    align-self: flex-start;
}

.location-button:hover {
    background-color: #0a1826;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(17, 34, 51, 0.35);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.location-button i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.location-button:hover i {
    transform: translateX(8px);
}

.location-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--secondary-color);
    color: #1a1a1a;
    padding: 12px;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    border: 4px solid white;
    z-index: 2;
    line-height: 1.2;
}

.location-badge span:first-child {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 900;
}

.location-badge span:last-child {
    font-size: 0.85rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* ===== UBICACIONES SECTION ===== */
.ubicaciones {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.ubicaciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.ubicacion-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.ubicacion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(17, 34, 51, 0.2);
    border-color: var(--secondary-color);
}

.ubicacion-mapa {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.ubicacion-info {
    padding: 30px;
    text-align: left;
}

.ubicacion-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.ubicacion-titulo i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ubicacion-titulo h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.ubicacion-direccion {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.6;
}

.ubicacion-direccion i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.ubicacion-horario {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.ubicacion-horario i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.ubicacion-boton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.ubicacion-boton:hover {
    background-color: #0a1826;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(17, 34, 51, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.ubicacion-boton i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.ubicacion-boton:hover i {
    transform: translateX(5px);
}

/* ===== COURSES SECTION ===== */
.courses {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(17, 34, 51, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.section-title span {
    color: var(--primary-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.course-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.course-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.course-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.course-card:hover .course-header {
    padding-bottom: 25px;
}

.course-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), rgba(212, 175, 55, 0.8));
    transition: var(--transition);
}

.course-card:hover .course-header::after {
    height: 5px;
}

.course-title {
    font-size: 1.8rem;
    margin-bottom: 0;
    transition: var(--transition);
}

.course-card:hover .course-title {
    transform: scale(1.05);
}

.course-weeks {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #1a1a1a;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.course-card:hover .course-weeks {
    transform: scale(1.05);
    background-color: #c19a2e;
}

.course-content {
    padding: 30px;
    transition: var(--transition);
}

.course-card:hover .course-content {
    padding: 32px 30px 28px;
}

.course-features {
    list-style: none;
    margin-bottom: 25px;
}

.course-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.course-card:hover .course-features li {
    padding: 9px 0;
}

.course-features i {
    color: var(--accent-color);
    transition: var(--transition);
}

.course-card:hover .course-features i {
    transform: scale(1.1);
}

.course-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.course-card:hover .course-price {
    transform: scale(1.05);
}

.course-price span {
    font-size: 1rem;
    color: var(--gray-color);
    font-weight: normal;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 120px 0;
    background-image: url('../img/fondoexp.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 34, 51, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.highlight-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--secondary-color);
    display: block;
    margin: 20px 0;
    text-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
    position: relative;
    z-index: 1;
    animation: glow 2s ease-in-out infinite alternate;
}

/* ===== CARRUSEL DE LIBROS ===== */
.books-carousel {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.carousel-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.carousel-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 6 - 40px * 6));
    }
}

.book-card {
    flex: 0 0 auto;
    width: 280px;
    margin-right: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(17, 34, 51, 0.15);
    border-color: var(--secondary-color);
}

.book-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-info {
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.book-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
    text-align: center;
    line-height: 1.3;
}

.book-level {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(17, 34, 51, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover::after {
    height: 5px;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card:hover .feature-title {
    color: var(--primary-color);
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background-color: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    animation: modalAppear 0.3s ease forwards;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalAppear {
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    padding-right: 40px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    line-height: 1;
    padding: 0;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
        padding-right: 30px;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        padding-right: 25px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }
}

.modal-content {
    padding: 0;
    overflow: hidden;
    flex: 1;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    min-height: 500px;
}

.modal-grid .modal-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-grid .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-grid .modal-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    overflow-y: auto;
    text-align: left;
}

.modal-grid .modal-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.modal-grid .modal-text p {
    font-size: 1rem;
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-grid .modal-text .highlight {
    font-weight: 600;
    color: var(--primary-color);
}

.modal-list {
    list-style: none;
    margin-top: 15px;
}

.modal-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--dark-color);
}

.modal-list li i {
    color: var(--secondary-color);
    width: 24px;
    font-size: 1.2rem;
}

.mision-modal .modal-text {
    padding: 35px;
    justify-content: flex-start;
}

.mision-modal .modal-text h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.mision-modal .modal-text p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mision-modal .modal-text .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.mision-modal .modal-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.instituciones-modal .modal-text {
    padding: 35px;
    justify-content: flex-start;
}

.instituciones-modal .modal-text h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.instituciones-modal .modal-text p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.instituciones-modal .modal-list {
    margin-top: 10px;
}

.instituciones-modal .modal-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instituciones-modal .modal-list li i {
    font-size: 1.1rem;
    width: 22px;
}

.modal-profesor {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.modal-profesor .profesor-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.modal-profesor .profesor-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.modal-profesor .profesor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-profesor .profesor-nombre {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.modal-profesor .profesor-cargo {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-profesor .profesor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.modal-profesor .stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-profesor .stat-item i {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.modal-profesor .stat-item h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.modal-profesor .stat-item p {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.book-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    min-height: 500px;
}

.book-modal-grid .book-modal-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.book-modal-grid .book-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-modal-grid .book-modal-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    overflow-y: auto;
    text-align: left;
}

.book-modal-grid .book-modal-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.book-modal-grid .book-modal-text .highlight {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 15px;
}

.book-modal-grid .book-modal-text p {
    font-size: 1rem;
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.book-modal-grid .modal-list {
    margin-top: 5px;
}

.book-modal-grid .modal-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* ===== MEJORAS PARA MODALES EN MÓVIL ===== */
@media (max-width: 768px) {
    .modal-grid,
    .book-modal-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: 80vh;
    }
    
    .modal-grid .modal-image,
    .book-modal-grid .book-modal-image {
        height: 260px;
        max-height: 260px;
        width: 100%;
        overflow: hidden;
    }
    
    .modal-grid .modal-image img,
    .book-modal-grid .book-modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }
    
    .mision-modal .modal-image {
        height: 260px;
        max-height: 260px;
    }
    
    .mision-modal .modal-image img {
        object-position: center 25%;
    }
    
    .modal-grid .modal-text,
    .book-modal-grid .book-modal-text,
    .mision-modal .modal-text,
    .instituciones-modal .modal-text {
        padding: 25px 20px 30px 20px;
        height: auto;
        text-align: center;
        justify-content: flex-start;
        overflow-y: auto;
        max-height: 400px;
    }
    
    .modal-grid .modal-text h3,
    .book-modal-grid .book-modal-text h3,
    .mision-modal .modal-text h3,
    .instituciones-modal .modal-text h3 {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .modal-grid .modal-text p,
    .book-modal-grid .book-modal-text p,
    .mision-modal .modal-text p,
    .instituciones-modal .modal-text p {
        text-align: center;
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .instituciones-modal .modal-text p:last-of-type {
        margin-top: 20px;
        margin-bottom: 0;
        padding-top: 10px;
    }
    
    .instituciones-modal .modal-text .highlight {
        display: inline-block;
        margin-top: 5px;
    }
    
    .modal-grid .modal-list,
    .book-modal-grid .modal-list,
    .mision-modal .modal-list,
    .instituciones-modal .modal-list {
        text-align: left;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 10px;
    }
    
    .modal-grid .modal-list li,
    .book-modal-grid .modal-list li,
    .mision-modal .modal-list li,
    .instituciones-modal .modal-list li {
        justify-content: flex-start;
        font-size: 1rem;
        margin-bottom: 0;
        padding: 10px 15px;
        background: rgba(212, 175, 55, 0.05);
        border-radius: 12px;
        border-left: 3px solid var(--secondary-color);
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        transition: all 0.3s ease;
    }
    
    .modal-grid .modal-list li i,
    .book-modal-grid .modal-list li i,
    .mision-modal .modal-list li i,
    .instituciones-modal .modal-list li i {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(212, 175, 55, 0.15);
        border-radius: 50%;
        font-size: 1rem;
        flex-shrink: 0;
        color: var(--secondary-color);
    }
    
    .modal-grid .modal-list li span,
    .book-modal-grid .modal-list li span,
    .mision-modal .modal-list li span,
    .instituciones-modal .modal-list li span {
        flex: 1;
        text-align: left;
        line-height: 1.4;
    }
    
    .mision-modal .modal-text {
        padding: 20px 20px 30px 20px;
        max-height: 450px;
    }
    
    .mision-modal .modal-text p {
        margin-bottom: 15px;
    }
    
    .instituciones-modal .modal-image {
        height: 260px;
        max-height: 260px;
    }
    
    .instituciones-modal .modal-text {
        padding: 20px 20px 30px 20px;
        max-height: 450px;
    }
    
    .instituciones-modal .modal-list li {
        margin-bottom: 0;
    }
    
    .book-modal-grid .book-modal-image {
        height: 260px;
        max-height: 260px;
    }
    
    .book-modal-grid .book-modal-text {
        padding: 25px 20px 30px 20px;
        max-height: 450px;
    }
    
    .book-modal-grid .book-modal-text h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .book-modal-grid .book-modal-text .highlight {
        font-size: 1.1rem;
        margin-bottom: 15px;
        display: inline-block;
    }
    
    .book-modal-grid .book-modal-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .book-modal-grid .modal-list li {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .modal-profesor {
        padding: 20px;
        height: auto;
        min-height: auto;
    }
    
    .modal-profesor .profesor-avatar {
        width: 120px;
        height: 120px;
    }
    
    .modal-profesor .profesor-nombre {
        font-size: 1.4rem;
    }
    
    .modal-profesor .profesor-cargo {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .modal-profesor .profesor-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .modal-grid .modal-image,
    .book-modal-grid .book-modal-image,
    .mision-modal .modal-image,
    .instituciones-modal .modal-image {
        height: 200px;
        max-height: 200px;
    }
    
    .modal-grid .modal-image img,
    .book-modal-grid .book-modal-image img,
    .mision-modal .modal-image img,
    .instituciones-modal .modal-image img {
        object-position: center 20%;
    }
    
    .modal-grid .modal-text,
    .book-modal-grid .book-modal-text,
    .mision-modal .modal-text,
    .instituciones-modal .modal-text {
        padding: 20px 15px 25px 15px;
        max-height: 400px;
    }
    
    .modal-grid .modal-text h3,
    .book-modal-grid .book-modal-text h3,
    .mision-modal .modal-text h3,
    .instituciones-modal .modal-text h3 {
        font-size: 1.5rem;
    }
    
    .modal-grid .modal-text p,
    .book-modal-grid .book-modal-text p,
    .mision-modal .modal-text p,
    .instituciones-modal .modal-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .instituciones-modal .modal-text p:last-of-type {
        margin-top: 15px;
        padding-top: 8px;
    }
    
    .modal-grid .modal-list,
    .book-modal-grid .modal-list,
    .mision-modal .modal-list,
    .instituciones-modal .modal-list {
        gap: 10px;
        padding: 0 5px;
    }
    
    .modal-grid .modal-list li,
    .book-modal-grid .modal-list li,
    .mision-modal .modal-list li,
    .instituciones-modal .modal-list li {
        padding: 8px 12px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .modal-grid .modal-list li i,
    .book-modal-grid .modal-list li i,
    .mision-modal .modal-list li i,
    .instituciones-modal .modal-list li i {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    .mision-modal .modal-image {
        height: 200px;
        max-height: 200px;
    }
    
    .mision-modal .modal-text {
        padding: 15px 15px 25px 15px;
    }
    
    .mision-modal .modal-text p {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    
    .instituciones-modal .modal-image {
        height: 200px;
        max-height: 200px;
    }
    
    .instituciones-modal .modal-text {
        padding: 15px 15px 25px 15px;
    }
    
    .book-modal-grid .book-modal-image {
        height: 200px;
        max-height: 200px;
    }
    
    .book-modal-grid .book-modal-text {
        padding: 15px 15px 25px 15px;
        max-height: 380px;
    }
    
    .book-modal-grid .book-modal-text h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .book-modal-grid .book-modal-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    
    .modal-profesor {
        padding: 15px;
    }
    
    .modal-profesor .profesor-avatar {
        width: 100px;
        height: 100px;
    }
    
    .modal-profesor .profesor-nombre {
        font-size: 1.3rem;
    }
}

/* ===== CERTIFICACIONES SECTION ===== */
.certificaciones {
    padding: 100px 0;
    background: white;
    position: relative;
}

.certificaciones-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.certificaciones-content {
    flex: 1;
}

.certificaciones-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    letter-spacing: 1px;
}

.certificaciones-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.certificaciones-title span {
    color: var(--secondary-color);
}

.certificaciones-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.certificaciones-list {
    list-style: none;
    margin-bottom: 35px;
}

.certificaciones-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--dark-color);
}

.certificaciones-list li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 5px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificaciones-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(17, 34, 51, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.certificaciones-button:hover {
    background-color: #0a1826;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(17, 34, 51, 0.35);
}

.certificaciones-button i {
    transition: transform 0.3s ease;
}

.certificaciones-button:hover i {
    transform: translateX(5px);
}

.certificaciones-image {
    flex: 1.2;
    position: relative;
    text-align: center;
}

.certificaciones-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: block;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo-section {
    flex: 1;
    min-width: 280px;
}

.footer-logo {
    margin-bottom: 1.5rem;
    max-width: 280px;
    height: auto;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.footer-description {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: #1a1a1a;
    transform: translateY(-3px) rotate(5deg);
}

.footer-cursos {
    flex: 1;
    min-width: 200px;
}

.footer-contacto {
    flex: 1;
    min-width: 250px;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #ddd;
    transition: var(--transition);
}

.footer-contact-item a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-contact-item a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact-item i {
    color: var(--secondary-color);
    width: 20px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-contact-item:hover i {
    transform: scale(1.1);
}

.footer-contact-item span {
    font-size: 0.95rem;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-badges {
        justify-content: center;
    }
    .desktop-nav {
        display: none;
    }
    .header-container {
        padding: 12px 20px;
    }
    .logo-container {
        height: 70px;
        max-width: 65%;
        margin-left: 5px;
    }
    .custom-logo {
        max-height: 70px;
    }
    .mobile-menu-btn {
        display: flex !important;
        background: linear-gradient(135deg, var(--primary-color), #1e3a5a);
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        color: white;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        margin-right: 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    .mobile-menu-btn i {
        font-size: 1.8rem;
    }
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: white;
        padding: 100px 25px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        z-index: 999;
        overflow-y: auto;
        border-left: 4px solid var(--secondary-color);
    }
    .mobile-menu.active {
        right: 0;
    }
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }
    .mobile-nav-links a {
        text-decoration: none;
        color: var(--dark-color);
        font-weight: 600;
        font-size: 1.2rem;
        padding: 14px 20px;
        border-radius: 12px;
        background: rgba(212, 175, 55, 0.05);
        display: flex;
        align-items: center;
        gap: 15px;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
    }
    .mobile-nav-links a i {
        color: var(--secondary-color);
        width: 28px;
        font-size: 1.3rem;
    }
    .mobile-nav-links a:hover {
        background: rgba(212, 175, 55, 0.1);
        border-left-color: var(--secondary-color);
        transform: translateX(5px);
    }
    .mobile-header-cta {
        margin-top: 30px;
        padding-top: 25px;
        border-top: 2px solid rgba(212, 175, 55, 0.3);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .mobile-header-cta .cta-button {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .video-container {
        transform: none;
        margin-top: 30px;
        max-width: 100%;
    }
    .whatsapp-float {
        bottom: 25px;
        right: 20px;
    }
    .whatsapp-icon-container {
        padding: 10px 20px;
    }
    .testimonial-card {
        padding: 40px 30px 25px;
    }
    .testimonial-text {
        font-size: 1.1rem;
    }
    .testimonial-dots {
        margin-top: 15px;
        padding-bottom: 15px;
    }
    .location-grid {
        flex-direction: column;
        min-height: auto;
    }
    .location-image-wrapper,
    .location-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .location-image-wrapper {
        height: 350px;
    }
    .location-content {
        padding: 50px 40px;
    }
    .location-tag,
    .location-button {
        align-self: center;
    }
    .location-title {
        font-size: 2.5rem;
        text-align: center;
    }
    .location-title span {
        font-size: 2rem;
    }
    .location-features {
        justify-content: center;
    }
    .location-badge {
        width: 80px;
        height: 80px;
        top: 20px;
        left: 20px;
    }
    .location-badge span:first-child {
        font-size: 1.5rem;
    }
    .ubicaciones-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .certificaciones-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .certificaciones-content {
        text-align: center;
    }
    .certificaciones-list li {
        justify-content: center;
    }
    .certificaciones-image {
        max-width: 90%;
        margin: 0 auto;
    }
    .book-card {
        width: 220px;
    }
    .book-image {
        height: 220px;
    }
    @keyframes scroll {
        100% {
            transform: translateX(calc(-220px * 6 - 30px * 6));
        }
    }
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    .footer-logo-section,
    .footer-cursos,
    .footer-contacto {
        width: 100%;
    }
    .mobile-menu-close {
        width: 44px;
        height: 44px;
        top: 20px;
        right: 20px;
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 160px 0 100px;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .cta-title {
        font-size: 2.2rem;
    }
    .highlight-number {
        font-size: 3rem;
    }
    .logo-container {
        height: 60px;
    }
    .custom-logo {
        max-height: 60px;
    }
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
    }
    .mobile-menu-btn i {
        font-size: 1.6rem;
    }
    .mobile-menu {
        padding: 85px 20px 35px;
        width: 85%;
    }
    .mobile-nav-links {
        gap: 15px;
        margin-bottom: 35px;
    }
    .mobile-nav-links a {
        font-size: 1.1rem;
        padding: 12px 18px;
        gap: 12px;
    }
    .mobile-nav-links a i {
        width: 24px;
        font-size: 1.2rem;
    }
    .mobile-header-cta {
        margin-top: 25px;
        padding-top: 20px;
        gap: 15px;
    }
    .mobile-header-cta .cta-button {
        padding: 14px 20px;
        font-size: 1rem;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 18px;
    }
    .testimonial-card {
        padding: 30px 20px 20px;
    }
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    .author-info {
        text-align: center;
    }
    .testimonial-dots {
        margin-top: 10px;
        padding-bottom: 10px;
    }
    .google-reviews-btn {
        margin-top: 30px;
    }
    .location-image-wrapper {
        height: 300px;
    }
    .location-content {
        padding: 40px 30px;
    }
    .location-title {
        font-size: 2.2rem;
    }
    .location-title span {
        font-size: 1.8rem;
    }
    .location-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    .location-feature {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .location-feature span {
        text-align: center;
        word-break: break-word;
    }
    .location-badge {
        width: 70px;
        height: 70px;
    }
    .location-badge span:first-child {
        font-size: 1.3rem;
    }
    .location-button {
        width: 100%;
        justify-content: center;
        padding: 12px 30px;
    }
    .ubicacion-mapa {
        height: 250px;
    }
    .ubicacion-info {
        padding: 25px;
    }
    .certificaciones-title {
        font-size: 2.2rem;
    }
    .certificaciones-image {
        max-width: 100%;
    }
    .book-card {
        width: 180px;
        margin-right: 20px;
    }
    .book-image {
        height: 180px;
    }
    .book-title {
        font-size: 1.1rem;
    }
    @keyframes scroll {
        100% {
            transform: translateX(calc(-180px * 6 - 20px * 6));
        }
    }
    .mobile-menu-close {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 140px 0 80px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .highlight-number {
        font-size: 2.5rem;
    }
    .hero-badges {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .badge {
        width: 100%;
        justify-content: center;
    }
    .mobile-menu {
        width: 90%;
        padding: 75px 18px 30px;
    }
    .logo-container {
        height: 50px;
        max-width: 70%;
    }
    .custom-logo {
        max-height: 50px;
    }
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }
    .mobile-menu-btn i {
        font-size: 1.5rem;
    }
    .mobile-nav-links {
        gap: 12px;
        margin-bottom: 30px;
    }
    .mobile-nav-links a {
        font-size: 1rem;
        padding: 10px 15px;
        gap: 10px;
    }
    .mobile-nav-links a i {
        width: 22px;
        font-size: 1.1rem;
    }
    .mobile-header-cta {
        margin-top: 20px;
        padding-top: 18px;
        gap: 12px;
    }
    .mobile-header-cta .cta-button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    .whatsapp-icon-container {
        display: none;
    }
    .whatsapp-icon-only {
        display: flex;
        width: 60px;
        height: 60px;
    }
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon-only i {
        font-size: 2.2rem;
    }
    .testimonial-card {
        padding: 30px 15px 20px;
    }
    .testimonial-text {
        font-size: 1rem;
    }
    .testimonial-stars i {
        font-size: 1.1rem;
    }
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    .author-info h4 {
        font-size: 1.1rem;
    }
    .testimonial-dots {
        margin-top: 5px;
        padding-bottom: 5px;
        gap: 8px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
    .google-reviews-btn {
        margin-top: 25px;
    }
    .google-reviews-btn .primary-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    .location-image-wrapper {
        height: 250px;
    }
    .location-content {
        padding: 30px 20px;
    }
    .location-title {
        font-size: 1.8rem;
    }
    .location-title span {
        font-size: 1.5rem;
    }
    .location-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .location-feature {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .location-feature i {
        margin-bottom: 5px;
    }
    .location-badge {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 15px;
    }
    .location-badge span:first-child {
        font-size: 1.1rem;
    }
    .location-badge span:last-child {
        font-size: 0.7rem;
    }
    .ubicacion-mapa {
        height: 200px;
    }
    .ubicacion-info {
        padding: 20px;
    }
    .ubicacion-titulo h3 {
        font-size: 1.3rem;
    }
    .ubicacion-boton {
        width: 100%;
        justify-content: center;
    }
    .certificaciones-title {
        font-size: 1.8rem;
    }
    .certificaciones-description {
        font-size: 1rem;
    }
    .certificaciones-list li {
        font-size: 0.95rem;
    }
    .certificaciones-button {
        width: 100%;
        justify-content: center;
    }
    .carousel-header h2 {
        font-size: 1.8rem;
    }
    .carousel-header p {
        font-size: 1rem;
    }
    .book-card {
        width: 150px;
        margin-right: 15px;
    }
    .book-image {
        height: 150px;
    }
    .book-title {
        font-size: 1rem;
    }
    .book-level {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    @keyframes scroll {
        100% {
            transform: translateX(calc(-150px * 6 - 15px * 6));
        }
    }
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        top: 12px;
        right: 12px;
    }
}