/* *********************************************
         * 1. VARIABLES CSS PERSONALIZABLES (:root) 
         *********************************************
        */

 :root {
    /* Colores Principales (Green Palette) */
    --color-principal: #27AE60;
    /* Verde Principal */
    --color-secundario: #229954;
    /* Verde para Hover/Énfasis */
    /* Colores de Acento (Dark Accent) */
    --color-acento-oscuro: #23475E;
    /* Azul Oscuro para fondos de iconos/tarjetas */
    /* Colores de Texto y Borde */
    --color-texto: #333333;
    --color-fondo-claro: #81d4fa;
    /* Fondo de secciones grises */
    --color-fondo-base: #81d4fa;
    /* Fondo de la página - Ahora será el color de las secciones */
    --color-borde: #DEE2E6;
    /* Tipografía */
    --font-family-sans-serif: 'Inter', sans-serif;
    /* Contenedor (para reemplazar max-w-7xl) */
    --container-max-width: 1200px;
}


/* *********************************************
         * 1.1. TEMA OBSCURO (DARK MODE) 
         *********************************************
        */

.dark-mode {
    /* Colores de Dark Mode */
    --color-principal: #6BE890;
    /* Verde más brillante para contraste */
    --color-secundario: #4AD26E;
    /* Verde intermedio */
    --color-acento-oscuro: #B3E0FF;
    /* Azul claro para acento */
    --color-texto: #E0E0E0;
    /* Texto claro */
    --color-fondo-claro: #377794;
    /* Fondo de secciones grises (Dark Gray) */
    --color-fondo-base: #377794;
    /* Fondo principal (Nearly Black) */
    --color-borde: #3A3A3A;
    /* Borde oscuro */
}


/* *********************************************
         * 2. ESTILOS GLOBALES Y UTILIDADES 
         *********************************************
        */

body {
    font-family: var(--font-family-sans-serif);
    color: var(--color-texto);
    background-color: transparent;
    /* Hacemos el body transparente para que se vea el fondo fijo */
    overflow-x: hidden;
    transition: color 0.5s;
    /* Transición solo para el texto */
    padding-top: 72px;
}


/* ---------------------------------------------
         * 2.1. FONDO DE PÁGINA FIJO Y BORROSO
         * ---------------------------------------------
         */

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    /* Asegura que esté detrás de todo */
}

#background-image {
    width: 100%;
    height: 100%;
    background-image: url('https://images.mnstatic.com/e4/9a/e49a9b491c618ecef514c95beffbadfb.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    /* Desenfoque de 5px */
    transform: scale(1.02);
    /* Escalar ligeramente para evitar bordes duros del blur */
}

#background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay en Modo Claro (ligeramente blanco/transparente) */
    background-color: rgba(255, 255, 255, 0.9);
    transition: background-color 0.5s;
}

.dark-mode #background-overlay {
    /* Overlay en Modo Oscuro (RGBA Negro) */
    background-color: rgba(18, 18, 18, 0.95);
}


/* ---------------------------------------------
         * 2.2. AJUSTE DE SECCIONES PARA FONDO FIJO
         * ---------------------------------------------
         */

section,
footer {
    /* Las secciones y el footer ahora usarán el color de fondo base/claro para cubrir el fondo fijo y dar legibilidad */
    background-color: var(--color-fondo-base);
    transition: background-color 0.5s;
}


/* Ajuste para la sección features, que tenía un fondo gris claro */

.features-section {
    background-color: var(--color-fondo-claro);
    /* Ahora usa la variable de fondo claro */
}

.dark-mode .features-section {
    background-color: #181818;
}

.container-custom {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-texto);
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-borde);
    margin: 0.75rem auto 0;
    border-radius: 9999px;
    transition: background-color 0.5s;
}

.features-section .section-title {
    color: var(--color-principal);
}


/* *********************************************
         * 3. NAVEGACIÓN SUPERIOR (STICKY TOP-NAV) 
         *********************************************
        */

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: var(--color-fondo-base);
    /* Usa color de fondo base */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color 0.5s;
}

.dark-mode .sticky-nav {
    background-color: #1A1A1A;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-principal) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--color-texto) !important;
    transition: color 0.3s ease;
}

.dark-mode .nav-link {
    color: var(--color-texto) !important;
}

.nav-link:hover {
    color: var(--color-principal) !important;
}

.navbar-collapse {
    background-color: var(--color-fondo-base);
    transition: background-color 0.5s;
}

.dark-mode .navbar-collapse {
    background-color: #1A1A1A;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        border-radius: 0 0 8px 8px;
        padding-bottom: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}


/* *********************************************
         * 4. HERO SECTION (VIDEO BACKGROUND)
         *********************************************
        */

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.btn-park {
    background-color: var(--color-principal);
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-park:hover {
    background-color: var(--color-secundario);
    color: white;
    transform: translateY(-2px);
}


/* *********************************************
         * 5. ÚLTIMAS NOTICIAS 
         *********************************************
        */

.news-card {
    text-align: center;
    padding: 1rem;
    transition: color 0.5s;
}

.news-card .img-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--color-principal);
    margin: 0 auto 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.news-card .img-container:hover {
    border-color: var(--color-secundario);
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.news-card h6 {
    font-weight: 600;
}

.news-separator {
    border: none;
    height: 1px;
    background-color: var(--color-borde);
    max-width: 900px;
    margin: 2rem auto 4rem;
    transition: background-color 0.5s;
}


/* *********************************************
         * 6. FEATURES (PARQUE CUENTA CON)
         *********************************************
        */

.features-section {
    background-color: var(--color-fondo-claro);
    transition: background-color 0.5s;
}

.dark-mode .features-section {
    background-color: #181818;
}

.feature-card {
    background-color: white;
    border: 1px solid var(--color-borde);
    border-radius: 0.5rem;
    min-height: 250px;
    height: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.5s, border-color 0.5s;
    position: relative;
    cursor: pointer;
}

.dark-mode .feature-card {
    background-color: var(--color-fondo-claro);
    border-color: var(--color-borde);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.feature-img-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) sepia(80%) hue-rotate(20deg);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.feature-card:hover .feature-img-container img {
    filter: none;
    transform: scale(1.05);
}

.feature-bottom {
    height: 60px;
    width: 75%;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color-acento-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border-top-left-radius: 0.5rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.feature-bottom p {
    margin: 0;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.feature-card:hover .feature-bottom {
    background-color: var(--color-principal);
}

.feature-card.amphitheater .feature-bottom {
    background-color: var(--color-principal);
}

.feature-card.amphitheater:hover .feature-bottom {
    background-color: var(--color-secundario);
}


/* *********************************************
         * 7. PESTAÑAS DE INFORMACIÓN (TABS)
         *********************************************
        */

.info-tabs .nav-link {
    font-weight: 600;
    color: var(--color-principal);
    border: 2px solid var(--color-principal);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.dark-mode .info-tabs .nav-link {
    color: var(--color-texto);
    background-color: #333333;
}

.info-tabs .nav-link:hover {
    color: #FFF !important;
    background-color: var(--color-secundario);
}

.info-tabs .nav-link.active {
    color: white;
    background-color: var(--color-principal);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.dark-mode .info-tabs .nav-link.active {
    color: black;
    /* Texto oscuro en verde brillante para alto contraste */
}

.tab-content-box {
    border: 1px solid var(--color-borde);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 1.5rem;
    background-color: white;
    /* Fondo de las pestañas */
    min-height: 250px;
    transition: background-color 0.5s, border-color 0.5s;
}

.dark-mode .tab-content-box {
    border-color: var(--color-borde);
    background-color: var(--color-fondo-claro);
}

.tab-pane h3 {
    color: var(--color-principal);
    transition: color 0.5s;
}

.tab-pane p {
    transition: color 0.5s;
}


/* Clases de utilidad que necesitan ser sobrescritas en Dark Mode */

.text-gray-700,
.text-gray-600 {
    color: #718096;
    transition: color 0.5s;
}

.dark-mode .text-gray-700,
.dark-mode .text-gray-600 {
    color: var(--color-texto) !important;
}

.dark-mode .bg-gray-50 {
    background-color: #333333;
}

.dark-mode .border-gray-200 {
    border-color: #444444;
}

.dark-mode .text-gray-800 {
    color: var(--color-texto);
}

.dark-mode .text-gray-500 {
    color: #AAAAAA;
}

.dark-mode .lead-text {
    color: var(--color-texto);
}

.dark-mode .bg-yellow-50 {
    background-color: #333318;
    /* Darker yellowish background */
}

.dark-mode .border-yellow-200 {
    border-color: #555530;
}

.dark-mode .text-yellow-800 {
    color: #FFECB3;
    /* Light yellow text */
}


/* Fin de las clases de utilidad para Dark Mode */

.text-2xl {
    font-size: 1.5rem;
}

.font-bold {
    font-weight: 700;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.align-middle {
    vertical-align: middle;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.font-semibold {
    font-weight: 600;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.space-y-2>li {
    margin-bottom: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.p-3 {
    padding: 0.75rem !important;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 0.875rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.text-md {
    font-size: 1rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-yellow-800 {
    color: #92400e;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.text-2xl-icon {
    font-size: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.bg-yellow-50 {
    background-color: #fffbeb;
}

.border-yellow-200 {
    border-color: #fef3c7;
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* *********************************************
         * 8. PLANEACIÓN DE VISITA 
         *********************************************
        */

.plan-visit-card {
    min-height: 200px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.plan-visit-card p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    z-index: 2;
}

.lead-text {
    color: #718096;
    transition: color 0.5s;
}

.plan-visit-card.children-card {
    background-color: var(--color-principal);
}

.plan-visit-card.adults-card {
    background-color: var(--color-acento-oscuro);
}

.plan-visit-card.children-card:hover {
    background-color: var(--color-secundario);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.plan-visit-card.adults-card:hover {
    background-color: #1a384a;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.plan-visit-card.bg-image {
    background-image: url('https://placehold.co/800x400/3E6A8E/FFFFFF?text=Mapa+del+Parque');
    background-size: cover;
    background-position: center;
    position: relative;
}

.plan-visit-card.bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    z-index: 1;
}


/* *********************************************
         * 9. FOOTER 
         *********************************************
        */

footer {
    transition: background-color 0.5s;
}

.dark-mode footer {
    background-color: #1A1A1A !important;
    /* Usamos un color ligeramente más oscuro que el fondo de las secciones */
    border-top: 1px solid var(--color-borde);
}


/* Estilos específicos para el Canvas de la Ruleta */


/* *********************************************
         * 10. RULETA
         *********************************************
        */

.roulete-roulete-wheel-container {
    position: relative;
    width: 90vw;
    /* Responsive width */
    max-width: 300px;
    /* Max width for desktop */
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(255, 255, 255, 0.8);
}

.roulete-roulete-wheel-display {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Maintain 1:1 aspect ratio */
    border-radius: 50%;
    /* Quitamos el color de fondo para que se vea el color del conic-gradient */
    box-shadow: 0 0 0 10px #1d1d3b, 0 0 0 20px #2c2c54;
    margin-bottom: 20px;
    overflow: hidden;
    /* Asegura que el gradiente se mantenga en el círculo */
}

.roulete-wheel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Animación CSS para el giro */
    transition: transform 6s cubic-bezier(0.25, 0.1, 0, 1);
    /* Aquí se inyecta el conic-gradient en JS */
}


/* --- Estilo Base para el Texto de las Opciones --- */

.segment-content {
    position: absolute;
    top: 50%;
    left: 50%;
    /* El texto se posiciona radialmente en JS */
    width: 50%;
    height: 50%;
    transform-origin: 0% 0%;
    /* Rotar desde el centro */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: clamp(10px, 3vw, 16px);
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    /* Ignorar clics en el texto */
}

.text-inner {
    /* Mantiene el texto horizontal y lo empuja hacia el borde */
    padding: 0 10px;
    width: 100%;
    /* 1. translate(-50%, -50%): Centra el elemento.
               2. rotate(-90deg): Lo pone horizontal (perpendicular al radio).
               3. translateX(90%): LO EMPUJA FUERA DEL CENTRO, CERCANO AL BORDE.
            */
    transform: translate(-50%, -50%) rotate(-90deg) translateX(90%);
}


/* Puntero/Indicador */

.pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    z-index: 100;
    /* Triángulo apuntando hacia abajo */
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background-color: gold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


/* Centro de la Ruleta (Pin) */

.roulete-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #ffffff 0%, #ffffff 50%, #1d1d3b 51%, #2c2c54 100%);
    border: 5px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roulete-center-icon {
    color: #d8c365;
    /* Color del icono central */
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-spin-container {
    width: 100%;
    margin-top: 20px;
}

.btn-spin {
    width: 100%;
    padding: 15px;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: #ff9933;
    /* Naranja similar al de la imagen */
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.1s;
}

.btn-spin:hover {
    background-color: #e68a00;
}

.btn-spin:active {
    transform: scale(0.98);
}

.roulete-result-message {
    min-height: 50px;
}

.bg-transparent {
    border: none !important;
    background: transparent !important;
}


/**Slider logos*/


/* 1. Ocultar los logos que salen del contenedor del carrusel */

#brandLogoSlider .carousel-inner {
    overflow: hidden;
}


/* 2. Asegurar que los items de logo NO se envuelvan a la siguiente línea */

.logo-track {
    display: flex;
    flex-wrap: nowrap;
    /* Esto es CLAVE para la cinta continua */
    /* Ancho total: (número de logos * 25%) */
    width: fit-content;
    transition: transform 0.6s ease-in-out;
    /* Velocidad de la transición visual */
}


/* 3. Estilo para las imágenes y texto (ajusta el max-height) */

.brand-logo {
    max-height: 80px;
    /* Altura uniforme para todos los logos */
    width: auto;
    margin: 0 auto;
}

.logo-item {
    padding: 15px;
    /* Espacio alrededor del logo */
    /* width: 25% for 4 visible items, will be handled by col-3 */
}


/* 4. Estilos para los controles */

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    /* Hace que las flechas sean visibles */
}