/* ==========================================================================
   HOJA DE ESTILOS EXCLUSIVA: SINGLE TOUR PAGE - PERÚ EXPERTOURS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAYOUT PRINCIPAL
   -------------------------------------------------------------------------- */
.section-single-tour {
  padding-bottom: 80px;
  background-color: var(
    --color-bg-light
  ); /* Fondo Gris Off-White para respiro visual */
}

.tour-layout {
  display: grid;
  /* Columna Contenido | Columna Sidebar */
  grid-template-columns: 1fr 380px;
  gap: 50px;
  /* IMPORTANTE: 'stretch' hace que la columna derecha sea tan alta como la izquierda.
     Esto permite que el elemento sticky se deslice hasta el final. */
  align-items: stretch;
  margin-top: 40px;
  position: relative;
}

/* Títulos de sección internos */
.section-heading {
  font-family: var(--font-heading);
  color: var(--color-primary); /* Naranja Vibrante */
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-secondary); /* Línea de acento Gris Carbón */
}

/* --------------------------------------------------------------------------
   2. SNAPSHOT BAR (MODO OSCURO)
   -------------------------------------------------------------------------- */
.tour-snapshot.dark-mode {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 20px;
  background-color: #111827; /* Gris Carbón Extra Oscuro */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.2);
  margin-bottom: 40px;
}

.snap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-width: 0;
}

.snap-item .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
}

.snap-item .icon-box i {
  font-size: 18px;
  color: var(--color-primary); /* Íconos Naranja Vibrante por defecto */
}

.snap-item:hover .icon-box {
  background: var(--color-secondary); /* Gris Carbón al hover */
  box-shadow: 0 0 15px rgba(31, 41, 55, 0.4);
  transform: scale(1.05);
}
.snap-item:hover .icon-box i {
  color: var(--color-white);
}

.snap-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.snap-info .label {
  font-size: 0.65rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
}

.snap-info .value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.difficulty-text {
  color: var(--color-primary)
}

/* RESPONSIVE: Para tablets/laptops pequeñas, bajamos a 3 arriba y 2 abajo */
@media (max-width: 1100px) {
  .tour-snapshot.dark-mode {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* RESPONSIVE: Para móviles, 1 sola columna o 2 */
@media (max-width: 768px) {
  .tour-snapshot.dark-mode {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   3. INTRODUCCIÓN Y TEXTOS
   -------------------------------------------------------------------------- */
.tour-overview-block {
  margin-bottom: 50px;
}

.tour-intro-box {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 25px;
  border-left: 4px solid var(--color-primary); /* Acento Naranja Vibrante */
  padding-left: 20px;
  background: var(--color-white);
  padding-top: 15px;
  padding-bottom: 15px;
  border-radius: 0 8px 8px 0;
}

/* Forzar Open Sans en bloques de texto */
.tour-intro-box,
.entry-content,
.day-desc,
.inc-content,
.faq-answer,
.recommendations-box,
.tour-content p,
.tour-content li,
.tour-content span {
  font-family: var(--font-body) !important;
}

/* Asegurar títulos en Montserrat */
.tour-content h1,
.tour-content h2,
.tour-content h3,
.tour-content h4,
.tour-content h5,
.tour-content h6 {
  font-family: var(--font-heading) !important;
}

/* --------------------------------------------------------------------------
   4. GALERÍA MOSAICO (GLIGHTBOX)
   -------------------------------------------------------------------------- */
.tour-gallery-block {
  margin-bottom: 50px;
}

.tour-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 10px;
}

.gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 41, 55, 0.4); /* Overlay oscuro basado en Gris Carbón */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay i {
  color: var(--color-primary); /* Icono expandir Naranja Vibrante */
  font-size: 30px;
  transform: scale(0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover .gallery-overlay i {
  transform: scale(1.2);
}

/* Grid Positioning */
.item-0 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.item-1 {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
}
.item-2 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.item-3 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

/* ==========================================================================
   5. SISTEMA HÍBRIDO (TABS PC / ACORDEÓN MÓVIL)
   ========================================================================== */

/* Estilos Compartidos */
.tour-tabs-wrapper {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(31, 41, 55, 0.05);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 40px;
}

/* --- MODO ESCRITORIO (Visible en PC) --- */
.desktop-only-flex {
  display: flex;
}
.mobile-accordion-trigger {
  display: none;
}

/* Navegación Tabs */
.tour-tabs-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
  background: var(--color-bg-light);
}
.tour-tabs-nav li {
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 700;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}
.tour-tabs-nav li:hover {
  color: var(--color-primary); /* Naranja Vibrante al hover */
  background: rgba(255, 62, 0, 0.03);
}
.tour-tabs-nav li.active {
  background: var(--color-white);
  color: var(--color-primary);
  border-bottom-color: var(--color-primary); /* Línea Naranja activa */
}

.tour-tabs-content {
  padding: 40px;
}

/* Animación Fade para Tabs de PC */
@media (min-width: 1025px) {
  .hybrid-section {
    display: none;
    animation: fadeIn 0.4s;
  }
  .hybrid-section.active {
    display: block;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MODO MÓVIL (Transformación a Acordeón < 1024px) --- */
@media (max-width: 1024px) {
  .desktop-only-flex {
    display: none !important;
  }
  .tour-tabs-wrapper {
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
  }
  .tour-tabs-content {
    padding: 0;
  }

  .mobile-accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
  }

  .mobile-accordion-trigger.active {
    background: var(--color-primary); /* Botón activo Naranja Vibrante */
    color: var(--color-white);
    border-color: var(--color-primary);
  }
  .mobile-accordion-trigger.active i {
    transform: rotate(180deg);
  }

  .hybrid-section .section-body {
    display: none;
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-top: none;
    padding-top: 25px;
    margin-top: -10px;
    margin-bottom: 15px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .hybrid-section.mobile-open .section-body {
    display: block;
  }
  .hybrid-section {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   6-10. CONTENIDO DE TABS (Itinerario, Inclusiones, Packing, Tips, FAQs)
   -------------------------------------------------------------------------- */

/* Itinerario */
.timeline-itinerary {
  position: relative;
}
.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #d1d5db 0,
    #d1d5db 6px,
    transparent 6px,
    transparent 12px
  );
}
.timeline-item:last-child::before {
  display: none;
}
.day-badge {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-secondary); /* Badge Día en Gris Carbón Oscuro */
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(31, 41, 55, 0.3);
  z-index: 2;
}
.day-title {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  color: var(--color-primary); /* Título de día en Naranja Vibrante */
}
.day-desc {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Inclusiones */
.inclusions-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.inc-card {
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease;
  border: 1px solid transparent;
}
.inc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.05);
}
.card-included {
  background-color: #f0fdf4;
  border-color: #dcfce7;
}
.card-included .inc-header {
  color: #166534;
}
.card-included .inc-icon-box {
  background: #22c55e;
  color: #fff;
}
.card-excluded {
  background-color: #fff5f5;
  border-color: #fee2e2;
}
.card-excluded .inc-header {
  color: #991b1b;
}
.card-excluded .inc-icon-box {
  background: #ef4444;
  color: #fff;
}
.inc-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 15px;
}
.inc-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}
.inc-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.inc-content ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.inc-content li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.card-included .inc-content li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: #22c55e;
  font-size: 16px;
}
.card-excluded .inc-content li::before {
  content: "\f00d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  color: #ef4444;
  font-size: 16px;
}

/* Packing List */
.packing-group-section {
  margin-bottom: 40px;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 30px;
}
.packing-group-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.packing-group-title {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--color-primary); /* Título Naranja Vibrante */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.packing-group-title i {
  color: var(--color-secondary); /* Icono Gris Carbón */
  font-size: 20px;
}
.packing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 30px;
}
.pack-item {
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 25px 15px;
  box-shadow: 0 4px 10px rgba(31, 41, 55, 0.03);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pack-item:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary); /* Borde Naranja al hover */
  box-shadow: 0 15px 30px rgba(255, 62, 0, 0.08);
}
.pack-img-wrapper {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pack-icon {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(31, 41, 55, 0.1));
  transition: transform 0.3s ease;
}
.pack-item:hover .pack-icon {
  transform: scale(1.1);
}
.pack-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  width: 100%;
}

/* Tips */
.tips-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.tips-card {
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(31, 41, 55, 0.03);
}
.tips-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 25px;
  border-bottom: 1px solid #f0f0f0;
  background: var(--color-bg-light);
}
.tips-header i {
  color: var(--color-primary); /* Íconos Naranja */
  font-size: 24px;
}
.tips-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.tips-body {
  padding: 30px;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
}
.tips-body ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.tips-body li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
}
.tips-body li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-primary); /* Check Naranja */
  font-size: 20px;
  background: rgba(255, 62, 0, 0.1);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tips-card.essentials-box {
  background: var(--color-secondary); /* Fondo Gris Carbón para info esencial */
  border: none;
  color: var(--color-white);
}
.essentials-box .tips-header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.essentials-box .tips-header h4,
.essentials-box .tips-header i {
  color: var(--color-white);
}
.essentials-list {
  padding: 25px;
  margin: 0;
}
.essentials-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.essentials-list li:last-child {
  margin-bottom: 0;
}
.essentials-list .icon {
  background: rgba(255, 62, 0, 0.2); /* Fondo suave Naranja */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.essentials-list .icon i {
  color: var(--color-primary); /* Ícono Naranja Vibrante */
  font-size: 20px;
}
.essentials-list .text {
  display: flex;
  flex-direction: column;
}
.essentials-list strong {
  font-size: 0.95rem;
  color: var(--color-white);
  margin-bottom: 3px;
}
.essentials-list span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* FAQs (Acordeón Animado) */
.faqs-container {
  max-width: 800px;
  margin: 0 auto;
}
.faqs-header-block {
  text-align: center;
  margin-bottom: 40px;
}
.faqs-header-block i {
  font-size: 40px;
  color: var(--color-primary); /* Naranja Vibrante */
  margin-bottom: 15px;
  opacity: 0.2;
}
.faqs-header-block h3 {
  font-size: 1.5rem;
  color: var(--color-secondary); /* Título Gris Carbón Oscuro */
  margin-bottom: 5px;
}
.faqs-header-block p {
  color: #6b7280;
  font-size: 0.95rem;
}
.tour-faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(255, 62, 0, 0.05);
}
.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(255, 62, 0, 0.08);
}
.faq-question {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-white);
  position: relative;
  z-index: 2;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question:hover {
  color: var(--color-primary); /* Naranja Vibrante al hover */
}
.faq-icon {
  color: #9ca3af;
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--color-primary); /* Icono Naranja al abrir */
  color: var(--color-white);
}
.faq-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0 25px 25px 25px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.7;
  background: var(--color-white);
  border-top: 1px solid transparent;
}
.faq-item[open] .faq-content-wrapper {
  grid-template-rows: 1fr;
}
.faq-item[open] .faq-answer-inner {
  opacity: 1;
  border-top-color: #f3f4f6;
  padding-top: 20px;
}
/* Estado cerrando JS */
.faq-item.is-closing .faq-content-wrapper {
  grid-template-rows: 0fr;
}
.faq-item.is-closing .faq-answer-inner {
  opacity: 0;
  padding-bottom: 0;
}
.faq-item.is-closing .faq-icon {
  transform: rotate(0deg);
  background: #f3f4f6;
  color: #9ca3af;
}

.recommendations-box {
  background: rgba(255, 62, 0, 0.03); /* Fondo Naranja muy claro */
  border-left: 4px solid var(--color-primary); /* Línea Naranja */
  padding: 20px;
  margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   11. TAB CONTACTO (CF7 FORM)
   -------------------------------------------------------------------------- */
.contact-tab-wrapper {
  max-width: 850px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.02);
}
.contact-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 25px;
}
.contact-header .icon-header {
  width: 50px;
  height: 50px;
  background: var(--color-secondary); /* Ícono Gris Carbón Oscuro */
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.contact-header h3 {
  margin: 0 0 5px 0;
  color: var(--color-primary); /* Título Naranja Vibrante */
  font-size: 1.4rem;
}
.contact-header p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}
.wpcf7-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group-full {
  grid-column: 1 / -1;
}
.contact-tab-wrapper .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 5px;
}
.contact-tab-wrapper .form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary); /* Label Gris Carbón Oscuro */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--color-bg-light);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  background-color: var(--color-white);
  border-color: var(--color-primary); /* Borde Naranja al escribir */
  box-shadow: 0 0 0 4px rgba(255, 62, 0, 0.1); /* Resplandor Naranja */
  outline: none;
}
.wpcf7-form textarea {
  height: 120px;
  resize: vertical;
}
.captcha-group {
  background: var(--color-bg-light);
  border: 1px dashed #d1d5db;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wpcf7-captchac {
  border-radius: 4px;
  border: 1px solid #ccc;
}
.wpcf7-captchar {
  max-width: 250px;
}
.form-submit-button {
  background-color: var(
    --color-primary
  ) !important; /* Botón Enviar Naranja Vibrante */
  color: var(--color-white) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 40px !important;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.3s !important,
    box-shadow 0.3s;
  width: 100%;
  font-size: 1rem !important;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(255, 62, 0, 0.2);
}
.form-submit-button:hover {
  background-color: var(--color-hover) !important; /* Naranja Oscuro al hover */
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 62, 0, 0.3);
}

/* --------------------------------------------------------------------------
   12. TOURS RELACIONADOS (CARRUSEL SPLIDE)
   -------------------------------------------------------------------------- */
.related-tours-wrapper {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #e5e5e5;
  margin-bottom: 60px;
  position: relative;
}
.related-tours-wrapper .section-heading {
  margin-bottom: 40px;
  text-align: left;
}
.related-splide {
  padding: 10px 5px 50px 5px;
}
.related-splide .splide__slide {
  height: auto;
  display: flex;
}
.related-splide .splide__slide article,
.related-splide .splide__slide .tour-card {
  width: 100%;
  margin-bottom: 0;
}
.related-splide .splide__arrow {
  background: var(--color-white);
  opacity: 1;
  width: 45px;
  height: 45px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 15px rgba(31, 41, 55, 0.05);
  transition: all 0.3s ease;
}
.related-splide .splide__arrow svg {
  fill: var(--color-primary); /* Flecha Naranja Vibrante */
  width: 18px;
  height: 18px;
  transition: fill 0.3s ease;
}
.related-splide .splide__arrow:hover {
  background: var(--color-primary); /* Fondo Naranja al hover */
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 62, 0, 0.2);
}
.related-splide .splide__arrow:hover svg {
  fill: var(--color-white);
}
.related-splide .splide__arrow--prev {
  left: -15px;
}
.related-splide .splide__arrow--next {
  right: -15px;
}
.related-splide .splide__pagination {
  bottom: 0;
}
.related-splide .splide__pagination__page {
  background: #d1d5db;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.related-splide .splide__pagination__page.is-active {
  background: var(--color-primary); /* Punto activo Naranja Vibrante */
  transform: scale(1.4);
  opacity: 1;
}

/* ==========================================================================
   13. SIDEBAR & BOOKING WIDGET (DARK MODE & STICKY FIX)
   ========================================================================== */

.tour-sidebar {
  width: 100%;
  min-width: 0;
}

/* --- CONTENEDOR STICKY --- */
.sidebar-inner-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 200px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* --- ESTILO BASE DEL WIDGET (DARK) --- */
.sidebar-widget {
  background: #111827; /* Gris Carbón Extra Oscuro */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.2);
  flex-shrink: 0;
}

/* --- WIDGET 1: RESERVA --- */
.booking-card {
  border-top: 4px solid var(--color-primary); /* Línea superior Naranja Vibrante */
}

/* Header (Precio) */
.booking-header {
  padding: 25px 20px;
  background: #1f2937; /* Gris Carbón Oscuro (Secondary) */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}
.booking-header .price-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.booking-header .price-value {
  display: flex;
  justify-content: center;
  align-items: baseline;
  color: var(--color-white);
  line-height: 1;
}
.booking-header .amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-white);
}
.booking-header .currency {
  font-size: 1.2rem;
  margin-right: 4px;
  color: var(--color-primary); /* Moneda en Naranja Vibrante */
  font-weight: 600;
}

/* Cuerpo Form */
.booking-body {
  padding: 25px 20px;
}
.booking-body * {
  box-sizing: border-box;
}
.booking-body .form-group {
  margin-bottom: 20px;
}
.booking-body .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.booking-body .form-label i {
  color: var(--color-primary); /* Iconos de label en Naranja Vibrante */
  font-size: 14px;
}

/* Inputs (Oscuros) */
.input-classic,
.flatpickr-input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #374151; /* Borde sutil oscuro */
  border-radius: 8px;
  font-size: 0.9rem;
  background: #1f2937; /* Fondo input Gris Carbón Oscuro */
  color: var(--color-white);
  transition: 0.3s;
}
.input-classic:focus,
.flatpickr-input:focus {
  border-color: var(--color-primary); /* Borde Naranja al enfocar */
  background: #111827;
  outline: none;
}
.input-classic::placeholder,
.flatpickr-input::placeholder {
  color: #6b7280;
}

/* Fix Teléfono (Dark Mode) */
.iti {
  width: 100%;
  display: block;
}
.iti__country-list {
  background-color: #1f2937 !important;
  border: 1px solid #374151 !important;
  color: var(--color-white) !important;
  width: 280px;
  white-space: normal;
}
.iti__country-name,
.iti__country {
  color: var(--color-white) !important;
}
.iti__country-list .iti__country:hover,
.iti__country-list .iti__country.iti__highlight {
  background-color: #374151 !important; /* Hover gris más claro */
  color: var(--color-primary) !important; /* País en naranja */
}

/* Contador Pax */
.pax-counter-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 4px;
  height: 48px;
}
.pax-btn {
  width: 40px;
  height: 100%;
  border-radius: 6px;
  border: none;
  background: #374151;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.pax-btn:hover {
  background: var(--color-primary); /* Botón Naranja Vibrante al hover */
}
.pax-counter-wrapper input {
  width: calc(100% - 90px);
  background: transparent;
  border: none;
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  pointer-events: none;
}

/* Total & Actions */
.cost-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed #374151;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}
.cost-summary .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  font-size: 0.9rem;
}
.total-amount {
  color: var(--color-primary); /* Total en Naranja Vibrante */
  font-weight: 800;
  font-size: 1.2rem;
}

.btn-main-action {
  width: 100%;
  background: var(--color-primary); /* Botón Book Now Naranja Vibrante */
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(255, 62, 0, 0.3); /* Sombra naranja */
}
.btn-main-action:hover {
  background: var(--color-hover); /* Naranja Oscuro al hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 62, 0, 0.4);
}
.btn-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.btn-sub {
  font-size: 0.7rem;
  opacity: 0.8;
}

.btn-secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid #374151;
  border-radius: 50px;
  color: #9ca3af;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.btn-secondary-action:hover {
  border-color: var(--color-whatsapp);
  color: var(--color-whatsapp);
  background: rgba(37, 211, 102, 0.05);
}

/* Machu Picchu Box */
.restricted-box {
  text-align: center;
  padding: 10px 0;
  background: #1f2937;
  border-radius: 8px;
  border: 1px solid #374151;
}
.restricted-box h4 {
  color: var(--color-white);
  margin-bottom: 5px;
}
.restricted-box p {
  color: #9ca3af;
  font-size: 0.9rem;
}
.btn-whatsapp-primary {
  display: block;
  background: var(--color-whatsapp);
  color: var(--color-white);
  padding: 15px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  margin-top: 15px;
}

/* --- WIDGETS INFERIORES --- */
.usp-list {
  padding: 20px;
  background: #111827; /* Gris Extra Oscuro */
}
.usp-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}
.usp-list li:last-child {
  margin-bottom: 0;
}
.usp-list .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 62, 0, 0.1); /* Fondo Naranja sutil */
  color: var(--color-primary); /* Icono Naranja Vibrante */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 62, 0, 0.2);
  flex-shrink: 0;
}
.usp-list .text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-white);
  margin-bottom: 2px;
}
.usp-list .text span {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ==========================================================================
   14. PERSONALIZACIÓN UI: CALENDARIO (FLATPICKR) & INPUTS
   ========================================================================== */

/* Ocultar flechas de inputs numéricos */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* --- CALENDARIO PRINCIPAL --- */
.flatpickr-calendar {
  font-family: var(--font-body) !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 40px rgba(31, 41, 55, 0.25) !important;
  background: var(--color-white) !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 320px !important;
}

/* Cabecera (Naranja) */
.flatpickr-months {
  background: var(--color-primary) !important; /* Naranja Vibrante */
  color: var(--color-white) !important;
  padding: 15px 0 !important;
  position: relative;
  display: flex;
  align-items: center;
}

/* Flechas Navegación */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 30px !important;
  width: 30px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  fill: var(--color-white) !important;
}
.flatpickr-months .flatpickr-prev-month {
  left: 10px !important;
}
.flatpickr-months .flatpickr-next-month {
  right: 10px !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--color-secondary) !important; /* Gris Carbón al hover */
}

/* Selector Meses */
.flatpickr-current-month {
  padding-top: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  bottom: auto !important;
  width: 100%;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background-color: transparent !important;
  color: var(--color-white) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  border: none !important;
  outline: none !important;
  appearance: none;
  cursor: pointer;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
}
.flatpickr-current-month
  .flatpickr-monthDropdown-months
  .flatpickr-monthDropdown-month {
  background-color: var(--color-white) !important;
  color: var(--color-text) !important;
  padding: 5px;
}
.flatpickr-current-month input.cur-year {
  color: var(--color-white) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-left: 5px !important;
}

/* Días */
.flatpickr-weekdays {
  background: var(--color-primary) !important; /* Naranja Vibrante */
  padding-bottom: 5px !important;
}
span.flatpickr-weekday {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
}
.flatpickr-days {
  padding: 10px !important;
  border-top: 1px solid #eee;
}
.flatpickr-day {
  border-radius: 8px !important;
  height: 36px !important;
  line-height: 36px !important;
  margin-top: 4px !important;
  color: var(--color-text) !important;
}
.flatpickr-day:hover {
  background: var(--color-bg-light) !important;
  border-color: transparent !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(
    --color-secondary
  ) !important; /* Día seleccionado en Gris Carbón */
  border-color: var(--color-secondary) !important;
  color: var(--color-white) !important;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(31, 41, 55, 0.3) !important;
}
.flatpickr-day.today {
  border-color: var(--color-primary) !important; /* Borde naranja para hoy */
  color: var(--color-primary) !important;
  font-weight: 800 !important;
}
.flatpickr-day.today:hover {
  background: var(--color-bg-light) !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #d1d5db !important;
  background: transparent !important;
  cursor: not-allowed;
}

/* ==========================================================================
   15. RESPONSIVE GENERAL & MOBILE UX (BARRA INFERIOR)
   ========================================================================== */

/* --- BARRA MÓVIL INFERIOR (Sticky Bottom Bar) --- */
.mobile-book-bar {
  display: none; /* Oculto en PC */
}

@media (max-width: 1024px) {
  .section-single-tour {
    padding-bottom: 100px;
  } /* Espacio extra para la barra fija */

  .mobile-book-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    background: var(--color-white);
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(31, 41, 55, 0.1);
    z-index: 9999;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
  }

  .m-info {
    display: flex;
    flex-direction: column;
  }
  .m-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
  }
  .m-price {
    color: var(--color-text); /* Precio móvil Gris Carbón Oscuro */
    font-weight: 800;
    font-size: 1.4rem;
    font-family: var(--font-heading);
  }
  .m-btn-book {
    background: var(--color-primary); /* Botón Móvil Naranja Vibrante */
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 62, 0, 0.3); /* Sombra naranja */
    transition: 0.3s;
  }
  .m-btn-book:hover {
    transform: scale(1.05);
    background: var(--color-hover);
  }

  /* Layout Colapsado (Sidebar abajo) */
  .tour-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tour-sidebar {
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    order: 2;
  }
  .sidebar-inner-sticky {
    position: static;
    padding-bottom: 0;
  }
  .booking-card {
    border-top: none;
    border-radius: 16px;
  }

  /* Swiper Arrows dentro */
  .related-splide .splide__arrow--prev {
    left: 10px;
  }
  .related-splide .splide__arrow--next {
    right: 10px;
  }
}

/* --- MÓVILES (< 768px) --- */
@media (max-width: 768px) {
  /* Snapshot 2 columnas */
  .tour-snapshot.dark-mode {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
  }
  .snap-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Galería simple */
  .tour-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 8px;
  }
  .item-0 {
    grid-column: 1 / -1;
    height: 220px;
  }
  .item-1,
  .item-2,
  .item-3 {
    grid-column: auto;
    grid-row: auto;
    height: 160px;
  }

  /* Grids a 1 columna */
  .inclusions-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .packing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .tips-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .wpcf7-form .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .contact-header {
    flex-direction: column;
    text-align: center;
  }

  /* Fix Calendario Móvil */
  .flatpickr-calendar {
    width: 300px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .flatpickr-months .flatpickr-prev-month {
    left: 0 !important;
  }
  .flatpickr-months .flatpickr-next-month {
    right: 0 !important;
  }

  /* Fix Teléfono Móvil */
  .iti__country-list {
    width: 90vw;
    max-width: 300px;
  }
}
