/* Itinerika Travel · landing "Próximamente"
   Layout: foto a pantalla completa, figuras a la izquierda; el contenido se apoya en la derecha
   sobre un velo azul de marca. En móvil la foto queda arriba y el texto debajo. */

:root {
  --navy: #244a82;        /* azul del logo */
  --teal: #1c6f66;        /* verde del logo */
  --ink: #0b2340;         /* velo oscuro */
  --white: #ffffff;
  --mist: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.22);
  --sun: #f3c77a;         /* acento cálido, mapa del globo */

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);

  color-scheme: dark;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-block: clamp(20px, 4vw, 44px);
  padding-left: max(16px, env(safe-area-inset-left, 0px), 5vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 5vw);
  isolation: isolate;
  overflow: hidden;
}

/* Fondo: velo de marca + foto (remota en alta, local como respaldo) */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--teal);
  background-image:
    linear-gradient(90deg, rgba(11, 35, 64, 0) 25%, rgba(11, 35, 64, 0.55) 55%, rgba(11, 35, 64, 0.88) 100%),
    var(--bg-photo);
  background-size: cover;
  background-position: 30% center;
  transform: scale(1.04);
  animation: drift 24s ease-in-out infinite alternate;
}

.stage {
  --bg-photo: url("https://itinerika.lab2.e-tecnia.es/wp-content/uploads/2026/10/miniature-figures-backpacking-atop-world-globe-2026-03-26-07-24-15-utc-Personalizado-1.avif"),
              url("../assets/fondo.webp");
}

@keyframes drift {
  from { transform: scale(1.04) translateX(0); }
  to   { transform: scale(1.08) translateX(-1.2%); }
}

/* Cabecera */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  display: block;
  width: clamp(96px, 10vw, 132px);
  height: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 35, 64, 0.35);
  backdrop-filter: blur(6px);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 0 rgba(243, 199, 122, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(243, 199, 122, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(243, 199, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 199, 122, 0); }
}

/* Contenido principal */
.content {
  align-self: center;
  justify-self: end;
  width: min(100%, 540px);
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  padding-block: clamp(32px, 6vw, 72px);
}

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sun);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Ruta punteada que termina en un pin, como el del logo */
.route {
  flex: 0 0 auto;
  width: 64px;
  height: 14px;
  overflow: visible;
}
.route path {
  stroke: var(--sun);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
  fill: none;
  animation: march 1.6s linear infinite;
}
.route circle { fill: var(--sun); }

@keyframes march { to { stroke-dashoffset: -16; } }

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--sun);
}

.lead {
  margin: 0;
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--mist);
  text-wrap: pretty;
}

.note {
  margin: 0;
  max-width: 44ch;
  color: var(--mist);
  font-size: var(--step-0);
}

.audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audiences li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Contacto */
.contact {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin: 0 0 4px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact a .icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact a .icon svg { width: 18px; height: 18px; }

.contact a:hover .icon,
.contact a:focus-visible .icon {
  background: var(--sun);
  color: var(--ink);
  transform: translateY(-2px);
}

.contact a:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 6px;
  border-radius: 8px;
}

/* Pie */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: var(--step--1);
  color: var(--mist);
}

.foot p { margin: 0; }

/* Entrada suave (el contenido ya es visible si no hay JS o animaciones) */
.reveal { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
.reveal:nth-child(6) { animation-delay: 0.40s; }

@keyframes rise {
  from { opacity: 0.001; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Tablet y móvil: foto arriba, texto debajo sobre el velo */
@media (max-width: 860px) {
  .stage::before {
    inset: 0 0 auto 0;
    height: min(78vw, 560px);
    background-image:
      linear-gradient(180deg, rgba(11, 35, 64, 0.25) 0%, rgba(11, 35, 64, 0) 30%, rgba(11, 35, 64, 0.35) 70%, var(--ink) 100%),
      var(--bg-photo);
    background-position: 30% center;
  }
  .content {
    justify-self: start;
    align-self: start;
    padding-top: min(44vw, 330px);
  }
}

@media (max-width: 480px) {
  .stage::before { height: 96vw; background-position: 32% center; }
  .status { padding: 6px 10px; letter-spacing: 0.08em; }
  .content { padding-top: 62vw; }
}

@media (prefers-reduced-motion: reduce) {
  .stage::before, .status .dot, .route path, .reveal { animation: none; }
}
