/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */
:root {
  --font-color: #0a1126; /* neutral-900 */
  --visible-content: 100%;
  --hide-content: unset;
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

html,
body {
  /* min- y no height fija: con height:100% el contenido desbordaba el body y
     el header sticky moría al final de la primera pantalla (además Chrome
     rompe el smooth scroll a anclas con esa cadena de alturas fijas) */
  min-height: 100%;
  color: var(--font-color);
  scroll-behavior: smooth;
}

mark {
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  border-radius: 0.8em 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgb(255 225 0 / 10%),
    rgb(255 225 0 / 70%) 4%,
    rgb(255 225 0 / 30%)
  );
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.tbc {
  border: 1px solid transparent;
}

/* ============================================================
   Rediseño "detalle del viaje" (mockup v3) — capa de movimiento
   y reglas base. Las clases con tokens de color viven en
   config/tailwind/tailwind-input.css (@layer components).
   TODO se apaga con prefers-reduced-motion (bloque final).

   DECISIÓN CONSCIENTE: las reglas de elemento (svg, input/select,
   details[open], [id], :focus-visible) son GLOBALES a propósito —
   el sistema del rediseño aplica a todo el portal, no solo a
   trip-details (calidez + accesibilidad uniformes).
   ============================================================ */

/* --- entrada escalonada --- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  animation: fade-up 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.reveal.d1 {
  animation-delay: 0.04s;
}

.reveal.d2 {
  animation-delay: 0.1s;
}

.reveal.d3 {
  animation-delay: 0.16s;
}

.reveal.d4 {
  animation-delay: 0.22s;
}

/* barra de progreso que se rellena al entrar */
.bar-fill {
  width: 0;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s;
}

/* --- entrada de cada pestaña al activarse --- */
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

[data-panel]:not([hidden]) {
  animation: panel-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* --- apertura suave de desplegables (plazos, pasajeros, habitaciones, extras) --- */
@keyframes details-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

details[open] > :not(summary) {
  animation: details-reveal 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* --- modales: fade del fondo + pop en escritorio / sheet en móvil --- */
@keyframes m-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes m-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes m-sheet {
  from {
    transform: translateY(100%);
  }

  to {
    transform: none;
  }
}

.modal-backdrop {
  animation: m-fade 0.25s ease;
}

.modal-card {
  animation: m-pop 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (width <= 639px) {
  .modal-card {
    animation: m-sheet 0.34s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
}

/* --- hero cinematográfico (Ken Burns muy lento) --- */
@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

.hero-img {
  animation: kenburns 24s ease-in-out infinite alternate;
}

/* --- indicador de estado del viaje con latido --- */
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgb(255 255 255 / 55%);
  }

  70% {
    box-shadow: 0 0 0 7px rgb(255 255 255 / 0%);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(255 255 255 / 0%);
  }
}

.pulse-dot {
  animation: pulse-dot 2.2s ease-out infinite;
}

/* --- tarjetas pequeñas que se elevan al hover (no las grandes) --- */
.tile {
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (hover: hover) {
  .tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -18px rgb(10 17 38 / 22%);
  }
}

/* puntas redondeadas en TODOS los iconos de línea (micro-detalle de calidez) */
svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- descripción ampliable ("Leer más"): degradado + apertura suave --- */
.rich-desc {
  max-height: 11rem;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.rich-wrap.open .rich-desc {
  max-height: 5000px;
}

.rich-fade {
  position: absolute;
  inset: auto 0 0;
  height: 5.5rem;
  background: linear-gradient(to top, #fff 12%, rgb(255 255 255 / 0%));
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.rich-wrap.open .rich-fade {
  opacity: 0;
}

[data-rich] svg {
  transition: transform 0.3s ease;
}

[data-rich].is-open svg {
  transform: rotate(180deg);
}

/* --- reglas base de accesibilidad y navegación --- */

/* foco visible que respeta los bordes pill (anillo por box-shadow, no outline).
   #0b7570 = turquesa oscuro AA del estudio v3 (§12.3), solo para foco;
   no forma parte de la escala accent1 (app.css no puede usar tokens) */
:focus-visible {
  outline: 2px solid transparent;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #0b7570;
}

/* al saltar a un ancla, el título (que va encima del id) no queda tapado por
   la barra de pestañas sticky del rediseño (~4rem) + aire (ajustar en visual) */
[id] {
  scroll-margin-top: 12rem;
}

/* foco suave en inputs */
input,
select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* --- accesibilidad: si el sistema pide menos movimiento, se apaga todo --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- barra de pestañas sticky del rediseño (pills + scrim) --- */

/* oculta el scrollbar horizontal de las pills */
.tabscroll {
  scrollbar-width: none;
}

.tabscroll::-webkit-scrollbar {
  height: 0;
}

/* scrim: el contenido se desvanece suave al pasar bajo la barra (no corte seco) */
.tabbar::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 15px;
  background: linear-gradient(
    to bottom,
    rgb(249 249 249 / 85%) 0%,
    rgb(249 249 249 / 35%) 45%,
    rgb(249 249 249 / 0%) 100%
  );
  pointer-events: none;
}

@media (width <= 639px) {
  /* pista de "hay más pestañas": la última se desvanece por la derecha */
  .tabscroll {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }

  /* 16px en campos de formulario: iOS hace zoom al enfocar inputs menores */
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

/* dm-sans-latin-ext-400-normal */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/dm-sans-latin-ext-400-normal.woff2) format('woff2'), url(/fonts/dm-sans-latin-ext-400-normal.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* dm-sans-latin-400-normal */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/dm-sans-latin-400-normal.woff2) format('woff2'), url(/fonts/dm-sans-latin-400-normal.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@keyframes _2K-P0 {
  100% {
    transform: rotate(360deg);
  }
}

.rEy6N {
  transform-origin: center;
  animation: _2K-P0 0.75s infinite linear;
}

.ember-google-map {
  width: 100%;
  height: 18rem;
}

/* Rediseño v3 — timeline de actividades (scroll-spy resalta el día visible) */
#activities .day-dot {
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.45s ease,
    opacity 0.45s ease;
}

#activities .day:not(.is-current) .day-dot {
  opacity: 0.7;
}

#activities .day.is-current .day-dot {
  transform: scale(1.28);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgb(31 163 158 / 12%);
}

