/*
 Theme Name:   Monito Theme
 Text Domain:  monito-tours
 Domain Path:  /languages
 Theme URI:    https://judev.net
 Description:  Default Monito child theme
 Author:       Julian Drusin
 Author URI:   https://judev.net
 Template:     generatepress
 Version:      0.3.6
*/

/*================================================================
  1. Reset General y Estilos Base (General Reset & Base Styles)
================================================================*/
:root {
  --scrollbar-thumb-color: rgba(15, 69, 195, 0.2);
  --scrollbar-thumb-hover-color: rgba(15, 69, 195, 0.7);
}

.hidden { display: none; }

.site-header {
  background-color: var(--base-3);
  box-shadow: 0 5px 20px -10px hsl(0deg 0% 0% / 15%);
}

.hr-dash {
  border-top: 2px dashed white;
  height: 0;
  margin: 40px 0;
}

/* Featured Image */
.featured-image img{
	border-radius: 20px;
}

/*================================================================
  2. Tipografía (Typography)
================================================================*/
h1, h2, h3, h4, h5, h6, .balance,
.balance :where(p, li, blockquote) { text-wrap: balance; }

.h1-home span { font-family: satisfy; font-weight: normal; }

p:last-child:last-of-type { margin-bottom: 0px; }

p strong, b, strong { font-weight: 600; }
.info-bar p strong { font-weight: 600; }

blockquote, li { text-wrap: pretty; }

.clamp-title {
  text-wrap: balance;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/*================================================================
  3. Layout y Contenedores (Layout & Containers)
================================================================*/
.inside-right-sidebar { height: 100%; }

.sticky-sidebar { position: sticky; top: 20px; }

.loop-cards.scroll-grid-full {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 283px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}
.loop-cards.scroll-grid-full > div { scroll-snap-align: start; }

/* Popup Filter*/
.gb-overlay{
	z-index: 999999999;
}

/*================================================================
  4. Componentes (Components)
================================================================*/

/* ---------- 4.1 Tablas Personalizadas (Custom Tables) ---------- */

/* El contenedor es normalmente: figure.wp-block-table.custom-table */
.custom-table {
  /* Variables de tema (ajústalas si quieres) */
  --tbl-head-bg: #3b71fe;
  --tbl-head-color: #fff;
  --tbl-row-odd: var(--bg-grey, #f7f8fb);
  --tbl-row-even: #fff;
  --tbl-border: rgba(0, 0, 0, 0.05);

  border: none;
  margin: 20px 0;
}

/* En el bloque tabla de Gutenberg, elimina línea del thead si la hubiera */
.custom-table.wp-block-table thead { border-bottom: 0; }

/* Tabla base */
.custom-table table{
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tbl-border);
  width: 100%;
}

/* Cabecera y filas */
.custom-table thead tr { 
  background-color: var(--tbl-head-bg); 
  color: var(--tbl-head-color);
}

.custom-table tbody tr:nth-child(odd){  background-color: var(--tbl-row-odd); }
.custom-table tbody tr:nth-child(even){ background-color: var(--tbl-row-even); }

.custom-table th,
.custom-table td{
  padding: 6px 20px;
  text-align: left;
  border: none;
  vertical-align: top;
}

/* Hover solo en dispositivos con puntero preciso */
@media (hover: hover){
  .custom-table tbody tr{ transition: background-color 0.2s ease-in-out; }
  .custom-table tbody tr:hover{ background-color: #ecf0ff; }
}

/* ======= Mobile: scroll horizontal manteniendo thead ======= */
@media (max-width: 768px) {
  /* El contenedor (figure.custom-table) maneja el overflow */
  .custom-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;       /* Firefox */
    position: relative;          /* Para sombras indicadoras */
  }

  /* La tabla usa ancho intrínseco y no colapsa demasiado */
  .custom-table table {
    width: auto;
    min-width: 600px;            /* Fallback */
    min-width: max(600px, 100%); /* Asegura al menos ancho de viewport */
    border-collapse: separate;   /* Conserva radios */
  }

  /* Mantén celdas en una línea; el usuario desplaza para ver más */
  .custom-table th,
  .custom-table td { white-space: nowrap; }

  /* Cabecera pegajosa (visible al desplazar) */
  .custom-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--tbl-head-bg);
    color: var(--tbl-head-color);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
    background-clip: padding-box; /* iOS fix */
  }
	
  /* Button Booking Sticky */
  @media screen and (max-width: 768px) {
    #btn-bottom-sticky {
      position: fixed;
      bottom: 0;
      z-index: 9999;
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      box-shadow: 0 6px 15px 2px rgba(0, 0, 0, 0.20);
    }
  }

  /* Accesibilidad al foco con teclado */
  .custom-table:focus-visible {
    outline: 2px solid rgba(59,113,254,.6);
    outline-offset: 2px;
    border-radius: 8px;
  }

  /* Sombras laterales opcionales (requieren .is-left / .is-right) */
  .custom-table::before,
  .custom-table::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 16px;
    pointer-events: none;
  }
  .custom-table.is-left::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,.06), rgba(0,0,0,0));
  }
  .custom-table.is-right::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,.06), rgba(0,0,0,0));
  }

  /* Neutraliza "tablas apiladas" de algunos temas SOLO aquí */
  .custom-table table,
  .custom-table thead,
  .custom-table tbody,
  .custom-table tr,
  .custom-table th,
  .custom-table td { display: revert; }

  /* Hotfix: forza thead visible si el tema lo oculta en mobile */
  .custom-table thead {
    display: table-header-group !important;
    visibility: visible !important;
    height: auto !important;
  }
  .custom-table tbody { display: table-row-group !important; }
  .custom-table tr    { display: table-row !important; }
  .custom-table th,
  .custom-table td    { display: table-cell !important; }
}



/*---------- 4.2 Listas Personalizadas (Custom Lists) ----------*/

.wp-block-list.custom-list,
.wp-block-list.included-list,
.wp-block-list.not-included-list {
  margin: 0 0 1.5em 0;
}

/* Reset listas */
.custom-list,
.included-list,
.not-included-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items */
.custom-list li,
.included-list li,
.not-included-list li {
  position: relative;
  padding-left: 32px; /* espacio para el icono circular */
}

/* Iconos de listas autocontenidos: mismo trazado de Font Awesome Free 6.4.0.
 * Copyright 2023 Fonticons, Inc. (https://fontawesome.com).
 * Icons: CC BY 4.0 — https://fontawesome.com/license/free
 * SVG originales: https://github.com/FortAwesome/Font-Awesome/tree/6.4.0/svgs/solid
 */
.custom-list li::before,
.included-list li::before,
.not-included-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;                         /* ajuste fino vertical */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;                  /* tamaño del icono */
  line-height: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 10px;
}

/* Check (custom / incluido) */
.custom-list li::before,
.included-list li::before {
  background-color: #CEF2E5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%2310AC58' d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
  color: #10AC58;
}

/* No incluido */
.not-included-list li::before {
  background-color: #FDEAEA;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23E74C3C' d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E");
  color: #E74C3C;
}

/* Margen por defecto del bloque */
.wp-block-list {
  margin: 0 0 1.5em 2em;
}

/* Mobile */
@media (max-width: 767px) {
  ul.custom-list,
  ul.included-list,
  ul.not-included-list {
    margin-left: 0;
  }
}


/*---------- 4.3 Acordeones (Accordions) ----------*/
.gb-accordion .noUi-target{
  background: #e2ebff;
  border-radius: 30px;
  border: 1px solid #D3D3D3;
  padding: 0 8px;
}
.gb-accordion .noUi-connect{ background: #4d80ff; }
.gb-accordion .noUi-handle{ border-radius: 30px; }

.acc-title strong{
  display: inline-flex;
  background-color: #f5f8ff;
  border-radius: 10px;
  border: solid 1px rgb(0 0 0 / 10%);
  height: 30px; width: 30px;
  margin-right: 5px;
  justify-content: center; align-items: center;
}
.acc-tour img{ border-radius: 10px; }
.wp-block-details summary{ color: #3b71fe; }


/* Descripción ampliable del tour */
#description-tour .description-more {
	margin-top: 20px;
}

#description-tour .description-more summary {
	width: fit-content;
	margin-bottom: 0;
	color: var(--accent);
	font-weight: 500;
	cursor: pointer;
	transition: color 0.2s ease;
}

#description-tour .description-more summary:hover {
	color: #2f5cd6;
}

#description-tour .description-more summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 3px;
}

#description-tour .description-more[open] summary {
	margin-bottom: 20px;
}

#description-tour .description-more > p {
	margin-bottom: 16px;
}

#description-tour .description-more > p:last-child {
	margin-bottom: 0;
}

/*---------- 4.4 Tarjetas de Tour (Tour Cards) ----------*/
.cards-tours{ opacity: 1; animation: slide-up 0.6s ease-out backwards; will-change: auto; }
.cards-tours:nth-child(1){ animation-delay: 0.1s; }
.cards-tours:nth-child(2){ animation-delay: 0.2s; }
.cards-tours:nth-child(3){ animation-delay: 0.3s; }
.cards-tours:nth-child(4){ animation-delay: 0.4s; }

.tag-featured{ position: absolute; top: 20px; left: 20px; }

.precio-card span{ font-weight: 400; font-size: 14px; }
.cards-tours .tachado::before{ content: ""; font-weight: 400; margin-right: 0px; font-size: 12px; }
/*
.cards-tours.es .precio-card::before { content: "Desde "; }
.cards-tours.en .precio-card::before { content: "From "; }
.cards-tours.it .precio-card::before { content: "Da "; }

.cards-tours.es .precio-card::before,
.cards-tours.en .precio-card::before,
.cards-tours.it .precio-card::before{
  font-weight: 400; margin-right: 0px; font-size: 14px; color: #5e6d77;
}
*/
/*---------- 4.5 Tooltips ----------*/
.tooltip{ position: relative; display: inline-block; }
.tooltip .tooltiptext{
  visibility: hidden;
  width: 130px;
  background-color: #55555e;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute; z-index: 1;
  bottom: 125%; left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip .tooltiptext::after{
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  margin-left: -5px;
  border-width: 5px; border-style: solid;
  border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext{ visibility: visible; opacity: 1; }
.icon{ margin-left: 5px; cursor: pointer; }
.info-bar .canc{ cursor: help; }

/*---------- 4.6 Elementos Generales de Formularios (General Form Styles) ----------*/
.p-fact{ background-color: #f5f8ff; padding: 20px; border-radius: 10px; }

.secure-payment{
  font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 400;
}
.secure-payment i{
  margin-right: 5px !important; color: #4CAF50; font-size: 16px;
}

/* Offset de anclaje (30px) — evita solapamiento con header/nav sticky */
#description-tour::before,
#reviews-tour::before {
  content: "";
  display: block;
  height: 40px;
  margin-top: -40px;
  pointer-events: none;
}


/*================================================================
  5. Búsqueda y Filtros (Search & Filtering)
================================================================*/

/*---------- 5.1 Buscador Principal (Main Search) ----------*/
.search-tours{
  display: flex; align-items: center;
  background-color: #f6f9ff;
  padding: 5px; border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 600px; margin: 0 auto;
}
.search-tours input[type="search"]{
  border: none; border-radius: 50px; padding: 12px 20px; flex: 1; font-size: 16px;
  background-color: #fff; color: #333; outline: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.search-tours input[type="search"]::placeholder{ color: #aaa; font-weight: 300; }
.search-tours input[type="search"]:focus{
  background-color: #f0f4ff; box-shadow: 0 0 0 3px rgba(59,113,254,0.3);
}
.search-tours button{
  border: none; background-color: #3b71fe; border-radius: 50%;
  width: 50px; height: 50px; display: flex; justify-content: center; align-items: center;
  cursor: pointer; margin-left: 10px; padding: 0; transition: background-color 0.3s ease;
}
.search-tours button:hover{ background-color: #2f5cd6; }
.search-tours button svg{ width: 20px; height: 20px; fill: white; display: block; }

/* ===== Botones Buscador ===== */
/* Ocultos por defecto */
.chips{
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease;
}
/* Mostrar al pasar el cursor o al enfocar */
.search-hero:hover .chips,
.search-hero:focus-within .chips{
  opacity: 1; visibility: visible; pointer-events: auto;
}
@media (prefers-reduced-motion: reduce){ .chips{ transition: none; } }

/* Ajuste de padding para buscador dentro de .search-box */
.search-box input[type=search]{ padding: 0; }

/*---------- 5.2 FacetWP ----------*/

/* Espaciado general de facetas */
.facetwp-facet {
  margin-bottom: 20px;
}

/* Botón reset del slider (mantener !important para preservar prioridad) */
.facetwp-slider-reset {
   background: #4d80ff !important;
   color: #fff !important;
   padding: 5px 20px !important;
   margin-top: 10px !important;
   border-radius: 30px !important;
   box-shadow: none !important;
   font-size: 14px !important;
}

/* Variante móvil compacta para margenes entre facetas */
.facet-mb .facetwp-facet {
   margin-bottom: 0;
}

/* Botón "cancel" estilizado como faceta */
.btn-cancel .facetwp-facet {
   margin-bottom: 20px;
   padding: 5px 20px;
   border-radius: 50px;
   background-color: rgb(232 95 39 / 10%);
   font-size: 16px;
}
.btn-cancel .facetwp-facet a {
  color: #953d19;
}
.btn-cancel .facetwp-facet a:hover {
  color: #6f2f16;
}

/* Ajustes responsive */
@media (max-width: 767px) {
  .post-type-archive-tour .search-bar select {
    font-size: 14px;
  }
}


/* Search Bar */
.search-bar .facetwp-facet{ margin-bottom: 0px; }
.search-bar input.facetwp-search{
  min-width: 240px; width: 300px; border-radius: 30px; padding: 10px 20px;
}
.search-bar .facetwp-icon{ right: 10px; }
.search-bar input[type="text"]{
  border-color: hsl(0deg 0% 0% / 10%); background-color: white;
}
.search-bar input[type="text"]:focus{
  border-color: hsl(210deg 100% 50%); outline: none;
}
.search-bar select{
  padding: 8px 10px; border-radius: 5px; border: 1px solid rgba(0,0,0,0.05); background-color: var(--bg-grey);
}
.search-bar option{ font-size: 14px; }

/* Valoración: umbrales de Site Reviews, selección única en FacetWP. */
.facetwp-facet-reviews { display:flex; flex-direction:column; gap:4px; }
.facetwp-facet-reviews .facetwp-radio {
  position:relative; display:flex; align-items:center; gap:8px;
  min-height:25.5px; margin:0; padding:0 10px 0 32px;
  border:0; background:none; color:#344b60; font-size:14px; line-height:25.5px;
  cursor:pointer; transition:color .15s;
}
.facetwp-facet-reviews .facetwp-radio::before {
  content:""; position:absolute; left:10px; top:50%; transform:translateY(-50%);
  width:14px; height:14px; border:1.5px solid #8797a6; border-radius:50%;
  background:#fff; box-sizing:border-box;
}
.facetwp-facet-reviews .facetwp-radio.checked { background-image:none; }
.facetwp-facet-reviews .facetwp-radio.checked::before { border:4px solid #3b6bff; }
.facetwp-facet-reviews .facetwp-radio:not(.disabled):hover { color:#244ed8; }
.facetwp-facet-reviews .facetwp-radio:focus-visible { outline:2px solid #3b6bff; outline-offset:2px; }
.facetwp-facet-reviews .facetwp-display-value { display:inline-flex; align-items:center; gap:7px; }
.facetwp-facet-reviews .facetwp-display-value::before { content:"★"; color:#e4a000; font-size:17px; line-height:1; }
.facetwp-facet-reviews .facetwp-counter { margin-left:auto; color:#65788a; font-size:12px; font-weight:400; }
.facetwp-facet-reviews .facetwp-radio.disabled { opacity:.45; cursor:not-allowed; }

/* Checkbox Facet */
:root{
  --fw-cb-size: 14px;
  --fw-cb-gap: 6px;
  --fw-cb-color: #83929d;
  --fw-cb-color-checked: #3b71fe;
}
.facetwp-checkbox{
  position: relative;
  padding-left: calc(var(--fw-cb-size) + var(--fw-cb-gap));
  background: none !important;
  cursor: pointer;
}
.facetwp-checkbox::before{
  content: "";
  position: absolute; left: 0; top: 50%;
  width: var(--fw-cb-size); height: var(--fw-cb-size);
  transform: translateY(-50%);
  background-color: var(--fw-cb-color);
  -webkit-mask: url("/wp-content/uploads/checkbox-1.png") center/contain no-repeat;
          mask: url("/wp-content/uploads/checkbox-1.png") center/contain no-repeat;
}
.facetwp-checkbox.checked::before{
  background-color: var(--fw-cb-color-checked);
  -webkit-mask-image: url("/wp-content/uploads/checkbox-2.png");
          mask-image: url("/wp-content/uploads/checkbox-2.png");
}
.facetwp-checkbox.disabled{ opacity: .55; cursor: not-allowed; }

/*================================================================
  7. Navegación (Navigation)
================================================================*/
/* Tablet + Desktop */
@media (min-width: 768px){
  .main-navigation ul ul{
    border: solid 1px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 150ms ease-out, opacity 50ms ease-out;
    pointer-events: none;
    will-change: transform, opacity;
  }
  .main-navigation ul li:hover > ul,
  .main-navigation ul li:focus-within > ul{
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}

/* Submenús con ancho auto (IDs específicos) */
#menu-item-4145-sub-menu,
#menu-item-3275-sub-menu,
#menu-item-3286-sub-menu{
  width: auto;
}

/* Controles del menú móvil con fondo blanco */
.mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:focus,
.has-inline-mobile-toggle #site-navigation.toggled{
  background-color: #fff;
}

/* Submenú abierto en móvil con respiración */
.sub-menu.toggled-on{
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* Sub-menu lang */
#sub-menu-menu-item-3275{
	width: auto;
}
.lang-item{
	min-width: 60px;
}

/* Fondo con blur sutil para menú rápido (glass effect ligero) */
.menu-rapido {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/*================================================================
  8. Estilos de Plugins (Plugin Styles)
================================================================*/

/*---------- 8.1 Botón de WhatsApp (WhatsApp Button) ----------*/
.wa__btn_w_img .wa__cs_img_wrap{ box-shadow: 0 0px 10px rgb(0 0 0 / 15%); }
.wa__button{ box-shadow: none !important; -webkit-box-shadow: none !important; }
.wa__stt_offline{ background: #f5f8ff; }

/* Otras integraciones */
.glsr-review{ font-size: 14px; }
.glsr-review-title h4{ font-size: 16px; }


.glsr-review {
    font-size: 14px;
    border-bottom: 1px solid #00000010;
    padding-bottom: 20px;
}

.glsr-review:last-child {
    border-bottom: none;
	  padding-bottom: none;
}

#step-2 .wpcf7-turnstile.cf-turnstile{ margin-top: 0px; }

/*WhatsApp botón flotante*/
.wa-btn .wa__btn_title{
	font-size: 14px;
	font-weight: 600;
	font-family: inter;
}
.wa-btn .wa__cs_info{
	text-align: left;
}

/* Button WhastApp Sticky */
@media (max-width: 768px) {
  .wa__btn_popup {
    bottom: 10px !important;
    right: 10px !important;
  }
  .wa__btn_popup .wa__btn_popup_icon{
	height: 60px;
    width: 60px;
  }
}

/* Site Reviews */
/* Contenedor principal */
.nh-rating-card {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Espacio entre elementos */
    font-family: inherit; /* Heredar fuente del tema */
    font-size: 14px; /* Ajusta según tu diseño */
    line-height: 1;
}

/* El Icono de estrella */
.nh-star svg {
    display: block; /* Elimina espacios fantasma */
}

/* El Promedio (Ej: 4.9) */
.nh-avg {
    font-weight: 700; /* Negrita */
    color: #1e1e1e;   /* Color oscuro */
}

/* El Conteo (Ej: (7 Opiniones)) */
.nh-count {
    color: #757575; /* Color gris suave */
    font-weight: 400;
}

/*================================================================
  9. Animaciones (Animations)
================================================================*/

/* --- 9.1. Keyframes (Definiciones de movimiento) --- */
@keyframes slide-up {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: none;              opacity: 1; }
}

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: none; }
}

@keyframes a1-float {
  0%   { transform: translate3d(0, 0, 0) rotate(0.8deg); }
  50%  { transform: translate3d(0, -8px, 0) rotate(-0.8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0.8deg); }
}

@keyframes a2-swim {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%  { transform: translate3d(10px, -6px, 0) rotate(1.5deg); }
  50%  { transform: translate3d(0, -10px, 0) rotate(0deg); }
  75%  { transform: translate3d(-10px, -6px, 0) rotate(-1.5deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* --- 9.2. Animaciones de Carga Inmediata (Nuevas) --- */
.single-tour #content {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    will-change: auto;
}

.reveal-item {
    opacity: 1;
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    will-change: auto;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* --- 9.3. Animaciones por Scroll (Requieren JS) --- */
/* Mantenemos la estructura de clases exacta para no romper el script */
.animate-me.slide-up {
    opacity: 0; transform: translateY(100px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-me.slide-up.visible { opacity: 1; transform: none; }

.animate-me.slide-left {
    opacity: 0; transform: translateX(-100px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-me.slide-left.visible { opacity: 1; transform: none; }

.animate-me.slide-right {
    opacity: 0; transform: translateX(100px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-me.slide-right.visible { opacity: 1; transform: none; }

/* --- 9.4. Animaciones Decorativas (Infinitas) --- */
.img-a1 {
    display: block;
    transform-origin: 50% 80%;
    animation: a1-float var(--a1-dur, 4.8s) ease-in-out infinite;
    animation-delay: var(--a1-delay, 0s);
    will-change: transform;
    backface-visibility: hidden;
}

.img-a2 {
    display: block;
    transform-origin: 50% 50%;
    animation: a2-swim var(--a2-dur, 6.2s) ease-in-out infinite;
    animation-delay: var(--a2-delay, .4s);
    will-change: transform;
    backface-visibility: hidden;
}

/* --- 9.5. Accesibilidad --- */
@media (prefers-reduced-motion: reduce) {
    .single-tour #content, .reveal-item, .animate-me, .img-a1, .img-a2 {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/*================================================================
  10. Barra de Scroll (Custom Scrollbar)
================================================================*/
.scroll::-webkit-scrollbar{ width: 6px; background-color: transparent; }
.scroll::-webkit-scrollbar-track{ background-color: transparent; }
.scroll::-webkit-scrollbar-thumb{
  background-color: var(--scrollbar-thumb-color); border-radius: 20px;
}
.scroll::-webkit-scrollbar-thumb:hover{ background-color: var(--scrollbar-thumb-hover-color); }
.scroll{ scrollbar-width: auto; scrollbar-color: var(--scrollbar-thumb-color) transparent; }

/*================================================================
  11. Media Queries
================================================================*/

/*---------- 11.1 Tablet (1024px) ----------*/
@media screen and (max-width: 1024px){
  .loop-cards.scroll-grid{
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 283px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
  }
  .loop-cards.scroll-grid > div{ scroll-snap-align: start; }
}

/* Ajustes layout tablet/landscape */
@media screen and (min-width: 768px) and (max-width: 1024px){
  .separate-containers .site-main{ margin: 40px 0 !important; }
  .site-content{ display: flex; flex-direction: column; }
  .site-content .content-area, .is-right-sidebar{ width: 100%; }
}

/* Ocultar Left sidebar (<=1024px) */
@media (max-width: 1024px){
  .post-type-archive-tour .is-left-sidebar.sidebar{
    display: none;
  }
  .mt-40{ margin-top: -40px; }
}

/*---------- 11.2 Móvil (768px y menos) ----------*/
@media (max-width: 768px){
  .formulario-reserva input,
  .formulario-reserva select,
  .formulario-reserva textarea{
    font-size: 16px; padding: 5px !important; margin: 5px 0 20px 0 !important;
  }
  .formulario-reserva #next-step,
  .formulario-reserva #prev-step{ padding: 10px; margin: 10px 0 5px; }
  .formulario-reserva .book{ padding: 10px !important; }
  input#pago-deposito{ margin: 5px 0 10px !important; }
  .req-box ol, .req-box ul{ margin: 0 0 1.5em 1.6em; }
}

/* Ajustes específicos <=767px */

@media screen and (max-width: 767px){
  .main-container{ flex-direction: column; }

  /* Tour single: margen en móvil */
  .single-tour .site-main {
    margin: 20px;
  }
}

/*---------- 11.3 Móvil Pequeño (600px y menos) ----------*/
@media screen and (max-width: 600px){
  .custom-table thead{ display: none; }
  .custom-table tr:nth-child(odd){ background-color: transparent; }
  .custom-table tr td:first-child{
    background-color: #3b71fe; color: #ffffff; font-weight: bold;
  }
  .custom-table td{
    display: block; padding: 6px 20px; border: none;
  }
  .custom-table td::before{
    content: attr(data-label);
    float: left; text-transform: uppercase; font-weight: bold; margin-right: .5rem;
  }
}
/* Liberar capas de composición al finalizar las animaciones */
html.mt-motion-ready .animate-me.visible {
  transform: none !important;
  will-change: auto !important;
}

/* Reusable CF7 contact panel, independent of page layout. */
.wpcf7 .mt-cf7-panel {
  padding: 24px;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(25, 40, 65, .06);
}
.wpcf7 .mt-cf7-panel h2 { margin: 0 0 18px; font-size: 21px; line-height: 1.35; }
.wpcf7 .mt-cf7-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wpcf7 .mt-cf7-field { display: block; min-width: 0; margin: 0; }
.wpcf7 .mt-cf7-field label { display: block; margin: 0; }
.wpcf7 .mt-cf7-wide { grid-column: 1 / -1; }
.wpcf7 .mt-cf7-panel p { margin: 0; }
.wpcf7 .mt-cf7-field br { display: none; }
.wpcf7 .mt-cf7-field .wpcf7-form-control-wrap { display: block; }
.wpcf7 .mt-cf7-panel input[type="text"],
.wpcf7 .mt-cf7-panel input[type="email"],
.wpcf7 .mt-cf7-panel input[type="tel"],
.wpcf7 .mt-cf7-panel input[type="url"],
.wpcf7 .mt-cf7-panel select,
.wpcf7 .mt-cf7-panel textarea {
  display: block; box-sizing: border-box; width: 100%; max-width: 100%;
  min-height: 42px; margin: 0; padding: 9px 12px;
  border: 1px solid #d8dfe8; border-radius: 9px; background: #fff;
  color: var(--contrast, #233347); font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.5;
}
.wpcf7 .mt-cf7-panel textarea { height: 110px; min-height: 110px; resize: vertical; }
.wpcf7 .mt-cf7-panel input::placeholder,
.wpcf7 .mt-cf7-panel textarea::placeholder { color: #68778a; opacity: 1; }
.wpcf7 .mt-cf7-panel input:focus,
.wpcf7 .mt-cf7-panel textarea:focus,
.wpcf7 .mt-cf7-panel select:focus { outline: 2px solid var(--accent, #3b72ff); outline-offset: 2px; border-color: var(--accent, #3b72ff); }
.wpcf7 .mt-cf7-panel .wpcf7-not-valid { border-color: #cf3c3c; }
.wpcf7 .mt-cf7-panel .wpcf7-not-valid-tip { font-size: 13px; margin-top: 5px; }
.wpcf7 .mt-cf7-consent { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.wpcf7 .mt-cf7-consent .wpcf7-list-item { margin: 0; }
.wpcf7 .mt-cf7-consent label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.wpcf7 .mt-cf7-consent input[type="checkbox"] { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--accent, #3b72ff); }
.wpcf7 .mt-cf7-security { margin-top: 12px; max-width: 100%; }
.wpcf7 .mt-cf7-security .cf-turnstile { margin: 0; }
.wpcf7 .mt-cf7-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.wpcf7 .mt-cf7-panel input[type="submit"] { min-height: 42px; margin: 0; padding: 10px 22px; border: 0; border-radius: 50px; background: var(--accent, #3b72ff); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.wpcf7 .mt-cf7-panel input[type="submit"]:hover { filter: brightness(.94); }
.wpcf7 .mt-cf7-panel input[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
.wpcf7 .mt-cf7-actions .wpcf7-spinner { margin: 0; }
.wpcf7 .mt-cf7-agencies .mt-cf7-field { font-size: 13px; font-weight: 600; line-height: 1.45; }
.wpcf7 .mt-cf7-agencies .wpcf7-form-control-wrap { margin-top: 5px; }
.wpcf7 .mt-cf7-panel .mt-cf7-help { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: #65758b; }
.mt-cf7-disclosure > summary { cursor: pointer; color: var(--accent, #3b72ff); font-weight: 600; }
.mt-cf7-disclosure[open] > summary { margin-bottom: 16px; }
@media (max-width: 600px) {
  .wpcf7 .mt-cf7-panel { padding: 18px; border-radius: 14px; }
  .wpcf7 .mt-cf7-panel h2 { font-size: 20px; margin-bottom: 16px; }
  .wpcf7 .mt-cf7-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
