:root {
    --primary-cyan: #00C2CB; 
    --secondary-blue: #2A338F;
    --white: #ffffff;
    --dark-text: #333333;
    --header-height: 80px;
}

/* --- RESET GLOBAL --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { font-family: 'Poppins', sans-serif; width: 100%; overflow-x: clip; }
a { text-decoration: none; }
ul { list-style: none; }

/* --- ENCABEZADO FIJO (STICKY WRAPPER) --- */
.sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* --- BARRA SUPERIOR --- */
.top-bar {
    background-color: var(--secondary-blue); color: var(--white);
    padding: 8px 5%; font-size: 0.85rem; 
    display: flex; justify-content: space-between; align-items: center; text-align: center;
}

/* --- HEADER --- */
header {
    background: var(--white); height: var(--header-height); padding: 0 5%; 
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: relative; z-index: 1000;
}
.logo { 
    font-size: 1.5rem; font-weight: 700; color: var(--secondary-blue); 
    display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 20px; 
}
.logo i { color: var(--primary-cyan); margin-right: 10px; font-size: 1.8rem; }

/* --- NAVEGACIÓN --- */
nav { display: flex; align-items: center; }
nav ul { display: flex; gap: 30px; }
nav ul li a { color: var(--dark-text); font-weight: 600; font-size: 1rem; transition: 0.3s; padding: 10px 0; display: block; }
nav ul li a:hover { color: var(--primary-cyan); }
.menu-toggle { display: none; font-size: 1.8rem; color: var(--secondary-blue); cursor: pointer; padding: 5px; flex-shrink: 0; width: 40px; text-align: right; }

/* --- HERO SECTION --- */
.hero-section {
    height: 85vh; position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); padding: 0 20px;
}
.bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/image_3.png'); 
    background-size: cover; background-position: center;
    filter: grayscale(100%) sepia(100%) hue-rotate(165deg) saturate(3) brightness(0.8) contrast(1.2);
    z-index: -2;
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(42, 51, 143, 0.9) 0%, rgba(42, 51, 143, 0.7) 100%);
    z-index: -1;
}
.hero-content { max-width: 800px; }
.hero-content h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.hero-content span { color: var(--primary-cyan); }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }

.btn-cta {
    background-color: var(--primary-cyan); color: var(--secondary-blue);
    padding: 15px 35px; font-weight: 700; border-radius: 50px;
    text-transform: uppercase; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 194, 203, 0.4); transition: 0.3s;
}
.btn-cta:hover { transform: translateY(-3px); background-color: var(--white); }

/* --- ESTILOS SECCIONES --- */
.section-padding { padding: 60px 5%; text-align: center; scroll-margin-top: 130px;}
.section-gray { background-color: #f9f9f9; }
.section-title { color: var(--secondary-blue); font-size: 2rem; margin-bottom: 10px; font-weight: 700; }
.section-subtitle { color: #666; font-size: 1.1rem; margin-bottom: 40px; display: block; }

/* --- ESTADÍSTICAS (EXPERIENCIA) --- */
.stats-grid {
    display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
    padding: 3rem 1rem; margin-top: -50px; position: relative; z-index: 10;
}
.stat-box {
    background: #ffffff; padding: 2rem 3rem; border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); text-align: center;
    min-width: 200px; transition: transform 0.3s ease;
    border-bottom: 5px solid #004d40;
}
.stat-box:hover { transform: translateY(-10px); }
.stat-number { font-size: 3.5rem; font-weight: 800; color: #004d40; margin: 0; line-height: 1; }
.stat-label { font-size: 1.1rem; color: #666; margin-top: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* --- VIDEO DESTACADO (AJUSTADO: CON MÁRGENES) --- */
.featured-video-wrapper {
    width: 95%; /* Ocupa casi todo el ancho, pero deja margen */
    max-width: 1100px; /* Un tope máximo para pantallas muy grandes */
    margin: 0 auto 50px auto; /* Centrado */
    border-radius: 20px; /* Bordes redondeados */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
    background: #000;
}

.featured-video-wrapper video {
    width: 100%; 
    display: block; 
    max-height: 600px; 
    object-fit: cover;
}

.video-caption {
    background: #2A338F; color: white; padding: 15px; font-size: 1rem; font-weight: 600;
}

/* --- GALERÍA (IMÁGENES MÁS PEQUEÑAS) --- */
#gallery-section { padding: 4rem 5%; background-color: #f4f4f4; text-align: center; }
.gallery-item {
    background: #fff; border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); position: relative;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; cursor: pointer; transition: 0.3s;
}
.gallery-item img:hover { opacity: 0.9; transform: scale(1.03); }
.caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.6); color: white; padding: 10px;
    margin: 0; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .caption { opacity: 1; }

/* --- TESTIMONIOS (CARRUSEL INFINITO) --- */
.testimonials-marquee {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px; 
    width: max-content; 
    animation: scrollMarquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    background: var(--white); padding: 30px; border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; position: relative;
    width: 350px; 
    flex-shrink: 0;
    white-space: normal; 
}

.review-card::before {
    content: '\201C'; font-size: 4rem; color: #eee; position: absolute; top: -10px; left: 20px; font-family: serif;
}
.stars { color: #f4c150; margin: 15px 0; }
.review-text { font-style: italic; color: #555; font-size: 0.95rem; }
.review-author { font-weight: 700; color: var(--secondary-blue); margin-top: 15px; display: block; }

/* --- UBICACIONES (MAPAS) --- */
.locations-container { max-width: 900px; margin: 0 auto; }
.map-block { margin-bottom: 50px; background: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.map-caption {
    background-color: #004d40; color: white; text-align: center; padding: 15px;
    font-size: 1.1rem; font-weight: 600; letter-spacing: 0.5px;
}
.map-caption i { margin-right: 8px; color: #4db6ac; }

.map-caption.top-caption { border-radius: 10px 10px 0 0; margin: 0; }
.map-wrapper.bottom-map { border-radius: 0 0 10px 10px; overflow: hidden; }
.map-wrapper iframe { display: block; width: 100%; height: 400px; }

/* --- LIGHTBOX (MODAL) --- */
.modal {
    display: none; position: fixed; z-index: 2000; padding-top: 60px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto; display: block; width: 80%; max-width: 900px;
    max-height: 80vh; object-fit: contain; border-radius: 5px;
    animation-name: zoom; animation-duration: 0.4s;
}
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }
.close {
    position: absolute; top: 15px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer;
}
.close:hover { color: #bbb; text-decoration: none; }

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-link {
    position: fixed; bottom: 30px; right: 30px; background-color: #25d366;
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; transition: transform 0.3s ease;
}
.whatsapp-link:hover { transform: scale(1.1); background-color: #128c7e; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .top-bar { flex-direction: column; padding: 10px; gap: 5px; }
    .menu-toggle { display: block; } 
    .logo { font-size: 1.1rem; flex: 1; }
    nav ul {
        display: none; flex-direction: column; width: 100%; position: absolute;
        top: var(--header-height); left: 0; background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); padding: 20px 0; border-top: 1px solid #f0f0f0;
    }
    nav ul.active { display: flex; animation: slideDown 0.3s ease; }
    nav ul li { width: 100%; }
    nav ul li a { padding: 15px; text-align: center; border-bottom: 1px solid #f9f9f9; }
    .hero-content h1 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .stats-grid { gap: 15px; padding: 1rem; }
    .stat-box { min-width: 140px; padding: 1.5rem 1rem; flex: 1 1 40%; }
    .stat-number { font-size: 2.5rem; }
    .gallery-container { grid-template-columns: 1fr; } 
    .testimonials-grid { grid-template-columns: 1fr; padding: 0 10px; }
    .section-padding { padding: 3rem 1rem; }
    .whatsapp-link { width: 50px; height: 50px; font-size: 28px; bottom: 20px; right: 20px; }
    .modal-content { width: 100%; }
    .map-wrapper iframe { height: 300px; }
    .social-float { width: 42px; height: 42px; font-size: 20px; right: 25px;}
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- FORMULARIO DE OPINIONES --- */
.review-form-container {
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 5px solid var(--secondary-blue);
}

.review-form-container h3 {
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.form-group { margin-bottom: 15px; text-align: left; }

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 5px rgba(0, 194, 203, 0.2);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.star-rating i { color: #ddd; transition: color 0.2s; }
.star-rating i.active { color: #f4c150; }

.btn-submit {
    background-color: var(--secondary-blue);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--primary-cyan);
    transform: translateY(-2px);
}

/* --- NOTIFICACIÓN FLOTANTE (TOAST) --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px; 
    background-color: var(--secondary-blue); 
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000; 
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.toast-notification.show { opacity: 1; transform: translateY(0); }
.toast-notification i { font-size: 1.2rem; color: var(--primary-cyan); }

/* --- CARRUSEL INFINITO DE IMÁGENES (HACIA LA DERECHA) --- */
.gallery-marquee {
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollGallery 40s linear infinite;
    will-change: transform;
}

.gallery-track:hover { animation-play-state: paused; }

@keyframes scrollGallery {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.gallery-marquee .gallery-item {
    width: 250px; 
    height: 300px; 
    flex-shrink: 0; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    position: relative;
    background: #fff;
}

.gallery-marquee .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- BOTONES FLOTANTES REDES SOCIALES --- */
.social-float:hover { transform: scale(1.1); }

.social-container {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.social-btn:hover { transform: scale(1.1); }

.social-btn.youtube,
.social-btn.instagram,
.social-btn.facebook {
    width: 45px;
    height: 45px;
    font-size: 21px;
}

.youtube { 
    background: #FF0000; 
}

.instagram {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%
    );
}
.facebook { background: #1877f2; }
.whatsapp { background: #25d366; }

@media (max-width: 768px) {
    .social-container { right: 15px; bottom: 20px; }
    .social-btn { width: 48px; height: 48px; font-size: 22px; }
    .social-btn.youtube,
    .social-btn.instagram,
    .social-btn.facebook { width: 42px; height: 42px; font-size: 20px; }
}