/* ==========================================================================
   TURISMO THEME - SINGLE PRODUCT PAGE CSS (ISOLATED SCOPE)
   ========================================================================== */

/* Scope de seguridad para que estos estilos SOLO afecten a la ficha de producto */
body.single-product,
body.tpl-single-product {
    background-color: var(--color-bg-dark) !important;
}

.tpl-single-product .container {
    max-width: 1160px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.tpl-single-product .product-header-container {
    padding-top: 96px !important;
    padding-bottom: 10px !important;
}

.tpl-single-product .product-single-layout {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 36px !important;
    align-items: start;
}

.tpl-single-product .product-gallery-column {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.tpl-single-product .tour-description-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(11, 41, 27, 0.08) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(11, 41, 27, 0.03) !important;
    margin-top: 25px;
    margin-bottom: 30px;
}

.tpl-single-product .product-summary-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 20px 18px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.tpl-single-product .product-summary-column {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    z-index: 10;
    transition: top 0.3s ease;
}

@media (min-width: 992px) {
    .tpl-single-product .product-summary-column {
        margin-bottom: 60px !important;
    }
}

/* ==========================================================================
   FORMULARIO DE COMPRA Y BOTÓN DE WHATSAPP EN SIDEBAR (EXTRAÍDO DE STYLE.CSS)
   ========================================================================== */
.woocommerce-cart-action-box form.cart {
    display: grid !important;
    grid-template-columns: 50% calc(50% - 10px) !important;
    gap: 12px 10px !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    align-items: end !important;
}

.turismo-datepicker-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.turismo-datepicker-label {
    display: block !important;
    margin: 0 0 6px 0 !important;
    font-size: 0.68rem !important;
    color: var(--color-text-muted) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-family: var(--font-heading) !important;
}

.woocommerce-cart-action-box .quantity {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
}

.turismo-quantity-nav {
    display: flex !important;
    align-items: center !important;
    border: 1px solid rgba(11, 41, 27, 0.15) !important;
    background: var(--color-bg-dark) !important;
    border-radius: var(--radius-sm) !important;
    height: 48px !important;
    width: 100% !important;
}

.qty-btn {
    width: 36px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--color-primary) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.woocommerce-cart-action-box .quantity input.qty {
    flex-grow: 1 !important;
    width: 30px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
}

/* El selector acepta <a> además de <button>: con las reservas online apagadas,
   el botón «Reservar» se renderiza como enlace a WhatsApp con estas mismas clases. */
.woocommerce-cart-action-box button.single_add_to_cart_button,
.woocommerce-cart-action-box a.single_add_to_cart_button {
    grid-column: 1 / -1 !important;
    /* Fila 3: la 2 queda reservada para el aviso de fecha obligatoria, que debe
       leerse entre los campos y la acción. Cuando no hay aviso la fila 2 no
       ocupa nada y el botón sube solo. */
    grid-row: 3 !important;
    width: 100% !important;
    height: 52px !important;
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    text-transform: uppercase !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
    /* Un <button> centra su texto y no lo subraya; un <a> necesita que se lo digan. */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.woocommerce-cart-action-box .turismo-whatsapp-booking-btn {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 52px !important;
    background-color: var(--color-whatsapp) !important;
    color: var(--color-white) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    text-transform: uppercase !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15) !important;
}

.woocommerce-cart-action-box .turismo-whatsapp-booking-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

/* Cuando «Reservar» lleva a WhatsApp conserva la forma del botón principal pero
   adopta el verde y el icono del resto de botones de WhatsApp del sitio, para que
   el color siga comunicando a dónde va el clic.
   Se usa 'background' y no 'background-color' porque la regla móvil pinta un
   degradado naranja que la forma larga no llegaría a reemplazar. */
.woocommerce-cart-action-box a.single_add_to_cart_button.turismo-reserva-whatsapp {
    gap: 10px !important;
    background: var(--color-whatsapp) !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15) !important;
}

.woocommerce-cart-action-box a.single_add_to_cart_button.turismo-reserva-whatsapp:hover {
    background: var(--color-whatsapp-hover) !important;
}

.woocommerce-cart-action-box a.single_add_to_cart_button.turismo-reserva-whatsapp svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

/* ==========================================================================
   BARRA STICKY INFERIOR PARA MÓVILES (EXTRAÍDA DE STYLE.CSS)
   ========================================================================== */
.turismo-sticky-mobile-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(253, 251, 247, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(11, 41, 27, 0.08) !important;
    box-shadow: 0 -8px 30px rgba(11, 41, 27, 0.06) !important;
    z-index: 9999 !important;
    padding: 10px 16px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block !important;
}

.turismo-sticky-mobile-bar.sticky-bar-hidden,
body:has(#btn-menu:checked) .turismo-sticky-mobile-bar {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
}

@media (min-width: 992px) {
    .turismo-sticky-mobile-bar {
        display: none !important;
    }
}

.sticky-bar-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.sticky-price-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.sticky-price-label {
    font-size: 0.62rem !important;
    color: var(--color-text-muted) !important;
    text-transform: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 2px !important;
    font-family: var(--font-heading) !important;
}

.sticky-price-values {
    line-height: 1.1 !important;
}

.sticky-price-values .price,
.sticky-price-values span.amount {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    color: var(--color-primary) !important;
}

.sticky-price-values del span.amount {
    font-size: 0.95rem !important;
    color: var(--color-text-muted) !important;
    text-decoration: line-through !important;
    font-weight: 600 !important;
    margin-right: 6px !important;
}

.sticky-price-values ins {
    text-decoration: none !important;
    background: none !important;
}

.sticky-price-values ins span.amount {
    color: var(--color-primary) !important;
}

.sticky-actions-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-sticky-continue {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    height: 44px !important;
    padding: 0 24px !important;
    border-radius: 50px !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
    text-decoration: none !important;
}

.btn-sticky-continue:hover {
    background-color: var(--color-accent-hover) !important;
    transform: translateY(-1px) !important;
}

.btn-sticky-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--color-whatsapp) !important;
    color: var(--color-white) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.18) !important;
    text-decoration: none !important;
}

.btn-sticky-whatsapp:hover {
    background-color: var(--color-whatsapp-hover) !important;
    transform: translateY(-1px) !important;
}

.btn-sticky-whatsapp svg {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
}

/* Con las reservas online apagadas este queda como único botón de la barra fija
   y hace de «Reservar»: deja de ser un icono circular y pasa a píldora con texto.
   Reutiliza la tipografía de .btn-sticky-continue para que ambos estados se vean igual. */
.sticky-actions-box.solo-whatsapp .btn-sticky-whatsapp {
    flex: 1 !important;
    width: auto !important;
    gap: 8px !important;
    padding: 0 24px !important;
    border-radius: 50px !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
}

@media (max-width: 991px) {
    body.single-product {
        padding-bottom: 72px !important;
    }
}

/* Responsivo para móviles */
@media (max-width: 991px) {
    .tpl-single-product .product-single-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important;
    }
}

/* ==========================================================================
   MEDIA HERO PREMIUM (Video 100% de Columna Izquierda + 4 Miniaturas Fina)
   ========================================================================== */
.tpl-single-product .tour-media-hero-single {
    width: 100%;
    margin-bottom: 10px;
}

.tpl-single-product .media-grid-featured-full {
    width: 100%;
    height: 330px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
}

.tpl-single-product .media-grid-featured-full .guide-video-container,
.tpl-single-product .media-grid-featured-full .guide-video-container iframe {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.tpl-single-product .media-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tpl-single-product .media-grid-featured-full a:hover .media-grid-img,
.tpl-single-product .media-grid-thumb-item a:hover .media-grid-img {
    transform: scale(1.05);
}

.tpl-single-product .media-grid-thumbs-row,
.media-grid-thumbs-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    height: 95px !important;
}

.badge-mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .tpl-single-product .media-grid-thumbs-row,
    .media-grid-thumbs-row {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        height: 80px !important;
    }
    .media-grid-thumb-item:nth-child(5) {
        display: none !important;
    }
    .badge-mobile-only {
        display: flex !important;
    }
    .badge-desktop-only {
        display: none !important;
    }
}

.tpl-single-product .media-grid-thumb-item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.tpl-single-product .media-grid-thumb-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Insignia de Vidrio "Ver todas (+N fotos)" */
.tpl-single-product .ver-todas-fotos-badge {
    position: absolute;
    inset: 0;
    background: rgba(0, 27, 54, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    padding: 4px;
    transition: var(--transition);
}

.tpl-single-product .ver-todas-fotos-badge:hover {
    background: rgba(0, 27, 54, 0.85);
}

/* ==========================================================================
   SECCIÓN ACERCA DE ESTA ACTIVIDAD / FAST FACTS (ESTÁNDAR PREMIUM)
   ========================================================================== */
.tpl-single-product .experiencia-detalles-box {
    margin-top: 25px;
    padding-top: 30px;
    margin-bottom: 35px;
    border-top: 1px solid #e2e8f0;
}

.tpl-single-product .experiencia-detalles-box:first-child,
.tpl-single-product .guide-content > .experiencia-detalles-box:first-child {
    margin-top: 0 !important;
    padding-top: 12px !important;
    border-top: none !important;
}

.tpl-single-product .experiencia-detalles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 32px !important;
}

.tpl-single-product .experiencia-detalle-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Píldora de Icono Suave (48px x 48px) con Degradado Esmeralda y Oro Sol */
.tpl-single-product .experiencia-detalle-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%) !important;
    border: none !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669 !important;
    transition: var(--transition);
}

.tpl-single-product .experiencia-detalle-content {
    display: flex;
    flex-direction: column;
    gap: 0px !important;
}

.tpl-single-product .experiencia-detalle-label {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #001b36 !important;
    display: block;
    line-height: 1.2 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: -0.015em !important;
}

.tpl-single-product .experiencia-detalle-val {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: #63687a !important;
    display: block;
    margin-top: 1px !important;
    line-height: 1.35 !important;
}

/* Botones de Acción (Compartir y Favoritos) */
.tpl-single-product .btn-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #001b36;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tpl-single-product .btn-action-pill:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #001b36;
    transform: translateY(-1px);
}

/* Modal de Compartir Multicanal */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 27, 54, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.share-modal-overlay.active .share-modal-content {
    transform: translateY(0);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.share-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #001b36;
    margin: 0;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #556274;
    cursor: pointer;
    line-height: 1;
}

.share-modal-sub {
    font-size: 0.84rem;
    color: #556274;
    margin-bottom: 18px;
}

.share-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #001b36;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-opt:hover {
    background: #edf2f7;
    border-color: #cbd5e1;
}

.opt-whatsapp { color: #25d366; }
.opt-facebook { color: #1877f2; }
.opt-telegram { color: #229ed9; }
.opt-twitter { color: #0f1419; }
.share-opt.opt-twitter:hover {
    background: #0f1419 !important;
    color: #ffffff !important;
    border-color: #0f1419 !important;
}
.opt-copy { grid-column: span 2; justify-content: center; background: #001b36; color: #ffffff; border: none; }
.opt-copy:hover { background: #05203c; color: #ffffff; }

/* ==========================================================================
   ESTRUCTURA DE SECCIONES ESTÁNDAR INTERNACIONAL (2 COLUMNAS + VER MÁS)
   ========================================================================== */
.tour-section-row {
    display: grid;
    grid-template-columns: 170px 1fr !important;
    gap: 28px !important;
    padding: 28px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    align-items: start;
}

.tour-section-row:last-child {
    border-bottom: none;
}

/* Homogeneizar H3 al mismo tamaño que H2 (16px / 1rem) Exclusivo para Single Product */
body.single-product .guide-content h3,
.tour-section-title h2,
.tour-section-title h3 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    color: #001b36 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

.tour-section-content,
.tour-section-content p,
.tour-section-content ul li,
.tour-section-content ol li,
.tour-section-content div,
.tour-text-wrapper,
.itinerario-resumen .resumen-lista li {
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    line-height: 1.55 !important;
}

.tour-section-content p {
    margin-top: 0;
    margin-bottom: 12px !important;
}

.tour-section-content p:last-child {
    margin-bottom: 0 !important;
}

.tour-section-content ul {
    margin: 0 !important;
    padding-left: 20px !important;
    list-style-type: disc !important;
}

.tour-section-content ul li {
    margin-bottom: 8px !important;
}

.tour-section-content ul li:last-child {
    margin-bottom: 0 !important;
}

.tour-section-content strong {
    color: #001b36 !important;
    font-weight: 700 !important;
}

/* Iconos Vectoriales Elegantes (Check Esmeralda Menta y Cruz Rosa) */
.tour-icon-check,

.tour-icon-check {
    background-color: rgba(16, 185, 129, 0.14) !important;
    color: #059669 !important;
}

/* Reproductor Responsivo de YouTube por Día en Itinerario */
.day-video-embed {
    position: relative !important;
    padding-bottom: 56.25% !important; /* Proporción HD 16:9 */
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 8px 24px -4px rgba(11, 41, 27, 0.12) !important;
    border: 1px solid rgba(11, 41, 27, 0.08) !important;
    background-color: #000000 !important;
}

.day-video-embed iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* Cabecera Estática por Día en el Itinerario */
.itinerario-card-day .card-day-header {
    cursor: default !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    user-select: text !important;
    transition: background 0.2s ease !important;
}

.itinerario-card-day .day-title {
    margin: 0 !important;
}

/* Ocultar píldoras de duración por día para optimizar espacio */

/* Ocultar píldoras de duración por día para optimizar espacio */

/* Línea divisoria inferior para la sección "Acerca de esta actividad" */
.experiencia-detalles-box {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 32px !important;
    margin-bottom: 0 !important;
}

/* Efecto Ver Más / Ver Menos con Degradado */
.tour-text-wrapper {
    display: flow-root;
}

.tour-collapsible-box.collapsed .tour-text-wrapper {
    max-height: var(--tour-collapsed-height, 85px);
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(180deg, #000 calc(100% - 50px), transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 50px), transparent 100%);
}

/* Abierto: sin tope ni animación (1.17.13). El tope de 2000 px solo servía para animar la altura. */
.tour-collapsible-box:not(.collapsed) .tour-text-wrapper {
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
}

/* «Ver más / Ver menos» (1.17.11): gris pizarra, sin subrayado y con flecha que gira al abrir. El verde se
   reserva para lo que se elige en la reserva; antes, negro, negrita y subrayado, pesaba más que el contenido. */
.tour-toggle-more-btn {
    background: none;
    border: none;
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    cursor: pointer;
    padding: 6px 0 0 0;
    margin-top: 4px !important;
    margin-bottom: 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.tour-toggle-more-btn::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.tour-collapsible-box:not(.collapsed) .tour-toggle-more-btn::after {
    transform: rotate(-135deg) translateY(-1px);
}

.tour-toggle-more-btn:hover {
    color: #0f172a !important;
}

@media (max-width: 768px) {
    .tpl-single-product .header-action-buttons {
        display: none !important;
    }

    .tpl-single-product .experiencia-detalles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .tour-section-row,
    .itinerario-resumen {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 16px 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .tour-section-row .tour-section-title.tour-mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding-bottom: 4px;
    }
    
    .tour-section-row .tour-mobile-icon {
        transition: transform 0.3s ease;
        color: #001b36;
        display: flex;
        align-items: center;
    }

    .tour-section-row .tour-mobile-icon svg {
        width: 22px !important;
        height: 22px !important;
        stroke-width: 2.8px !important;
    }
    
    .tour-section-row.mobile-closed .tour-section-content {
        display: none;
    }
    
    .tour-section-row.mobile-open .tour-mobile-icon {
        transform: rotate(180deg);
    }
}

@media (min-width: 769px) {
    .tour-section-row .tour-mobile-icon {
        display: none !important;
    }
}

/* El timeline detallado abarca el 100% de las 2 columnas al desplegarse */
.turismo-detailed-itinerary-wrapper {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 15px !important;
}

.turismo-detailed-itinerary-wrapper .detailed-itinerary-content {
    width: 100% !important;
    margin-top: 20px !important;
}

/* Estilo Copete Introductorio (15px Medium 500) */
.tour-short-description-hero,
.tour-short-description-hero p {
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    line-height: 1.55 !important;
    margin: 16px 0 12px 0 !important;
}

/* Homogeneidad Global de Etiquetas de Formulario */
.turismo-datepicker-label,
.turismo-quantity-label,
.quantity-label,
.product-summary-card label {
    font-family: var(--font-heading) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--color-text-muted) !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* Tarjeta de Garantías Oficiales (Global Web + Móvil) */
.turismo-trust-badges-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px 16px !important;
    background: rgba(16, 185, 129, 0.04) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(16, 185, 129, 0.16) !important;
    margin-top: 4px !important;
    box-sizing: border-box !important;
}

.trust-badge-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.trust-badge-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.trust-badge-icon.icon-emerald {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #059669 !important;
}

.trust-badge-icon.icon-amber {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #d97706 !important;
}

.trust-badge-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.trust-badge-title {
    font-size: 0.8125rem !important;
    color: #0b291b !important;
    font-weight: 700 !important;
    font-family: var(--font-heading), 'Outfit', sans-serif !important;
    line-height: 1.25 !important;
}

/* ==========================================================================
   OPTIMIZACIÓN DE DISEÑO PARA PANTALLAS DE 768PX Y MÓVILES (TABLETS / SMARTPHONES)
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Romper la grilla de 2 columnas de escritorio (minmax(0, 1fr) 350px) */
    .product-single-layout,
    .tpl-single-product .product-single-layout,
    div.product-single-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding-bottom: 15px !important;
    }

    /* 2. Delimitador de cierre al final del contenido informativo previo */
    .tpl-single-product .product-gallery-column,
    .product-gallery-column {
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 28px !important;
        margin-bottom: 36px !important;
        border-bottom: 1.5px solid rgba(11, 41, 27, 0.12) !important;
    }

    /* 3. Tarjeta Hero Destacada con Borde Superior Oro Sol */
    .product-summary-column,
    .product-summary-card,
    .tpl-single-product .product-summary-column,
    .tpl-single-product .product-summary-card,
    .woocommerce-cart-action-box,
    .single-tour-booking-card {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        box-sizing: border-box !important;
    }

    .tpl-single-product .product-summary-card,
    .product-summary-card {
        padding: 22px 18px 26px 18px !important;
        border-radius: 22px !important;
        margin-top: 0 !important;
        margin-bottom: 25px !important;
        background: #ffffff !important;
        border: 2px solid rgba(245, 158, 11, 0.35) !important;
        border-top: 5px solid var(--color-accent, #f59e0b) !important;
        box-shadow: 0 20px 45px rgba(11, 41, 27, 0.12), 0 4px 15px rgba(245, 158, 11, 0.10) !important;
    }

    .related-products-section {
        margin-top: 0 !important;
        padding-top: 20px !important;
    }

    /* 4. Caja Hero de Precio Destacado */
    .product-price-box {
        background: linear-gradient(135deg, rgba(11, 41, 27, 0.03) 0%, rgba(245, 158, 11, 0.06) 100%) !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(11, 41, 27, 0.08) !important;
        margin-bottom: 18px !important;
    }

    /* 6. Inputs y Selector de Cantidad Táctil de 48px */
    .turismo-date-input,
    .quantity input.qty,
    .quantity-button {
        height: 48px !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
    }

    /* Botón RESERVAR de Alto Impacto con Resplandor Dorado */
    .woocommerce-cart-action-box button[name="add-to-cart"],
    .woocommerce-cart-action-box a.single_add_to_cart_button,
    .woocommerce-cart-action-box .btn-reservar {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
        height: 50px !important;
        border-radius: 50px !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.05em !important;
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.38) !important;
    }

    /* 7. Centrado Dinámico de Productos Relacionados */
    .related-products-section ul.products,
    .related.products ul.products,
    .up-sells.products ul.products,
    .tours-relacionados-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 20px !important;
        margin-top: 24px !important;
        width: 100% !important;
    }

    .related-products-section ul.products li.product,
    .related.products ul.products li.product,
    .up-sells.products ul.products li.product,
    .tours-relacionados-grid .tour-flip-card {
        flex: 0 1 270px !important;
        width: 100% !important;
        max-width: 290px !important;
        height: 370px !important;
        margin: 0 !important;
    }

    /* 8. Título de Productos Relacionados */
    .tours-relacionados-title,
    .related-products-section h2,
    .related.products h2,
    .up-sells.products h2 {
        font-family: var(--font-heading), 'Outfit', sans-serif !important;
        font-size: 1.6rem !important;
        font-weight: 800 !important;
        color: var(--color-primary) !important;
        margin-top: 40px !important;
        margin-bottom: 16px !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   ESTILIZACIÓN DE MARCA PREMIUM PARA DATEPICKER BESPOKE PERSONALIZADO
   ========================================================================== */
.turismo-custom-datepicker-wrapper {
    position: relative !important;
    width: 100% !important;
}

/* Caja de precio de la ficha de producto.
   Estos valores vivían como atributo style= en la plantilla, lo que
   obligaba a marcar !important cualquier regla de este archivo que los tocara.
   El !important que queda en el importe por persona NO es por eso: ese span
   lleva la clase .price y woocommerce-general trae
   `div.product span.price { color; font-size }` con especificidad (0,3,2). */
.product-price-box {
    margin-bottom: 14px;
}

.turismo-price-header-label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #63687a;
}

.turismo-precio-fila {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.product-price-box .turismo-current-price-display {
    font-family: var(--font-heading);
    font-size: 1.85rem !important;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #001b36 !important;
}

.turismo-regular-price-display {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64707f;
    text-decoration: line-through;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 2px 7px;
    border-radius: 50px;
    background-color: #f59e0b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* El badge lleva display: inline-flex, que anula el [hidden] nativo. Se oculta
   cuando el suplemento del hotel diluye la oferta por debajo del 1%. */
.discount-badge[hidden] {
    display: none !important;
}

/* Total acumulado y reserva mínima.
   El filete y la columna de importe alineada a la derecha son lo que hace que
   el total se lea como una suma. Antes era una tercera línea del mismo tamaño
   que el aviso de mínimo, y como ese aviso iba en ámbar le ganaba en atención
   al dinero: lo que el visitante necesita saber era lo menos visible. */
.turismo-precio-desglose {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(0, 27, 54, 0.1);
}

.turismo-total-linea {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;

    /* El importe es el único texto de la tarjeta sin padding propio: llegaba
       hasta los 18px del borde mientras el resto del texto para a 30px. Son los
       12px del recuadro de hoteles, para que todo termine en la misma vertical.
       Solo a la derecha: por la izquierda la etiqueta debe seguir alineada con
       «Precio por persona» y con el importe por persona de arriba. */
    padding-right: 12px;
}

.turismo-total-etiqueta {
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 600;
    color: #475569;
}

.turismo-total-importe {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #001b36;
    white-space: nowrap;
}

/* El mínimo es una condición de venta, no un error: pierde el ámbar de alerta
   y queda como pie del total, que es justo a lo que condiciona.
   Es el único <p> de la caja, y core.css trae una cadena global
   `p:not(footer *):not(.site-footer *)...` que le gana en especificidad: de ahí
   el !important en las tres propiedades que esa cadena fija (color, peso y
   line-height). Las demás no lo necesitan. */
.turismo-reserva-minima {
    margin: 3px 0 0;
    font-size: 0.78rem;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
}

.turismo-precio-desglose[hidden],
.turismo-total-linea[hidden] {
    display: none !important;
}

/* Precio por persona en la barra fija móvil, que muestra el total. */
.sticky-por-persona {
    display: block !important;
    font-size: 0.7rem !important;
    color: #556274 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    /* El total y el precio unitario son dos datos distintos y se tocaban: la caja
       de línea del número grande terminaba exactamente donde empieza esta. El
       ritmo estaba invertido, con 2px entre la etiqueta y su propio número y 0px
       aquí, que es donde sí hace falta separar. */
    margin-top: 4px !important;
}

.sticky-por-persona[hidden] {
    display: none !important;
}

/* Aviso de fecha obligatoria. Lo inserta turismoMarcarFechaRequerida() en app.js
   debajo del campo; el color acompaña al borde rojo, pero el mensaje es texto y
   no depende del color para entenderse. */
.turismo-fecha-aviso {
    /* Fila propia a todo el ancho del form.cart: dentro de la celda de la fecha
       partiría en dos líneas y empujaría al selector de personas, que comparte
       fila con ella y está alineado por abajo. */
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin: 6px 0 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    color: #e11d48 !important;
    font-weight: 600 !important;
}

.turismo-fecha-aviso[hidden] {
    display: none !important;
}

.turismo-datepicker-trigger {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(11, 41, 27, 0.15) !important;
    background-color: #faf8f5 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.turismo-datepicker-trigger:hover,
.turismo-datepicker-trigger:focus {
    border-color: var(--color-accent, #f59e0b) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
    outline: none !important;
}

.datepicker-selected-value {
    font-family: var(--font-heading), 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #556274 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.datepicker-icon {
    color: #0b291b !important;
    flex-shrink: 0 !important;
}

/* Backdrop Overlay del Calendario (Exclusivo Móviles) */
.turismo-calendar-backdrop {
    display: none !important;
}

@media (max-width: 768px) {
    .turismo-calendar-backdrop {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(15, 23, 42, 0.7) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 999998 !important;
    }

    .turismo-calendar-backdrop.active {
        display: block !important;
    }
}

.calendar-mobile-top-bar,
.calendar-mobile-drag-handle,
.calendar-mobile-close-btn {
    display: none;
}

/* POPUP DEL CALENDARIO ELEGANTE (ESCRITORIO) */
.turismo-custom-calendar-popup {
    display: none;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    width: 310px !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 48px rgba(11, 41, 27, 0.18) !important;
    border: 1px solid rgba(11, 41, 27, 0.12) !important;
    padding: 14px !important;
    z-index: 999 !important;
    box-sizing: border-box !important;
    animation: turismoFadeIn 0.2s ease !important;
}

.turismo-custom-calendar-popup.active {
    display: block !important;
}

@media (max-width: 768px) {
    .turismo-custom-calendar-popup {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 12px 18px 24px 18px !important;
        z-index: 999999 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
        border: none !important;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        visibility: hidden;
    }

    .turismo-custom-calendar-popup.active {
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    .calendar-mobile-top-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 36px !important;
        margin-bottom: 8px !important;
        position: relative !important;
    }

    .calendar-mobile-drag-handle {
        display: block !important;
        width: 40px !important;
        height: 4px !important;
        background: #cbd5e1 !important;
        border-radius: 4px !important;
        margin: 0 auto !important;
    }

    .calendar-mobile-close-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        right: 0 !important;
        top: 2px !important;
        background: #f1f5f9 !important;
        border: none !important;
        color: #475569 !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        font-size: 1.4rem !important;
        cursor: pointer !important;
        line-height: 1 !important;
        z-index: 10 !important;
        transition: background 0.2s ease !important;
    }

    .calendar-mobile-close-btn:hover {
        background: #e2e8f0 !important;
        color: #0f172a !important;
    }
}

.calendar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--color-primary, #0b291b) !important;
    color: #ffffff !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
}

.calendar-month-year-title {
    font-family: var(--font-heading), 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.calendar-nav-btn {
    background: #ffffff !important;
    border: none !important;
    color: #0b291b !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.calendar-nav-btn:hover {
    background: var(--color-accent, #f59e0b) !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
}

.calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}

.calendar-weekdays span {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--color-text-muted, #64748b) !important;
}

.calendar-days-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    text-align: center !important;
}

.calendar-days-grid .day-cell {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #0b291b !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 0 auto !important;
}

.calendar-days-grid .day-cell.empty {
    cursor: default !important;
}

.calendar-days-grid .day-cell.disabled {
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
}

.calendar-days-grid .day-cell:not(.empty):not(.disabled):hover {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #0b291b !important;
}

.calendar-days-grid .day-cell.selected {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.40) !important;
}

/* ==========================================================================
   CENTRADO DINÁMICO GLOBAL DE PRODUCTOS RELACIONADOS (1, 2, 3 O MÁS ELEMENTOS)
   ========================================================================== */
.related-products-section,
.related.products,
.up-sells.products {
    width: 100% !important;
    text-align: center !important;
}

.related-products-section h2,
.related.products h2,
.up-sells.products h2 {
    text-align: center !important;
}

.related-products-section ul.products,
.related.products ul.products,
.up-sells.products ul.products,
.tours-relacionados-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    margin: 24px auto 0 auto !important;
    width: 100% !important;
    padding: 0 !important;
}

.related-products-section ul.products li.product,
.related.products ul.products li.product,
.up-sells.products ul.products li.product,
.tours-relacionados-grid .tour-card-item {
    flex: 0 1 270px !important;
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 !important;
}

/* Ocultar la etiqueta accesible del formulario de reserva */
.quantity label.screen-reader-text,
.quantity label[for*="quantity"],
label.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN STICKY MÓVIL (ESTILO GETYOURGUIDE ESTRUCTURADO)
   ========================================================================== */
.tour-mobile-subnav {
    display: none;
}

@media (max-width: 768px) {
    .tour-mobile-subnav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(11, 41, 27, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        z-index: 998;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    body.single-product.mobile-subnav-active .tour-mobile-subnav,
    body.single.mobile-subnav-active .tour-mobile-subnav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Aislamiento estricto: Ocultar el Header principal solo mientras la Sub-Nav de ficha/guía está activa */
    body.single-product.mobile-subnav-active .header,
    body.single.mobile-subnav-active .header {
        transform: translateY(-100%) !important;
        pointer-events: none !important;
    }

    .subnav-scroll-container {
        display: flex;
        align-items: center;
        overflow-x: auto;
        padding: 10px 14px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .subnav-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .subnav-link {
        font-size: 0.82rem;
        font-weight: 700;
        color: #475569;
        text-decoration: none;
        white-space: nowrap;
        padding: 7px 15px;
        border-radius: 50px;
        background: #f1f5f9;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid transparent;
        flex-shrink: 0;
    }

    .subnav-link svg {
        opacity: 0.7;
        transition: opacity 0.2s ease;
    }

    .subnav-link.active {
        background: var(--color-primary, #0b291b);
        color: #ffffff;
        box-shadow: 0 3px 12px rgba(11, 41, 27, 0.25);
    }

    .subnav-link.active svg {
        opacity: 1;
        stroke: #ffffff;
    }

    /* Opción 1: Fondo Blanco Unificado y Full-Bleed en Móvil (Estilo GetYourGuide) - Exclusivo Single Product */
    body.single-product,
    .tpl-single-product,
    .tpl-single-product main {
        background-color: #ffffff !important;
    }

    body.single-product .container,
    .tpl-single-product .container,
    .tpl-single-product .product-single-container,
    .product-single-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tpl-single-product .tour-description-wrapper {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   FORMATO MINIMALISTA PURO PARA ITINERARIO DE DÍAS (CLEAN FLUID FORMAT)
   ========================================================================== */
.itinerario-card-day {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    margin-left: 0 !important;
}

.itinerario-card-day + .itinerario-card-day {
    margin-top: 36px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.itinerario-card-day:hover {
    box-shadow: none !important;
}

/* Barra contenedora de cabecera de día (Opción B) */
/* Cabecera del día. El padding se va al contenido porque la franja del número
   tiene que llegar a los bordes; overflow:hidden recorta sus esquinas rectas
   contra el radio de la tarjeta. La especificidad sube a .itinerario-card-day
   para ganarle al align-items:center de la regla de arriba. */
.card-day-header {
    position: relative !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
}

.itinerario-card-day .card-day-header {
    align-items: stretch !important;
}

/* El título como cabecera del vídeo, no como etiqueta flotando encima.
   Mismo ancho, cero hueco y esquinas unidas: los dos pasan a leerse como una
   sola tarjeta de medios. Se adopta el radio de 14px que ya tenía el vídeo en
   vez de inventar un valor nuevo, y el borde de la cabecera para los dos, que
   es el que marca el contorno de la tarjeta.
   Va acotado a .dia-con-video porque de los 30 días del sitio hay uno sin
   vídeo: ese conserva su caja redondeada completa en lugar de quedarse con una
   barra de esquinas cortadas al aire. */
/* .card-day-body trae 4px de padding-top que separaban la cabecera del vídeo. */
.dia-con-video .card-day-body {
    padding-top: 0 !important;
}

.dia-con-video .card-day-header {
    margin-bottom: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    border-bottom: none !important;
}

.dia-con-video .day-video-embed {
    margin-top: 0 !important;
    border-radius: 0 0 14px 14px !important;
    border-top: none !important;
    border-color: #e2e8f0 !important;
}

.card-day-header::before {
    display: none !important;
}

body.single-product .card-day-header .day-title,
.card-day-header .day-title {
    color: #001b36 !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.015em !important;
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    flex: 1 1 auto !important;
}

/* El número deja de ser una pastilla flotando dentro de la barra y pasa a ser
   una franja a toda altura pegada al borde: comparte la arquitectura del
   contenedor en vez de ser un objeto ajeno con su propio radio y su propia
   sombra. Con varios días seguidos, esas franjas se leen como un índice. */
.card-day-header .day-title .day-prefix {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    /* Gris suave y no navy: el navy metía un tercer valor justo en la junta
       entre la barra casi blanca y el vídeo oscuro, y dibujaba una L pesada en
       la esquina. Con la franja cerca en valor de la barra, la esquina curva
       —que es de la tarjeta, no del bloque— deja de recortarse y de cantar. */
    background: #e4eaf1 !important;
    color: #001b36 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.06em !important;   /* 0.09em dispersaba las letras y la palabra perdía densidad */
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* nowrap en el h3 y el ajuste dentro de este span: así un título largo rompe
   en dos líneas a la derecha de la franja, y la franja crece con él, en vez de
   saltar a una línea propia y dejar el segmento suelto arriba. */
.card-day-header .day-title .day-title-text {
    display: flex !important;
    align-items: center !important;
    padding: 11px 14px !important;
    min-width: 0 !important;
}

.card-day-header .day-title .day-label {
    color: #001b36 !important;
    background: transparent !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    padding: 0 !important;
}

.card-day-body {
    padding: 4px 0 0 0 !important;
}

.card-day-content p {
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Sangría Francesa para Listas de Tours (Alineación vertical recta de 2+ líneas) */
.tour-description-wrapper ul,
.card-day-content ul,
.tour-text-wrapper ul,
.guide-content ul {
    list-style-position: outside !important;
    padding-left: 1.2rem !important;
    margin-left: 0 !important;
    margin-bottom: 12px !important;
}

.tour-description-wrapper ul li,
.card-day-content ul li,
.tour-text-wrapper ul li,
.guide-content ul li {
    list-style-position: outside !important;
    margin-bottom: 6px !important;
    color: #334155 !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}

/* Corregir z-index del Visor Fancybox sobre la Barra Flotante Móvil */
.fancybox__container {
    z-index: 999999 !important;
}

body:has(.fancybox__container) .turismo-sticky-mobile-bar,
body:has(.fancybox__container) #tour-mobile-subnav {
    display: none !important;
}

/* ==========================================================================
   Aprovechamiento de Altura en Visor de Imágenes Fancybox (Exclusivo Móviles)
   ========================================================================== */
@media (max-width: 768px) {
    .fancybox__container {
        --fancybox-content-margin: 0px !important;
    }

    .fancybox__slide {
        padding: 44px 0 0 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .fancybox__content {
        width: 100vw !important;
        height: 40vh !important;
        max-height: 40vh !important;
    }

    .fancybox__content img,
    .fancybox__image {
        width: 100% !important;
        height: 100% !important;
        max-height: 40vh !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
}

/* ==========================================================================
   AMAZONIAN BENTO GRID GALLERY (60% / 40% REJILLA PARA TOURS SIN VIDEO)
   ========================================================================== */
.amazonian-bento-grid-gallery {
    position: relative;
    display: flex;
    gap: 6px;
    width: 100%;
    height: 380px;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(11, 41, 27, 0.05);
}

.bento-main-photo {
    flex: 0 0 60%;
    width: 60%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.bento-main-photo a,
.bento-main-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-sub-photos {
    flex: 0 0 calc(40% - 6px);
    width: calc(40% - 6px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.bento-sub-top {
    height: calc(50% - 3px);
    overflow: hidden;
    border-radius: 0 16px 0 0;
}

.bento-sub-top a,
.bento-sub-top img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-sub-bottom-row {
    display: flex;
    gap: 6px;
    height: calc(50% - 3px);
}

.bento-sub-item {
    flex: 1;
    overflow: hidden;
}

.bento-sub-item:last-child {
    border-radius: 0 0 16px 0;
}

.bento-sub-item a,
.bento-sub-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.amazonian-bento-grid-gallery a:hover img {
    transform: scale(1.04);
}

/* Botón Flotante Glassmorphism */
.btn-bento-glass-gallery {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    color: #001b36 !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-bento-glass-gallery:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .amazonian-bento-grid-gallery {
        height: 240px;
        gap: 4px;
        border-radius: 12px;
        background: #ffffff;
    }
    .bento-sub-photos {
        gap: 4px;
        width: calc(40% - 4px);
    }
    .bento-sub-top {
        height: calc(50% - 2px);
    }
    .bento-sub-bottom-row {
        gap: 4px;
        height: calc(50% - 2px);
    }
    .btn-bento-glass-gallery {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.78rem !important;
    }
}

/* ==========================================================================
   ESTILOS BESPOKE DE SELECCIÓN DE HOTELES COMPACTA (DROPDOWN DELUXE)
   ========================================================================== */
.package-city-card {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.city-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
}

.city-pin-icon {
    font-size: 1.05rem;
    margin-right: 6px;
}

.city-title {
    font-family: var(--font-heading), 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #001b36 !important;
    margin: 0 !important;
    flex-grow: 1;
}

.city-count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4f5d70;
    background: #f1f5f9;
    padding: 3px 9px;
    border-radius: 50px;
}

.hotel-select-wrapper {
    position: relative;
    width: 100%;
}

.hotel-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    user-select: none;
}

.hotel-custom-select-trigger:hover,
.hotel-select-wrapper.open .hotel-custom-select-trigger {
    border-color: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
    background: #f0fdf4;
}

.selected-hotel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.selected-hotel-name {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-hotel-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.selected-hotel-status {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 2px;
}

.select-action-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #047857; /* verde más oscuro: el blanco pequeño llega a 5,5:1 */
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

@media (max-width: 576px) {
    .hotel-custom-select-trigger {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 12px;
    }

    .selected-hotel-info {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 6px;
    }

    .selected-hotel-name {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 0.90rem !important;
        line-height: 1.3 !important;
        word-break: break-word;
    }

    .selected-hotel-actions-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 4px;
    }

    .selected-hotel-actions-row .select-action-badge {
        margin-left: auto;
    }
}

.hotel-custom-select-trigger:hover .select-action-badge {
    background: #047857;
}

.select-chevron {
    transition: transform 0.25s ease;
}

.hotel-select-wrapper.open .select-chevron {
    transform: rotate(180deg);
}

.hotel-dropdown-options-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
}

.hotel-select-wrapper.open .hotel-dropdown-options-list {
    display: flex;
}

.hotel-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.hotel-option-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.hotel-option-item.active {
    background: #ecfdf5 !important;
    border-color: #059669 !important;
    border-left: 4px solid #059669 !important;
}

.hotel-radio-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #ffffff;
    margin-right: 8px;
    position: relative;
    flex-shrink: 0;
}

.hotel-option-item.active .hotel-radio-circle {
    border-color: #059669;
    background: #059669;
}

.hotel-option-item.active .hotel-radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.hotel-info-meta {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hotel-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
}

.hotel-price-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    white-space: nowrap;
    margin-left: 8px;
}

/* ==========================================================================
   ESTILOS DE BOTÓN Y MODAL LIGHTBOX DE VIDEO DEL HOTEL
   ========================================================================== */
.hotel-video-btn,
.hotel-item-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hotel-video-btn.hidden {
    display: none !important;
}

.hotel-video-btn:hover,
.hotel-item-video-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
    transform: translateY(-1px);
}

/* Modal Pop-up Lightbox */
.turismo-hotel-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.turismo-hotel-video-modal.active {
    display: flex;
}

.hotel-video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
}

.hotel-video-modal-container {
    position: relative;
    z-index: 2;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hotel-video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.hotel-video-modal-title {
    font-family: var(--font-heading), 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.hotel-video-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.2s ease;
}

.hotel-video-modal-close:hover {
    color: #ffffff;
}

.hotel-video-modal-body {
    padding: 0;
    background: #000000;
}

.hotel-video-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.hotel-video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   LÍNEA DE TIEMPO GRÁFICA DE ITINERARIO (ESTILO GETYOURGUIDE / VIATOR)
   ========================================================================== */
body.single-product ul.turismo-itinerary-timeline,
.tpl-single-product ul.turismo-itinerary-timeline,
.guide-content ul.turismo-itinerary-timeline,
.tour-text-wrapper ul.turismo-itinerary-timeline,
.tour-section-content ul.turismo-itinerary-timeline {
    list-style: none !important;
    padding-left: 4px !important;
    margin-left: 0 !important;
    position: relative !important;
    margin-top: 15px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}

.turismo-itinerary-timeline::before {
    display: none !important;
}

body.single-product ul.turismo-itinerary-timeline > li.timeline-step,
.tpl-single-product ul.turismo-itinerary-timeline > li.timeline-step {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 22px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
}

/* Línea conectora vertical por ítem. Es el eje de tiempo, no una categoría:
   iba en verde #059669, el mismo color que los marcadores de actividad, lo que
   hacía parecer que esos pasos eran el recorrido principal y el resto desvíos.
   El marcador mide 34px y su centro cae en 17px, así que al pasar de 3px a 2px
   el left baja de 15.5 a 16 para que siga centrada. */
.turismo-itinerary-timeline > li.timeline-step::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -22px;
    left: 16px;
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 3px;
}

.turismo-itinerary-timeline > li.timeline-step:last-child::before {
    display: none !important;
}

/* Marcador / Nodo Circular */
.turismo-itinerary-timeline .timeline-marker {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Color base del icono. El !important vence al global
   `.tour-section-content { color: #0f172a !important }`, que si no le daría al
   icono la misma tinta que al título. Los lugares lo sobrescriben más abajo. */
.turismo-itinerary-timeline .marker-icon {
    font-size: 0.95rem;
    line-height: 1;
    color: #475569 !important;
}

/* Variaciones de Marcadores */
/* 1. Inicio (punto negro) */
.turismo-itinerary-timeline .step-start .timeline-marker {
    width: 18px !important;
    height: 18px !important;
    background: #0f172a !important;   /* punto negro: frontera del día */
    border: 3px solid #cbd5e1 !important;   /* igualado con step-end: estaban en #e2e8f0 y #cbd5e1 sin motivo */
    margin-left: 8px !important;
    margin-top: 6px !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15) !important;
}

/* Los cinco tipos de paso comparten el anillo neutro de .timeline-marker y se
   distinguen por el icono, que ya se lee sin leyenda: bus, pin, cubiertos.
   Aquí vivían tres reglas que lo pisaban con un borde de color y un fondo pálido
   por tipo (azul punteado para ruta, ámbar para comida, verde para actividad).
   Se quitaron: cuatro familias de color para siete pasos clasificaban algo que
   el visitante no necesita clasificar, y el punteado insinuaba que esos tramos
   eran provisionales cuando son los únicos con hora comprometida. Las tres
   declaraban además un color de icono que nunca pintó nada, porque
   .tour-section-content lo fija con !important. */

/* El pin del lugar en rojo ladrillo. Es la convención cartográfica más
   reconocible que existe —el pin rojo de los mapas— y aquí marca el único eje
   que le importa a quien decide si compra: qué voy a conocer, frente a cómo me
   muevo. Con los extremos en negro quedan tres niveles con significado:
   negro = frontera del día, rojo = lugar, gris = traslado.
   El tono es deliberadamente oscuro y no el #ef4444 del aviso de fecha
   obligatoria de app.js: ese ya significa «error» en esta misma ficha. A 17px
   con trazo de 2px el contraste manda, y #b91c1c da 6.5:1 sobre blanco frente
   al 3.8:1 del rojo alerta y el 2.1:1 del ámbar de marca, que a tamaño de glifo
   se desvanece.
   step-activity es la clase por defecto del parser de app.js: lo que no cae en
   una palabra clave de logística, es lugar. */
.turismo-itinerary-timeline .step-activity .marker-icon {
    color: #b91c1c !important;
}

/* El pin, macizo. El SVG viene como línea (`fill="none" stroke-width="2"`), y a
   17px eso deja unos pocos píxeles de rojo repartidos por el perímetro: el color
   estaba bien pero no había superficie donde leerlo. La convención del pin de
   los mapas vive en la silueta rellena, no en su contorno.
   El `path` es una gota cerrada y el `circle` es su ojo, así que se rellena uno
   de rojo y el otro de blanco y queda la forma reconocible. Se hace desde aquí y
   no en app.js porque el CSS gana a los atributos de presentación del SVG: así
   el icono sigue siendo el mismo en el resto de pasos. Multiplica el área de
   rojo sin tocar el tamaño del glifo ni el del marcador. */
.turismo-itinerary-timeline .step-activity .marker-icon svg path {
    fill: #b91c1c;
    stroke: #b91c1c;
}

.turismo-itinerary-timeline .step-activity .marker-icon svg circle {
    fill: #ffffff;
    stroke: #ffffff;
}

/* 2. Fin (punto negro) */
.turismo-itinerary-timeline .step-end .timeline-marker {
    width: 18px !important;
    height: 18px !important;
    background: #0f172a !important;   /* punto negro: frontera del día */
    border: 3px solid #cbd5e1 !important;
    margin-left: 8px !important;
    margin-top: 6px !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15) !important;
}

/* Contenido del Paso (Título + Descripción) */
.turismo-itinerary-timeline .timeline-content {
    flex: 1;
    padding-top: 3px;
}

/* Peso 500: Fredoka se carga hasta 700 y el 800 salía engrosado a la fuerza; con 8-10 pasos por día
   se veía todo en negrita. El selector gana en especificidad a la regla general de h4 de core.css (0,4,2). */
.turismo-itinerary-timeline .timeline-step .timeline-content h4.step-title.step-title {
    font-family: var(--font-heading), 'Outfit', sans-serif !important;
    font-size: 0.96rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.35 !important;
}

.turismo-itinerary-timeline .step-desc {
    font-size: 0.88rem !important;
    color: #556274 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Tarjeta de reserva: cuando la cabecera se oculta al bajar, la tarjeta sube y no deja un hueco arriba */
@media (min-width: 992px) {
    body:has(.header.header-hidden) .tpl-single-product .product-summary-column,
    .tpl-single-product:has(.header.header-hidden) .product-summary-column {
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px);
    }
}

/* ==========================================================================
   SECCIONES DEL TOUR: QUÉ INCLUYE, INFORMACIÓN ADICIONAL Y PREGUNTAS (1.2.4)
   ========================================================================== */
.tour-section-content ul[class*="pg-"] {
    list-style: none !important;
    padding-left: 0 !important;
}
.tour-text-wrapper h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #001b36;
    margin: 22px 0 10px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.tour-text-wrapper h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Íconos de "Qué incluye" / "No incluye": trazo fino, sin fondo. */
.tour-icon-check,
.tour-icon-cross {
    display: inline-flex !important;
    align-items: center;
    background: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin-right: 8px !important;
    vertical-align: -1px;
}
.tour-icon-check { color: #059669 !important; }
.tour-icon-cross { color: #94a3b8 !important; }
.tour-icon-check svg,
.tour-icon-cross svg { width: 14px; height: 14px; stroke-width: 2; }

/* Lista de "Qué incluye": la segunda línea queda alineada con el texto, no con el ícono. */
.tour-section-content ul.tour-incluye {
    list-style: none !important;
    padding-left: 0 !important;
}
/* El texto va en bloque (no flex): así lo que lleva dentro, como la referencia en dólares, sigue en la misma línea */
.tour-section-content ul.tour-incluye li {
    display: block;
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px !important;
}
.tour-incluye .tour-icon-check,
.tour-incluye .tour-icon-cross {
    position: absolute;
    left: 0;
    top: 5px;
    margin-right: 0 !important;
}

/* "Qué llevar" en tours: lista para marcar, sin tarjetas, casilla fina. */
.tour-section-content ul.pg-check li {
    background: none;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    margin: 0 !important;
    padding: .55rem 0 .55rem 1.75rem;
    font-size: .92rem;
}
.tour-section-content ul.pg-check li:last-child { border-bottom: 0; }
.tour-section-content ul.pg-check li::before {
    left: 0;
    top: .78rem;
    width: .95rem;
    height: .95rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
}
.tour-section-content ul.pg-check li.is-done::before {
    border-color: #059669;
    background-color: #059669;
}

/* Preguntas frecuentes bajo el cuadro de reserva en móvil (las mueve app.js). */
.tpl-single-product .tour-faq-movil {
    margin-top: 0;
}

/* Tarjetas pg-tips dentro de un tour: lista simple de una columna, como "Qué incluye" y "Qué llevar". */
.tour-section-content ul.pg-tips {
    display: block;
    margin: 0 0 4px;
}
.tour-section-content ul.pg-tips li {
    background: none;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    box-shadow: none;
    margin: 0 !important;
    padding: .55rem 0 .55rem 1.75rem;
}
.tour-section-content ul.pg-tips li:last-child { border-bottom: 0; }
.tour-section-content ul.pg-tips li::before {
    left: 0;
    top: .72rem;
    width: 1rem;
    height: 1rem;
    border-radius: 0;
    background-color: transparent;
    background-size: 100%;
}
.tour-section-content ul.pg-tips strong {
    display: inline;
    font-family: inherit;
    font-size: inherit;
    color: #001b36;
    margin: 0;
}
.tour-section-content ul.pg-tips strong::after { content: ": "; }

/* Secciones del tour: el contenido empieza a la altura del título.
   wpautop deja <p></p> vacíos (al inicio de cada sección y dentro del itinerario por días); se ocultan
   y el primer bloque pierde su margen superior. */
.tour-text-wrapper p:empty { display: none; }
.tour-text-wrapper > p:empty:first-child + * { margin-top: 0 !important; }
.tour-section-content ul.pg-tips li:first-child { padding-top: 0; }
.tour-section-content ul.pg-tips li:first-child::before { top: .17rem; }

/* ==========================================================================
   CAJA DE RESERVA Y NIVELES DE HOTEL («Elige tu hotel»)
   Todas las fichas (tours y paquetes): precio sin recuadro y etiquetas unificadas. Las que tienen hoteles
   (todos los paquetes) llevan además .turismo-reserva-con-hoteles: diferencias con signo en la lista y
   «Hoteles seleccionados» antes de «Reservar». Las que marcan una categoría (economica / estandar / superior) llevan
   .turismo-reserva-con-niveles y el bloque «Elige tu hotel».
   ========================================================================== */

/* Precio sin recuadro, alineado con los campos; el total en una línea compacta. */
.product-summary-card .product-price-box {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.product-summary-card .turismo-precio-desglose { margin-top: 8px; padding-top: 7px; }
.product-summary-card .turismo-total-linea { padding-right: 0; }
.product-summary-card .turismo-total-etiqueta { font-size: .78rem; }
.product-summary-card .turismo-total-importe { font-size: 1.05rem; }

/* Las cuatro etiquetas de la caja con el mismo estilo que las de los campos. */
.product-summary-card .turismo-price-header-label,
.turismo-niveles-titulo {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--color-text-muted) !important;
}

/* Bloque a todo el ancho del formulario (que va en dos columnas: fecha y personas). */
.turismo-niveles-hotel {
    grid-column: 1 / -1;
    grid-row: 2; /* fila fija: si no, al aparecer el aviso de fecha (fila 2) bajaba debajo del botón (fila 3) */
    margin: 2px 0 4px;
}
.turismo-niveles-botones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.turismo-nivel-btn {
    position: relative;
    width: 100%;
    padding: 10px 6px 9px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.turismo-nivel-btn:hover { border-color: #94a3b8; }
.turismo-nivel-btn.is-active {
    border-color: #0b7a70;
    background: #f0fdfa;
    box-shadow: inset 0 0 0 1px #0b7a70;
}
.turismo-nivel-nombre { display: block; font-size: .8rem; font-weight: 700; color: #334155; }
.turismo-nivel-btn.is-active .turismo-nivel-nombre { color: #0f766e; }
.turismo-nivel-precio { display: block; margin-top: 2px; font-size: 1rem; font-weight: 800; color: #001b36; }
.turismo-nivel-marca {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 6px;
    border-radius: 999px;
    background: #0b7a70;
    color: #fff;
    font: 700 8px/1 system-ui, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.turismo-niveles-hotel #selected-hotels-live-summary { margin-top: 18px !important; }
/* Con el aviso «Elige la fecha…» a la vista (fila 2), los hoteles bajan a la 3 y el botón a la 4:
   el orden queda fecha → aviso → hoteles → Reservar. */
.woocommerce-cart-action-box form.cart:has(.turismo-fecha-aviso:not([hidden])) .turismo-niveles-hotel { grid-row: 3; }
.woocommerce-cart-action-box form.cart:has(.turismo-niveles-hotel):has(.turismo-fecha-aviso:not([hidden])) .single_add_to_cart_button { grid-row: 4 !important; }

/* Lista de hoteles: diferencias con signo, un solo tono y la misma anchura en todas las filas. */
.hotel-price-badge.badge-nivel {
    min-width: 112px;
    text-align: center;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* «Cambiar» de un destino resalta su tarjeta al llegar a ella. */
.turismo-hoteles-foco { animation: turismoHotelesFoco 1.6s ease-out 1; border-radius: 16px; }
@keyframes turismoHotelesFoco {
    0%   { box-shadow: 0 0 0 0 rgba(13, 148, 136, .55); }
    100% { box-shadow: 0 0 0 14px rgba(13, 148, 136, 0); }
}
/* Sin niveles, la caja de hoteles elegidos va en el formulario, antes de «Reservar», a todo el ancho. */
.turismo-reserva-con-hoteles form.cart > #selected-hotels-live-summary { grid-column: 1 / -1; margin-top: 6px !important; }
/* Botón de cada destino, en dos líneas (móvil y escritorio): nombre y suplemento a la derecha arriba;
   «Video» a la izquierda y «Cambiar» a la derecha abajo. Un nombre largo se parte y el precio se queda arriba. */
.package-city-card .hotel-custom-select-trigger { flex-direction: column; align-items: stretch; gap: 8px; }
.package-city-card .selected-hotel-info { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%; overflow: visible; }
.package-city-card .selected-hotel-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; min-width: 0; }
.package-city-card .selected-hotel-info .selected-hotel-status.badge-nivel { margin-left: 0; min-width: 0; flex-shrink: 0; font-size: .72rem; }
.package-city-card .selected-hotel-actions-row { width: 100%; justify-content: space-between; }
.package-city-card .selected-hotel-actions-row .select-action-badge { margin-left: auto; }

/* ==========================================================================
   CAJA DE RESERVA MÁS LIGERA (1.17.0)
   Un color fuerte para la acción (naranja de «Reservar») y uno para la elección (verde);
   lo demás en grises, sin recuadros de más.
   ========================================================================== */

/* Descuento: texto verde junto al precio tachado, sin pastilla. */
.product-summary-card .discount-badge {
    height: auto;
    padding: 0;
    background: none;
    color: #047857;
    font-size: .8rem;
    letter-spacing: 0;
}

/* Categorías: gris claro sin borde; solo la elegida con borde verde. */
.turismo-nivel-btn {
    border: 1.5px solid transparent;
    background: #f4f6f8;
    padding: 9px 6px 8px;
}
.turismo-nivel-btn:hover { border-color: #cbd5e1; }
.turismo-nivel-btn.is-active {
    border-color: #0b7a70;
    background: #fff;
    box-shadow: none;
}
.turismo-nivel-nombre { font-weight: 600; color: #475569; font-size: .78rem; }
.turismo-nivel-precio { font-size: .95rem; }
/* Rejilla de dos columnas: «A tu medida» ocupa el siguiente hueco (junto a Superior con 3 categorías; sola en la
   segunda fila con 2). Así los botones no cambian de ancho cuando aparece. */
.turismo-niveles-botones { grid-template-columns: repeat(2, 1fr); }
.turismo-nivel-btn[hidden] { display: none; }
.turismo-nivel-medida { cursor: default; }

/* Categorías como opciones de radio (1.27.0): círculo a la izquierda, lleno en la elegida; fondo verde suave;
   «Más elegido» en la esquina derecha, separado del círculo que marca la elección. */
.turismo-nivel-btn { padding-left: 30px; text-align: left; transition: border-color .15s ease, background .15s ease; }
.turismo-nivel-btn::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}
.turismo-nivel-btn.is-active { background: #f0fdfa; }
.turismo-nivel-btn.is-active::before { border: 4px solid #0b7a70; }
.turismo-nivel-marca { left: auto; right: 6px; transform: none; }

/* Hotel elegido: icono y nombre; con varios destinos, destino (gris) a la izquierda y hotel a la derecha. */
.turismo-hoteles-elegidos {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: .84rem;
    line-height: 1.35;
    color: #0f172a;
}
/* Esquinas del destello que marca el cambio de hotel al elegir categoría (1.30.0); sin fondo no se ve. */
.turismo-hoteles-elegidos, .package-city-card .selected-hotel-name { border-radius: 6px; }
.turismo-hoteles-icono { flex: 0 0 18px; margin-top: 1px; color: #0b7a70; }
/* Rejilla destino · hotel · «Cambiar»: los hoteles empiezan en la misma vertical en todas las filas. */
.turismo-hoteles-lista { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; row-gap: 4px; align-items: baseline; }
.turismo-hotel-ciudad { color: #556274; }
.turismo-hotel-nombre { font-weight: 700; color: #0f172a; min-width: 0; }
.turismo-hotel-cambiar { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .78rem; color: #0b7a70; text-decoration: none; white-space: nowrap; }
.turismo-hotel-cambiar:hover { text-decoration: underline; }
.turismo-hotel-cambiar.is-vacio { visibility: hidden; }
/* Aire: elegir (botones), ver lo elegido (hoteles) y reservar, como tres zonas. */
.turismo-reserva-con-hoteles form.cart .single_add_to_cart_button { margin-top: 6px; }

/* «Reservar» liso (el de WhatsApp conserva su verde). */
.product-summary-card .woocommerce-cart-action-box button.single_add_to_cart_button {
    background: #f59e0b !important;
    background-image: none !important;
    box-shadow: none !important;
}
.product-summary-card .woocommerce-cart-action-box button.single_add_to_cart_button:hover {
    background: #d97706 !important;
}

/* Garantías: sin fondo, en bloque centrado y con la misma sangría. */
.product-summary-card .turismo-trust-badges-card {
    width: max-content !important;
    max-width: 100% !important;
    margin: 6px auto 0 !important;
    padding: 0 !important;
    gap: 6px !important;
    background: none !important;
    border: 0 !important;
    align-items: flex-start !important;
}
.product-summary-card .trust-badge-item { gap: 8px !important; }
.product-summary-card .trust-badge-icon { width: 22px !important; height: 22px !important; background: none !important; }
.product-summary-card .trust-badge-title {
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: .78rem !important;
    color: #475569 !important;
}

/* Lista de hoteles de un destino en móvil: nombre y suplemento arriba, video debajo del nombre,
   para que nombres como «Cabañas del Lago» no se partan. */
@media (max-width: 576px) {
    .hotel-option-item { display: grid; grid-template-columns: auto 1fr auto; column-gap: 0; row-gap: 6px; align-items: center; }
    .hotel-option-item .hotel-info-meta { min-width: 0; }
    .hotel-option-item .hotel-price-badge { justify-self: end; }
    .hotel-option-item .hotel-item-video-btn { grid-column: 2; grid-row: 2; justify-self: start; }
    .hotel-option-item .hotel-price-badge.badge-nivel { min-width: 0; padding: 3px 7px; font-size: .68rem; margin-left: 6px; }
}

/* Preguntas frecuentes de la ficha (sección «Preguntas frecuentes»): como las de las categorías de la tienda */
.tour-section-content .pg-faq details {
    background: #fff;
    border: 1px solid rgba(11, 41, 27, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 0 16px;
}
.tour-section-content .pg-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 24px 14px 0;
    font-weight: 600;
    color: #0b291b;
    position: relative;
}
.tour-section-content .pg-faq summary::-webkit-details-marker { display: none; }
.tour-section-content .pg-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #556274;
}
.tour-section-content .pg-faq details[open] summary::after { content: '−'; }
.tour-section-content .pg-faq details p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.6;
}
.tour-section-content .pg-faq { margin: 0; } /* sin margen de más arriba: alineada con el título, como las demás secciones */
