/* =====================================================================
   AMADORA TOUR · Página de inicio
   ===================================================================== */

.only-touch { display: none; }
@media (hover: none) {
  .only-hover { display: none; }
  .only-touch { display: inline; }
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  min-height: calc(100svh - var(--header-h) - var(--topbar-h));
  display: flex; align-items: center; padding: 36px 0 64px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 92% -5%, rgba(250, 202, 42, .55), rgba(250, 202, 42, 0) 70%),
    linear-gradient(90deg, rgba(13, 45, 66, .10) 0%, rgba(13, 45, 66, 0) 38%, rgba(13, 45, 66, .38) 100%),
    linear-gradient(180deg, rgba(13, 45, 66, .18) 0%, rgba(13, 45, 66, 0) 30%, rgba(13, 45, 66, 0) 75%, rgba(13, 45, 66, .25) 100%),
    url("../img/playa.jpg") center 58% / cover no-repeat;
  animation: drift 26s ease-in-out infinite alternate;
  transform-origin: 30% 60%;
}
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero__inner {
  display: grid; align-items: center; column-gap: clamp(20px, 4vw, 64px); row-gap: 22px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  grid-template-areas: "globe intro" "globe list";
  grid-template-rows: auto 1fr;
}
.hero__intro { grid-area: intro; align-self: end; }
.hero__eyebrow {
  display: inline-block; background: rgba(255,255,255,.9); color: var(--ink);
  font-weight: 800; font-size: .8rem; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px;
  border-left: 4px solid var(--green);
}
.hero h1 {
  font-weight: 900; font-size: clamp(2.4rem, 4.4vw, 4.1rem); line-height: .98; margin-top: 14px;
  text-shadow: 0 4px 24px rgba(8, 40, 60, .45);
}
.hero h1 span { color: var(--yellow); display: inline-block; }
.hero__lead { margin-top: 12px; font-size: 1.12rem; font-weight: 700; max-width: 34ch; text-shadow: 0 2px 12px rgba(8, 40, 60, .6); }

/* ----------------------------- Globo ----------------------------- */
.globe-wrap {
  grid-area: globe; position: relative; justify-self: center;
  width: min(100%, 660px, calc(100svh - var(--header-h) - var(--topbar-h) - 150px));
  min-width: 300px; aspect-ratio: 1; margin-bottom: 9%;
}
.globe-stand { position: absolute; left: 0; top: 0; width: 100%; height: 113%; overflow: visible; z-index: 0; filter: drop-shadow(0 18px 18px rgba(30, 30, 10, .28)); }
.globe { position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe canvas { outline: none; }
.globe-gloss {
  position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; border-radius: 50%; pointer-events: none; z-index: 2;
  background:
    radial-gradient(circle at 33% 27%, rgba(255,255,255,.5) 0%, rgba(255,255,255,.12) 16%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 64%, rgba(8, 50, 80, .22) 100%);
}
.globe-fallback { display: none; position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #c9f0fb, #5cbfe3 55%, #2b8db8); }
.no-webgl .globe-fallback { display: block; }

.globe-chip {
  position: absolute; z-index: 4; right: -2%; top: 4%;
  display: grid; gap: 1px; min-width: 210px; max-width: 260px; padding: 12px 16px 13px;
  background: var(--white); color: var(--ink); text-decoration: none; border-radius: 18px;
  box-shadow: 0 18px 40px -16px rgba(10, 40, 60, .55); border-top: 5px solid var(--orange);
  transform-origin: 0 100%; animation: chip-in .35s cubic-bezier(.2,.8,.2,1);
}
.globe-chip[hidden] { display: none; }
.globe-chip__label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.globe-chip__name { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; line-height: 1.1; }
.globe-chip__meta { font-size: .86rem; font-weight: 700; color: var(--muted); }
.globe-chip__meta b { color: var(--orange); }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.globe-hint {
  position: absolute; z-index: 4; left: 0; bottom: -2%;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: rgba(22, 50, 64, .62); backdrop-filter: blur(6px); font-size: .82rem; font-weight: 700;
}
.globe-hint .icon { color: var(--yellow); font-size: 17px; }

/* Marcadores sobre el globo */
.spot { position: relative; pointer-events: none; transition: opacity .25s; }
.spot__dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); border: 2.5px solid var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.spot__label {
  position: absolute; left: 11px; top: calc(-12px + var(--dy, 0px)); white-space: nowrap;
  background: rgba(255,255,255,.95); color: var(--ink); font: 800 12px/1 var(--font-body);
  padding: 5px 8px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.25);
  animation: chip-in .4s both;
}
.spot--izq .spot__label { left: auto; right: 11px; }
.gtip { background: var(--ink); color: var(--white); font: 700 13px/1.3 var(--font-body); padding: 8px 12px; border-radius: 10px; border-left: 4px solid var(--yellow); }
.gtip b { display: block; font-family: var(--font-display); font-size: 14px; }

/* ----------------------------- Lista de destinos ----------------------------- */
.dest-list { grid-area: list; align-self: start; display: grid; gap: 12px; max-width: 440px; width: 100%; }
.dest {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 12px 12px 26px; border-radius: 999px; text-decoration: none; color: var(--white);
  background: linear-gradient(90deg, #e04a26 0%, var(--orange) 45%, var(--orange-soft) 100%);
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 26px -14px rgba(120, 40, 0, .9);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, border-color .25s;
}
.dest__txt { display: grid; min-width: 0; }
.dest__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.55vw, 1.34rem); line-height: 1.15; }
.dest__meta { font-size: .82rem; font-weight: 700; opacity: .92; min-height: 1.1em; }
.dest__go {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.2); font-size: 20px; transition: background .25s, transform .3s;
}
.dest:hover, .dest.is-active {
  transform: translateX(-10px); color: var(--ink); border-color: var(--white);
  background: linear-gradient(90deg, var(--yellow), #ffdb63);
}
.dest:hover .dest__go, .dest.is-active .dest__go { background: var(--orange); color: var(--white); transform: rotate(-20deg); }
.dest.is-active::before {
  content: ""; position: absolute; left: -16px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(250, 202, 42, .35);
}

/* ----------------------------- Promociones ----------------------------- */
.promos { background: var(--sand); padding: 84px 0 76px; position: relative; }
.promos::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--sky) 0 40%, var(--yellow) 40% 70%, var(--orange) 70% 90%, var(--green) 90% 96%, var(--brown) 96%);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--green); }
.section-head h2 { font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-btn { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); color: var(--ink); display: grid; place-items: center; font-size: 22px; transition: .2s; }
.rail-btn:hover { background: var(--ink); color: var(--white); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 66px) / 4)); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 26px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--orange) transparent;
}
.rail > .card { scroll-snap-align: start; }
.rail .card__title { font-size: 1.35rem; }
.rail .card__price { font-size: 2.1rem; }

/* ----------------------------- Por qué ----------------------------- */
.why { padding: 70px 0; }
.why__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.why__item { display: grid; gap: 10px; align-content: start; }
.why__ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-pale); border: 3px solid var(--yellow); color: var(--green); font-size: 28px; }
.why__item h3 { font-size: 1.15rem; font-weight: 800; margin-top: 6px; }
.why__item p { color: var(--muted); }
.why__item h3::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--brown); opacity: .55; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 1100px) {
  .rail { grid-auto-columns: minmax(270px, calc((100% - 44px) / 3)); }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { padding: 28px 0 48px; min-height: 0; }
  .hero__bg {
    background:
      radial-gradient(70% 40% at 90% 0%, rgba(250, 202, 42, .45), rgba(250, 202, 42, 0) 70%),
      linear-gradient(180deg, rgba(13, 45, 66, .30) 0%, rgba(13, 45, 66, .05) 40%, rgba(13, 45, 66, .35) 100%),
      url("../img/playa-mobile.jpg") 70% 50% / cover no-repeat;
  }
  .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "globe" "list"; grid-template-rows: auto; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .globe-wrap { width: min(86vw, 460px); min-width: 0; margin: 10px 0 12%; }
  .globe-chip { display: none; }
  .globe-hint { left: 50%; transform: translateX(-50%); bottom: auto; top: -6px; font-size: .74rem; white-space: nowrap; padding: 5px 11px; }
  .spot__label { font-size: 10.5px; padding: 4px 6px; }
  .dest-list { justify-self: center; text-align: left; }
  .dest:hover, .dest.is-active { transform: none; }
  .dest.is-active::before { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .rail-ctrl { display: none; }
}
@media (max-width: 560px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-auto-columns: 82%; }
}

/* ----------------------------- 8 destinos: grilla de 2 columnas ----------------------------- */
.dest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; gap: 10px; }
.dest { padding: 10px 10px 10px 18px; border-radius: 20px; gap: 8px; }
.dest__name { font-size: clamp(.98rem, 1.2vw, 1.08rem); }
.dest__meta { font-size: .74rem; }
.dest__go { width: 34px; height: 34px; font-size: 17px; }
/* Sin desplazamiento al pasar el mouse: evitaba que el botón "saltara" y cambiara de sección solo */
.dest:hover, .dest.is-active { transform: none; box-shadow: 0 0 0 3px rgba(255,255,255,.65), 0 12px 26px -14px rgba(120, 40, 0, .9); }
.dest.is-active::before { display: none; }
.spot--mini .spot__label { display: none; }
.spot--mini .spot__dot { width: 9px; height: 9px; left: -4.5px; top: -4.5px; border-width: 2px; }
@media (max-width: 900px) {
  .dest-list { max-width: 620px; }
  .dest:hover, .dest.is-active { transform: none; }
}
@media (max-width: 520px) {
  .dest-list { grid-template-columns: minmax(0, 1fr); }
}

.globe-chip { max-width: 300px; }
.globe-chip__places { margin-top: 6px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: .78rem; font-weight: 700; line-height: 1.35; color: var(--ink-2); }
.globe-chip__places[hidden] { display: none; }

/* =====================================================================
   Filas de paquetes del inicio
   ===================================================================== */
.rows { background: var(--white); padding: 64px 0 40px; position: relative; }
.rows::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--sky) 0 40%, var(--yellow) 40% 70%, var(--orange) 70% 90%, var(--green) 90% 96%, var(--brown) 96%);
}
.row + .row { margin-top: 58px; }
.row__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.row__head h2 { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.85rem); color: var(--ink); letter-spacing: -.01em; }
.sun-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--yellow) 0 55%, var(--orange-soft) 100%); box-shadow: 0 0 0 4px rgba(250, 202, 42, .25); }
.see-all { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .95rem; color: var(--ink); text-decoration: none; }
.see-all .icon { color: var(--orange); font-size: 18px; stroke-width: 2.4; transition: transform .2s; }
.see-all:hover { color: var(--orange); }
.see-all:hover .icon { transform: translateX(3px); }

.row__grid { display: grid; gap: 20px; }
.row__grid--foto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row__grid--blanca, .row__grid--oscura { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Base común: la tarjeta entera es un botón que abre el detalle */
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  border: 0; padding: 0; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border-radius: 18px; background: linear-gradient(160deg, #2b6f8a, #163240 70%);
  box-shadow: 0 14px 30px -20px rgba(22, 50, 64, .7);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(22, 50, 64, .8); }
.tile__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile__media img { transform: scale(1.06); }
.tile__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1; max-width: calc(100% - 28px);
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .78rem; line-height: 1.2;
  padding: 6px 11px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; line-height: 1.15; }
.tile__chip {
  display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.tile__icons { display: flex; gap: 12px; }
.tile__icons .icon { font-size: 21px; stroke-width: 1.7; }

/* Estilo "foto": tarjeta alta con la foto de fondo */
.tile--foto { aspect-ratio: 27 / 42; color: var(--white); }
.tile--foto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,36,48,.35) 0%, rgba(14,36,48,0) 22%, rgba(14,36,48,0) 40%, rgba(14,36,48,.7) 64%, rgba(14,36,48,.95) 100%);
}
.tile__over { margin-top: auto; padding: 18px; display: grid; gap: 10px; justify-items: start; }
.tile--foto .tile__chip, .tile--oscura .tile__chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.55); color: var(--white); }
.tile__price { display: grid; gap: 1px; }
.tile__price small { font-size: .78rem; font-weight: 700; opacity: .9; }
.tile__price strong { font-family: var(--font-display); font-weight: 900; font-size: 1.55rem; line-height: 1; }

/* Estilo "oscura": compacta, con el precio en un recuadro blanco */
.tile--oscura { min-height: 290px; color: var(--white); background: var(--ink); }
.tile--oscura .tile__media img { opacity: .42; }
.tile--oscura::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,50,64,.2), rgba(22,50,64,.85)); }
.tile--oscura .tile__over { padding: 64px 18px 18px; grid-template-columns: 1fr auto; align-items: end; column-gap: 14px; }
.tile--oscura .tile__title, .tile--oscura .tile__chip, .tile--oscura .tile__icons { grid-column: 1 / -1; }
.tile--oscura .tile__title { font-size: 1.32rem; }
.tile--oscura .tile__price { grid-column: 2; justify-self: end; background: var(--white); color: var(--ink); border-radius: 12px; padding: 8px 12px; text-align: right; }
.tile--oscura .tile__price strong { color: var(--orange); font-size: 1.35rem; }
.tile--oscura .tile__icons { grid-column: 1; }

/* Estilo "blanca": foto arriba, datos abajo */
.tile--blanca { background: var(--white); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 10px 24px -20px rgba(22, 50, 64, .6); }
.tile--blanca .tile__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 8.3; }
.tile--blanca .tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.25)); }
.tile--blanca .tile__media { background: linear-gradient(160deg, #9edcf1, #5cbfe3); }
.tile--blanca .tile__chip { position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px); background: rgba(22, 50, 64, .88); color: var(--white); }
.tile__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 16px; flex: 1; }
.tile--blanca .tile__title { font-size: 1.18rem; color: var(--ink); }
.tile__icons--labels { gap: 6px 14px; flex-wrap: wrap; }
.tile__icons--labels > span { display: grid; justify-items: center; gap: 4px; min-width: 58px; }
.tile__icons--labels .icon { color: var(--green); font-size: 22px; }
.tile__icons--labels small { font-size: .7rem; font-weight: 700; color: var(--brown); }
.tile__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.tile__foot small { font-size: .8rem; font-weight: 800; color: var(--brown); }
.tile__foot strong { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; color: var(--orange); line-height: 1; }

@media (max-width: 1100px) {
  .row__grid--foto { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .row__grid--foto, .row__grid--blanca, .row__grid--oscura { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Celular: cada fila se desliza de costado */
@media (max-width: 620px) {
  .rows { padding-top: 48px; }
  .row + .row { margin-top: 44px; }
  .row__grid--foto, .row__grid--blanca, .row__grid--oscura {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px;
    scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .row__grid--foto { grid-auto-columns: 68%; }
  .row__grid::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
  .tile:hover { transform: none; }
  .row__head h2 { font-size: 1.3rem; }
  .see-all { font-size: .88rem; }
}
