/* =========================================
   1. CONFIGURACIÓN BASE
   ========================================= */
:root {
    --primary-color: #1ad458;
    --bg-body: #050505;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

/* =========================================
   2. PRELOADER
   ========================================= */
#preloader-vt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.vt-container span {
    font-size: 6rem;
    font-weight: 900;
    margin: 0 5px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.v {
    color: #ffffff;
    animation-delay: 0.2s;
}

.t {
    color: var(--primary-color);
    animation-delay: 0.5s;
    text-shadow: 0 0 20px rgba(26, 212, 88, 0.5);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hide-loader {
    opacity: 0;
    visibility: hidden;
}

/* =========================================
   3. ESTILOS GENERALES (FULL SCREEN)
   ========================================= */
.full-screen-bg,
.hero-section {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.section-header-content {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
    padding-top: 150px;
    padding-left: 8%;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.section-title,
.content-wrapper p,
.content-wrapper h2,
.content-wrapper h3 {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

.history-card,
.service-card,
.event-row {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   4. NAVBAR FLOTANTE
   ========================================= */
.pill-navbar {
    position: fixed;
    top: 40px;
    right: 60px;
    left: auto;
    transform: none;
    background-color: rgba(30, 37, 50, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    gap: 30px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill-navbar a {
    text-decoration: none;
    color: #b0b0b0;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.pill-navbar a:hover,
.pill-navbar a.active {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(26, 212, 88, 0.3);
}

/* =========================================
   5. TIPOGRAFÍA Y TÍTULOS
   ========================================= */
.main-title {
    font-size: 7rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -3px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.main-title span {
    color: var(--primary-color);
}

.big-text {
    font-size: 5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #eee;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* Centrado en inicio */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.highlight-text {
    color: var(--primary-color);
}

/* =========================================
   6. ANIMACIÓN "EXPLORA"
   ========================================= */
.scroll-down-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
    animation: saltar 2s infinite ease-in-out;
}

.scroll-text {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

.scroll-down {
    color: var(--primary-color);
    font-size: 1.5rem;
}

@keyframes saltar {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -15px);
    }
}



/* =========================================
   7. COMPONENTES INTERNOS
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-card {
    display: flex;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #333;
}

.history-image {
    flex: 1;
    min-height: 300px;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-content {
    flex: 1;
    padding: 40px;
    border-left: 5px solid var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border-bottom: 1px solid #333;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: #222;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

button {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    margin-top: 15px;
    transition: 0.3s;
}

button:hover {
    background: #fff;
}

.events-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-row {
    background: var(--bg-card);
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
    gap: 20px;
}

.event-date {
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.date-number {
    font-size: 2rem;
    font-weight: 900;
}

.event-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.event-info p {
    color: #888;
    margin: 5px 0 0;
}

.red-text {
    color: #ef4444;
}

footer {
    text-align: center;
    color: #ffffff;
    padding: 40px;
    margin-top: 0;
    border-top: 1px solid #333;
}


/* =========================================
   8. IMÁGENES DE FONDO (CON FILTRO OSCURO)
   ========================================= */
/* Inicio */
.bg-inicio {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../public/img/imagen_portada_principal.jpeg');
    background-position: center 40%
}

.bg-inicio .hero-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Historia (Agregado gradiente oscuro) */
.bg-historia {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../public/img/imagenmejorada.jpeg');
}

/* Servicios (Agregado gradiente oscuro) */
.bg-servicios {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../public/img/imagen4.jpeg');
}

/* Eventos (Agregado gradiente oscuro) */
.bg-eventos {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../public/img/imagen5.jpeg');
}

/* Footer (Agregado gradiente oscuro) */
.bg-footer {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../public/img/imagen3.jpeg");
}



/* =========================================
   9. RESPONSIVE (CELULARES)
   ========================================= */
@media (max-width: 768px) {
    .pill-navbar {
        top: 20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 12px 15px;
        gap: 0;
        justify-content: space-evenly;
    }

    .pill-navbar a {
        font-size: 0.6rem;
        padding: 5px 8px;
    }

    .section-header-content {
        align-items: flex-start;
        padding-left: 20px;
        padding-top: 120px;
        min-height: 40vh;
    }

    .main-title {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .big-text {
        font-size: 3rem;
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .history-card {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .history-image {
        height: 250px;
        width: 100%;
    }

    .history-content {
        padding: 30px 20px;
        border-top: 5px solid var(--primary-color);
        border-left: none;
    }

    .services-grid {
        gap: 30px;
    }

    .service-card {
        margin-bottom: 20px;
        padding: 30px 20px;
    }

    .events-container {
        gap: 25px;
    }

    .event-row {
        flex-direction: row;
        padding: 20px;
        align-items: flex-start;
    }

    .event-date {
        padding-right: 15px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        margin-right: 15px;
        min-width: 80px;
    }
}
/* =========================================
   CORRECCIÓN DEL TÍTULO "NEGOCIOS"
   ========================================= */

/* 1. Contenedor del Título: Lo centramos y le damos espacio arriba */
#negocios .section-header-content {
    align-items: center;       
    text-align: center;        
    padding-left: 0;          
    padding-top: 160px;       
    width: 100%;               
    margin-bottom: 50px;       
}

/* 2. El Texto "TOCACHE TIENE TODO": Reducimos el tamaño */
#negocios .main-title {
    font-size: 4rem;         
    line-height: 1.1;
    margin-bottom: 0;
    width: 90%;         
    max-width: 1200px;
}

/* 3. Ajuste para Celulares (Responsive) */
@media (max-width: 768px) {
    #negocios .main-title {
        font-size: 2.2rem; 
        padding-top: 20px;
    }
    
    #negocios .section-header-content {
        padding-top: 120px;  
    }
}
/* --- CORRECCIÓN DE ALINEACIÓN (CENTRAR TODO) --- */

/* 1. Centrar los títulos verdes de las categorías */
.category-title {
    text-align: center;         /* Texto al centro */
    border-bottom: none;        /* Quitamos la línea de abajo para que se vea más limpio */
    margin-top: 20px;           /* Ajuste de espacio */
    margin-bottom: 40px;
    font-size: 2rem;            /* Un poco más grande para equilibrar */
    position: relative;
    display: inline-block;      /* Necesario para el subrayado centrado */
    width: 100%;
}

/* Opcional: Si quieres mantener la línea verde debajo del título centrado */
.category-title::after {
    content: "";
    display: block;
    width: 60px;                /* Ancho de la línea */
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0 auto;   /* Centrado automático */
}

/* 2. Ajustar la cuadrícula para que no se vea desordenada */
.business-grid {
    justify-content: center;    /* Centra las tarjetas si sobran espacios */
    margin-bottom: 60px;        /* Más espacio entre secciones */
}

/* 3. Asegurar que el contenedor principal esté centrado */
.content-wrapper {
    text-align: center;         /* Asegura que todo el contenido interno tienda al centro */
}

/* Corrección para que el texto de las tarjetas vuelva a la izquierda (porque el paso 3 lo centró todo) */
.business-card {
    text-align: left;           /* Las tarjetas se leen mejor alineadas a la izquierda */
}

/* =========================================
   ESTILOS PARA EVENTOS (TEXTO A LA IZQUIERDA)
   ========================================= */

.eventos-lista {
    max-width: 600px; 
    margin: 0 auto; /* Esto mantiene la lista centrada en la pantalla */
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Tarjeta de Evento */
.evento-card {
    display: flex;
    align-items: center; 
    background: rgba(31, 31, 31, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 15px 25px;
    color: #fff;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.evento-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    background: rgba(40, 40, 40, 0.95);
}

/* --- COLUMNA DE FECHA (ALINEADA A LA IZQUIERDA) --- */
.evento-fecha {
    display: flex;
    flex-direction: column;
    
    /* CAMBIO AQUÍ: 'flex-start' mueve el texto a la izquierda */
    align-items: flex-start; 
    justify-content: center;
    
    min-width: 90px;
    margin-right: 25px;
    padding-right: 20px;
    
    /* Mantenemos la línea a la derecha como separador */
    border-right: 1px solid rgba(255, 255, 255, 0.15); 
    
    height: auto; 
}

/* MES (Ej: MAR) */
.evento-fecha .mes {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

/* DÍA (Ej: 29) */
.evento-fecha .dia {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 0.9;
    margin: 0;
}

/* RANGO (Ej: - 05 ABR) */
.evento-fecha .rango {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    line-height: 1;
    margin-top: 4px;
    display: block;
    /* Aseguramos que el texto del rango también se alinee a la izquierda */
    text-align: left; 
}

/* Fiestas Patrias (Rojo) */
.evento-fecha .patrias {
    color: #e63946;
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.4);
}

/* --- COLUMNA DE INFO (DERECHA) --- */
.evento-info {
    flex: 1;
    text-align: left; /* Aseguramos que la info también vaya a la izquierda */
}

.evento-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.evento-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #ccc;
}

/* --- RESPONSIVE (CELULAR) --- */
@media (max-width: 600px) {
    .evento-card {
        padding: 15px;
    }
    
    .evento-fecha {
        min-width: 75px;
        margin-right: 15px;
        padding-right: 15px;
    }
    
    .evento-fecha .dia {
        font-size: 28px;
    }
    
    .evento-info h3 {
        font-size: 1.1rem;
    }
}

/* =========================================
   CORRECCIÓN SECCIÓN EVENTOS (TOCACHE TE ESPERA)
   ========================================= */

/* 1. Quitamos la altura forzada del bloque "CELEBRA" para que lo de abajo suba */
#tocache-te-espera .section-header-content {
    min-height: auto !important; 
    padding-bottom: 10px !important; 
    margin-bottom: 0 !important;
    padding-top: 140px;
}

/* 2. Título "Próximos Eventos": MÁS GRANDE y PEGADO ARRIBA */
#tocache-te-espera .section-title {
    font-size: 4rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    margin-top: 0 !important; 
    margin-bottom: 50px !important; 
    color: #fff;
}

/* 3. Ajuste para Celulares (Para que no se rompa) */
@media (max-width: 768px) {
    #tocache-te-espera .section-header-content {
        padding-top: 100px;
    }
    #tocache-te-espera .section-title {
        font-size: 2.5rem !important; 
    }
}

/* =========================================
   REDUCCIÓN DE ESPACIOS GLOBALES
   ========================================= */

/* 1. Eliminamos el alto forzado de 50vh que causa el gran hueco */
#negocios .section-header-content,
#tocache-te-espera .section-header-content {
    min-height: auto !important; /* Permite que el contenido suba */
    padding-top: 100px !important; /* Ajusta la altura respecto al menú */
    padding-bottom: 0px !important;
    margin-bottom: 20px !important; /* Espacio pequeño con el siguiente título */
}

/* 2. Si el contenedor de cabecera en Eventos está vacío, lo ocultamos por completo */
#tocache-te-espera .section-header-content:empty {
    display: none !important;
}

/* 3. Ajustamos los títulos de categoría para que no tengan tanto margen arriba */
.category-title {
    margin-top: 10px !important; /* Sube los títulos verdes */
    margin-bottom: 30px !important;
}

/* 4. Ajuste para el título gigante de Eventos */
#tocache-te-espera .section-title {
    margin-top: 40px !important; /* Controla qué tan cerca está de la sección anterior */
    font-size: 3.5rem !important; /* Lo hace más imponente */
}

/* =========================================
   AJUSTE PARA MÓVILES (Opcional)
   ========================================= */
@media (max-width: 768px) {
    #negocios .section-header-content,
    #tocache-te-espera .section-header-content {
        padding-top: 80px !important;
    }
    
    #tocache-te-espera .section-title {
        font-size: 2.2rem !important;
    }
}

.yc-scene.active .yc-media-wrapper {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) grayscale(0);
    /* Se enfoca y toma color */
    z-index: 100;
    position: relative;
}