
/* ==================================================
   VARIABLES GLOBALES
   ================================================== */

:root {
    /* Colores */
    --color-fondo: #FFFAE5; /* Amarillo fondo */
    --color-azulF: #00005f;  /* Azul Fuerte */
    --color-azulC: #5bc0de;  /* Azul Claro */
    --color-azulM: #269abc;  /* Azul Medio */
    --color-rojo: #da3c30;   /* Rojo */

    /* Fuentes */
    --varela: 'Varela Round', sans-serif;
    --roboto-slab: 'Roboto Slab', serif;
    --raleway: 'Raleway', sans-serif;
    --parisienne: 'Parisienne', cursive;
    --montserrat: 'Montserrat', sans-serif;
}



/* ==================================================
   UTILIDADES DE COLORES
   ================================================== */

/* Colores texto */
.colorFondo { color: var(--color-fondo) !important; }
.colorAzulF { color: var(--color-azulF) !important; }
.colorAzulC { color: var(--color-azulC) !important; }
.colorAzulM { color: var(--color-azulM) !important; }
.colorRojo { color: var(--color-rojo) !important; }

/* Backgrounds */
.bgColorFondo { background-color: var(--color-fondo) !important; }
.bgColorAzulF { background-color: var(--color-azulF) !important; }
.bgColorAzulC { background-color: var(--color-azulC) !important; }
.bgColorAzulM { background-color: var(--color-azulM) !important; }
.bgColorRojo { background-color: var(--color-rojo) !important; }

/* Fuentes */
.montserrat { font-family: var(--montserrat); }
.paris { font-family: var(--parisienne); }
.raleway { font-family: var(--raleway); }
.roboto { font-family: var(--roboto-slab); }
.varela { font-family: var(--varela); }



/* ==================================================
   ESTRUCTURA GENERAL
   ================================================== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    color: #333; /* Cambiado de --color-dark que no existía */
    padding-top: 80px; /* Para navbar fixed */
    background: #FFF !important; /* Mover aquí la regla del modal chat */
}

main.main-content {
    flex: 1;
    padding: 20px 0;
}



/* ==================================================
   TEXTOS Y TÍTULOS
   ================================================== */

/* Texto general */
.texto {
    font-family: var(--montserrat);
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.80 !important;
    margin-bottom: 2px;
    color: var(--color-azulF);
}

/* Titulo H1 */
.tituloH1 {
    font-family: var(--raleway);
    font-size: 32px;
    font-weight: 600;
    line-height: 48px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-azulF);
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Subrayado H1 */
.tituloH1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 70%;
    height: 1px;
    background: linear-gradient(var(--color-azulF), var(--color-azulF));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%);
    animation: underlineGrow 1s ease-out forwards;
}


/* Titulo H11 Par encabezados con la linea BLANCA */
.tituloH11 {
    font-family: var(--raleway);
    font-size: 32px;
    font-weight: 600;
    line-height: 48px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-azulF);
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Subrayado H1 */
.tituloH11::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 70%;
    height: 1px;
    background: white;
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%);
    animation: underlineGrow 1s ease-out forwards;
}


/* Titulo H2 */
.tituloH2 {
    font-family: var(--montserrat);
    font-size: 26px;
    font-weight: 600;
    line-height: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-azulF);
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Subrayado H2 */
.tituloH2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 60%;
    height: 1px;
    background: linear-gradient(var(--color-azulF), var(--color-azulF));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%);
    animation: underlineGrow 0.8s ease-out forwards;
}

/* Titulo H3 */
.tituloH3 {
    position: relative;
    text-align: center;
    font-size: 18px;
    font-family: 'Montserrat';
    font-weight: 600;
    color: var(--color-azulF);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.tituloH3::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-azulF);
    margin: 12px auto 0;
    opacity: 0.6;
}

/* Titulo H4 */
.tituloH4 {
    position: relative;
    text-align: center;
    font-size: 16px;
    font-family: 'Montserrat';
    font-weight: 600;
    color: var(--color-azulF)!important;
    letter-spacing: 2px;
    text-transform: uppercase;
}




/* Animación común para subrayados */
@keyframes underlineGrow {
    to {
        background-size: 100% 100%;
    }
}



/* ==================================================
   BOTONES
   ================================================== */

/* Botón base */
.btn-paella {
    font-family: var(--montserrat);
    font-weight: 400;
    padding: 6px 16px;
    border-radius: 30px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

/* Botón Información (azul) */
.btn-info {
    background-color: var(--color-azulC);
    color: #fff;
    text-decoration: none;
}

.btn-info:hover {
    background-color: var(--color-azulM);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-info:active {
    background-color: var(--color-azulM);
    color: #fff !important;
}

/* Botón Reservas (rojo) */
.btn-reservas {
    background-color: var(--color-rojo);
    color: #fff;
    text-decoration: none;
}

.btn-reservas:hover {
    background-color: var(--color-azulF);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}



/* ==================================================
   HEADER Y NAVBAR
   ================================================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-item {
    margin-top: 18px;
}

.nav-link {
    font-family: var(--montserrat);
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 13px !important;
    padding: 0 15px !important;
}

.nav-link:hover {
    color: var(--color-azulF) !important;
    transform: translateY(-2px);
}

/* Botón activo menú */
.menuActivo {
    background: #ffffff;
    color: var(--color-azulF) !important;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Botón WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 6px 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: #fff;
    text-decoration: none;
}



/* ==================================================
   FOOTER
   ================================================== */

/* Footer principal */
footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: white !important;
    text-decoration: none;
}

footer a:hover {
    color: white !important;
    text-decoration: underline;
}

/* Footer Paella (barra inferior) */
#footer-paella {
    background-color: #444;
    padding: 18px 0;
    font-family: var(--montserrat);
    font-size: 0.85rem;
    color: white;
}

#footer-paella p {
    margin: 0;
    letter-spacing: 0.02em;
}

#footer-paella a {
    position: relative;
    color: white;
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.85rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

#footer-paella a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

#footer-paella a:hover {
    color: white;
    transform: translateY(-1px);
}

#footer-paella a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#footer-paella i {
    font-size: 0.95rem;
}



/* ==================================================
   ESPACIOS
   ================================================== */
.espacio-seccion {
    height: 80px;
    width: 100%;
}

.espacio-div {
    height: 40px;
    width: 100%;
}

.espacio-frase {
    margin-left: 10px;
}



/* ==================================================
   BLOQUE INFORMACIÓN (UNIFICADO)
   ================================================== */

/* Contenedor principal */
.info-curso {
    position: relative;
    z-index: 1;
}

/* Card diseño suave */
.card-info-suave {
    border: 1px solid #5bc0de;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
}

.card-info-suave:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.12);
}

.card-info-suave:nth-child(2) {
    animation-delay: 0.2s;
}

/* Lista unificada */
.lista-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-info li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(238, 238, 238, 0.8);
    font-size: 1.05rem;
    color: #444444;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.lista-info li:hover {
    background-color: rgba(0, 0, 95, 0.02);
    padding-left: 8px;
    border-radius: 6px;
}

.lista-info li:last-child {
    border-bottom: none;
}

.lista-info-iconos li {
    padding-left: 0;
}

/* Iconos elegantes */
.icono-info-suave {
    width: 2.4rem;
    height: 2.4rem;
    background-color: rgba(0, 0, 95, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00005f;
    font-size: 1rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-info-suave:hover .icono-info-suave {
    transform: scale(1.05);
}

/* Etiquetas para información */
.info-etiqueta {
    color: #00005f;
    font-weight: 600;
    margin-right: 4px;
}




/* ==================================================
   TOURS ESPECÍFICOS
   ================================================== */
.tour-hero {
    position: relative;
    background: url('../img/tours/ciudad-de-las-ciencias-valencia.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 160px 0;
    text-align: center;
}



.tour-hero .container {
    position: relative;
    z-index: 2;
}

.tour-card {
    border: 2px solid var(--color-azulC);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 95, 0.2);
    border-color: var(--color-azulF);
}

.tour-header {
    background-color: var(--color-azulF);
    color: white;
    padding: 20px;
    text-align: center;
}

.tour-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-rojo);
    margin: 20px 0;
}

.tour-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tour-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 95, 0.1);
    display: flex;
    align-items: center;
}

.tour-features li i {
    color: var(--color-azulF);
    margin-right: 10px;
    width: 20px;
}

.tour-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.furgoneta-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.idioma-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.idioma-box.activo {
    background-color: rgba(0, 47, 108, 0.08);
    border-color: #002f6c;
}

.opcion-radio {
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.opcion-radio.activo {
    background-color: rgba(0, 47, 108, 0.08);
    border-color: #002f6c !important;
}

.rounded-circle {
    box-shadow: 0 5px 15px rgba(0, 0, 95, 0.2);
    transition: transform 0.3s ease;
}

.rounded-circle:hover {
    transform: scale(1.05);
}



/* ==================================================
   TOURS ALBUFERA
   ================================================== */
.tour-hero-albufera {
    position: relative;
    background: url('../img/tours/albufera/albufera-aves-campos-de-arroz.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 160px 0;
    text-align: center;
}



.tour-hero-albufera.container {
    position: relative;
    z-index: 2;
}





/* ==================================================
   TEAM BUILDING
   ================================================== */
.tour-hero-team {
    position: relative;
    background: url('../img/teambuilding/certificado-curso-paella-valenciana-experiencia.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 160px 0;
    text-align: center;
}



.tour-hero-team.container {
    position: relative;
    z-index: 2;
}


/* ==================================================
   TOURS A TU RITMO
   ================================================== */
.tour-hero-ritmo {
    position: relative;
    background: url('../img/tours/ritmo/plaza-la-virgen-torres-de-serrano-malvarrosa-albufera.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 160px 0;
    text-align: center;
}



.tour-hero-ritmo.container {
    position: relative;
    z-index: 2;
}


/* ==================================================
   COMPONENTES ESPECIALES
   ================================================== */

/* Cards especiales */
.card-incluye {
    transition: transform 0.3s ease;
}

.card-incluye:hover {
    transform: translateY(-5px);
}

.icono-incluye {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Review Cards */
.review-card {
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}




/* ==================================================
   GALERÍA DE IMÁGENES
   ================================================== */

/* Entorno imágenes */
.entorno-img {
    overflow: hidden;
    border-radius: 10px;
}

.entorno-img img {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.entorno-img:hover img {
    transform: scale(1.05);
}

/* Grid de imágenes */
.gallery-container {
    margin-top: 20px;
}

.gallery-container .card {
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 95, 0.15) !important;
}

/* Miniaturas de galería */
.img-gallery {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.img-gallery:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.gallery-thumbnail {
    text-decoration: none !important;
    display: block;
}

/* Videos en galería */
.video-container {
    margin-bottom: 30px;
}

.embed-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 95, 0.1);
}

.embed-responsive:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--color-azulC);
}

.video-title {
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--color-azulF);
    font-size: 1.1rem;
    text-align: center;
}

/* Galería modal */
.modal-content.gallery-modal {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 95, 0.1);
    overflow: hidden;
}

.modal-header.gallery-header {
    border-bottom: none;
    padding-bottom: 0;
    background-color: var(--color-azulF);
    color: white;
}

.modal-header.gallery-header .btn-close {
    background-color: white;
    opacity: 1;
    padding: 10px;
    background-size: 60%;
    border-radius: 50%;
    filter: invert(1);
}

.modal-header.gallery-header .btn-close:hover {
    background-color: var(--color-rojo);
    transform: rotate(90deg);
}

.gallery-viewer {
    position: relative;
    min-height: 400px;
    text-align: center;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 95, 0.7);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.gallery-nav:hover {
    background: var(--color-rojo);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

#galleryImage {
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

#galleryCounter {
    background-color: var(--color-azulF) !important;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}




/* ==================================================
   CARRUSEL CABECERA
   ================================================== */

/* Miniaturas desktop */
.miniatura-entorno {
    cursor: pointer;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.miniatura-entorno:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.miniatura-entorno.active-thumb {
    border-color: var(--color-azulC);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Controles de flechas desktop */
.btn-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-arrow:hover {
    background-color: var(--color-azulC);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-50%) scale(1.1);
}

.btn-arrow-left {
    left: 20px;
}

.btn-arrow-right {
    right: 20px;
}

/* Imagen principal desktop */
.main-image-target {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

/* Contador de imágenes */
.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Carrusel móvil */
.carousel-inner {
    max-height: 400px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 60% 60%;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: var(--color-azulC);
}

/* Miniaturas móvil */
.miniatura-mobile {
    cursor: pointer;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.miniatura-mobile:hover {
    border-color: #ffc107;
}



/* ==================================================
   CARRUSEL "A TU RITMO"
   ================================================== */

/* Imagen carrusel */
.img-carrusel {
    height: 260px;
    object-fit: cover;
}




/* ==================================================
   MODALES
   ================================================== */

/* Modal Cookies */
.modal-cookies {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    border: 1px solid var(--color-azulF);
    font-family: montserrat;
}

.modal-contenido {
    padding: 20px;
}

.modal-titulo {
    color: var(--color-azulF);
    margin-bottom: 10px;
    font-size: 18px;
}

.modal-texto {
    margin-bottom: 15px;
    font-size: 14px;
}

.modal-botones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal Chat */
.chat-modal-dialog {
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.chat-modal-content {
    height: 85vh;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.chat-modal-content .modal-body {
    padding: 0;
    height: 100%;
}

.chat-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}



/* ==================================================
   BOTONES FLOTANTES
   ================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 22px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    z-index: 9999;
    padding: 0;
    border: none;
}



/* ==================================================
   CALENDARIO FLATPICKR
   ================================================== */

.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
}

.flatpickr-months {
    background-color: #fff;
    color: #fff;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 2px;
}

.flatpickr-month {
    font-weight: 600;
}

.flatpickr-day {
    transition: background 0.2s, color 0.2s;
    background-color: #269abc;
    margin: 2px;
    color: #fff;
}

.flatpickr-day.today {
    border: 2px solid #00005f;
    font-weight: bold;
}

.flatpickr-day:hover:not(.disabled):not(.selected) {
    background-color: #97c1e8;
    cursor: pointer;
}

.flatpickr-day.selected {
    background-color: #00005f;
    color: #fff;
}

.flatpickr-day.flatpickr-disabled {
    background-color: #fffefe !important;
    color: #a69f9f;
    cursor: not-allowed;
}

.flatpickr-day.flatpickr-disabled:hover {
    background-color: #fffefe;
    color: #a69f9f;
    cursor: not-allowed;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background-color: #007BFF;
    color: #fff;
    border-radius: 50% !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: #fff;
    font-weight: bold;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #cce5ff;
}



/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-collapse {
        background: white;
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 10px 0 !important;
    }
    
    .navbar .btn-primary {
        margin-top: 10px;
        width: 100%;
    }
    
    /* Formulario primero en móvil */
    .main-container .row {
        flex-direction: column-reverse !important;
    }
    
    .content-left {
        padding-right: 0;
    }
    
    .form-right {
        position: static;
        margin-top: 0;
        margin-bottom: 40px;
    }
    
    /* Carrusel "A tu ritmo" desktop */
    .img-carrusel {
        height: 100%;
        min-height: 420px;
    }
    
    /* Miniaturas desktop */
    .miniatura-entorno {
        width: 70px;
        height: 70px;
    }
    
    .btn-arrow {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    /* Gallery */
    .gallery-container .col-md-2 {
        padding: 5px;
    }
    
    .img-gallery {
        height: 160px;
    }
    
    /* Lista información */
    .lista-info li {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .icono-info-suave {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.95rem;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .tour-hero {
        padding: 80px 0 60px;
        background-attachment: scroll;
    }
    
    .tour-hero h1 {
        font-size: 2.2rem;
    }
    
    /* Títulos */
    .tituloH1 {
        font-size: 26px;
        line-height: 38px;
    }
    
    .tituloH2 {
        font-size: 22px;
        line-height: 34px;
    }
    
    .tituloH1::after,
    .tituloH2::after {
        width: 80%;
        bottom: -8px;
    }
    
    .espacioCabecera {
        margin-top: 4rem !important;
    }
    
    /* Botones flotantes */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 20px;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-md-6 {
        margin-bottom: 20px;
    }
    
    /* Carrusel */
    .carousel-item img {
        height: 350px;
    }
    
    .carousel-inner {
        max-height: 350px;
    }
    
    .miniatura-mobile {
        height: 70px;
    }
    
    /* Modal Chat */
    .chat-modal-dialog {
        max-width: 100%;
        margin: 0;
    }
    
    .chat-modal-content {
        height: 100vh;
        border-radius: 0;
    }
    
    /* Gallery */
    .gallery-nav {
        padding: 8px 12px;
        font-size: 1rem;
        width: 42px;
        height: 42px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    #galleryImage {
        max-height: 50vh;
    }
    
    .img-gallery {
        height: 140px;
    }
    
    /* Lista información */
    .lista-info li {
        font-size: 0.95rem;
        padding: 10px 0;
    }
    
    .icono-info-suave {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
        margin-right: 0.9rem;
    }
    
    /* Footer Paella */
    #footer-paella .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    #footer-paella a {
        margin: 0 6px;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-inner {
        max-height: 300px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    /* Gallery */
    .img-gallery {
        height: 120px;
    }
    
    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    /* Lista información */
    .lista-info li {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .icono-info-suave {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.85rem;
        margin-right: 0.8rem;
    }
    
    /* Ajuste para columnas en móvil */
    .row > .col-md-6 {
        width: 100%;
    }
}



/* ==================================================
   ANIMACIONES
   ================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==================================================
   ACCESIBILIDAD
   ================================================== */
.btn-arrow:focus,
.miniatura-entorno:focus,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}




/* ==================================================
   OPTIMIZACIONES
   ================================================== */
.main-image-target,
.carousel-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Badges animación */
.badge {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    border-color: var(--color-azulF);
}

.img-carrusel {
    height: 260px;
    object-fit: cover;
}

/* En desktop más altura */
@media (min-width: 992px) {
    .img-carrusel {
        height: 100%;
        min-height: 420px;
    }
}


/* INDEX  */

/* Asegura que las imágenes se vean bien en todos los dispositivos */
.object-fit-cover {
    object-fit: cover;
}

/* Para que la card mantenga su estilo pero con las imágenes integradas */
.card-info-suave {
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Quita el padding lateral en móvil para las imágenes */
@media (max-width: 991.98px) {
    .card-info-suave .row > div {
        padding-left: 0;
        padding-right: 0;
    }
}




/* ==================================================
    TOUR ALBUFERA
   ================================================== */


   /* Estilos para el itinerario con imágenes */
.img-lugar-tour {
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.img-lugar-tour:hover {
    transform: scale(1.02);
}

/* Asegura que las imágenes se vean bien en todos los dispositivos */
.object-fit-cover {
    object-fit: cover;
}

/* Alternar posición de imagen cada dos tarjetas */
@media (min-width: 768px) {
    .card-info-suave:nth-child(odd) .col-md-5 {
        order: 2;
    }
    
    .card-info-suave:nth-child(odd) .col-md-7 {
        order: 1;
    }
    
    .card-info-suave:nth-child(even) .col-md-5 {
        order: 1;
    }
    
    .card-info-suave:nth-child(even) .col-md-7 {
        order: 2;
    }
}

/* Badges personalizados */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}



/* ==================================================
    TOUR PRIVADO
   ================================================== */


    /* Estilos para el itinerario con imágenes */
.img-lugar-tour {
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.img-lugar-tour:hover {
    transform: scale(1.02);
}

/* Asegura que las imágenes se vean bien en todos los dispositivos */
.object-fit-cover {
    object-fit: cover;
}

/* Alternar posición de imagen cada dos tarjetas */
@media (min-width: 768px) {
    .card-info-suave:nth-child(odd) .col-md-5 {
        order: 2;
    }
    
    .card-info-suave:nth-child(odd) .col-md-7 {
        order: 1;
    }
    
    .card-info-suave:nth-child(even) .col-md-5 {
        order: 1;
    }
    
    .card-info-suave:nth-child(even) .col-md-7 {
        order: 2;
    }
}

/* Badges personalizados */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}




/* ============================================
   ESTILOS GENERALES PARA CARRUSELES
   ============================================ */

/* Contenedor base para Swiper */
.swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Slides comunes */
.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Flechas de navegación (estilos base) */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Paginación (puntos) - estilos base */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}


/* ============================================
   CARRUSEL TOURS (swiper-moderno)
   ============================================ */ 

.swiper-moderno {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   CARRUSEL INDEX (swiper-galeria-index)
   ============================================ */

.swiper-galeria-index {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.swiper-galeria-index .swiper-slide {
    border-radius: 16px;
    overflow: hidden;
}

.swiper-galeria-index .main-image-target {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.swiper-galeria-index .swiper-slide-active .main-image-target {
    transform: scale(1.02);
}

/* ============================================
   FLECHAS PREMIUM PARA AMBOS CARRUSELES
   ============================================ */

/* Flechas premium para tours */
.swiper-moderno .swiper-button-next,
.swiper-moderno .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tamaño de los iconos dentro de las flechas de tours */
.swiper-moderno .swiper-button-next:after,
.swiper-moderno .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Efecto hover premium para tours */
.swiper-moderno .swiper-button-next:hover,
.swiper-moderno .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Flechas premium para index */
.swiper-galeria-index .swiper-button-next,
.swiper-galeria-index .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tamaño de los iconos dentro de las flechas de index */
.swiper-galeria-index .swiper-button-next:after,
.swiper-galeria-index .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Efecto hover premium para index */
.swiper-galeria-index .swiper-button-next:hover,
.swiper-galeria-index .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Paginación personalizada para el index */
.swiper-pagination-custom {
    bottom: 15px !important;
}

.swiper-pagination-custom .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    width: 8px;
    height: 8px;
    margin: 0 4px !important;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Contador personalizado solo para el index */
.swiper-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Carrusel Tours */
    .swiper-moderno {
        height: 300px;
    }
    
    /* Carrusel Index */
    .swiper-galeria-index {
        border-radius: 12px;
    }
    
    .swiper-galeria-index .swiper-slide {
        border-radius: 12px;
    }
    
    /* Ocultar flechas en móvil para ambos */
    .swiper-moderno .swiper-button-next,
    .swiper-moderno .swiper-button-prev,
    .swiper-galeria-index .swiper-button-next,
    .swiper-galeria-index .swiper-button-prev {
        width: 36px;
        height: 36px;
        display: none; /* Ocultar flechas en móvil si prefieres */
    }
    
    .swiper-moderno .swiper-button-next:after,
    .swiper-moderno .swiper-button-prev:after,
    .swiper-galeria-index .swiper-button-next:after,
    .swiper-galeria-index .swiper-button-prev:after {
        font-size: 14px;
    }
    
    /* Contador en móvil */
    .swiper-counter {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 3px 8px;
    }

.swiper-moderno .swiper-pagination-bullet-active {
    background: var(--color-azulF); !important;
    opacity: 1;
}
}