/* css/header.css */

#main-header {
    background-color: transparent;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    z-index: 9999; /* Increased z-index significantly to ensure it stays on top of all content, including maps */
}

/* Estilos para el contenedor del logo */
.logo-container {
    /* Ajusta la altura si es necesario para que coincida con la altura del header */
    height: 100%;
    display: flex;
    align-items: center;
}

#site-logo {
    height: 3rem; /* Aumentado de 2.5rem (48px) - h-12 de Tailwind */
    width: auto;
    transition: filter 0.3s ease-in-out; /* Para el cambio de color del logo si es SVG y se usa filter */
}

@media (min-width: 768px) { /* md breakpoint */
    #site-logo {
        height: 3.5rem; /* Aumentado de 3rem (56px) - h-14 de Tailwind */
    }

    /* Forzar fondo transparente en desktop sin scroll */
    #main-header:not(.scrolled) {
        background-color: transparent !important;
    }
}

/* Textos y iconos blancos cuando el header es transparente (pantallas grandes, sin scroll) */
#main-header:not(.scrolled) .nav-link,
#main-header:not(.scrolled) .mobile-menu-trigger i,
#main-header:not(.scrolled) .fa-search,
#main-header:not(.scrolled) .fa-globe,
#main-header:not(.scrolled) .fa-chevron-down {
    color: white;
}

#main-header:not(.scrolled) .nav-link:hover {
    color: #d1fae5; /* Tailwind green-100, un poco más claro para hover sobre transparente */
}


/* Header con scroll: fondo blanco, textos oscuros (pantallas grandes, con scroll) */
#main-header.scrolled {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .nav-link,
#main-header.scrolled .mobile-menu-trigger i,
#main-header.scrolled .fa-search,
#main-header.scrolled .fa-globe,
#main-header.scrolled .fa-chevron-down {
    color: #374151; /* Tailwind gray-700 */
}

#main-header.scrolled .nav-link:hover {
    color: #059669; /* Tailwind green-700 */
}

.nav-link {
    padding: 0.35rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Estilos para el enlace "Planifica tu Viaje" */
#main-header .nav-link.planifica-viaje-link {
    color: #FFFFFF; /* MODIFICADO: Color blanco por defecto (estado estático) */
    font-weight: 600; /* Negrita */
}

/* Estilo para el enlace cuando el header tiene la clase 'scrolled' */
#main-header.scrolled .nav-link.planifica-viaje-link {
    color: #D32F2F !important; /* Color rojo en scroll */
    font-weight: 600; /* Negrita en scroll */
}

/* Estilo para el enlace en el menú móvil */
#mobile-menu .mobile-nav-link.planifica-viaje-link {
    color: #000000; /* Color negro por defecto en móvil */
    font-weight: 600;
}


.nav-cta-button {
    padding: 0.3rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
header nav .cta-button-main.nav-cta-button,
header nav .nav-cta-button
{
    padding: 0.3rem 0.75rem !important;
    font-size: 0.8rem !important;
    min-width: auto !important;
}

/* Language Selector Dropdown */
.language-selector .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
    min-width: 160px;
    border: 1px solid #e5e7eb;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.language-selector:hover .dropdown-menu,
.language-selector .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f0fdf4;
    color: #059669;
}

.rutas-dropdown-container:hover + .rutas-dropdown-menu,
.rutas-dropdown-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.rutas-dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#main-header.scrolled .rutas-dropdown-menu {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
#main-header:not(.scrolled) .rutas-dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.dropdown-item-fullwidth {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.dropdown-item-fullwidth:hover {
    color: #059669;
}
.rutas-dropdown-menu h3 {
    font-size: 0.9rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #4B5563; /* Color por defecto para el menú móvil */
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
    border-bottom: 1px solid #e5e7eb;
}
.mobile-nav-link:last-child {
    border-bottom: none;
}
.mobile-nav-link:hover {
    background-color: #f0fdf4;
    color: #059669;
}

/* Search Overlay Styles - Minimalist Design */
#search-overlay {
    opacity: 0;
    visibility: hidden;
    background-color: rgba(255, 255, 255, 0.98); /* Fondo blanco casi opaco */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 60;
    display: none; /* Asegurar que está oculto inicialmente */
}

#search-overlay.search-overlay-active {
    opacity: 1;
    visibility: visible;
    display: flex; /* Mostrar cuando está activo */
}

.search-overlay-hidden {
    display: none;
}

.search-input-field {
    border-radius: 0;
}
.search-input-field::placeholder {
    color: #9ca3af;
    font-weight: 300;
}

.search-submit-button {
    font-weight: 500;
}
.search-submit-button .fa-search {
    color: white !important;
}


#close-search-button {
    font-weight: 300;
    color: #6b7280;
}
#close-search-button:hover {
    color: #1f2937;
}

/* Estilos específicos para móvil (hasta 767px) */
@media (max-width: 767px) {
    #main-header {
        background-color: white !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    #main-header .nav-link, /* Aunque los nav-link están ocultos, por si acaso */
    #main-header .mobile-menu-trigger i,
    #main-header .fa-search,
    #main-header .fa-globe,
    #main-header .fa-chevron-down {
        color: #374151 !important; /* Tailwind gray-700 */
    }
    
    #main-header #site-logo {
        height: 3rem; /* Mantenemos el tamaño aumentado también para móvil */
    }
    
    #mobile-menu {
        background-color: white; /* Asegurar fondo blanco */
    }
    .mobile-nav-link {
        color: #4B5563; /* Tailwind gray-600 */
    }
    .mobile-nav-link:hover {
        background-color: #f0fdf4; /* Tailwind green-50 */
        color: #059669; /* Tailwind green-700 */
    }
     .mobile-nav-link.text-green-600 { /* Para el botón de Contáctanos en móvil */
        color: #10B981 !important;
    }
    .mobile-nav-link.text-green-600:hover {
        color: #059669 !important;
    }
}
/* css/style.css */

/* General body styling */
body {
    font-family: 'Inter', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    margin: 0;
    padding: 0;
}

/* Padding para main para que no se solape con el header fixed */
/* En desktop (>=768px): sin padding, el header flota sobre el contenido transparente */
/* En mobile (<768px): con padding, el header blanco empuja el contenido hacia abajo */
main {
    padding-top: 0 !important; /* Sin padding en desktop por defecto - FORZADO */
    margin-top: 0 !important; /* Sin margin tampoco */
}

@media (max-width: 767px) {
    main {
        padding-top: 3.5rem !important; /* Altura del header en mobile (56px - h-14) */
    }
}

/* FORZAR en desktop que no haya padding */
@media (min-width: 768px) {
    main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* Hero Section Specifics (Página Principal) */
.hero-bg {
    background-image: url('/ourway/media/hero.jpg');
    background-size: cover;
    background-position: center;
}
.hero-section {
    min-height: calc(100vh - 3.5rem); /* Resta la altura del header en mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Needed for absolute positioning of children */
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 100vh; /* Altura completa en desktop - el header flota sobre el hero */
    }
}
.hero-content {
    max-width: 800px;
}

/* Section Padding (para secciones DESPUÉS del hero) */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Shared CTA Button Style */
.cta-button-main {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 240px;
    box-sizing: border-box;
    line-height: 1.5;
}
.cta-button-main .fas,
.cta-button-main .fab {
    margin-right: 0.5rem;
}


/* Card styles for carousels and other listings */
.custom-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 450px; /* Aumentado a 450px para dar más espacio y alinear botones */
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.custom-card img {
    width: 100%;
    height: 200px; /* Altura fija para imágenes en este tipo de tarjeta */
    object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
    pointer-events: none; /* NUEVO: Ignora eventos de ratón en la imagen para permitir arrastre del carrusel */
}

.custom-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que el contenido crezca y empuje el botón hacia abajo */
}

.custom-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    /* Propiedades para truncar el título con ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* CAMBIO: Limita el título a 3 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2; /* Ajusta la altura de línea si es necesario */
    max-height: calc(1.2em * 3); /* CAMBIO: Altura máxima para 3 líneas */
}

.custom-card-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1rem;
    flex-grow: 1; /* Permite que la descripción ocupe el espacio disponible */

    /* Propiedades para truncar el texto con ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita el texto a 3 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5; /* Asegura una altura de línea consistente */
    max-height: calc(1.5em * 3); /* Altura máxima para 3 líneas (1.5em * 3 líneas) */
}

.custom-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1rem;
    margin-top: auto;
}

.custom-card-button {
    display: inline-block;
    background-color: #10B981;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Empuja el botón hacia la parte inferior de la tarjeta */
    align-self: center; /* Centra el botón horizontalmente */
}
.custom-card-button:hover {
    background-color: #059669;
}

/* Carousel Styles */
.carousel-container {
    overflow: hidden;
    position: relative;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-top: 10px;
    padding-bottom: 10px;
    /* Se quitan los padding-left/right para que el carousel-track se extienda completamente */
    /* padding-left: 1rem; */
    /* padding-right: 1rem; */
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* pointer-events: none; - se elimina para permitir el arrastre en el track */
    cursor: grab; /* Indica que es arrastrable */
}
.carousel-track:active {
    cursor: grabbing; /* Cursor durante el arrastre */
}
.carousel-item {
    flex-shrink: 0;
    /* REMOVIDO: pointer-events: auto; para permitir que el carrusel se arrastre */
    margin-bottom: 5px;
    /* Los items usan mx-3 en HTML, que proporciona el espacio entre ellos */
}

/* Responsive styles for .carousel-item */
.carousel-item {
    /* MODIFICADO: Móvil: 1 tarjeta visible para una mejor experiencia en pantallas pequeñas. Se usa 90% para que se vea un poco de la siguiente tarjeta. */
    min-width: 90%;
    max-width: 90%;
}
@media (min-width: 640px) { /* sm */
    /* 2 tarjetas */
    .carousel-item {
        min-width: calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}
@media (min-width: 768px) { /* md */
    /* 3 tarjetas */
    .carousel-item {
        min-width: calc(33.3333% - 1.5rem);
        max-width: calc(33.3333% - 1.5rem);
    }
}
@media (min-width: 1024px) { /* lg */
    /* 4 tarjetas */
    .carousel-item {
        min-width: calc(25% - 1.5rem + 1px); /* +1px para evitar problemas de redondeo en algunos navegadores */
        max-width: calc(25% - 1.5rem + 1px);
    }
}
@media (min-width: 1280px) { /* xl */
    /* 4 tarjetas - Ajustado de 5 a 4 */
    .carousel-item {
        min-width: calc(25% - 1.5rem + 1px);
        max-width: calc(25% - 1.5rem + 1px);
    }
}

.carousel-button {
    position: absolute;
    top: calc(50% + 5px);
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.carousel-button.prev {
    left: 0.5rem;
}
.carousel-button.next {
    right: 0.5rem;
}
@media (max-width: 639px) {
    /* Los botones de navegación se mantienen ocultos en pantallas muy pequeñas */
    /* .carousel-button {
        display: none;
    } */
}
.carousel-button:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.carousel-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}
.carousel-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Testimonial card */
.testimonial-card {
    background-color: #f9fafb;
    border-left: 4px solid #10B981;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.testimonial-author {
    font-weight: 600;
    color: #059669;
}

/* CTA Section Background */
.cta-bg {
    background-color: #166534;
}

/* MODIFICADO: Estilos para la franja de características */

/* Estilos para móvil (por defecto) */
.hero-features {
    background-color: white;
}
.hero-features i {
    color: #10B981; /* Color verde */
}
.hero-features h3 {
    color: #1f2937; /* Color de texto oscuro */
}

/* Estilos para pantallas grandes (md y superiores) */
@media (min-width: 768px) {
    .hero-features {
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: transparent; /* Fondo transparente en desktop */
        z-index: 20;
    }
    .hero-features i {
        color: rgba(255, 255, 255, 0.6); /* Iconos blancos con opacidad */
    }
    .hero-features h3 {
        color: rgba(255, 255, 255, 0.6); /* Títulos blancos con opacidad */
    }
}

/* ========================================================================
   WhatsApp Button (Botón Flotante)
   ======================================================================== */

/* WhatsApp Button Premium */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    animation: pulse 2s infinite;
    opacity: 1 !important;
    pointer-events: auto;
}

.whatsapp-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
/* css/rutas.css */
/* Estilos específicos para las páginas de listado y detalle de Caminos/Rutas */

/* --- Hero Section para la Página de Listado de Rutas con MAPA --- */
.rutas-list-hero-map-bg {
    background-color: #334030; 
    min-height: 70vh; 
    position: relative;
    display: flex;
    align-items: center; 
    justify-content: center; 
    text-align: center;
    overflow: visible; /* CAMBIO CLAVE: De hidden a visible para permitir que el desplegable se superponga */
}
@media (min-width: 768px) {
    .rutas-list-hero-map-bg {
         min-height: 80vh; 
    }
}
#mapa-rutas-hero { 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; 
}
.rutas-list-hero-map-bg .relative.z-20 { 
    padding-bottom: 2rem; 
}


/* * INICIO DE LA MODIFICACIÓN:
 * Estilos para Tarjetas de Listado de Caminos.
 * Se ha corregido el efecto de hover para que la imagen no se solape.
*/
.camino-card .relative {
    overflow: hidden; /* La corrección clave: recorta el contenido que se desborda, como la imagen al escalar */
}

.camino-card img {
    transition: transform 0.3s ease-in-out;
}

.camino-card:hover img {
    transform: scale(1.1); /* Aumenta la escala para un efecto más notable */
}
/* FIN DE LA MODIFICACIÓN */


/* --- Hero Section Específico para la Página de Detalle del Camino/Ruta (ruta-camino.php) --- */
.camino-hero-bg {
    background-size: cover;
    background-position: center center;
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
    .camino-hero-bg {
         min-height: 75vh;
    }
}
#mapa-camino { 
    width: 100%;
    height: 100%;
}
.camino-hero-content {
    position: relative;
    z-index: 20;
}
.camino-hero-content .shadow-text {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Estilos para la lista de etapas */
.etapa-link {
    cursor: pointer;
}

/* Estilos para Leaflet Popups */
.leaflet-popup-content-wrapper {
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.leaflet-popup-content {
    font-family: 'Inter', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    color: #374151;
    margin: 8px 12px !important;
    font-size: 0.875rem;
    line-height: 1.4;
}
.leaflet-popup-content b {
    color: #1f2937;
    font-weight: 600;
}
.leaflet-popup-tip {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* General style for filter dropdown menus */
.filter-dropdown-menu {
    display: none; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
    z-index: 50; 
    width: max-content; 
    max-width: calc(100vw - 2rem); 
    border: 1px solid #e5e7eb; 
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[id^="filter-"][id$="-container"].dropdown-active .filter-dropdown-menu {
    display: block; 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-dropdown-item {
    display: block !important; 
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151 !important;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
    white-space: nowrap;
    text-decoration: none;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1000; 
}

.filter-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #111827 !important;
}

.filter-dropdown-item-active {
    font-weight: 600;
    background-color: #f3f4f6;
    color: #1f2937 !important;
}

/* FAQ Accordion Styles */
.faq-accordion .faq-item {
    border: 1px solid #e5e7eb; /* Tailwind gray-200 */
    transition: box-shadow 0.3s ease;
    background-color: #f9fafb; /* Tailwind gray-50 */
}

.faq-accordion .faq-item[open] {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06); /* Tailwind shadow-md */
    background-color: white;
}

.faq-summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem; /* p-4 sm:p-5 */
    font-weight: 600; /* semibold */
    color: #374151; /* gray-700 */
}
.faq-summary::-webkit-details-marker { /* For Safari */
    display: none;
}
.faq-summary i.fa-chevron-down {
    transition: transform 0.3s ease-in-out;
}

.faq-item[open] .faq-summary i.fa-chevron-down {
    transform: rotate(180deg);
}

.faq-content {
    padding: 1rem 1.25rem; /* p-4 sm:p-5 */
    border-top: 1px solid #e5e7eb; /* border-gray-200 */
    color: #4b5563; /* gray-600 */
    line-height: 1.625; /* leading-relaxed */
}


/* Estilos para el acordeón de etapas (ya existentes, se pueden revisar si es necesario) */
.etapa-accordion-item {
    border: 1px solid #e5e7eb; 
    transition: box-shadow 0.3s ease;
    margin-bottom: 1rem; 
}

.etapa-accordion-item[open] {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.etapa-accordion-summary {
    list-style: none; 
    cursor: pointer;
    padding: 1rem;
    position: relative;
}

.etapa-accordion-summary::-webkit-details-marker {
    display: none; 
}

.etapa-accordion-summary i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.etapa-accordion-item[open] .etapa-accordion-summary i.fa-chevron-down {
    transform: rotate(180deg);
}

.etapa-accordion-content {
    padding: 0 1rem 1rem 1rem; 
}

.etapa-poblacion-cuadrado {
    width: 160px; 
    flex-shrink: 0; 
    aspect-ratio: 1 / 1; 
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; 
    display: flex;
    align-items: flex-end; 
    justify-content: center; 
    overflow: hidden; 
    transition: transform 0.3s ease-in-out; 
}

.etapa-poblacion-cuadrado:hover {
    transform: scale(1.05); 
}

.etapa-poblacion-cuadrado::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%; 
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
    border-radius: 0 0 0.5rem 0.5rem; 
}

.etapa-poblacion-nombre {
    color: white;
    font-weight: 600;
    font-size: 1rem; 
    text-align: center;
    padding: 0.5rem;
    z-index: 2; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); 
    width: 100%; 
}

.etapa-card-container { }

.etapa-poblacion-etiqueta {
    font-size: 0.875rem; 
    font-weight: 600; 
    color: #374151; 
    margin-bottom: 0.25rem; 
    text-align: center; 
}

.stage-card-placeholder {
    background-color: #f3f4f6; 
    border: 2px dashed #d1d5db; 
    color: #4b5563; 
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0.5rem; 
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    height: 8rem; 
}
@media (min-width: 640px) { 
    .stage-card-placeholder {
        height: 10rem; 
    }
}

.stage-card-placeholder:hover {
    background-color: #e5e7eb; 
    border-color: #9ca3af; 
}

.etapas-variante-completas-wrapper.hidden {
    display: none;
}

@media (max-width: 767px) {
    .variante-accordion-item .etapa-accordion-content .variante-etapas-titulo,
    .variante-accordion-item .etapa-accordion-content .variante-etapas-grid,
    .variante-accordion-item .etapa-accordion-content .etapas-variante-completas-wrapper {
        display: none !important;
    }
    .elevation-chart-poblacion-texto {
        display: none !important;
    }
    .rutas-list-hero-map-bg .bg-white { 
        padding: 1rem; 
    }
    .rutas-list-hero-map-bg #filter-form .grid {
        grid-template-columns: 1fr; 
    }
    .rutas-list-hero-map-bg #filter-form .lg\:col-span-1,
    .rutas-list-hero-map-bg #filter-form .md\:col-span-3,
    .rutas-list-hero-map-bg #filter-form .sm\:col-span-2 { 
        grid-column: span 1 / span 1; 
    }
     .rutas-list-hero-map-bg #filter-form button,
     .rutas-list-hero-map-bg #filter-form input {
        font-size: 0.875rem; 
    }
}

.filter-submit-button {
}

@media (min-width: 1024px) { 
    .filter-submit-button {
        width: auto; 
        padding-left: 1.5rem; 
        padding-right: 1.5rem;
        justify-self: end; 
    }
}

/* Estilos para la sección de historia (prose de Tailwind ya ayuda mucho) */
#historia-camino-santiago .prose h3 {
    color: #1f2937; /* gray-800 */
    font-weight: 600; /* semibold */
    margin-top: 2em; /* Ajusta según sea necesario */
    margin-bottom: 1em;
}
#historia-camino-santiago .prose p {
    color: #374151; /* gray-700 */
    line-height: 1.75; /* Un poco más de interlineado para textos largos */
}
/* css/rutas.css */
.card-ruta {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-ruta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Estilo moderno para los desplegables (select) */
.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Icono de flecha SVG personalizado codificado para URL */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
}
/* css/poblacion.css */
/* Estilos específicos para la página de detalle de Población (poblacion.php) */

/* --- Hero Section Específico para la Página de Detalle de Población (poblacion.php) --- */
.poblacion-hero-bg {
    background-size: cover;
    background-position: center center;
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

@media (min-width: 768px) {
    .poblacion-hero-bg {
         min-height: 70vh;
    }
}

/* --- Sección Info Población y Mapa --- */
#mapa-poblacion {
    width: 100%;
    height: 24rem; /* 384px, h-96 de Tailwind */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    background-color: #f3f4f6;
    z-index: 10;
}

@media (min-width: 768px) {
    #mapa-poblacion {
        height: 32rem; /* 512px, h-128 de Tailwind */
    }
    #info-poblacion-mapa .md\:w-1\/2 .sticky {
        top: 6rem;
    }
}

/* --- Estilos para el contenido de la descripción --- */
#descripcion-poblacion h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #10B981;
}

/* Icono personalizado para el mapa de población */
.custom-div-icon-poblacion {
    text-align: center;
    line-height: 0;
}

.custom-div-icon-poblacion .fa-stack {
    font-size: 1.8rem;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.4);
}

.custom-div-icon-poblacion .fa-circle {
    color: rgba(255, 255, 255, 0.8);
}

.custom-div-icon-poblacion .fa-map-marker-alt {
    color: #ef4444; /* Rojo para destacar */
}

/* --- NUEVOS ESTILOS: Sección de Caminos y Etapas Asociados --- */
#caminos-etapas-asociadas .camino-asociado-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#caminos-etapas-asociadas .camino-asociado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#caminos-etapas-asociadas .etapa-asociada-item {
    transition: background-color 0.2s ease-in-out;
}

#caminos-etapas-asociadas .etapa-asociada-item:hover {
    background-color: #f9fafb; /* gray-50 en hover */
}

.etapa-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem; /* Espacio entre el emoji y el texto */
    margin-right: 1rem; /* Espacio entre cada estadística */
}

/* --- NUEVOS ESTILOS: Sección de Alojamientos (Hoteles) --- */
.carousel-container {
    overflow: hidden; /* Oculta los elementos que se desbordan */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex-shrink: 0; /* Evita que los items se encojan */
    width: 300px; /* Ancho fijo para cada item del carrusel, ajustar según diseño */
    /* Puedes usar un ancho responsivo con media queries si lo necesitas */
}

/* Ejemplo para ajustar en pantallas más grandes si es necesario */
@media (min-width: 768px) {
    .carousel-item {
        width: 320px; /* Ligeramente más ancho en tablets */
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        width: 350px; /* Más ancho en desktops */
    }
}

/* --- INICIO DE LA MODIFICACIÓN: Tarjeta de hotel más corta en el carrusel --- */
.hotel-card-short {
    height: 225px; /* La mitad de la altura original de 450px */
}

/* Ajuste para que el contenido se distribuya bien en la nueva altura */
.hotel-card-short .custom-card-content {
    padding: 1.25rem; /* Ajuste ligero del padding para el nuevo tamaño */
}
/* --- FIN DE LA MODIFICACIÓN --- */
/* NUEVOS ESTILOS para la galería de imágenes DENTRO de la sección de detalles */
.hotel-inline-gallery {
    /* grid grid-cols-2 sm:grid-cols-3 gap-4 */
    /* Asegura que las imágenes se comporten como cuadrados y cubran su área */
}

.hotel-gallery-thumb,
.hotel-gallery-more-photos {
    aspect-ratio: 1 / 1; /* Hace que las imágenes y el botón sean cuadrados */
    object-fit: cover;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 2px solid transparent; /* Borde inicial transparente */
}

.hotel-gallery-thumb:hover,
.hotel-gallery-more-photos:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: #10B981; /* Borde al pasar el ratón */
}

/* Estilos para el Mapa del Hotel */
#mapa-hotel {
    width: 100%;
    height: 20rem; /* h-80 de Tailwind */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    background-color: #f3f4f6;
    z-index: 10;
}

@media (min-width: 768px) {
    #mapa-hotel {
        height: 25rem; /* h-100 de Tailwind */
    }
}


/* Estilos para el Mapa del Hotel */
#mapa-hotel {
    width: 100%;
    height: 20rem; /* h-80 de Tailwind */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    background-color: #f3f4f6;
    z-index: 10;
}

@media (min-width: 768px) {
    #mapa-hotel {
        height: 25rem; /* h-100 de Tailwind */
    }
}

/* Otros estilos específicos que puedas necesitar para la disposición */
/* .sticky { top: 6rem; }  // Para fijar elementos al hacer scroll */

/* Estilos personalizados para el fondo de la página de reserva */

.main-bg-image {
    position: relative; /* Necesario para posicionar el pseudo-elemento ::before */
    background-image: url('https://images.unsplash.com/photo-1607513746835-59c439c70438?q=80&w=2070&auto=format&fit=crop'); /* Imagen de fondo temática */
    background-size: cover; /* Cubre todo el espacio disponible */
    background-position: center center; /* Centra la imagen */
    background-attachment: fixed; /* Crea un efecto de paralaje al hacer scroll */
}

/* Superposición oscura para mejorar la legibilidad del contenido */
.main-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 20, 15, 0.5); /* Color oscuro semitransparente */
    z-index: 1; /* Se coloca entre el fondo y el contenido */
}

/* Nos aseguramos de que el contenido principal esté por encima de la superposición */
.main-content-container {
    position: relative; /* Permite que z-index funcione */
    z-index: 2; /* Coloca este contenedor por encima del pseudo-elemento ::before */
}/* css/blog.css */
/* Estilos específicos para la página del blog y artículos */

/* Hero Section Específico para el Blog Landing */
.blog-hero-bg {
    background-image: url('https://placehold.co/1920x600/a0c49e/ffffff?text=Blog+del+Peregrino');
    background-size: cover;
    background-position: center;
    min-height: 40vh; /* Altura base */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
@media (min-width: 768px) {
    .blog-hero-bg {
         min-height: 50vh; /* Altura en pantallas grandes */
    }
}

/* Hero Section Específico para Artículo Individual */
.article-hero-bg {
    background-size: cover;
    background-position: center center;
    /* ***** MODIFICACIÓN: Usar la misma altura que .blog-hero-bg ***** */
    min-height: 40vh; /* Altura base igualada */
    position: relative;
    display: flex;
    align-items: flex-end; /* Alinear título abajo */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
@media (min-width: 768px) {
    .article-hero-bg {
         /* ***** MODIFICACIÓN: Usar la misma altura que .blog-hero-bg ***** */
         min-height: 50vh; /* Altura en pantallas grandes igualada */
    }
}


/* --- Estilos Dropdown Categorías (Estilo Referencia) --- */
#category-dropdown-container {
    position: relative;
}
#category-dropdown-button {
    border: none;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
}
#category-dropdown-button:hover {
    background-color: transparent;
}
#category-dropdown-button svg {
    transition: transform 0.2s ease-in-out;
}
#category-dropdown-container.dropdown-active #category-dropdown-button svg {
    transform: rotate(180deg);
}

#category-dropdown-menu {
    min-width: 16rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: absolute;
    left: 0;
    margin-top: 0.5rem;
    z-index: 999;
    display: none; /* Oculto por defecto, JS maneja la visibilidad */
    overflow: visible;
}
#category-dropdown-container.dropdown-active #category-dropdown-menu {
    display: block;
}
.category-dropdown-item {
    display: block !important;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151 !important;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
    white-space: nowrap;
    text-decoration: none;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1000;
}
.category-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #111827 !important;
}
.category-dropdown-item-active {
    font-weight: 600;
    background-color: #f3f4f6;
    color: #1f2937 !important;
}
#category-dropdown-menu > .py-1 {
    overflow: visible !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* --- Estilos Tarjetas Blog Rectangulares (Verticales 3:4) --- */
.blog-card-rect {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease-in-out;
}
.blog-card-rect:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.blog-card-rect > div:first-child {
     position: relative;
     padding-top: 133.33%;
     width: 100%;
     height: 0;
     overflow: hidden;
     border-radius: 0.5rem;
}

.blog-card-rect img,
.blog-card-rect .blog-card-overlay,
.blog-card-rect .blog-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-card-rect img {
    object-fit: cover;
    transition: transform 0.4s ease-out;
    z-index: 0;
}
.blog-card-rect:hover img {
    transform: scale(1.05);
}

.blog-card-rect .blog-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 80%);
    z-index: 1;
    opacity: 0.90;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0.5rem;
}
.blog-card-rect:hover .blog-card-overlay {
    opacity: 0.98;
}

.blog-card-rect .blog-card-content {
    z-index: 2;
    padding: 1rem 1.25rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: bottom 0.4s ease-out;
}

.blog-card-rect-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    transition: transform 0.4s ease-out;
}

.blog-card-rect-summary {
    font-size: 0.875rem;
    color: #e5e7eb;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    transform: translateY(15px);
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-out 0.1s,
                max-height 0.4s ease-out,
                transform 0.3s ease-out,
                margin-top 0.4s ease-out;
    margin-top: 0;
}

.blog-card-rect:hover .blog-card-rect-summary {
    opacity: 1;
    max-height: 8em;
    transform: translateY(0);
    margin-top: 0.5rem;
    pointer-events: auto;
}
/* Fondo superpuesto para el modal */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
    z-index: 1999; /* Justo debajo del modal */
    display: none; /* Oculto por defecto */
    backdrop-filter: blur(4px); /* Efecto de desenfoque para el fondo */
}

/* Estilos para el modal de cookies */
.cookie-consent-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px; /* Ancho máximo del modal */
    background-color: #ffffff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000; /* Por encima de todo */
    display: none; /* Oculto por defecto */
    overflow: hidden;
    font-family: 'Inter', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; /* Usando una fuente consistente */
}

.cookie-modal-content {
    padding: 25px 30px;
    max-height: 70vh; /* Altura máxima para evitar que sea muy largo en pantallas pequeñas */
    overflow-y: auto; /* Scroll si el contenido es muy largo */
}

.cookie-modal-header h2 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cookie-modal-body p {
    font-size: 0.9rem; /* 14.4px */
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.cookie-category {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.cookie-category-header h3 {
    font-size: 1.1rem; /* 17.6px */
    font-weight: 600;
    color: #2c3e50;
}

.cookie-category-description {
    font-size: 0.85rem; /* 13.6px */
    color: #666;
    margin-top: 8px;
}

/* Estilos para el interruptor (toggle switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #27ae60; /* Verde */
}

input:focus + .slider {
    box-shadow: 0 0 1px #27ae60;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.cookie-modal-actions {
    background-color: #f9f9f9;
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e0e0e0;
}

.cookie-modal-button {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-modal-button--accept-all {
    background-color: #27ae60;
    color: white;
}
.cookie-modal-button--accept-all:hover {
    background-color: #2ecc71;
}

.cookie-modal-button--save {
    background-color: #3498db;
    color: white;
}
.cookie-modal-button--save:hover {
    background-color: #5dade2;
}

.cookie-modal-button--decline {
    background-color: #e0e0e0;
    color: #333;
}
.cookie-modal-button--decline:hover {
    background-color: #d0d0d0;
}

/* Cookie Consent Modal - Mejoras Mobile */
@media (max-width: 640px) {
    .cookie-consent-overlay {
        background: rgba(0, 0, 0, 0.75) !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 9998 !important;
        backdrop-filter: blur(2px) !important;
    }

    .cookie-consent-modal {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100% - 2rem) !important;
        max-width: 90vw !important;
        max-height: auto !important;
        background: white !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    .cookie-modal-content {
        padding: 2rem 1.5rem !important;
        overflow-y: auto !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: 60vh !important;
    }

    .cookie-modal-header {
        margin-bottom: 1.25rem !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    .cookie-modal-header h2 {
        font-size: 1.625rem !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .cookie-modal-body {
        font-size: 1rem !important;
        color: #4b5563 !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }

    .cookie-modal-body p {
        margin-bottom: 1rem !important;
        color: #6b7280 !important;
    }

    .cookie-modal-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.875rem !important;
        padding: 1.5rem !important;
        background: #f9fafb !important;
        border-top: 2px solid #e5e7eb !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    .cookie-modal-button {
        width: 100% !important;
        padding: 1.125rem 1.5rem !important;
        font-size: 1.0625rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        min-height: 52px !important;
    }

    .cookie-modal-button--accept-all {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: white !important;
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
        order: 1 !important;
    }

    .cookie-modal-button--accept-all:active {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        transform: scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
    }

    .cookie-modal-button--decline {
        background: white !important;
        color: #6b7280 !important;
        border: 2px solid #d1d5db !important;
        order: 2 !important;
    }

    .cookie-modal-button--decline:active {
        background: #f9fafb !important;
        transform: scale(0.98) !important;
    }

    /* Mejoras para enlaces dentro del modal */
    .cookie-modal-body a {
        color: #10b981 !important;
        text-decoration: underline !important;
        text-decoration-color: rgba(16, 185, 129, 0.3) !important;
        text-underline-offset: 2px !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
    }

    .cookie-modal-body a:active {
        color: #059669 !important;
        text-decoration-color: rgba(5, 150, 105, 0.5) !important;
    }
}

/* Estilos para mapa de etapa en hero */
#mapa-etapa {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
