:root {
  --dark: #120c07;
  --brown: #2d2013;
  --coffee: rgba(90, 58, 26, 0.48);
  --sand: #c49a6c;
  --sand-light: #ead7bd;
  --cream: #fff6e8;
  --muted: rgba(255, 246, 232, 0.76);
  --line: rgba(234, 215, 189, 0.22);
  --panel: rgba(18, 12, 7, 0.68);
  --radius: 10px;
}

.tourism-hero,
.tourism-hero *,
.tourism-hero *::before,
.tourism-hero *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.tourism-hero {
  position: relative;
  min-height: 100vh;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--dark) !important;
  color: var(--cream);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-carousel,
.hero-carousel .splide__track,
.hero-carousel .splide__list,
.hero-carousel .splide__slide {
  height: 100vh;
  min-height: 760px;
}

.splide__slide {
  overflow: hidden;
}

.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter: brightness(0.62) saturate(0.92) contrast(1.04);
  transition: transform 6s ease, filter 1s ease;
}

.splide__slide.is-active img {
  transform: scale(1);
  filter: brightness(0.68) saturate(0.94) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgb(78, 46, 20) 100% );
}

.sun-glow,
.map-lines,
.floating-route {
  display: none !important;
}

.hero-layout {
  position: relative;
  z-index: 7;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 132px 0 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  width: 100%;
  max-width: 760px;
}

.trip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 12, 7, 0.58);
  color: var(--sand-light);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trip-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
}

.hero-title {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--cream) !important;
  font-family: var(--ximbal-font-family);
  font-size: 80px;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-title span {
  color: var(--sand-light) !important;
}

.hero-text {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--muted) !important;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.btn-primary,
.btn-secondary {
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  border: 1px solid var(--sand);
  color: #2d2013;
  background: var(--sand-light);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--sand-light);
  background: rgba(18, 12, 7, 0.58);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  background: var(--cream);
}

.btn-secondary:hover {
  border-color: rgba(234, 215, 189, 0.44);
  background: rgba(45, 32, 19, 0.78);
}

.experience-panel,
.simple-search-panel {
  width: 100%;
  max-width: 460px;
  justify-self: center;
  align-self: center;
}

.experience-panel {
  display: grid;
  gap: 14px;
}

.destination-card,
.simple-search-card,
.info-box,
.place-chip {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.destination-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.destination-card::before,
.destination-card::after {
  display: none;
}

.card-label {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.destination-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--cream);
  font-family: var(--ximbal-font-family);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.destination-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(255, 246, 232, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.mini-route {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.route-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 246, 232, 0.76);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.route-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--sand);
}

.route-line {
  width: 1px;
  height: 14px;
  margin-left: 4px;
  background: var(--line);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.info-box {
  min-height: 82px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-box strong {
  display: block;
  margin-bottom: 7px;
  color: var(--sand-light);
  font-size: 20px;
  line-height: 1;
}

.info-box small {
  color: rgba(255, 246, 232, 0.62);
  font-size: 11px;
  line-height: 1.35;
}

.bottom-destinations {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 8;
  width: min(760px, calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.place-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.place-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(234, 215, 189, 0.38);
  background: rgba(45, 32, 19, 0.78);
}

.place-chip img {
  width: 58px;
  height: 50px;
  flex: 0 0 58px;
  border-radius: var(--radius);
  object-fit: cover;
  filter: brightness(0.92) saturate(0.9);
}

.place-chip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--cream);
  font-size: 13px;
  line-height: 1.2;
}

.place-chip span {
  color: rgba(255, 246, 232, 0.62);
  font-size: 12px;
  line-height: 1.25;
}

.slide-counter {
  position: absolute;
  right: 5vw;
  bottom: 42px;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--sand-light);
}

.slide-counter .current {
  font-size: 42px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.slide-counter .total {
  padding-bottom: 4px;
  color: rgba(234, 215, 189, 0.56);
  font-size: 14px;
  font-weight: 800;
}

.slide-counter .total::before {
  content: "/";
  margin-right: 6px;
}

.splide__pagination {
  display: none;
}

.scroll-hint {
  position: absolute;
  left: 5vw;
  top: 50%;
  z-index: 9;
  width: 34px;
  height: 70px;
  padding-top: 14px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 12, 7, 0.58);
  display: flex;
  justify-content: center;
}

.scroll-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
  animation: scrollDotMove 1.8s ease-in-out infinite;
}

@keyframes scrollDotMove {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  75% {
    transform: translateY(30px);
    opacity: 0.9;
  }

  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}

.simple-search-card {
  padding: 22px;
}

.simple-search-card h3 {
  margin: 0 0 18px;
  color: var(--cream) !important;
  font-family: var(--ximbal-font-family);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.simple-search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.simple-field {
  min-height: 54px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 12, 7, 0.54);
  color: rgba(255, 246, 232, 0.82);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.simple-field i:first-child {
  color: var(--sand-light);
  font-size: 18px;
}

.simple-field i:last-child {
  color: var(--sand);
  font-size: 11px;
}

.simple-search-btn {
  min-height: 54px;
  border: 1px solid var(--sand-light);
  border-radius: var(--radius);
  color: var(--brown);
  background: var(--sand-light);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
}

.simple-search-btn:hover {
  transform: translateY(-2px);
  background: var(--cream);
}

.simple-search-card p {
  margin: 15px 0 0;
  color: rgba(255, 246, 232, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.simple-search-card p span {
  color: var(--sand);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .hero-layout {
    width: min(780px, calc(100% - 36px));
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 122px 0 250px;
    text-align: center;
  }

  .hero-copy,
  .hero-title,
  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .experience-panel,
  .simple-search-panel {
    max-width: 560px;
  }

  .slide-counter {
    display: none;
  }

  .bottom-destinations {
    width: min(760px, calc(100% - 36px));
  }
}

@media (max-width: 760px) {
  .tourism-hero {
    min-height: auto;
  }

  .hero-carousel,
  .hero-carousel .splide__track,
  .hero-carousel .splide__list,
  .hero-carousel .splide__slide {
    height: 100%;
    min-height: 100%;
  }

  .splide__slide img {
    min-height: 100%;
    transform: scale(1.02);
    filter: brightness(0.56) saturate(0.94) contrast(1.04);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(18, 12, 7, 0.74) 0%, rgba(18, 12, 7, 0.48) 34%, rgba(18, 12, 7, 0.82) 74%, rgba(18, 12, 7, 0.96) 100%);
  }

  .scroll-hint,
  .slide-counter {
    display: none !important;
  }

  .hero-layout {
    width: calc(100% - 32px);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    padding: 96px 0 242px;
    text-align: center;
  }

  .trip-badge {
    margin-bottom: 16px;
    padding: 8px 11px;
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  .hero-title {
    font-size: clamp(40px, 13vw, 60px);
    line-height: 0.98;
    margin-bottom: 16px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.58;
    margin-bottom: 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    font-size: 13px;
  }

  .experience-panel,
  .simple-search-panel {
    max-width: none;
  }

  .destination-card,
  .simple-search-card {
    padding: 16px;
  }

  .card-label {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .destination-card h3 {
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .destination-card p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .mini-route {
    gap: 6px;
  }

  .route-item {
    justify-content: center;
    gap: 9px;
    font-size: 12px;
  }

  .route-line {
    height: 10px;
    margin: 0 auto;
  }

  .quick-info {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .info-box {
    min-height: 72px;
    padding: 12px 14px;
    align-items: center;
    text-align: center;
  }

  .info-box strong {
    font-size: 21px;
    margin-bottom: 5px;
  }

  .info-box small {
    font-size: 12px;
  }

  .bottom-destinations {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    transform: none;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .place-chip {
    min-height: 66px;
    padding: 8px 10px;
    gap: 10px;
    text-align: left;
  }

  .place-chip img {
    width: 54px;
    height: 46px;
    flex-basis: 54px;
  }

  .place-chip strong {
    font-size: 13px;
  }

  .place-chip span {
    font-size: 11px;
  }

  .simple-search-card h3 {
    font-size: 21px;
  }

  .simple-field,
  .simple-search-btn {
    min-height: 50px;
  }
}

@media (max-width: 420px) {
  .hero-layout {
    width: calc(100% - 28px);
    padding: 88px 0 226px;
  }

  .hero-title {
    font-size: clamp(37px, 13vw, 52px);
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.55;
  }

  .bottom-destinations {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .place-chip {
    min-height: 62px;
  }

  .place-chip img {
    width: 50px;
    height: 42px;
    flex-basis: 50px;
  }
}


/* =====================================================
   ANIMACIÓN LANDING - SISTEMA DE LUZ ETÉREA (v2.0)
   Inspiración: Fusión Cuántica / Constelación Viva
===================================================== */

.landing-route-animation {
  position: absolute;
  top: 78px;
  right: 42px;
  width: 285px;
  height: 250px;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  /* El secreto para la fusión de color con el cielo */
  mix-blend-mode: color-dodge;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

/* --- CAMPO GRAVITACIONAL 1 (Flujo Líquido) --- */
/* Reemplaza la ruta dashed rígida original */
.landing-route-animation::before {
  content: "";
  position: absolute;
  inset: 0;
  
  /* Creamos un "borde" líquido con máscaras, etéreo y fino */
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255, 174, 0, 0.05) 70%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  
  /* Forma orgánica mutante (el aura de Gemini) */
  border-radius: 60% 40% 70% 30% / 40% 60% 40% 60%;
  animation: liquidFlow 9s ease-in-out infinite;
  
  filter: blur(0.8px);
}

/* --- CAMPO GRAVITACIONAL 2 (Resonancia Dorada) --- */
/* Actúa como un eco de luz que aparece y desaparece */
.landing-route-animation::after {
  content: "";
  position: absolute;
  inset: 15px;
  
  border: 1.5px solid transparent;
  background: linear-gradient(-45deg, rgba(255, 174, 0, 0.45), rgba(255, 255, 255, 0.05) 70%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  animation: liquidFlowAlt 12s ease-in-out infinite;
  
  filter: blur(1px);
}

/* --- LOS PUNTOS DE LA CONSTELACIÓN (Las Estrellas) --- */
/* Se mantienen en su posición pero se vuelven más etéreas */
.route-dot {
  position: absolute;
  width: 6px; /* Más finos */
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  /* Un glow multi-capa */
  box-shadow:
    0 0 10px #ffffff,
    0 0 20px rgba(255, 174, 0, 0.5),
    0 0 35px rgba(255, 255, 255, 0.2);
  
  animation: sparkTitilation 4s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* Posiciones asimétricas simulando constelaciones reales */
/* (Asegúrate de tener 5 elementos HTML con esta clase) */
.route-dot:nth-child(1) { top: 15%; right: 25%; animation-delay: 0s; }
.route-dot:nth-child(2) { top: 38%; left: 18%; animation-delay: 0.8s; width: 4px; height: 4px; }
.route-dot:nth-child(3) { top: 52%; right: 10%; animation-delay: 1.6s; box-shadow: 0 0 15px rgba(255, 174, 0, 0.9); }
.route-dot:nth-child(4) { bottom: 22%; left: 32%; animation-delay: 2.4s; }
.route-dot:nth-child(5) { bottom: 8%; right: 18%; animation-delay: 3.2s; width: 5px; height: 5px; }

/* --- EL PULSO VIAJERO "TRAIL" --- */
/* Ya no es un punto. Es un destello con estela de movimiento */
.route-traveler {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 30%, rgba(255, 174, 0, 1) 80%);
  
  box-shadow:
    0 0 15px #ffffff,
    0 0 30px rgba(255, 174, 0, 0.8),
    0 0 60px rgba(255, 255, 255, 0.4);
  
  /* Curva de movimiento súper fluida (teletransportación) */
  animation: geminiPulseTravelTrail 5s cubic-bezier(0.25, 1.2, 0.5, 1) infinite;
}

/* =====================================================
   KEYFRAMES - LA FÍSICA CUÁNTICA
===================================================== */

/* 1. Deformación Líquida (las ondas mutantes) */
@keyframes liquidFlow {
  0%, 100% {
    border-radius: 60% 40% 70% 30% / 40% 60% 40% 60%;
    transform: rotate(0deg) scale(1);
    opacity: 0.2;
  }
  33% {
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    transform: rotate(3deg) scale(1.02);
    opacity: 0.5;
  }
  66% {
    border-radius: 55% 45% 60% 40% / 45% 55% 40% 60%;
    transform: rotate(-2deg) scale(0.98);
    opacity: 0.3;
  }
}

@keyframes liquidFlowAlt {
  0%, 100% {
    border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
    transform: rotate(0deg) scale(1);
    opacity: 0.1;
  }
  50% {
    border-radius: 55% 45% 65% 35% / 45% 55% 35% 65%;
    transform: rotate(-7deg) scale(1.04);
    opacity: 0.4;
  }
}

/* 2. Titileo de Estrellas (más sutil y difuminado) */
@keyframes sparkTitilation {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.5;
    filter: blur(0px);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    filter: blur(0.5px);
  }
}

/* 3. Trayectoria de Estrella Fugaz con "Estela" */
@keyframes geminiPulseTravelTrail {
  0% {
    top: 15%;
    left: 80%;
    transform: scale(0);
    opacity: 0;
  }
  /* Aparece */
  10% {
    opacity: 1;
    transform: scale(1.1);
  }
  /* Primer viaje rápido con "rastro de movimiento" */
  35% {
    top: 40%;
    left: 10%;
    /* Efecto estela de movimiento sutil */
    transform: scale(0.9) skewX(-15deg);
  }
  /* Segundo viaje, cambia de dirección */
  65% {
    top: 75%;
    left: 70%;
    transform: scale(1.05) skewX(10deg);
    box-shadow: 0 0 25px rgba(255, 174, 0, 1);
  }
  /* Desvanece */
  90% {
    opacity: 1;
    transform: scale(0.7);
  }
  100% {
    top: 90%;
    left: 35%;
    transform: scale(0);
    opacity: 0;
  }
}

/* Responsivo */
@media (max-width: 992px) {
  .landing-route-animation {
    top: 60px;
    right: 20px;
    width: 200px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .landing-route-animation {
    top: 40px;
    right: 10px;
    width: 140px;
    height: 140px;
  }
  .landing-route-animation::after {
    display: none; /* Simplificamos */
  }
  .route-dot:nth-child(4),
  .route-dot:nth-child(5) {
    display: none;
  }
}
