/* ================================
   FUENTES / ICONOS
================================ */

/* Material Symbols Font */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* ================================
   CARROUSEL GENÉRICO
================================ */

.cicerone-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.cicerone-carousel.recommended-carousel {
    padding: 0px;
}
/* Título genérico de bloque */
.cicerone-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a3c5e;
    margin: 0 0 10px;
    text-align: left;
}

.cicerone-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px;
    text-align: left;
}

/* Contenedor de scroll horizontal */
.cicerone-carousel .viewport {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 30px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.cicerone-carousel .viewport::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Flechas genéricas del carrusel */
.cicerone-carousel .go-left,
.cicerone-carousel .go-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid var(--main-color, #4a90e2);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color, #4a90e2);
    text-align: center;
    line-height: 34px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    z-index: 10;
    font-family: 'Material Symbols Outlined';
    display: flex;
    align-items: center;
    justify-content: center;
}

.cicerone-carousel .go-left {
    left: 10px;
}

.cicerone-carousel .go-right {
    right: -20px;
}
/* Flecha SIN .active → más oscura / gris y sin cursor */
.cicerone-carousel .go-left:not(.active),
.cicerone-carousel .go-right:not(.active) {
    background: #f2f2f2;
    border: 3px solid #b0b0b0;
    color: #7a7a7a;
    opacity: 0.7;
    cursor: default;
}

/* Flecha ACTIVA → color de marca, más visible */
.cicerone-carousel .go-left.active,
.cicerone-carousel .go-right.active {
    background: #ffffff;
    border: 3px solid var(--main-color, #cc0044);
    color: var(--main-color, #cc0044);
    opacity: 1;
    cursor: pointer;
}

.cicerone-carousel .go-left:hover,
.cicerone-carousel .go-right:hover{
    opacity: 1;
}

/* Accesibilidad para flechas */
.cicerone-carousel .go-left::before {
    content: "Anterior";
    clip: rect(0, 0, 0, 0);
    position: absolute;
}

.cicerone-carousel .go-right::before {
    content: "Siguiente";
    clip: rect(0, 0, 0, 0);
    position: absolute;
}


/* ================================
   CAROUSEL ESPECÍFICO: EVENTOS
================================ */

.cicerone-carousel.events-carousel {
    border-radius: 15px;
}

.cicerone-carousel.events-carousel .cicerone-title {
    color: #fff;
}

.cicerone-carousel.events-carousel .go-left,
.cicerone-carousel.events-carousel .go-right {
    border-color: #fff;
    color: #4e848e;
}

.cicerone-carousel.events-carousel .cicerone-card {
    flex: 0 0 clamp(180px, 18vw, 260px);
    height: 220px;
}

/* ================================
   CAROUSEL ESPECÍFICO: PDFs
================================ */

.cicerone-carousel.pdfs-carousel {
    border-radius: 15px;
}

.cicerone-carousel.pdfs-carousel .cicerone-title {
    color: #000;
}

.cicerone-carousel.pdfs-carousel .go-left,
.cicerone-carousel.pdfs-carousel .go-right {
    border-color: #fff;
    color: #4e848e;
}

/* ================================
   CAROUSEL ESPECÍFICO: POIs
================================ */

.cicerone-carousel.pois-carousel {
    border-radius: 15px;
}

.cicerone-carousel.pois-carousel .cicerone-title {
    color: #fff;
}

.cicerone-carousel.pois-carousel .go-left,
.cicerone-carousel.pois-carousel .go-right {
    border-color: #fff;
    color: #4e848e;
}

/* ================================
   SLIDERS (si se usan)
================================ */

.slider-container .slider-prev,
.slider-container .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid #4e848e;
    border-radius: 50%;
    color: #e3e3e3;
    text-align: center;
    line-height: 34px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    z-index: 10;
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   MODAL PDFs
================================ */

.cicerone-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cicerone-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 70px auto;
    max-width: 80%;
    max-height: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

#modal-pdf {
    width: 100%;
    height: 500px;
    margin-top: 10px;
}

.download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    align-self: center;
}

.download-btn:hover {
    background: #005d87;
}

/* =========================
   AGENDA / CALENDARIO CICERONE
   ========================= */

.cicerone-calendar-container {
    max-width: 1340px;
    margin: 0 auto 40px;
    padding: 20px 0;
}

/* Títulos */
.cicerone-calendar-container .agenda-text {
    font-size: 28px;
    font-weight: 700;
    color: #1f2933;
    margin: 0 0 4px;
}

.cicerone-calendar-container .agenda-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 18px;
}

/* Tarjeta grande: calendario + cards */
.cicerone-calendar-container .calendar-wrapper {
    display: flex;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    background: transparent;   /* sin bloque "tarjeta" */
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

/* Escondemos el input, usamos solo el calendario inline */
.cicerone-calendar-container #cicerone-datepicker {
    display: none;
}

/* === COLUMNA IZQUIERDA: calendario Flatpickr === */

.cicerone-calendar-container .flatpickr-calendar.inline {
    margin: 0;
    width: 416px;
    min-width: 320px;
    border: none;
    border-right: 0px;
    box-shadow: none;
    background: transparent;
}

/* Días y estilos de selección */

.cicerone-calendar-container .flatpickr-day {
    font-size: 18px;
    max-width: none;
}
.cicerone-calendar-container .flatpickr-day {
    position: relative;
    font-size: 18px;
    max-width: none;

    /* clave para círculo */
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 4px auto;

    border-radius: 999px;    /* círculo perfecto */
    border: 0;
}

span.flatpickr-weekday {
    font-size: 18px!important;
    color: var(--main-color)!important;
    font-weight: 400!important;
}
.cicerone-calendar-container .flatpickr-day {
    position: relative;
    font-size: 18px;
    max-width: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700!important;
    font-size: 18px!important;
    color: var(--main-color)!important;
}
/* Círculo "selector" centrado dentro de cada día */
.cicerone-calendar-container .flatpickr-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    z-index: -1; /* el número queda por encima */
}

/* Estados seleccionado / hoy: pinta el círculo y el texto en blanco */
.cicerone-calendar-container .flatpickr-day.selected,
.cicerone-calendar-container .flatpickr-day.today {
    background: transparent !important;  /* nada de fondo rectangular */
    color: #fff !important;
}

.cicerone-calendar-container .flatpickr-day.selected::before,
.cicerone-calendar-container .flatpickr-day.today::before {
    background: var(--main-color);
}

/* Opcional: hover bonito (solo si quieres) */
.cicerone-calendar-container .flatpickr-day:not(.selected):not(.today):hover::before {
    background: rgba(159, 40, 90, 0.12); /* un degradado suave */
}

.cicerone-calendar-container .flatpickr-months .flatpickr-month {
    height: 50px;
}
.cicerone-calendar-container .flatpickr-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--main-color);
    border-radius: 8px;
}

.cicerone-calendar-container .flatpickr-current-month .flatpickr-monthDropdown-month,
.cicerone-calendar-container .flatpickr-current-month .numInputWrapper {
    font-size: 0.9rem;
    display: none;
}
.cicerone-calendar-container .flatpickr-rContainer {
    width: 90%;
}
.cicerone-calendar-container .flatpickr-weekdays {
    height: 50px;
    width: 100%;
}
.cicerone-calendar-container .flatpickr-days {
    width: 100%;
}
.cicerone-calendar-container .flatpickr-days .dayContainer {
    width: 100%;
    max-width: none;
    height: 270px;
    border-radius: 999px;
}
.cicerone-calendar-container .flatpickr-days .dayContainer {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 0;   /* importante: nada de 999px aquí */
}

/* === COLUMNA DERECHA: cards de eventos === */

.cicerone-calendar-container #event-details {
    flex: 1;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: -60px;
    position: relative;
}

/* Cabecera: contador + flechas */
.cicerone-calendar-container .cicerone-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.cicerone-calendar-container #event-count {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ca3af;
    margin: 0;
}

.cicerone-calendar-container .cicerone-events-nav-wrapper {
    display: flex;
    gap: 8px;
}
.cicerone-calendar-container .cicerone-events-nav, .cicerone-arrow {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--main-color);
    color: #fff;
    font-size: 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}
/* Estado DESACTIVADO: mismo color principal pero más oscuro */
.cicerone-events-nav.is-disabled, .cicerone-arrow.is-disabled {
    background: var(--main-color);
    filter: brightness(0.75);      /* oscurece el color principal */
    color: #fff;
    cursor: default;
    opacity: 0.9;
    box-shadow: none;
}

/* Evitar cambios en hover si está desactivado */
.cicerone-events-nav.is-disabled:hover, .cicerone-arrow.is-disabled:hover {
    background: var(--main-color);
    filter: brightness(0.75);
    color: #fff;
    transform: none;
}
.cicerone-calendar-container .cicerone-events-nav:hover, .cicerone-calendar-container .cicerone-events-nav, .cicerone-calendar-container .cicerone-events-nav:focus, .cicerone-arrow:hover, .cicerone-arrow:focus {
    border-radius: 8px;
}
.span.flatpickr-weekday {
    color: var(--main-color)!important;
}
.cicerone-calendar-container .cicerone-events-nav:active {
    transform: translateY(0);
}

/* Carrusel horizontal de tarjetas SIN barra visible */
.cicerone-calendar-container #event-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Ocultar barra en todos los navegadores */
    -ms-overflow-style: none;   /* IE/Edge */
    scrollbar-width: none;      /* Firefox */
}

.cicerone-calendar-container #event-cards::-webkit-scrollbar {
    display: none;              /* Chrome / Safari */
}

/* Tarjeta individual (agenda-event-card + cicerone-event-card) */
.cicerone-calendar-container .agenda-event-card {
    scroll-snap-align: start;
    min-width: 266px;
    max-width: 266px;
}

.cicerone-calendar-container .cicerone-event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 0;          /* sin bordes redondeados */
    background: transparent;   /* dejamos que se vea el fondo de la página */
    border: none;              /* sin borde */
    overflow: visible;
    box-shadow: none;          /* sin sombra */
    height: 100%;
    transition: transform 0.1s ease;
}
.cicerone-calendar-container .cicerone-event-card:hover {
    transform: none!important
}
.cicerone-calendar-container .cicerone-event-card:hover *:not(.material-symbols-outlined) {
    font-family: inherit !important;
}
/* Imagen + badge */
.cicerone-calendar-container .event-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 242px;
    overflow: hidden;
    border-radius: 8px; /* borde redondeado */
}

.cicerone-calendar-container .event-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px; /* por si acaso, aunque ya recorta el wrapper */
}

.cicerone-calendar-container .event-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    background: #fff;
    color: var(--main-color);
}

/* Contenido de la tarjeta: fechas, título, ubicación */
.cicerone-calendar-container .event-card-content {
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cicerone-calendar-container .event-card-dates {
    font-size: 16px;
    color: var(--main-color) !important;
}
/* Ubicación con icono, color primario */
.cicerone-calendar-container .event-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--main-color) !important;
}

.cicerone-calendar-container .event-card-location span {
    color: inherit !important;
}

.cicerone-calendar-container .event-card-location-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: start;
    justify-content: center;
    height: 100%;
    margin-top: 4px;
}

.cicerone-calendar-container .event-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.cicerone-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color, #4a90e2); /* aquí manda el color primario */
}
.cicerone-detail-page svg {
    color: var(--main-color, #4a90e2);
}
.cicerone-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.cicerone-search-item {
    text-align: start;
}
/* Datos: fechas, horario, ubicación */
.cicerone-calendar-container .schedule-data-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cicerone-calendar-container .calendar-info-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cicerone-calendar-container .calendar-info,
.cicerone-calendar-container .calendar-info-text {
    font-size: 0.78rem;
    color: #6b7280;
}

.cicerone-calendar-container .schedule-data-container img {
    width: 16px;
    height: 16px;
}

/* Responsive */

@media (max-width: 900px) {
    .cicerone-calendar-container .calendar-wrapper {
        flex-direction: column;
        padding: 18px 16px;
    }

    .cicerone-calendar-container .flatpickr-calendar.inline {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 0 0 16px 0;
        margin-bottom: 8px;
    }

    .cicerone-calendar-container #event-cards {
        padding-top: 8px;
    }

    .cicerone-calendar-container .agenda-event-card {
        min-width: 230px;
        max-width: 230px;
    }
}
/* Tira de cards de eventos: scroll horizontal SIN barra visible */
.cicerone-calendar-container .cicerone-events-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    /* Ocultar barra en todos los navegadores */
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

.cicerone-calendar-container .cicerone-events-strip::-webkit-scrollbar {
    display: none;             /* Chrome / Safari */
}

/* ================================
   LISTADO DE CATEGORÍA (GRID)
================================ */

/* Contenedor que envuelve el hero de Elementor (fullwidth) */
.cicerone-category-list {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Contenedor del listado (contenido centrado) */
.cicerone-list-category {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.cicerone-category-header {
    text-align: center;
    margin-bottom: 30px;
}

.cicerone-category-title {
    font-size: 45px;
    font-weight: 700;
    color: var(--main-color)!important;
    margin: 0;
}

.cicerone-category-subtitle {
    font-size: 30px;
    font-weight: 500;
    color: #000;
    margin: 5px 0 0;
}

/* Filtros SOLO dentro del listado de categoría */
.cicerone-list-category .cicerone-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.cicerone-list-category .cicerone-search {
    position: relative;
    width: 300px;
}

.cicerone-list-category .cicerone-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 25px !important;
    font-size: 14px;
    background: #fff !important;
    box-sizing: border-box;
}

.cicerone-list-category .cicerone-search-icon {
    position: absolute;
    right: 15px;
    top: 56%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.cicerone-list-category .cicerone-order-select-wrapper {
    position: relative;
    width: 200px;
}

.cicerone-list-category .cicerone-order-select {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
}

.cicerone-list-category .cicerone-order-select-wrapper::after {
    content: '\25BC';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #000;
    pointer-events: none;
}

.cicerone-list-category .cicerone-items-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 40px;
}

.cicerone-list-category .card-image-wrapper {
    width: 100%;
    height: 70%;
    overflow: hidden;
}

.cicerone-list-category .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cicerone-list-category .card-content {
    height: 35%;
    margin-top: 1%;
    width: 100%;
    text-align: left;
    padding: 3px 12px;
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
}

.cicerone-list-category .card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color) !important;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cicerone-no-results {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 20px 0;
    grid-column: 1 / -1;
}

/* Paginación genérica */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination .page-numbers {
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .page-numbers:hover {
    background: #f0f0f0;
}
/* ============================
   BUSCADOR PREDICTIVO CICERONE
============================ */

/* Contenedor principal */
.cicerone-search-wrapper {
    position: relative;
    max-width: 640px;
    width: 100%;
    margin: 0.5rem auto;   /* auto en izquierda/derecha => centrado */
    font-family: inherit;
}

/* Input + botón en forma de píldora */
.cicerone-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 0px 2px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* Input */
.cicerone-search-wrapper .cicerone-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 1.25rem;
    border-radius: 10px;
    border: none !important;
    background: transparent;
    font-size: 0.95rem;
    color: #111827;
}

.cicerone-search-wrapper .cicerone-search-input::placeholder {
    color: #9ca3af;
}

/* Botón “AI Route” */
.cicerone-search-button {
    flex: 0 0 auto;
    height: 40px;
    padding: 10px!important;
    margin-right: 2px;
    border-radius: 8px!important;
    border: none;
    cursor: pointer;
    background-color: var(--main-color) !important;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    line-height: 0.5em!important;
    font-weight: 600!important;
}

.cicerone-search-button:hover {
    background-color: var(--main-color) !important;
}

.cicerone-search-button:active {
    transform: translateY(0);
}

.cicerone-search-button-label {
    white-space: nowrap;
}
.cicerone-search-wrapper .cicerone-search-input:focus-within,.cicerone-search-wrapper .cicerone-search-input:focus-visible{
    border:0px;
    outline: none!important;
}
/* Icono opcional (círculo con rayo) */
.cicerone-search-button-icon {
    width: 18px;
    height: 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.cicerone-search-button.is-search {
  background-color: #ffffff!important;
  color: var(--main-color) !important;
}
.cicerone-search-button.is-search .cicerone-search-button-icon {
  border-color: var(--main-color) !important;
}
/* Contenedor del icono dentro del botón */
.cicerone-search-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

/* Tamaño uniforme de los iconos */
.cicerone-search-button-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 0;
    fill: none;
}

/* MODO NORMAL (AI Route → sparkles) */
.cicerone-search-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

/* MODO BÚSQUEDA */
.cicerone-search-button.is-search {
    background: #fff !important;
    color: var(--main-color) !important;
    border: 1px solid var(--main-color) !important;
}

/* Dropdown de resultados */
.cicerone-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}
.cicerone-search-results::-webkit-scrollbar {
    display: none;
}

/* Cuando hay resultados se muestra */
.cicerone-search-wrapper.has-results .cicerone-search-results {
    display: block;
}

/* Panel interno (tarjeta blanca) */
.cicerone-search-panel {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* Línea superior con la query */
.cicerone-search-panel-top {
    display: none;
}

.cicerone-search-query-label {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    background: #f3f4f6;
}

/* Tabs: All results / Places / Events */
.cicerone-search-panel-tabs {
    display: flex;
    gap: 1.25rem;
    padding: 0.5rem 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.85rem;
}
/* Contenedor absoluto del dropdown (SIN scroll aquí) */
.cicerone-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  z-index: 9999;
  /* sin max-height, sin overflow */
}

/* Panel interno (tarjeta blanca con bordes redondos y scroll) */
.cicerone-search-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;         /* recorta el contenido dentro del borde redondo */
  max-height: 360px;        /* límite de altura del panel */
  overflow-y: auto;         /* scroll vertical dentro del panel */
}

.cicerone-search-tab {
    border: none;
    background: none;
    padding: 0px!important;
    cursor: pointer;
    color: #000!important;
    position: relative;
    font-weight: 500;
}

.cicerone-search-tab.is-active {
    color: #111827;
}

.cicerone-search-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background: var(--main-color);
}

/* Lista de items */
.cicerone-search-list {
    padding: 0.25rem 0 0.5rem;
}

.cicerone-search-item {
    display: block;
    padding: 0.45rem 1rem;
    text-decoration: none;
    color: #111827;
    font-size: 0.9rem;
}

.cicerone-search-item:hover {
    background: #f9fafb;
}

.cicerone-search-item-title {
    font-weight: 500;
}

.cicerone-search-item-meta {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Resaltado del término buscado */
.cicerone-search-highlight {
    color: inherit;                           /* mismo color que el texto normal */
    font-weight: inherit;                     /* sin extra de negrita */
    background: color-mix(in srgb, var(--main-color) 20%, transparent);
    border-radius: 3px;
}

/* Mensajes estados dentro del panel */
.cicerone-search-loading,
.cicerone-search-empty,
.cicerone-search-error {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    color: #4b5563;
}
/* ---- Tabs tipo "All results / Places / Events" planos ---- */
.cicerone-search-panel-tabs {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

.cicerone-search-tab {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 0.4rem;
  margin: 0;
  cursor: pointer;
  color: #6b7280;
  font-weight: 400;
  position: relative;
  border-radius: 0 !important;
}

.cicerone-search-tab.is-active {
  color: #111827;
  font-weight: 500;
}

.cicerone-search-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--main-color);
  border-radius: 8px;
  transition: width 0.15s ease;
}

.cicerone-search-tab.is-active::after {
  width: 100%;
}

/* ---- Lista de resultados ---- */
.cicerone-search-list {
  padding: 0.25rem 0 0.5rem;
}

.cicerone-search-item {
  display: block;
  padding: 0.45rem 1rem;
  text-decoration: none;
}

.cicerone-search-item-title {
  color: #111827;
  font-weight: 400;
}

.cicerone-search-item-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Primer resultado con fondo suave (como en la captura) */
.cicerone-search-item:first-child {
  background: #f9fafb;
}

.cicerone-search-item:hover {
  background: #f3f4f6;
}

/* ================================
   PÁGINA DE RESULTADOS DE BÚSQUEDA
================================ */

.cicerone-search-page {
    max-width: 1200px;
    margin: -1rem auto;
    padding: 0 1rem 3rem;
}

.cicerone-search-page-header {
    margin-bottom: 2rem;
}

.cicerone-search-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #7f1d1d;
}

/* Grid de resultados reutilizando las mismas cards de portada (.place-card) */
.cicerone-search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* Ajuste de ancho de las cards dentro del grid de resultados */
.cicerone-search-grid .place-card {
    flex: 0 0 calc(20% - 14px);  /* mismo cálculo que en portada */
    min-width: 210px;
    max-width: 230px;
}

/* Móvil: 1–2 columnas centradas */
@media (max-width: 640px) {
    .cicerone-search-grid {
        justify-content: center;
    }
    .cicerone-search-grid .place-card {
        flex: 0 0 calc(50% - 14px);
        max-width: 260px;
    }
}
/* Etiqueta pequeña con el tipo (EVENTO, PUNTO DE INTERÉS...) */
.place-card-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 2px;
}

.cicerone-search-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cicerone-search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.18);
}

.cicerone-search-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Imagen + banda blanca + botón + */
.cicerone-search-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cicerone-search-card-thumb img,
.cicerone-search-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e5e7eb;
}

.cicerone-search-card-top-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #fff;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.cicerone-search-card-bottom-strip {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 72px;
    height: 6px;
    border-radius: 10px;
    background: #ffffff;
    opacity: 0.9;
}

/* Cuerpo de la card */
.cicerone-search-card-body {
    padding: 0.9rem 1rem 1.1rem;
}

.cicerone-search-card-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.cicerone-search-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem;
}

/* Duración en rojo, como "4 hours" */
.cicerone-search-card-duration {
    font-size: 0.85rem;
    color: var(--main-color) !important;
}


.cicerone-search-page-more {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--main-color) !important;
}

.cicerone-search-page-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    border: 1px solid #e11d48;
    color: #e11d48;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    transition: background 0.15s ease, color 0.15s ease;
}

.cicerone-search-page-more-btn:hover {
    background: #e11d48;
    color: #fff;
}
/* ======================
   Galería AI Hero
   ====================== */

/* Tamaño base de cada "ventana" de imagen */
:root {
  --ai-hero-gallery-width: 323px;
  --ai-hero-gallery-height: 323px;
}

.ai-hero-gallery {
  display: flex;
  gap: 15px;                /* más aire entre columnas */
  align-items: center;
}

/* Cada columna: ventana que muestra UNA imagen completa */
.ai-hero-gallery-col {
  position: relative;
  width: var(--ai-hero-gallery-width);
  height: var(--ai-hero-gallery-height);
  overflow: hidden;
  background: #ffffff;
}

/* Pila vertical que se desplaza */
.ai-hero-gallery-track {
  display: flex;
  width: 100%;
  flex-direction: column;
}

/* Cada item ocupa exactamente el alto de la ventana */
.ai-hero-gallery-item {
  margin: 0;
  padding: 0;
  flex: 0 0 var(--ai-hero-gallery-height);
}

/* Solo imagen, sin enlace */
.ai-hero-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;         /* recorta para que todas se vean igual */
  border-radius: 8px!important;
}

/* Desvanecido arriba y abajo (más suave) */
.ai-hero-gallery-col::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,1) 0%,          /* blanco arriba */
      rgba(255,255,255,0.9) 10%,
      rgba(255,255,255,0.0) 30%,       /* zona central casi sin fade */
      rgba(255,255,255,0.0) 70%,
      rgba(255,255,255,0.9) 90%,
      rgba(255,255,255,1) 100%         /* blanco abajo */
    );
}

/* Animaciones (misma lógica que ya tenías) */
.ai-hero-gallery-col-up .ai-hero-gallery-track {
  animation: aiHeroScrollUp 28s linear infinite;
}

.ai-hero-gallery-col-down .ai-hero-gallery-track {
  animation: aiHeroScrollDown 32s linear infinite;
}

@keyframes aiHeroScrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); } /* porque duplicamos lista */
}

@keyframes aiHeroScrollDown {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
/* Pila vertical que se desplaza */
.ai-hero-gallery-track {
  display: flex;
  width: 100%;
  flex-direction: column;
  /* pequeño padding para que no empiece/termine pegado */
  padding: 8px 0;
}

/* Cada item ocupa exactamente el alto de la ventana,
   pero con separación entre ellos */
.ai-hero-gallery-item {
  margin: 0 0 16px 0!important;              /* <-- separación vertical tipo Figma */
  padding: 0;
  flex: 0 0 var(--ai-hero-gallery-height);
}

.ai-hero-gallery-item:last-child {
  margin-bottom: 0;
}
/* Solo imagen, sin enlace */
.ai-hero-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px !important;
}
@media (min-width: 1200px) {
  .ai-hero-gallery-col {
    width: var(--ai-hero-gallery-width);
    height: auto;
    aspect-ratio: 3 / 2;   /* ventana panorámica */
    overflow: hidden;
  }

  /* en este caso, cada item ocupa toda la ventana */
  .ai-hero-gallery-item {
    flex: 0 0 100%;
    margin: 0 0 16px 0;
  }
}
/* ======================
   Galería AI Hero - móvil
   ====================== */
@media (max-width: 768px) {
  .ai-hero-gallery {
    justify-content: center;
    gap: 10px;             /* separación más pequeña entre columnas */
    padding: 0px;       /* margen lateral para que no pegue al borde */
    margin: auto -30px;
  }

  .ai-hero-gallery-col {
    /* Dos columnas al 50% menos el gap */
    width: calc(50% - 8px);
    /* Altura proporcional tipo 4:3 para que parezcan “tarjetas” apaisadas */
    aspect-ratio: 4 / 3;
    height: auto;          /* dejamos que la altura la marque el ratio */
    border-radius: 12px;
    overflow: hidden;
  }

  /* Cada item ocupa toda la “ventana” de la columna */
  .ai-hero-gallery-item {
    flex: 0 0 100%;
  }

  .ai-hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}



/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
    .cicerone-list-category {
        width: auto;
    }

    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 300px;
    }

    .cicerone-list-category .cicerone-card {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .cicerone-carousel .viewport,
    .cicerone-carousel.events-carousel .viewport,
    .cicerone-carousel.pois-carousel .viewport,
    .cicerone-carousel.pdfs-carousel .viewport {
        padding: 0 20px;
    }

    .cicerone-card {
        flex: 0 0 clamp(150px, 40vw, 180px);
        height: 260px;
    }

    .cicerone-card .card-title {
        font-size: 12px;
    }

    .cicerone-carousel .go-left,
    .cicerone-carousel .go-right,
    .cicerone-carousel.events-carousel .go-left,
    .cicerone-carousel.events-carousel .go-right,
    .cicerone-carousel.pois-carousel .go-left,
    .cicerone-carousel.pois-carousel .go-right,
    .cicerone-carousel.pdfs-carousel .go-left,
    .cicerone-carousel.pdfs-carousel .go-right {
        width: 30px;
        height: 30px;
        line-height: 24px;
        font-size: 18px;
    }

    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .cicerone-list-category .cicerone-card {
        height: 250px;
    }

    .cicerone-list-category .cicerone-filters {
        flex-direction: column;
        gap: 20px;
    }

    .cicerone-list-category .cicerone-search,
    .cicerone-list-category .cicerone-order-select-wrapper {
        width: 100%;
    }

    .cicerone-category-title {
        font-size: 28px;
    }

    .cicerone-category-subtitle {
        font-size: 16px;
    }

    .cicerone-calendar-container {
        padding: 10px;
    }

    .agenda-text {
        font-size: 24px;
    }

    .agenda-subtitle {
        font-size: 14px;
    }

    .calendar-wrapper {
        flex-direction: column;
        max-height: none;
        min-height: auto;
    }

    .flatpickr-calendar.inline {
        margin: 10px;
    }

    .cicerone-event-card {
        max-width: 100%;
        height: auto;
        flex-direction: column;
    }

    .cicerone-calendar-container .event-card-image {
        width: 100%;
        height: 150px;
        aspect-ratio: 3 / 2;
    }

    .cicerone-calendar-container .event-card-content {
        width: 100%;
        padding: 10px;
    }

    .event-card-button {
        position: static;
        margin-top: 10px;
        align-self: flex-end;
    }


    .cicerone-search-wrapper .cicerone-search-input {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

}

@media (max-width: 600px) {
    .cicerone-carousel.pois-carousel,
    .cicerone-carousel.events-carousel {
        padding: 0;
    }

    .cicerone-carousel.pois-carousel .viewport,
    .cicerone-carousel.events-carousel .viewport {
        padding: 0;
    }

    .cicerone-carousel.pois-carousel .go-right,
    .cicerone-carousel.events-carousel .go-right {
        right: 0;
    }

    .cicerone-search-page {
        padding: 0 0.75rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .cicerone-list-category .cicerone-card {
        height: 200px;
    }
}
/* Forzar fullwidth del contenedor Elementor que envuelve la búsqueda Cicerone */
.elementor-element-b7cff68.e-con-boxed > .e-con-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0px;
}
.elementor-element-b7cff68.e-con-boxed {
    padding: 0px;
}
/* =========================================
   RECOMMENDED ROUTES (routes-carousel)
   ========================================= */

.cicerone-carousel.routes-carousel {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0;
}

/* La tira de cards */
.cicerone-carousel.routes-carousel .viewport {
    gap: 16px;
    padding: 0 0 10px;
    scroll-behavior: smooth;
}

/* Card base: sobreescribe la genérica */
.cicerone-carousel.routes-carousel .cicerone-card.route-card {
    flex: 0 0 280px;
    height: auto;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    display: block;
}

/* Enlace interior */
.routes-carousel .route-card-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Imagen */
.routes-carousel .route-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.routes-carousel .route-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge "Destacada" en la esquina superior izquierda */
.routes-carousel .route-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--main-color, #e11d48);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--main-color, #e11d48);
}

/* Cuerpo de la card */
.routes-carousel .route-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Meta: "12 points of interest" */
.routes-carousel .route-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #6b7280;
}

.routes-carousel .route-meta-icon {
    font-size: 0.9rem;
    color: var(--main-color, #e11d48);
    line-height: 1;
}
.route-icon {
    color: var(--main-color, #e11d48);
}
.routes-carousel .route-meta-icon svg {
    width: 16px;
    height: 16px;
    transform: rotateZ(90deg);
}
.routes-carousel .route-meta-text {
    font-weight: 400;
    font-size: 16px;
    color: var(--main-color, #e11d48);
}
.count-poi{
    font-weight: 700;
}
/* Título: similar al Figma, 3 líneas máx */
.routes-carousel .route-title {
    margin: 4px 0 0;
    font-size: 20px;   /* ~17px */
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Días de ruta: "2 days" */
.routes-carousel .route-days {
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--main-color, #e11d48);
}

/* CTA principal */
.routes-carousel .route-cta {
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: var(--main-color, #e11d48);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.routes-carousel .route-cta:hover {
    border-radius: 8px;
    background: var(--main-color, #e11d48);
}
.routes-carousel .route-cta:active {
    transform: translateY(0);
}

/* Enlace de "More details" debajo */
.routes-carousel .route-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color, #e11d48);
    text-decoration: underline;
}
/* ==== Carrusel de rutas ==== */
.routes-carousel {
    position: relative;
    margin-top: 24px;
    padding-bottom: 40px; /* deja sitio para las flechas abajo a la derecha */
}

/* Fila de tarjetas horizontal */
.routes-carousel .viewport {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0 4px;
}

/* Ocultar scrollbar */
.routes-carousel .viewport::-webkit-scrollbar {
    display: none;
}
.routes-carousel .viewport {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Flechas de rutas: mismas que agenda pero fuera del calendario */
.routes-carousel .cicerone-events-nav-wrapper.routes-nav {
    position: absolute;
    right: 0;
    bottom: 0;              /* salen abajo a la derecha, tipo Figma */
    display: flex;
    gap: 8px;
    z-index: 2;
    top:-60px;
}

.routes-carousel .cicerone-events-nav {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--main-color);
    color: #fff;
    font-size: 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Estado desactivado */
.routes-carousel .cicerone-events-nav.is-disabled {
    background: var(--main-color);
    filter: brightness(0.75);
    color: #fff;
    cursor: default;
    opacity: 0.9;
    box-shadow: none;
}

.cicerone-events-nav.is-disabled:hover, .cicerone-events-nav.is-disabled:focus, .cicerone-events-nav:hover, .cicerone-events-nav:focus {
    transform: none;
    border-radius: 8px!important;
}

/* ========================
   Flechas del carrusel
   ======================== */


/* Responsive pequeño: cards algo más estrechas */
@media (max-width: 768px) {
    .cicerone-carousel.routes-carousel .cicerone-card.route-card {
        flex: 0 0 240px;
    }

    .routes-carousel .route-card-image-wrapper {
        height: 180px;
    }
}

/* ============================
   Recommended Routes - layout
   ============================ */

/* Filtros tipo "chips" */
.cicerone-carousel.routes-carousel .routes-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.routes-filter-chip {
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    background: #fff;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    cursor: default;
}

.routes-filter-chip.is-active {
    background: var(--main-color, #e11d48);
    border-color: var(--main-color, #e11d48);
    color: #fff;
}

/* Neutralizar hover genérico de .cicerone-card dentro de rutas */
.cicerone-carousel.routes-carousel .cicerone-card.route-card {
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Ajustes finos de tipografía para parecerse a la agenda / Figma */
.routes-carousel .route-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.routes-carousel .route-title {
    font-size: 1rem;
    line-height: 1.35;
}

.routes-carousel .route-days {
    font-size: 0.85rem;
    margin-top: 4px;
}

.routes-carousel .route-cta {
    margin-top: 12px;
}

/* Enlace "Más detalles" centrado y subrayado */
.routes-carousel .route-more {
    display: block;
    text-align: center;
    text-decoration: underline;
    margin-top: 10px;
}
/* =============================================================
   RECOMMENDED ROUTES – RESET TOTAL Y ESTILO DEFINITIVO
   ============================================================= */

.cicerone-carousel.routes-carousel {
    box-sizing: border-box;
}

.cicerone-carousel.routes-carousel *,
.cicerone-carousel.routes-carousel *::before,
.cicerone-carousel.routes-carousel *::after {
    box-sizing: inherit;
}

/* Contenedor general */
.cicerone-carousel.routes-carousel {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    position: relative;
}

/* ===== FILTROS ===== */

.cicerone-carousel.routes-carousel .routes-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.routes-carousel .routes-filter-chip, .routes-carousel .routes-filter-chip:focus {
    padding: 8px 8px;
    padding-inline-end: 8px!important;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(148,163,184,0.5);
    font-size: .85rem;
    color: #374151;
    cursor: pointer;
}

.routes-carousel .routes-filter-chip.is-active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

/* ===== VIEWPORT ===== */

.cicerone-carousel.routes-carousel .viewport {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;

    scrollbar-width: none;
}
.cicerone-carousel.routes-carousel .viewport::-webkit-scrollbar {
    display: none;
}

/* =============================================================
   CARD – TOTALMENTE PERSONALIZADA
   ============================================================= */

.cicerone-carousel.routes-carousel .route-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    transition: transform .15s ease, box-shadow .15s ease;
}

.cicerone-carousel.routes-carousel .route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15,23,42,0.25);
}

/* ===== Imagen ===== */

.routes-carousel .route-card-image-wrapper {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
}

.routes-carousel .route-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge “Featured” */
.routes-carousel .route-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #fff;
    color: var(--main-color);
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid var(--main-color);
    z-index: 5;
}

/* ===== BODY ===== */

.routes-carousel .route-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Meta */
.routes-carousel .route-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: .82rem;
}

.routes-carousel .route-meta-icon {
    color: var(--main-color);
    font-size: 2rem;
}

/* Título */
.routes-carousel .route-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

/* Días */
.routes-carousel .route-days {
    font-size: .85rem;
    font-weight: 600;
    color: var(--main-color);
}

/* Enlace “More details” */
.routes-carousel .route-more {
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
    color: var(--main-color, #e11d48);
    text-decoration: underline;
}
.routes-carousel .route-more:hover{
    transform: none!important;
    transition: none!important;
    line-height: 24px;
    font-size: 16px!important;
}
/* =============================================================
   FLECHAS – AISLADAS Y FUNCIONALES
   ============================================================= */

.cicerone-carousel.routes-carousel .go-left,
.cicerone-carousel.routes-carousel .go-right {
    width: 44px;
    height: 44px;
    position: absolute;
    top: -58px;
    background: var(--main-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: none;
}

.cicerone-carousel.routes-carousel .go-left {
    right: 58px;
}

.cicerone-carousel.routes-carousel .go-right {
    right: 10px;
}

.cicerone-carousel.routes-carousel .go-left:hover,
.cicerone-carousel.routes-carousel .go-right:hover {
    background: #000;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
    .cicerone-carousel.routes-carousel .route-card {
        flex: 0 0 240px;
    }

    .routes-carousel .route-card-image-wrapper {
        height: 180px;
    }
}

/* =========================================
   AJUSTES FINOS RUTAS (sobre lo existente)
   ========================================= */

/* 1) Card sin fondo, sin borde, sin sombra
      y ancho para que salgan 4,5 cards */
.cicerone-carousel.routes-carousel .route-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    /* 4,5 cards visibles en desktop */
    flex: 0 0 calc(100% / 4.5) !important;
    max-width: calc(100% / 4.5) !important;
}

/* Sin efecto “flotante” */
.cicerone-carousel.routes-carousel .route-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 2) Imagen con los 4 bordes redondeados */
.routes-carousel .route-card-image-wrapper {
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 10px;      /* pequeño espacio con el texto */
}

/* Por si la imagen tenía otros radios */
.routes-carousel .route-card-image {
    border-radius: 0 !important;
}

/* 3) Cuerpo de la card sin caja rara debajo */
.routes-carousel .route-card-body {
    background: transparent !important;
    padding: 0 4px 0 0; /* ajusta si quieres un pelín más de aire */
}

/* Título / textos se mantienen como estaban */
.routes-carousel .route-title {
    margin-top: 4px;
}

/* 4) Flechas: sin sombra y con icono correcto */
.cicerone-carousel.routes-carousel .go-left,
.cicerone-carousel.routes-carousel .go-right {
    box-shadow: none !important;
    border: none !important;
    background: var(--main-color, #e11d48) !important;
    color: #fff !important;

    /* forzamos fuente de Material Symbols */
    font-family: 'Material Symbols Outlined' !important;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    line-height: 1;
}
/* =========================================
   BADGE DEMO DE CATEGORÍA
========================================= */

.routes-carousel .route-badge-demo {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 10px;
    background: #ffffff;
    color: var(--main-color, #e11d48);
    font-size: 0.80rem;
    font-weight: 600;
    z-index: 5;
}
/* =========================================
   CHIPS FILTRABLES CON "X"
========================================= */

.routes-filter-chip {
    position: relative;
    padding-right: 30px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Ocultar X por defecto */
.routes-filter-chip .chip-close {
    display: none;
    font-size: 14px;
    margin-left: 6px;
}

/* Cuando está activo -> mostrar X */
.routes-filter-chip.is-active .chip-close {
    display: inline;
    color: #fff;
}

/* Hover */
.routes-filter-chip:hover {
    opacity: 0.9;
}
/* =========================================
   BLOQUE "PLACES" (All content por categoría)
========================================= */

.cicerone-places {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    padding: 0 1rem;
}
/* Cabecera general */

.cicerone-places-header {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    margin-left:-42px;
}
.cicerone-search-page .cicerone-places-header {
    margin-left:0px;
}
.cicerone-places-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--main-color, #e11d48);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.cicerone-places-title {
    margin: 0;
    font-size: 40px!important;
    font-weight: 800;
    color: #7f1d1d;
}
.text-search {
    font-weight: 400;
}
.cicerone-places-intro {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    color: #374151;
    font-family: Roboto;
    display: none;
}

/* Bloque por categoría */

.places-category-block {
    margin-bottom: 40px;
}

.places-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.places-category-arrow {
    font-size: 1.6rem;
    color: var(--main-color, #e11d48);
}

/* Grid de 4 columnas */

.places-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Card de lugar */

.place-card {
    min-width: 0;
    max-width: 100%;
}

.place-card-link {
    display: block;
    text-decoration: none!important;
    color: inherit;
}

/* Thumbnail con badge, barra y plus opcional */

.place-card-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    height: 160px;
}

/* Imagen ocupa todo, con 4 bordes redondeados */

.place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Carrusel horizontal dentro de la miniatura de Places */

.cicerone-places .place-card-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;   /* IE/Edge antiguo */
    scrollbar-width: none;      /* Firefox */
    touch-action: pan-y;        /* deja libre el scroll horizontal */
}

.cicerone-places .place-card-slider::-webkit-scrollbar {
    display: none;
}

/* Cada slide ocupa el 100% de ancho → hay scroll */
.cicerone-places .place-card-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
}

.cicerone-places .place-card-slider.is-dragging {
    cursor: grabbing;
}
/* Evitar selección de texto / drag nativo del navegador */
.cicerone-places .place-card-slider,
.cicerone-places .place-card-slide img {
    user-select: none;
    -webkit-user-drag: none;
}
.cicerone-places .place-card-slider {
    cursor: grab;
}

.cicerone-places .place-card-slider.is-dragging {
    cursor: grabbing;
}

.cicerone-places .place-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* muy importante para desktop */
}

.cicerone-places .place-card-slider {
    cursor: grab;
}

.cicerone-places .place-card-slider.is-dragging {
    cursor: grabbing;
}


.place-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* --- Dots del carrusel dentro de la card --- */

.place-card-bullets {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
    background: #FFF;
    border-radius: 999px;
    padding: 3px 8px;
}

/* Estado base: círculos claros, solo borde */
.place-card-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #F2F2F2;
    flex-shrink: 0;
    transition:
        width 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Activo: pastilla alargada roja, como en el diseño */
.place-card-bullet.is-active {
    width: 24px;
    background: var(--main-color, #e11d48);
    border-color: var(--main-color, #e11d48);
    box-shadow: none;
}

/* Badge tipo "Featured" */

.place-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0px 7px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    background: #fff;
    color: var(--main-color, #e11d48);
    z-index: 2;
}

/* Barra rojita inferior dentro de la imagen */

.place-card-bar {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 70px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
    overflow: hidden;
    z-index: 2;
}

.place-card-bar-inner {
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 3px;
    border-radius: 999px;
    background: var(--main-color, #e11d48);
}

/* Texto de la card */

.place-card-body {
    margin-top: 8px;
}

.place-card-title {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-duration {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--main-color, #e11d48);
}

.places-category-more {
    display: inline-block;
    border: 2px solid var(--main-color, #e11d48);
    color: var(--main-color, #e11d48)!important;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    padding: 16px 32px;
    background-color: #ffffff;
    font-weight: 600!important;
    font-size: 14px!important;
}

.places-category-more:hover,
.places-category-more:focus-visible {
color: #ffffff;
font-weight: 600!important;
}
/* Responsive */

@media (max-width: 980px) {
    .place-card {
        flex: 0 0 40%;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .cicerone-places {
        padding: 0 0.75rem;
    }
    .place-card {
        flex: 0 0 70%;
    }
}
/* ============================
   BLOQUE "SITIOS" (Places)
============================ */

.cicerone-places {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.cicerone-places-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.cicerone-places-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--main-color, #e11d48);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    font-size: 0.9rem;
}


.cicerone-places-intro {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Categoría */

.places-category-block {
    margin-bottom: 32px;
}

.places-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.places-category-arrow {
    margin-left: 6px;
    color: var(--main-color, #e11d48);
}
/* Cabecera de la agenda: fila con flechas a la derecha */
.cicerone-events-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Contenedor de las flechas pegado al borde derecho */
.cicerone-events-nav-wrapper {
    margin-left: auto;          /* empuja las flechas a la derecha */
    display: inline-flex;
    gap: 8px;
}
/* ============================
   Botón "Mostrar más" (resultados)
   ============================ */

.cicerone-search-page-more {
    text-align: center;
}

/* Botón como en la maqueta: pequeño, centrado, borde rojo */
.cicerone-show-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    border: 2px solid var(--main-color, #e11d48);
    background-color: #fff;
    color: var(--main-color, #e11d48)!important;
    font-size: 14px!important;
    font-weight: 600!important;
    text-decoration: none;
    width: auto;          /* sobrescribe botones full width del theme */
    max-width: none;
    box-shadow: none;
}

/* Hover: relleno rojo y texto blanco */
.cicerone-show-more-button:hover {
    background: transparent!important;
    font-weight: 600 !important;
}
.cicerone-search-page-more .cicerone-show-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    border: 2px solid var(--main-color, #e11d48);
    background-color: #fff;
    color: var(--main-color, #e11d48)!important;
    font-size: 14px!important;
    font-weight: 600!important;
    text-decoration: none;
    width: auto;          /* sobrescribe botones full width del theme */
    max-width: none;
    box-shadow: none;
}
.cicerone-search-page-more .cicerone-show-more-button:hover, .cicerone-search-page-more .cicerone-show-more-button:focus {
    background: transparent!important;
    font-weight: 600 !important;
}
/* Grid de 8 ítems máx: 4 columnas desktop, 2 en tablet, 1 en móvil */

.places-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1024px) {
    .places-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .places-strip {
        grid-template-columns: 1fr;
    }
}

/* Card de sitio */

.place-card {
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.place-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.place-card-thumb {
    position: relative;
    width: 100%;
    height: 170px;
    border-radius: 8px;
    overflow: hidden;
}

.place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Body card */

.place-card-body {
    padding: 8px 2px 0;
}

.place-card-title {
    margin: 0 0 2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.place-card-duration {
    font-size: 0.8rem;
    color: var(--main-color, #e11d48);
}

/* Footer: Ver todos */

.places-category-footer {
    margin-top: 10px;
    text-align: center;
}


/* ============================
   Ajustes extra "Sitios"
============================ */

/* Cabecera */

.cicerone-places-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff;
    color: var(--main-color, #e11d48);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.cicerone-places-icon .material-symbols-outlined {
    font-size: 20px;
}

/* Botón "Ver todos ..." ya usa color primario, subimos un poco tamaño */
.places-category-more {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Todas las imágenes igual de cuadradas (ratio fijo) */
.place-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;    /* todas con el mismo formato */
    border-radius: 8px;
    overflow: hidden;
}

.place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Títulos de cards un poco más pequeños */
.place-card-title {
    margin: 0 0 2px;
    font-size: 0.85rem;      /* más pequeño */
    font-weight: 600;
    color: #111827;
}

/* Duración en color primario, como en Figma */
.place-card-duration {
    font-size: 0.8rem;
    color: var(--main-color, #e11d48);
}
/* =========================================
   OVERRIDES FINALES BLOQUE "SITIOS"
   ========================================= */

/* 1) Título principal y títulos de categoría:
      mismo tamaño y color primario */
.cicerone-places-title,
.places-category-title {
    margin: 0 0 4px;
    font-size: 20px;                    /* igual de grande */
    font-weight: 800;
    color: var(--main-color, #e11d48)!important;  /* color primario */
}
.places-category-title a{
    font-size: 36px!important;                    /* igual de grande */
    font-weight: 600!important;
    color: var(--main-color, #e11d48)!important;  /* color primario */
}

/* 2) Un poco más de separación entre filas
      (grid de 4x2 = 8 sitios) */
.cicerone-places .places-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 28px;   /* más aire entre filas */
}
.recommended-carousel .go-left, .recommended-carousel .go-right {
    display: none;
}
/* 3) Botón "+" totalmente reseteado y re-estilizado
      para evitar estilos del tema */
.cicerone-places .place-card-plus, .places-strip .place-card-plus {
    all: unset; /* elimina estilos de botones del theme */
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.85);
    background: #fff;
    color: var(--main-color, #e11d48);
    font-weight: 700;
    font-size: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cicerone-places .place-card-plus:hover, .places-strip .place-card-plus:hover {
    background-color: #fff;
    border-radius: 4px;
}

/* 4) Aseguramos imágenes homogéneas y títulos de card
      un poco más pequeños (por si algo los pisa) */
.cicerone-places .place-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
}

.cicerone-places .place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cicerone-places .place-card-title, .places-strip .place-card-title {
    margin: 0 0 2px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* 5) Icono de localización en el chip de "Sitios" */
.cicerone-places-icon .material-symbols-outlined {
    font-size: 30px;
    margin-top: 10px;
}
/* =======================================
   DETALLE CICERONE (POI / EVENT / ROUTE)
   ======================================= */
.cicerone-detail-page p, .cicerone-detail-right .detail-card p, .cicerone-detail-right .detail-card li, .cicerone-schedule-hours {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}
/* Header: título + pill + (opcional) acciones */
.cicerone-detail-header {
    margin-bottom: 1.5rem;
}

.cicerone-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.cicerone-detail-title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.cicerone-detail-pill {
    padding: .35rem .75rem;
    border-radius: 8px;
    background: var(--main-color, #e11d48);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}

/* Pequeña fila para iconos / extras (tipo social) */
.cicerone-detail-subrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: #6b7280;
}

/* HERO: galería tipo Figma */
.cicerone-detail-hero {
    margin-bottom: 1.75rem;
}

.cicerone-detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    min-height: 260px;
}

/* Item 0 = bloque grande a la izquierda */
.cicerone-detail-gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
}

.cicerone-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Colocamos hasta 3 imágenes como en el Figma */
.cicerone-detail-gallery-item.is-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.cicerone-detail-gallery-item.is-side-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.cicerone-detail-gallery-item.is-side-bottom {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Ocultamos las imágenes > 3 en el grid (siguen existiendo para el modal) */
.cicerone-detail-gallery-item.is-extra {
    display: none;
}

/* Modal de imagen (reutilizable) */
.cicerone-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    padding: 50px 10px;
}

.cicerone-detail-modal img {
    display: block;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.cicerone-detail-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 34px;
    color: #fff;
    cursor: pointer;
}

/* Layout principal 2 columnas */
.cicerone-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
    gap: 40px;
}

/* Columna izquierda */
.cicerone-detail-left section {
    margin-bottom: 1.8rem;
}

.cicerone-detail-left h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .65rem;
}

.cicerone-detail-text {
    font-size: .95rem;
    line-height: 1.7;
    color: #374151;
}

/* Columna derecha: tarjetas de info (Address, Schedule, Price, etc.) */
.cicerone-detail-right .detail-card {
    background: #fff;
    border-radius: 14px;
    padding:0px;
    box-shadow: none;
    margin-bottom: 32px;
}

.cicerone-detail-right .detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cicerone-detail-right .detail-card li + li {
    margin-top: .2rem;
}

/* Tags */
.cicerone-detail-tags-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--main-color, #e11d48);
    margin: 0 0 .5rem;
}

.cicerone-detail-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.cicerone-detail-tag {
    padding: .25rem .7rem;
    border-radius: 8px;
    font-size: .8rem;
    background: #f3f4f6;
    color: #374151;
}

/* Botones tipo CTA (para links POI/evento) */
.cicerone-detail-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.cicerone-detail-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--main-color, #e11d48);
    background: var(--main-color, #e11d48);
    color: #fff!important;
    font-size: 14px!important;
    font-weight: 600!important;
    text-decoration: none;
    cursor: pointer;
}
.cicerone-detail-cta:hover {
    border-radius: 8px;
    border: 1px solid var(--main-color, #e11d48);
    background: var(--main-color, #e11d48);
    color: #fff!important;
    font-size: 14px!important;
    font-weight: 600!important;
    text-decoration: none;
}
.cicerone-detail-cta.secondary {
    background: #fff;
    color: var(--main-color, #e11d48);
}

/* Responsive */
@media (max-width: 992px) {
    .cicerone-detail-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .cicerone-detail-hero {
        margin-left: -16px;
        margin-right: -16px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .cicerone-detail-gallery {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        min-height: unset !important;
        margin-left: 15px !important;
        padding-right: 0 !important;
        cursor: grab !important;
        width: 100% !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        box-sizing: border-box !important;
    }

    .cicerone-detail-gallery::-webkit-scrollbar { display: none; }

    .cicerone-detail-gallery-item,
    .cicerone-detail-gallery-item.is-main,
    .cicerone-detail-gallery-item.is-side-top,
    .cicerone-detail-gallery-item.is-side-bottom,
    .cicerone-detail-gallery-item.is-extra {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: unset !important;
        height: 240px !important;
        min-height: unset !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        scroll-snap-align: start !important;
    }

    .cicerone-detail-gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .cicerone-detail-title {
        font-size: 1.7rem;
    }
}
/* ============================
   FIX HEADER SINGLE (POI / EVENT / ROUTE)
   ============================ */

/* Fila del título + pills + flechas */
.cicerone-detail-page .cicerone-detail-title-row {
    display: flex;          /* aseguramos flex aunque el theme lo toque */
    flex-wrap: wrap;
    align-items: center;    /* alinear verticalmente en el centro */
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    margin-bottom: 0.75rem; /* un poco de aire con la galería */
}

/* Título pegado a las pills, sin márgenes raros */
.cicerone-detail-page .cicerone-detail-title {
    margin: 0;
}

/* Las pills se comportan como chips en línea */
.cicerone-detail-page .cicerone-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Flechas de la galería pegadas a la derecha */
.cicerone-detail-page .cicerone-detail-gallery-arrows {
    margin-left: auto;      /* empuja el bloque de flechas al extremo derecho */
    display: inline-flex;
    gap: 8px;
}
.cicerone-detail-gallery-arrows .cicerone-events-nav {
	border-radius:8px;
}
/* ============================
   BLOQUE HORARIO / SCHEDULE
   ============================ */

.detail-card.detail-card-schedule {
    background: #ffffff;
    border-radius: 8px;
    padding: 0px;
}

/* Título de horario estilo Address/Schedule */
.detail-card.detail-card-schedule .cicerone-schedule-title, .cicerone-detail-right .detail-card h3,.cicerone-detail-right .detail-card h3, .cicerone-detail-section-title  {
    margin: 0 0 0.85rem;
    font-size: 36px!important;
    font-weight: 700;
    color: var(--main-color, #7b1221);
}

/* Grid a dos columnas como en el diseño */
.cicerone-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.75rem;
    row-gap: 0.4rem;
}

/* En móvil, una sola columna */
@media (max-width: 768px) {
    .cicerone-schedule-grid {
        grid-template-columns: 1fr;
    }
}

.cicerone-schedule-item {
    font-size: 0.9rem;
}

.cicerone-schedule-day {
    font-weight: 600;
    font-size: 18px;
    color: var(--main-color, #7b1221);
    margin-bottom: 0;
}

.cicerone-schedule-hours .arrow {
    display: inline-block;
    margin: 0 0.35rem;
    color: var(--main-color, #e11d48);
    font-weight: 700;
}

/********************************************
 * PATCH: AJUSTE LAYOUT DETALLE POI
 ********************************************/

/* Normalizar el contenedor principal */
.cicerone-detail-page {
    max-width: 1200px;
    margin: -16px auto 60px;
    padding: 0 16px;
    font-family: inherit;
}

/* Que todo mida con box-sizing correcto */
.cicerone-detail-page * {
    box-sizing: border-box;
}

/* Evitar paddings/márgenes raros del tema dentro */
.cicerone-detail-page header,
.cicerone-detail-page section,
.cicerone-detail-page aside {
    margin: 0;
    padding: 0;
}

/* Asegurar que no haya floats ni flex raros del theme */
.cicerone-detail-main,
.cicerone-detail-left,
.cicerone-detail-right {
    float: none !important;
    display: block;
}

/* Grid principal de 2 columnas, con fallback limpio */
.cicerone-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
    gap: 128px;
    align-items: flex-start;
}

/* En móvil, 1 columna */
@media (max-width: 992px) {
    .cicerone-detail-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* GALERÍA: altura estable y comportamiento por nº de imágenes */
.cicerone-detail-hero {
    margin-bottom: 24px;
}

.cicerone-detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 320px;
}

/* Imagen principal */
.cicerone-detail-gallery-item.is-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Laterales */
.cicerone-detail-gallery-item.is-side-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.cicerone-detail-gallery-item.is-side-bottom {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Asegurar que los items “rellenan” la celda del grid */
.cicerone-detail-gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e7eb;
    width: 100%;
    height: 100%;
}

.cicerone-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* +3 imágenes: se ocultan en la cuadricula (solo para el modal) */
.cicerone-detail-gallery-item.is-extra {
    display: none;
}

/* 1 sola imagen → formato simple, una columna */
.cicerone-detail-gallery[data-images-count="1"] {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 260px;
}

.cicerone-detail-gallery[data-images-count="1"] .cicerone-detail-gallery-item.is-main {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
}

/* 2 imágenes → 2 columnas, 1 fila (una grande + una al lado) */
.cicerone-detail-gallery[data-images-count="2"] {
    grid-template-columns: 2fr 1.4fr;
    grid-template-rows: minmax(0, 1fr);
}

.cicerone-detail-gallery[data-images-count="2"] .cicerone-detail-gallery-item.is-main {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.cicerone-detail-gallery[data-images-count="2"] .cicerone-detail-gallery-item.is-side-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.cicerone-detail-gallery[data-images-count="2"] .cicerone-detail-gallery-item.is-side-bottom {
    display: none;
}

/* En móvil: solo la principal para no descolocar */
@media (max-width: 768px) {
    .cicerone-detail-gallery {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        min-height: unset !important;
        margin-left: 15px !important;
        cursor: grab !important;
        width: 100% !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        box-sizing: border-box !important;
    }

    .cicerone-detail-gallery-item,
    .cicerone-detail-gallery-item.is-main,
    .cicerone-detail-gallery-item.is-side-top,
    .cicerone-detail-gallery-item.is-side-bottom,
    .cicerone-detail-gallery-item.is-extra {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: unset !important;
        height: 240px !important;
        min-height: unset !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        scroll-snap-align: start !important;
    }

    .cicerone-detail-gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}
/* Título del detalle */
.cicerone-detail-page h1,
.single-punto_de_interes h1.entry-title {
    font-size: 48px !important;
    line-height: 1.2 !important;
    font-weight: 700;
    color: var(--main-color, #a01d37)!important;
}
/* Contenedor general */
.cicerone-detail-gallery {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

/* Cada imagen */
.cicerone-detail-gallery img {
    width: 100%;
    max-width: 720px; /* la grande */
    border-radius: 16px;
    scroll-snap-align: start;
    display: block;
}

/* Las imágenes pequeñas */
.cicerone-detail-gallery .side-thumb img {
    max-width: 280px;
}
.cicerone-detail-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-btn {
    padding: 10px 22px;
    border: 2px solid var(--cicerone-primary, #a01d37);
    border-radius: 10px;
    background: #fff;
    color: var(--cicerone-primary, #a01d37);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: .2s ease;
}

.detail-btn:hover {
    background: var(--cicerone-primary, #a01d37);
    color: white;
}
.cicerone-detail-hero {
    margin-bottom: 32px;
}

/* Contenedor horizontal */
.cicerone-detail-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

/* Cada item es una “columna” */
.cicerone-detail-gallery-item {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

/* Imagen dentro de la columna */
.cicerone-detail-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* En escritorio puedes hacerlas un poco más estrechas si quieres */
@media (min-width: 992px) {
    .cicerone-detail-gallery-item {
        flex: 0 0 70%; /* 70% del ancho para que asome la siguiente */
    }
}
/* Contenedor de la galería */
.cicerone-detail-hero {
    margin-bottom: 32px;
}

/* Carrusel horizontal */
.cicerone-detail-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;           /* scroll horizontal para ratón/touch */
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 0;
    
    /* Ocultar scrollbar en todos los navegadores */
    -ms-overflow-style: none;   /* IE / Edge antiguo */
    scrollbar-width: none;      /* Firefox */
}

.cicerone-detail-gallery::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, Edge */
}

/* Cada slide: 1 imagen a la vez */
.cicerone-detail-gallery-item {
    flex: 0 0 100%;             /* SIEMPRE 1 imagen por “columna” */
    max-width: 100%;
    height: 512px;              /* altura fija máxima */
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

/* Imagen ocupando todo el slide */
.cicerone-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* En móvil bajamos un poco la altura si quieres */
@media (max-width: 767px) {
    .cicerone-detail-gallery-item {
        height: 360px;
    }
}
/* HERO / GALERÍA -------------------------------------- */

.cicerone-detail-hero {
    margin-bottom: 32px;
}

/* Contenedor carrusel */
.cicerone-detail-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 8px 0 16px;
    cursor: grab;

    /* Ocultar scrollbar */
    -ms-overflow-style: none;      /* IE/Edge viejo */
    scrollbar-width: none;         /* Firefox */
}

.cicerone-detail-gallery::-webkit-scrollbar {
    display: none;                 /* Chrome/Safari/Edge */
}

.cicerone-detail-gallery.is-dragging {
    cursor: grabbing;
}

/* Cada ítem: ocupa casi todo el ancho para que se vea media siguiente */
.cicerone-detail-gallery-item {
    flex: 0 0 calc(100% - 120px);  /* 1 imagen + ~120px de la siguiente */
    max-width: calc(100% - 120px);
    height: 512px;                 /* límite de alto */
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

/* Imagen ocupando todo el slide */
.cicerone-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .cicerone-detail-gallery-item {
        flex: 0 0 calc(100% - 60px);  /* un poco menos “media” en móvil */
        max-width: calc(100% - 60px);
        height: 360px;
    }
}
.cicerone-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

/* Contenedor de la galería */
.cicerone-detail-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 8px 0 16px;
    cursor: grab;
    background: transparent !important;

    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cicerone-detail-gallery::-webkit-scrollbar {
    display: none;
}

/* Item: ocupa casi todo el ancho, dejando “media” siguiente */
.cicerone-detail-gallery-item {
    flex: 0 0 calc(100% - 120px);
    min-width: calc(100% - 120px);
    max-width: calc(100% - 120px);
    height: 512px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;

    background: transparent !important; /* quitamos gris si viene de algún lado */
}

/* La imagen DEBE rellenar todo el item */
.cicerone-detail-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .cicerone-detail-gallery-item {
        flex: 0 0 calc(100% - 60px);
        min-width: calc(100% - 60px);
        max-width: calc(100% - 60px);
        height: 360px;
    }
    .cicerone-places .place-card-slide {
        height:  100%;
    }
}
.cicerone-detail-gallery {
    cursor: grab;
}
.cicerone-detail-gallery.is-dragging {
    cursor: grabbing;
}
.cicerone-detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cicerone-detail-title-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cicerone-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--main-color, #e11d48);
    color: #fff;
}

.cicerone-detail-pill-icon {
    font-size: 13px!important;
    line-height: 1;
}

.cicerone-detail-gallery-arrows {
    display: inline-flex;
    gap: 8px;
}

.cicerone-detail-gallery-arrow {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: none;
    background-color: var(--main-color, #e11d48)!important;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s, transform 0.1s;
}

.cicerone-detail-gallery-arrow:hover {
    background: var(--main-color, #e11d48);
    transform: translateY(-1px);
}

.cicerone-detail-gallery {
    cursor: grab;
}

.cicerone-detail-gallery.is-dragging {
    cursor: grabbing;
}
/* Layout 2 columnas detalle */
.cicerone-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    margin-top: 40px;
}

.cicerone-detail-left,
.cicerone-detail-right {
    min-width: 0;
}

.cicerone-detail-section + .cicerone-detail-section {
    margin-top: 32px;
}

.cicerone-detail-section-title {
    font-size: 36px!important;
    font-weight: 700;
    margin: 0 0 12px;
    color:var(--main-color, #7b1221)!important;
}

.cicerone-detail-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Cards de la columna derecha */
.detail-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.detail-card + .detail-card {
    margin-top: 20px;
}

.detail-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.detail-address {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    white-space: pre-line;
}

/* Horario */
.detail-schedule {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.detail-schedule li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.detail-schedule li strong {
    font-weight: 600;
}

/* Tags a ancho completo */
.cicerone-detail-tags {
    margin-top: 48px;
    padding-top: 28px;
}

.detail-tags-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-tags-icon {
    font-size: 18px;
    color: var(--main-color);
}

.detail-tags-title {
    font-size: 35px!important;
    font-weight: 700;
    margin: 0;
    color: var(--main-color, #7b1221)!important;
}

.detail-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
}

.detail-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 8px;
    margin: 16px;
    margin-left: 0px;
    border-radius: 8px;
    border: 1px solid  var(--main-color, #7b1221)!important;
    background: transparent;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}
.detail-tags-icon {
    transform: rotateY(175deg);
}
/* Responsive */
@media (max-width: 900px) {
    .cicerone-detail-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
/* Sitios recomendados dentro de la ficha */
.cicerone-detail-recommended {
    margin-top: 48px;
}

.cicerone-detail-recommended-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 30px;
}

.cicerone-detail-recommended-title {
    font-size: 35px!important;
    font-weight: 700;
    color: var(--main-color, #7b1221)!important;
    margin: 0;
}

.cicerone-detail-recommended .places-category-arrow {
    font-size: 1.6rem;
    font-weight: 800;
}

/* Carrusel de sitios recomendados */
.cicerone-detail-recommended .recommended-carousel .viewport {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    padding: 0px;
}

/* 4 tarjetas completas + media siguiente */
.cicerone-detail-recommended .place-card {
    flex: 0 0 calc(100% / 4.5);
    max-width: calc(100% / 4.5);
    scroll-snap-align: start;
}

/* Responsive sencillo */
@media (max-width: 1200px) {
    .cicerone-detail-recommended .place-card {
        flex: 0 0 calc(100% / 3.2);
        max-width: calc(100% / 3.2);
    }
}

@media (max-width: 768px) {
    .cicerone-detail-recommended .place-card {
        flex: 0 0 calc(100% / 1.4);
        max-width: calc(100% / 1.4);
    }
}
.cicerone-detail-recommended.cicerone-pois-shortcode {
  margin-top: 32px;
}
/* ==== Ajustes específicos para [cicerone_pois] ==== */

/* Forzamos ancho/alto homogéneo de las tarjetas de POIs */
.pois-carousel .cicerone-card {
  flex: 0 0 260px;
  max-width: 260px;
}

/* El contenedor de imagen ocupa altura fija */
.pois-carousel .card-image-wrapper {
  height: 200px;
}

/* La imagen rellena completamente el hueco */
.pois-carousel .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ==== Estilos para el shortcode [cicerone_events] ==== */

.events-carousel .viewport {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 24px 0 16px;
  scroll-behavior: smooth;
}

.events-carousel .viewport::-webkit-scrollbar {
  display: none;
}

.events-carousel .agenda-event-card {
  flex: 0 0 240px;
  max-width: 240px;
    background-color: #fff;
    border-radius: 10px;
}

.events-carousel .cicerone-event-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Imagen + badge */
.events-carousel .event-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
}

.events-carousel .event-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.events-carousel .event-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  background: #ffffff;
  color: var(--main-color, #e11d48);
}

/* Contenido */
.events-carousel .event-card-content {
  padding-top: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.events-carousel .event-card-dates {
  font-size: 13px;
  color: var(--main-color, #e11d48);
}

.events-carousel .event-card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.events-carousel .event-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--main-color, #e11d48);
}

.events-carousel .event-card-location-icon {
  font-size: 18px;
  line-height: 1;
}
/* ===== Mobile layout para el buscador [cicerone_search] (versión corregida) ===== */
@media (max-width: 767px) {

  .cicerone-search-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* Pastilla blanca grande */
  .cicerone-search-input-wrapper {
    position: relative;          /* clave para colocar el botón dentro */
    display: block;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    overflow: visible;           /* que el botón pueda sobresalir un poco si hace falta */
  }

  /* Input a lo largo de toda la pastilla, dejando hueco a la derecha */
/* Input con espacio automático según botón */
.cicerone-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 160px 12px 18px!important;
    font-size: 14px;
    min-height: 52px;
    box-sizing: border-box;
    margin-bottom: 0px!important;
}


  .cicerone-search-input::placeholder {
    color: #9ca3af;
  }

  /* Botón "AI Route" dentro de la pastilla, pegado a la derecha */
  .cicerone-search-button {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    margin: 0;
    border: none;
    outline: none;
    background: #ff4350;              /* ajusta a tu color de marca */
    color: #ffffff;
    padding: 0 16px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }

  .cicerone-search-button-icon {
    width: 14px;
    height: 14px;
  }

  .cicerone-search-results {
    margin-top: 12px;
  }
}
/* ===== MOBILE: Rutas recomendadas [cicerone_rutas] ===== */
@media (max-width: 767px) {

  /* Contenedor general */
  .cicerone-carousel.routes-carousel {
    margin: 24px 0;
    padding-bottom: 16px;
    overflow: visible;
  }

  /* Filtros: fila con scroll horizontal */
  .cicerone-carousel.routes-carousel .routes-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cicerone-carousel.routes-carousel .routes-filters::-webkit-scrollbar {
    display: none;
  }

  /* Carrusel de tarjetas en horizontal */
  .cicerone-carousel.routes-carousel .viewport {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cicerone-carousel.routes-carousel .viewport::-webkit-scrollbar {
    display: none;
  }

.cicerone-carousel.routes-carousel .cicerone-card,
.cicerone-carousel.routes-carousel .route-card {
    flex: 0 0 80vw !important;   /* ancho ≈ 80% */
    max-width: 80vw !important;
    scroll-snap-align: start;
    display: block;              /* NO flex aquí */
    overflow: visible;           /* que no corte nada */
}

  /* Imagen a ancho completo y misma altura en todas */
  .cicerone-carousel.routes-carousel .route-card-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
  }
  .cicerone-carousel.routes-carousel .route-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Botón "Empezar ruta" a ancho de tarjeta */
  .cicerone-carousel.routes-carousel .route-cta {
    width: 100%;
    box-sizing: border-box;
  }

  /* En móvil usamos sólo scroll con el dedo, sin flechas */
  .cicerone-carousel.routes-carousel .go-left,
  .cicerone-carousel.routes-carousel .go-right {
    display: none !important;
  }
}
/* ===== MOBILE: Events & POIs ===== */
@media (max-width: 767px) {

  /* 1) Ocultar flechas en events y pois */
  .cicerone-carousel.events-carousel .go-left,
  .cicerone-carousel.events-carousel .go-right,
  .cicerone-carousel.pois-carousel .go-left,
  .cicerone-carousel.pois-carousel .go-right {
    display: none !important;
  }

  /* 2) Carrusel horizontal para EVENTS a pantalla completa */
  .cicerone-carousel.events-carousel .viewport {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    padding: 0 16px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cicerone-carousel.events-carousel .viewport::-webkit-scrollbar {
    display: none;
  }

  /* Cada evento ocupa el 100% del ancho “visible” */
  .cicerone-carousel.events-carousel .cicerone-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start;
    display: block;
  }

  /* Aseguramos imagen responsiva en events */
  .cicerone-carousel.events-carousel .card-image-wrapper {
    width: 100%;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
  }
  .cicerone-carousel.events-carousel .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Opcional: pequeño padding abajo del contenido de la card */
  .cicerone-carousel.events-carousel .card-content {
    padding-bottom: 8px;
  }

  /* 3) Para POIs: solo scroll horizontal + cards tipo carrusel (mantenemos estilos que ya te gustaban) */
  .cicerone-carousel.pois-carousel .viewport {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    padding: 0 16px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cicerone-carousel.pois-carousel .viewport::-webkit-scrollbar {
    display: none;
  }

  /* Si quieres mismo comportamiento 1,5 cards en POIs, deja 80–85vw; si ya te gusta, puedes omitir esto */
  .cicerone-carousel.pois-carousel .cicerone-card {
    flex: 0 0 80vw !important;
    max-width: 80vw !important;
    scroll-snap-align: start;
    display: block;
  }

  .cicerone-carousel.pois-carousel .card-image-wrapper {
    width: 100%;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
  }
  .cicerone-carousel.pois-carousel .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
/* =========================
 * AGENDA (calendario) – MOBILE
 * ========================= */
@media (max-width: 768px) {

  /* 1) Ocultar flechas de navegación de la agenda */
  .cicerone-calendar-container .cicerone-events-nav-wrapper {
    display: none !important;
  }

  /* 2) Carrusel horizontal con ~1,5 tarjetas visibles */
  .cicerone-calendar-container #event-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .cicerone-calendar-container .event-card-image {
    height: 100%;
  }
  .cicerone-calendar-container #event-cards::-webkit-scrollbar {
    display: none;
  }

  /* Cada tarjeta de evento de la agenda */
  .cicerone-calendar-container .agenda-event-card {
    scroll-snap-align: start;
    min-width: 82%;
    max-width: 82%;
  }
}
/* =========================================
 * MOBILE: Bloque Sitios [cicerone_all_content]
 * ========================================= */
@media (max-width: 768px) {

  /* Contenedor general de "Places" */
  .cicerone-places {
    padding: 24px 16px 32px;
  }

  /* Cada categoría (Adventure, Nature, etc.) */
  .places-category-block {
    margin-bottom: 32px;
  }

  /* Título + flecha a la derecha, ya lo tienes, sólo ajustamos un poco */
  .places-category-header {
    margin-bottom: 12px;
    margin-left: -15px;
  }

  /* Tira de cards: 1 columna en móvil */
  .places-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Card de sitio: ancho completo */
  .places-strip .place-card {
    min-width: 0;
    max-width: 100%;
  }

  .place-card-link {
    display: block;
    height: 100%;
  }

  /* Imagen a altura fija y recortada (como en desktop, pero adaptado a móvil) */
  .place-card-thumb {
    width: 100%;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
  }

  .place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Texto de la card */
  .place-card-body {
    padding-top: 10px;
  }

  .place-card-title {
    margin: 0 0 4px;
  }

  /* Botón inferior "Ver todos 'Categoria'" a ancho completo */
  .places-category-footer {
    margin-top: 8px;
  }

  .places-category-more {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    padding: 10px 16px;
    box-sizing: border-box;
    background-color: #ffffff;
    font-weight: 500;
    text-decoration: none;
  }

  .places-category-more:hover,
  .places-category-more:focus-visible {
    color: #ffffff;
  }
}
/* ============================
 * MOBILE: Places (cicerone_all_content)
 * ============================ */
@media (max-width: 768px) {

  /* Grid 1 columna en móvil */
  .cicerone-places .places-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .cicerone-places .places-strip .place-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .cicerone-places .places-strip .place-card-link {
    display: block !important;
    height: 100%;
  }

  /* Imagen bien recortada a altura fija */
  .cicerone-places .place-card-thumb {
    width: 100% !important;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
  }

  .cicerone-places .place-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }
.cicerone-places-header{
    flex-direction: column;
     margin-left: -15px;
 }
  /* Un poco de aire en el texto */
  .cicerone-places .place-card-body {
    padding-top: 10px;
  }
}
/* =====================================
 * MOBILE – Singles (POI, Events, Rutas)
 * Quitar flechas de la galería principal
 * y de los carruseles de sitios recomendados
 * ===================================== */
@media (max-width: 768px) {

  /* 1) Flechas de la galería principal (por si usan slider prev/next) */
  .single-punto_de_interes .slider-prev,
  .single-punto_de_interes .slider-next,
  .single-cicerone-events .slider-prev,
  .single-rutas_recomendadas .slider-prev,
  .single-rutas_recomendadas .slider-next,
  .single-cicerone-events .slider-next {
    display: none !important;
  }

  /* 2) Flechas de carruseles dentro de los singles
        (sitios recomendados / otros bloques) */
  .single-punto_de_interes .cicerone-carousel .go-left,
  .single-punto_de_interes .cicerone-carousel .go-right,
  .single-cicerone-events .cicerone-carousel .go-left,
  .single-cicerone-events .cicerone-carousel .go-right,
  .single-rutas_recomendadas .cicerone-carousel .go-left,
  .single-rutas_recomendadas .cicerone-carousel .go-right {
    display: none !important;
  }
.detail-card.detail-card-schedule, .cicerone-detail-right .detail-card {padding: 0px;}
.detail-tag-pill{
    width: 100%;
}
}
/* =====================================
 * MOBILE – Single POI / Event / Route
 * Imagen principal full-width + sin flechas
 * ===================================== */
@media (max-width: 768px) {

  /* Ocultar flechas */
  .single-punto_de_interes .cicerone-gallery-nav,
  .single-cicerone-events .cicerone-gallery-nav,
  .single-rutas_recomendadas .cicerone-gallery-nav,
  /* Por si tus flechas llevan estas clases */
  .single-punto_de_interes .go-left,
  .single-punto_de_interes .go-right,
  .single-cicerone-events .go-left,
  .single-cicerone-events .go-right,
  .single-rutas_recomendadas .go-left,
  .single-rutas_recomendadas .go-right, .cicerone-detail-gallery-arrows {
    display: none !important;
  }

  /* Contenedor que envuelve la imagen principal */
  .single-punto_de_interes .cicerone-single-main-image,
  .single-cicerone-events .cicerone-single-main-image,
  .single-rutas_recomendadas .cicerone-single-main-image {
    margin: 0 -16px; /* Expande hasta los bordes del móvil */
    width: calc(100% + 32px);
  }

  /* Imagen principal */
  .single-punto_de_interes .cicerone-single-main-image img,
  .single-cicerone-events .cicerone-single-main-image img,
  .single-rutas_recomendadas .cicerone-single-main-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 18px;
    object-fit: cover;
    display: block;
  }

  /* Por si la imagen estaba en un wrapper con medidas fijas */
  .single-punto_de_interes .cicerone-image-wrapper,
  .single-cicerone-events .cicerone-image-wrapper,
  .single-rutas_recomendadas .cicerone-image-wrapper {
    width: 100% !important;
    height: auto !important;
  }
  .cicerone-detail-gallery-item{
    min-width: calc(100% - -10px);
  }
}
/* ===== CLIENTS LIST (multi home) ===== */

.cicerone-clients-carousel{
  position: relative;
  width: 100%;
}

/* sin flechas */
.cicerone-clients-carousel .go-left,
.cicerone-clients-carousel .go-right{
  display: none !important;
}

/* viewport */
.cicerone-clients-carousel .clients-viewport{
  width: 100%;
}

/* tarjeta */
.cicerone-clients-carousel .cicerone-client-card{
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  height: var(--client-card-h, 448px); /* ALTURA FIJA */
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transform: translateZ(0);
}
.cicerone-clients-carousel .cicerone-client-card .client-title{
    font-size: 24px;
    font-weight: 700;
}
/* overlay inferior (siempre, como tu degradado) */
.cicerone-clients-carousel .cicerone-client-card::after{
  content: "";
  position: absolute;
  inset: 0;
      background: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.8) 40%, 
        rgba(0, 0, 0, 0) 60%
    );
	transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* Overlay por defecto (opaco) */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.60);
  opacity: 1;                 /* <-- por defecto ON */
  transition: opacity .18s ease;
  pointer-events:none;
  z-index: 1;
}
/* Hover: gradiente más intenso según la imagen */
.cicerone-client-card:hover::after {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 1)   0%,   /* 100% negro */
        rgba(0, 0, 0, 0.6) 30%,  /* 60% negro al 70% */
        rgba(0, 0, 0, 0)   80%   /* 0% negro al 20% */
    );
}
.cicerone-clients-carousel .client-title{
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}


/* En hover se quita (desktop) */
@media (hover:hover){
  .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card:hover::before{
    opacity: 0;
  }
}

/* En touch no hay hover: lo dejamos visible */
@media (hover:none){
  .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::before{
    opacity: 1;
  }
}

/* ===== GRID MODE (1..4) ===== */
.cicerone-clients-carousel.is-grid{
  --client-card-h: 448px;
}
.cicerone-clients-carousel.is-grid .clients-grid{
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
}

/* ===== SCROLL MODE (>4) ===== */
.cicerone-clients-carousel.is-scroll{
  --client-card-h: 448px;
  --clients-visible: 5;  /* cambia a 5 si quieres 5 completas */
  --client-gap: 32px;
}

.cicerone-clients-carousel.is-scroll .clients-viewport{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cicerone-clients-carousel.is-scroll .clients-viewport::-webkit-scrollbar{
  display: none;
}

.cicerone-clients-carousel.is-scroll .clients-grid{
  display: grid;
  grid-auto-flow: column;
  gap: var(--client-gap);
  align-items: stretch;

  /* ancho dinámico para que SIEMPRE se vean 4.5/5 tarjetas */
  grid-auto-columns: calc(
    (100% - (var(--client-gap) * (var(--clients-visible) - 1)))
    / var(--clients-visible)
  );
}

/* snap */
.cicerone-clients-carousel.is-scroll .cicerone-client-card{
  scroll-snap-align: start;
}

/* responsive */
@media (max-width: 900px){
  .cicerone-clients-carousel.is-scroll{ --clients-visible: 2.2; }
}
@media (max-width: 520px){
  .cicerone-clients-carousel.is-scroll{ --clients-visible: 1.25; }
}

/* ===== FORCE CLIENTS CAROUSEL WIDTH + DYNAMIC COLUMNS (override) ===== */
.elementor-shortcode .cicerone-clients-carousel,
.elementor-shortcode .cicerone-clients-carousel .clients-viewport,
.elementor-shortcode .cicerone-clients-carousel .clients-grid{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.elementor-shortcode .cicerone-clients-carousel .clients-viewport{
  display: block !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.elementor-shortcode .cicerone-clients-carousel .clients-viewport::-webkit-scrollbar{
  display: none; /* Chrome/Safari */
}

/* Altura fija */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card{
  height: 448px !important;
  min-height: 448px !important;
}

/* MODO SCROLL: columnas dinámicas sí o sí */
.elementor-shortcode .cicerone-clients-carousel.is-scroll{
  --clients-visible: 5; /* o 5 */
  --client-gap: 32px;
}
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-grid{
  display: grid !important;
  grid-auto-flow: column !important;
  gap: var(--client-gap) !important;
  align-items: stretch !important;

  /* esto es lo clave: si estaba "encogido", aquí se corrige */
  grid-auto-columns: calc(
    (100% - (var(--client-gap) * (var(--clients-visible) - 1)))
    / var(--clients-visible)
  ) !important;

  /* por si algún CSS lo centraba */
  justify-content: start !important;
  justify-items: stretch !important;
}

/* Por si algún CSS global les mete width fijo a los <a> */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .cicerone-client-card{
  width: auto !important;
}

/* Responsive */
@media (max-width: 900px){
  .elementor-shortcode .cicerone-clients-carousel.is-scroll{ --clients-visible: 2.2; }
  .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card{
    height: 210px !important;
    min-height: 210px !important;
  }
}
@media (max-width: 520px){
  .elementor-shortcode .cicerone-clients-carousel.is-scroll{ --clients-visible: 1.25; }
}
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport{
  cursor: grab;
}
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport:active{
  cursor: grabbing;
}
/* Header título */
.cicerone-clients-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 0 0 14px;
}
.cicerone-clients-title{
  margin:0;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  color: var(--main-color) !important;
}
.cicerone-clients-title-icon{
  color: var(--main-color) !important;
  flex: 0 0 auto;
}
.cicerone-clients-header svg {
      color: var(--main-color) !important;
}/* El overlay nunca debe capturar clic */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::before,
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::after{
  pointer-events: none !important;
}

/* Asegura que el link está por encima */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card{
  position: relative;
  z-index: 1;
}

/* Y el texto también */
.elementor-shortcode .cicerone-clients-carousel .client-overlay{
  position: absolute;
  z-index: 3;
  pointer-events: none; /* el texto no bloquea el click */
}
/* ================================
   MEJORAS PARA CARRUSEL DE CLIENTES
================================ */

/* Cursor durante el drag */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport {
    cursor: grab;
}

.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport:active {
    cursor: grabbing;
}

.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging {
    cursor: grabbing !important;
    user-select: none;
}

/* Prevenir selección de texto durante el drag */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Los enlaces deben ser clickables */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
    pointer-events: auto;
    cursor: pointer;
}

/* Durante el drag, cambiar cursor en los enlaces también */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging .cicerone-client-card {
    cursor: grabbing !important;
    pointer-events: none;
}

/* Asegurar que el overlay no bloquea clicks */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::before,
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::after,
.elementor-shortcode .cicerone-clients-carousel .client-overlay {
    pointer-events: none !important;
}

/* Feedback visual sutil durante el drag */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging .cicerone-client-card {
    opacity: 0.9;
    transition: opacity 0.1s ease;
}

/* Restablecer cuando no está en drag */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport:not(.is-dragging) .cicerone-client-card {
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ================================
   MEJORAS PARA CARRUSEL DE CLIENTES
================================ */

/* Scroll suave con transición */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport {
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}

.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport:active {
    cursor: grabbing;
}

/* Durante el drag, quitar el scroll suave para que sea inmediato */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging {
    cursor: grabbing !important;
    user-select: none;
    scroll-behavior: auto; /* Respuesta inmediata durante drag */
}

/* Prevenir selección de texto durante el drag */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Los enlaces deben ser clickables */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), /* Suave y con rebote */
                opacity 0.2s ease;
}

/* Durante el drag, NO cambiar pointer-events para permitir clicks */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging .cicerone-client-card {
    cursor: grabbing !important;
}

/* Asegurar que el overlay no bloquea clicks */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::before,
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::after,
.elementor-shortcode .cicerone-clients-carousel .client-overlay {
    pointer-events: none !important;
}

/* Feedback visual sutil durante el drag */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging .cicerone-client-card {
    opacity: 0.95;
}

/* Suavizar el snap scroll */
.cicerone-clients-carousel.is-scroll .clients-viewport {
    scroll-padding: 0 20px; /* Espacio al hacer snap */
}

/* Optimización para móvil */
@media (hover: none) and (pointer: coarse) {
    .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
        transition: opacity 0.2s ease; /* Solo opacity en móvil */
    }
    
    .elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport:not(.is-dragging) .cicerone-client-card:active {
        opacity: 0.9;
    }
}
/* ================================
   MEJORAS PARA CARRUSEL DE CLIENTES
================================ */

/* Scroll suave con transición */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport {
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}

.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport:active {
    cursor: grabbing;
}

/* Durante el drag, quitar el scroll suave para que sea inmediato */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging {
    cursor: grabbing !important;
    user-select: none;
    scroll-behavior: auto; /* Respuesta inmediata durante drag */
}

/* Prevenir selección de texto durante el drag */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Los enlaces deben ser clickables */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), /* Suave y con rebote */
                opacity 0.2s ease;
}

/* Durante el drag, NO cambiar pointer-events para permitir clicks */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging .cicerone-client-card {
    cursor: grabbing !important;
}

/* Asegurar que el overlay no bloquea clicks */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::before,
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::after,
.elementor-shortcode .cicerone-clients-carousel .client-overlay {
    pointer-events: none !important;
}

/* Feedback visual sutil durante el drag */
.elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport.is-dragging .cicerone-client-card {
    opacity: 0.95;
}

/* Suavizar el snap scroll */
.cicerone-clients-carousel.is-scroll .clients-viewport {
    scroll-padding: 0 20px; /* Espacio al hacer snap */
}

/* Optimización para móvil */
@media (hover: none) and (pointer: coarse) {
    .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
        transition: opacity 0.2s ease; /* Solo opacity en móvil */
    }
    
    .elementor-shortcode .cicerone-clients-carousel.is-scroll .clients-viewport:not(.is-dragging) .cicerone-client-card:active {
        opacity: 0.9;
    }
}
@media (min-width: 1200px){
  :root{ --site-gutter: 128px; }

  /* Este suele ser el culpable: limita a 1200px */
  .cicerone-carousel,
  .cicerone-places,
  .cicerone-calendar-container{
    max-width: calc(100% - (var(--site-gutter) * 2)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}
@media (min-width: 1200px){
  /* Evita doble centrado por wrappers internos típicos */
  .cicerone-carousel .elementor-container,
  .cicerone-places .elementor-container,
  .cicerone-calendar-container .elementor-container,
  .cicerone-carousel .container,
  .cicerone-places .container,
  .cicerone-calendar-container .container{
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
.place-card {
	min-width: 0;
}
.cic-exp-modal__panel{
	display:none;
}

@media (min-width: 1200px){
  :root{ --cicerone-gutter: 128px; }

  /* 1) Liberar el contenedor del theme para estas fichas */
  body.single-punto_de_interes .site-content,
  body.single-punto_de_interes .content-area,
  body.single-punto_de_interes .entry-content,
  body.single-punto_de_interes .elementor,
  body.single-punto_de_interes .elementor-section-wrap{
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* 2) Ahora sí: margen 128 dentro de tu layout */
  body.single-punto_de_interes .cicerone-detail-page{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--cicerone-gutter) !important;
    padding-right: var(--cicerone-gutter) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* 3) Evitar que algún hijo vuelva a auto-centrarse a 1200 */
  body.single-punto_de_interes .cicerone-detail-page .cicerone-carousel,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-header,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-hero,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-main,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-tags,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-recommended{
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
.cicerone-detail-recommended .place-card {
	max-width: 256px;
}
/* ===========================
   HERO / GALERÍA (fichas)
   - Máximo alto: 512px
   - Aprovecha ancho disponible
   =========================== */

/* Alto responsive con tope 512 */
@media (min-width: 1200px){
  .cicerone-detail-hero .cicerone-detail-gallery{
    /* min 320, crece según viewport, max 512 */
    height: clamp(320px, 38vw, 512px);
    max-height: 512px;
  }
}

@media (max-width: 1199px){
  .cicerone-detail-hero .cicerone-detail-gallery{
    height: clamp(240px, 52vw, 460px);
    max-height: 460px;
  }
}

/* La galería como "marco" */
.cicerone-detail-hero .cicerone-detail-gallery{
  width: 100%;
  overflow: hidden;
  border-radius: 18px; /* ajusta si tu diseño usa otro radio */
  display: grid;
  gap: 16px;
}

/* Imágenes siempre bien encajadas */
.cicerone-detail-hero .cicerone-detail-gallery-item,
.cicerone-detail-hero .cicerone-detail-gallery-item img{
  width: 100%;
  height: 100%;
}

.cicerone-detail-hero .cicerone-detail-gallery-item img{
  object-fit: cover;
  display: block;
}

/* === Caso 2 imágenes: 50/50 como tu 2ª captura === */
@media (min-width: 1200px){
  .cicerone-detail-hero .cicerone-detail-gallery[data-images-count="2"]{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .cicerone-detail-hero .cicerone-detail-gallery[data-images-count="2"] .is-main{
    grid-column: 1;
    grid-row: 1;
  }
  .cicerone-detail-hero .cicerone-detail-gallery[data-images-count="2"] .is-side-top{
    grid-column: 2;
    grid-row: 1;
  }
}

/* === Caso 1 imagen: ocupa todo === */
.cicerone-detail-hero .cicerone-detail-gallery[data-images-count="1"]{
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

/* === Caso 3+ imágenes: main grande + columna lateral (2 filas) === */
@media (min-width: 1200px){
  .cicerone-detail-hero .cicerone-detail-gallery:not([data-images-count="1"]):not([data-images-count="2"]){
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .cicerone-detail-hero .cicerone-detail-gallery:not([data-images-count="1"]):not([data-images-count="2"]) .is-main{
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .cicerone-detail-hero .cicerone-detail-gallery:not([data-images-count="1"]):not([data-images-count="2"]) .is-side-top{
    grid-column: 2;
    grid-row: 1;
  }

  .cicerone-detail-hero .cicerone-detail-gallery:not([data-images-count="1"]):not([data-images-count="2"]) .is-side-bottom{
    grid-column: 2;
    grid-row: 2;
  }

  /* Extras, si existieran, los ocultamos en hero para no romper layout */
  .cicerone-detail-hero .cicerone-detail-gallery .is-extra{
    display: none;
  }
}
/* FIX: hueco raro entre imágenes en hero (2 imágenes) */
@media (min-width: 1200px){
  .cicerone-detail-hero .cicerone-detail-gallery[data-images-count="2"]{
    display: grid !important;                  /* pisa posibles flex previos */
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-rows: 1fr;
    gap: 24px;                                 /* separación “normal” */
    justify-content: stretch !important;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .cicerone-detail-hero .cicerone-detail-gallery[data-images-count="2"] .cicerone-detail-gallery-item{
    width: 100%;
    max-width: none !important;                /* evita encogidos */
    min-width: 0;                              /* clave en grid/flex */
  }

  .cicerone-detail-hero .cicerone-detail-gallery[data-images-count="2"] img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
/* =========================
   HERO = carrusel horizontal
   mismas fotos, mismo tamaño
   max 896x512
   ========================= */

/* (opcional) margen lateral general: 128px en desktop */
@media (min-width: 1200px){
  .cicerone-detail-page{
    padding-left: 128px;
    padding-right: 128px;
    box-sizing: border-box;
  }
}

/* Track horizontal */
.cicerone-detail-hero .cicerone-detail-gallery{
  display: flex !important;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* importante para que no “reparta” huecos raros */
  justify-content: flex-start !important;
  align-items: stretch;

  /* opcional: ocultar scrollbar */
  scrollbar-width: none;
}
.cicerone-detail-hero .cicerone-detail-gallery::-webkit-scrollbar{ display:none; }

/* Cada slide = mismo tamaño (responsive con límite) */
.cicerone-detail-hero .cicerone-detail-gallery .cicerone-detail-gallery-item{
  /* ancho: lo máximo posible pero sin pasar de 896 */
  width: min(896px, calc(100vw - 256px));
  flex: 0 0 min(896px, calc(100vw - 256px));

  /* alto: máximo 512 (si no cabe en móvil, baja proporcional) */
  height: min(512px, calc((100vw - 256px) * 0.5714)); /* 512/896 ≈ 0.5714 */

  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;

  /* por si alguna regla previa mete max-width */
  max-width: none !important;
  min-width: 0;
}

/* Imagen siempre cubriendo el bloque */
.cicerone-detail-hero .cicerone-detail-gallery .cicerone-detail-gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* En móviles: sin padding gigante y con altura razonable */
@media (max-width: 1199px){
  .cicerone-detail-page{
    padding-left: 16px;
    padding-right: 16px;
  }

  .cicerone-detail-hero .cicerone-detail-gallery .cicerone-detail-gallery-item{
    width: 92vw;
    flex-basis: 92vw;
    height: 56vw; /* mantiene sensación de “hero” */
    border-radius: 16px;
  }
}
@media (min-width: 1200px) {
    .cicerone-detail-hero .cicerone-detail-gallery[data-images-count="2"] {
        gap: 8px;
    }
}
.cicerone-search-page {
	max-width:none;
}
/* BUSCADOR: solo cuando existe el bloque de búsqueda */
body .elementor-element-b7cff68:has(.cicerone-search-page){
  padding-top: 0 !important;
  padding-left: 0 !important;
	padding-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  gap: 0 !important;
  min-height: 0 !important;
}

/* ===== Categorías: layout fullwidth con padding lateral fijo ===== */
.cicerone-list-category{
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}
.cicerone-list-category .cicerone-filters {
	margin-left:128px;
}
/* overlay inferior (degradado 60% -> 100%) */
.cicerone-clients-carousel .cicerone-client-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,.62) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* quitar overlay sólido que metía Elementor */
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: transparent !important;
  opacity: 0 !important;
}
/* CTA hover: "Ir a la página completa" */
.client-cta{
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255,255,255,0.92);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none; /* para que no estorbe al click del <a> */
}

.cicerone-client-card:hover .client-cta,
.cicerone-client-card:focus-visible .client-cta{
  opacity: 1;
  transform: translateY(0);
}

.client-cta-arrow{
  font-size: 18px;
  line-height: 1;
  opacity: .9;
}
/* Overlay: oculto por defecto */
.client-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: 24px; /* ajusta al radio de la card si es distinto */
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none; /* no rompe el click del <a> */
}

/* Solo aparece al pasar el ratón */
.cicerone-client-card:hover .client-overlay,
.cicerone-client-card:focus-within .client-overlay{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Título + flecha ">" */
.client-title{
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.client-title-arrow{
  font-size: 22px;
  line-height: 1;
  opacity: .95;
}

/* "Ir a la página completa" subrayado */
.client-cta{
  margin: 6px 0 0;
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 500;
}
/* Overlay oscuro SIEMPRE (sin depender de .elementor-shortcode) */
.cicerone-clients-carousel .cicerone-client-card{
  position: relative;
  overflow: hidden;          /* importante: que el overlay recorte al borde */
  isolation: isolate;        /* crea stacking context limpio */
}

/* degradado inferior (tu ::after) */
.cicerone-clients-carousel .cicerone-client-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 1;
}

/* overlay oscuro (tu ::before) */
.cicerone-clients-carousel .cicerone-client-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.60);
  opacity: 1;
  transition: opacity .18s ease;
  pointer-events:none;
  z-index: 2;               /* por encima del degradado */
}

/* Hover desktop: se quita el oscuro */
@media (hover:hover){
  .cicerone-clients-carousel .cicerone-client-card:hover::before{
    opacity: 0;
  }
}

/* Touch: se queda visible */
@media (hover:none){
  .cicerone-clients-carousel .cicerone-client-card::before{
    opacity: 1;
  }
}
/* Card base */
.cicerone-clients-carousel .cicerone-client-card{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Degradado: oculto por defecto */
.cicerone-clients-carousel .cicerone-client-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.72) 100%
  );
  opacity: 0;
  transition: opacity .18s ease;
}

/* Solo aparece al hover/focus */
@media (hover:hover){
  .cicerone-clients-carousel .cicerone-client-card:hover::after,
  .cicerone-clients-carousel .cicerone-client-card:focus-within::after{
    opacity: 1;
  }
}

/* Si tienes overlay sólido, que no lo tape (o bájale opacidad) */
.cicerone-clients-carousel .cicerone-client-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.60);
  opacity: 0;               /* <-- por defecto apagado */
  pointer-events:none;
  z-index: 2;               /* si lo quieres usar, que sea encima */
  transition: opacity .18s ease;
}

/* Ejemplo: si quieres oscuro SOLO en hover (opcional) */
@media (hover:hover){
  .cicerone-clients-carousel .cicerone-client-card:hover::before{
    opacity: 0;             /* o 0.2 si quieres sumar un poco de oscuro */
  }
}

/* Hover: el título sube un poco */
@media (hover:hover){
  .cicerone-clients-carousel .cicerone-client-card:hover .client-title,
  .cicerone-clients-carousel .cicerone-client-card:focus-within .client-title{
    transform: translateY(-6px);
  }
}
@media (min-width: 1441px){
  .cicerone-places .places-strip{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 16px;
    row-gap: 32px;
    max-width: 1760px;   /* tope ultra-wide */
    margin-left: auto;
    margin-right: auto;
  }
.cicerone-places .places-strip:not(.places-flat-grid) .place-card:nth-child(n+9) {
    display: none !important;
}
  .cicerone-places .places-strip .place-card{
    width: 100%;
    max-width: none;
  }
}
/* Flecha: presente pero oculta (no “aparece de golpe”) */
.client-title-arrow{
  display: inline-block;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}

/* Mostrar flecha con transición */
@media (hover:hover){
  .cicerone-clients-carousel .cicerone-client-card:hover .client-title-arrow,
  .cicerone-clients-carousel .cicerone-client-card:focus-within .client-title-arrow{
    opacity: .95;
    transform: translateX(0);
  }
}
/* <1608px: mostrar solo 8 para mantener 2 filas de 4 */
@media (max-width: 1607px){
.cicerone-places .places-strip:not(.places-flat-grid) .place-card:nth-child(n+9) {
    display: none !important;
}
}
/* PLACES: 4 columnas fluidas >=1608px */
@media (min-width: 1608px){
  .cicerone-places .places-strip{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 18px;
    row-gap: 28px;
  }

  .cicerone-places .places-strip .place-card{
    width: 100%;
    max-width: 100%;
  }
}
/* PLACES: 4 columnas fluidas >=1800px */
@media (min-width: 1800px){
  .cicerone-search-page .cicerone-places .places-strip{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 18px;
    row-gap: 28px;
  }
  .cicerone-search-page .cicerone-places .places-strip .place-card{
    width: 100%;
    max-width: 100%;
  }
}
@media (min-width: 1200px){
  :root{ --cicerone-gutter: 128px; }

  /* 1) Libera wrappers del theme/elementor en cualquier ficha Cicerone */
  body.single .site-content,
  body.single .content-area,
  body.single .entry-content,
  body.single .elementor,
  body.single .elementor-section-wrap{
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* 2) Gutter fijo dentro del layout Cicerone (POI/EVENT/ROUTE) */
  .cicerone-detail-page{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--cicerone-gutter) !important;
    padding-right: var(--cicerone-gutter) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}
.cicerone-search-page {
    max-width: none!important;
	    margin: -1rem auto;
    padding: 0 1rem 3rem;
}
.cicerone-carousel.recommended-carousel {
    padding: 0px;
    margin: 0px !important;
}
/* ✅ Pantallas grandes: 5 columnas */
@media (min-width: 1400px){
  .cicerone-list-category .cicerone-items-wrapper{
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ✅ Muy grandes: 6 columnas */
@media (min-width: 1800px){
  .cicerone-list-category .cicerone-items-wrapper{
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ✅ Ultra grandes: no lo hagas infinito; céntralo con un max-width */
@media (min-width: 1400px){
  .cicerone-list-category{
    max-width: 1760px;   /* ajusta a tu gusto */
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
}
.cicerone-list-category .cicerone-items-wrapper .place-card,
.cicerone-list-category .cicerone-items-wrapper .cicerone-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
}

.cicerone-list-category .cicerone-items-wrapper .place-card-thumb,
.cicerone-list-category .cicerone-items-wrapper .card-image-wrapper {
    width: 100% !important;
    height: 70% !important;
    aspect-ratio: unset !important;
}
/* =====================================================
   TAXONOMY – forzar grid en .cicerone-items-wrapper
   Neutraliza cualquier regla de flex/height del tema
   que interfiera con el layout de cuadrícula.
   ===================================================== */

/* 1) El wrapper SIEMPRE es grid */
.cicerone-list-category .cicerone-items-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: 250px !important;
    gap: 40px !important;
}

/* 2) Dentro del grid, flex y width fijos no aplican:
      lo forzamos por si el tema pisa con !important */
.cicerone-list-category .cicerone-items-wrapper .place-card,
.cicerone-list-category .cicerone-items-wrapper .cicerone-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
}

/* 3) Thumbnail ocupa el 70% del alto de la celda */
.cicerone-list-category .cicerone-items-wrapper .place-card-thumb {
    width: 100% !important;
    height: 70% !important;
    aspect-ratio: unset !important;
    border-radius: 8px;
    overflow: hidden;
}

/* 4) Responsive – sobreescribir columnas */
@media (max-width: 1400px) {
    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}
@media (max-width: 1200px) {
    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 1024px) {
    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: 250px !important;
    }
}
@media (max-width: 768px) {
    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 220px !important;
        gap: 20px !important;
    }
}
@media (max-width: 480px) {
    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 200px !important;
    }
}
.ekit-widget-area-container .lang-fab .flag-panel
 {
    left: 0px;
}

/* ===== GRADIENTES CARDS DE CLIENTES ===== */

/* Normal: degradado de 60% a 100%, de abajo a arriba */
.cicerone-clients-carousel .cicerone-client-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4)  40%,
        rgba(0, 0, 0, 0)    60%
    ) !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

/* Hover: gradiente más extendido según la imagen de referencia */
@media (hover: hover) {
    .cicerone-clients-carousel .cicerone-client-card:hover::after {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 1)   0%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0)   100%
        ) !important;
    }
}

/* ::before: siempre transparente */
.cicerone-clients-carousel .cicerone-client-card::before {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* El overlay de texto siempre por encima */
.cicerone-clients-carousel .client-overlay {
    z-index: 3;
}
/* ===== FIX POSICIÓN TEXTO CARDS CLIENTES ===== */

/* Overlay siempre al fondo, sin transición de posición */
.cicerone-clients-carousel .client-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  /* ancla al fondo */
    padding: 18px;
    z-index: 3;
    pointer-events: none;
}

/* Título: siempre en la línea base, transición solo hacia arriba en hover */
.cicerone-clients-carousel .client-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    transform: translateY(0);
    transition: transform 0.25s ease;
    will-change: transform;
}

/* CTA: oculto debajo de la línea base, sin ocupar espacio */
.cicerone-clients-carousel .client-cta {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
    pointer-events: none;
}

/* HOVER: título sube, CTA aparece en la línea base */
@media (hover: hover) {
    .cicerone-clients-carousel .cicerone-client-card:hover .client-title {
        transform: translateY(-14px);
    }

    .cicerone-clients-carousel .cicerone-client-card:hover .client-cta {
        max-height: 28px;
        opacity: 1;
		margin-bottom: 4px;
    }
}

/* Touch: solo título visible, sin hover */
@media (hover: none) {
    .cicerone-clients-carousel .client-cta {
        display: none;
    }
}
/* ===== ASPECT RATIO Y TAMAÑO CARDS CLIENTES (Figma) ===== */

/* Resetear altura fija previa */
.cicerone-clients-carousel .cicerone-client-card,
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
    height: auto !important;
    min-height: 329px !important;
    aspect-ratio: 8 / 15 !important;
    border-radius: 16px !important;
}

/* Grid mode: fill width según número de columnas */
.cicerone-clients-carousel.is-grid .clients-grid {
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)) !important;
    align-items: stretch;
}

/* Scroll mode: 4 cards + media quinta visible */
.cicerone-clients-carousel.is-scroll {
    --clients-visible: 4.5 !important;
}

.elementor-shortcode .cicerone-clients-carousel.is-scroll {
    --clients-visible: 4.5 !important;
}

/* La imagen de fondo cubre toda la card */
.cicerone-clients-carousel .cicerone-client-card {
    background-size: cover !important;
    background-position: center !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .cicerone-clients-carousel.is-scroll {
        --clients-visible: 3.5 !important;
    }
}

@media (max-width: 900px) {
    .cicerone-clients-carousel.is-scroll,
    .elementor-shortcode .cicerone-clients-carousel.is-scroll {
        --clients-visible: 2.5 !important;
    }
    .cicerone-clients-carousel .cicerone-client-card,
    .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
        min-height: 240px !important;
    }
}

@media (max-width: 520px) {
    .cicerone-clients-carousel.is-scroll,
    .elementor-shortcode .cicerone-clients-carousel.is-scroll {
        --clients-visible: 1.3 !important;
    }
}
/* ===== TAMAÑO CARDS CLIENTES (Figma) - FIX ALTURA ===== */

.cicerone-clients-carousel .cicerone-client-card,
.elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
    height: 448px !important;
    min-height: 329px !important;
    aspect-ratio: unset !important;  /* quitamos el aspect-ratio, altura fija manda */
    border-radius: 16px !important;
}

/* Responsive */
@media (max-width: 900px) {
    .cicerone-clients-carousel .cicerone-client-card,
    .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
        height: 329px !important;
        min-height: 240px !important;
    }
}

@media (max-width: 520px) {
    .cicerone-clients-carousel .cicerone-client-card,
    .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
        height: 280px !important;
        min-height: 200px !important;
    }
}
/* ===== FIX CARDS CLIENTES ~1020px ===== */

@media (max-width: 1100px) {
    /* Grid mode: bajar a 3 columnas */
    .cicerone-clients-carousel.is-grid .clients-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    /* Scroll mode: mostrar 3 cards + media */
    .cicerone-clients-carousel.is-scroll,
    .elementor-shortcode .cicerone-clients-carousel.is-scroll {
        --clients-visible: 3.3 !important;
    }

    /* Altura un poco menor para que no queden tan altas */
    .cicerone-clients-carousel .cicerone-client-card,
    .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
        height: 380px !important;
    }
}

@media (max-width: 768px) {
    .cicerone-clients-carousel.is-grid .clients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cicerone-clients-carousel.is-scroll,
    .elementor-shortcode .cicerone-clients-carousel.is-scroll {
        --clients-visible: 2.3 !important;
    }

    .cicerone-clients-carousel .cicerone-client-card,
    .elementor-shortcode .cicerone-clients-carousel .cicerone-client-card {
        height: 329px !important;
    }
}