/* ==========================================================================
   Viajando con Blanche — Landing institucional
   Hoja de estilos única, sin dependencias externas.
   ========================================================================== */

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Paleta corporativa */
  --blue: #006BFF;
  --navy: #102943;
  --white: #FFFFFF;
  --gray-50: #F5F7FA;
  --ink: #172235;
  /* Gris secundario contrastado a 4.99:1 sobre #F5F7FA (WCAG AA).
     El valor anterior (#64748B) quedaba en 4.43:1 sobre fondo gris claro. */
  --slate: #5D6C7F;

  /* Acentos discretos tomados del isotipo */
  --teal: #00D698;
  --pink: #FF3D7F;
  --orange: #FFAD52;
  --sky: #3FA9F5;

  /* Derivados */
  --line: #E4E9F0;
  --blue-soft: #EAF3FF;
  --blue-deep: #0052CC;
  --navy-soft: #1B3A5C;

  /* Tipografía */
  --font-display: "Playfair Display", "Didot", "Bodoni 72", "Bodoni MT", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(16, 41, 67, .06), 0 6px 18px rgba(16, 41, 67, .05);
  --shadow-md: 0 18px 44px rgba(16, 41, 67, .10);
  --shadow-lg: 0 30px 70px rgba(16, 41, 67, .18);

  /* Movimiento */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: var(--white); }

/* ---------------------------------------------------------- Utilidades */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  /* Variante profunda del azul corporativo: alcanza 6.35:1 sobre #F5F7FA,
     mientras que #006BFF se quedaba en 4.3:1 en ese fondo. */
  color: var(--blue-deep);
}

.eyebrow--light { color: #9FC7FF; }

.section__title {
  font-size: clamp(1.8rem, 1.25rem + 2.1vw, 2.7rem);
  margin-bottom: .5em;
}

.section__title--light { color: var(--white); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

.section__head--center {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.section__intro {
  font-size: 1.06rem;
  color: var(--slate);
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
}

.lead--light { color: #D6E3F2; }

/* ------------------------------------------------------------- Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}

.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 107, 255, .22);
}

.btn--primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 107, 255, .28);
}

.btn--outline-light {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, .18);
  border-color: var(--white);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .98rem;
  color: var(--blue);
}

.link-arrow span { transition: transform .22s var(--ease); }

.link-arrow:hover span { transform: translateX(5px); }

/* -------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}

.site-header.is-stuck { box-shadow: 0 10px 30px rgba(16, 41, 67, .08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
}

.brand img {
  width: 168px;
  height: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
}

.nav__list a {
  position: relative;
  display: inline-block;
  padding: .35rem 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav__list a:hover { color: var(--blue); }

.nav__list a:hover::after,
.nav__list a:focus-visible::after { transform: scaleX(1); }

.header__cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(88vh, 780px);
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background-color: var(--navy);
  background-image: url("assets/fondo-viajes-con-blanche.webp");
  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(101deg,
      rgba(9, 31, 56, .94) 0%,
      rgba(9, 31, 56, .86) 30%,
      rgba(9, 31, 56, .55) 52%,
      rgba(9, 31, 56, .18) 74%,
      rgba(9, 31, 56, .06) 100%),
    linear-gradient(to top, rgba(9, 31, 56, .55), transparent 42%);
}

/* El bloque se alinea al grid del contenedor (mismo eje que el logotipo),
   no queda flotando centrado respecto a la imagen de fondo. */
.hero__content { position: relative; max-width: var(--container); }

.hero__title {
  max-width: 40rem;
  font-size: clamp(2.3rem, 1.35rem + 4vw, 4.05rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: .45em;
  text-shadow: 0 2px 24px rgba(4, 18, 34, .35);
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem);
  line-height: 1.62;
  color: #E4EDF7;
  margin-bottom: 2.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* -------------------------------------------------------------- Sections */
.section {
  padding-block: clamp(4rem, 3rem + 5.5vw, 7.25rem);
}

.section--gray { background: var(--gray-50); }

.section--navy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% 12%, rgba(0, 107, 255, .22), transparent 62%),
    radial-gradient(620px 420px at 6% 92%, rgba(0, 214, 152, .10), transparent 60%),
    var(--navy);
}

/* ------------------------------------------------------------- Servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  opacity: 0;
  transition: opacity .28s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: #D6E3F5;
  box-shadow: var(--shadow-md);
}

.card:hover::after { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}

.card__icon svg { width: 27px; height: 27px; }

.card__text {
  color: var(--slate);
  font-size: .99rem;
  margin-bottom: 0;
}

/* ------------------------------------------------- Presentación institucional */
.split {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split__text p { color: var(--slate); }

.split__text .lead { color: var(--ink); }

.split__aside {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pillars { display: grid; gap: 1.4rem; }

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar__mark {
  flex: 0 0 auto;
  width: 6px;
  align-self: stretch;
  min-height: 52px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blue), var(--sky) 55%, var(--teal));
}

.pillar h3 {
  font-size: 1.06rem;
  margin-bottom: .2rem;
}

.pillar p {
  margin-bottom: 0;
  font-size: .96rem;
  color: var(--slate);
}

/* ---------------------------------------------------------------- Taviko */
.taviko__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.taviko__text .eyebrow { color: #9FC7FF; }

.taviko__figure {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.taviko__img {
  width: auto;
  max-width: 100%;
  height: clamp(300px, 40vw, 520px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, .45));
  animation: taviko-float 7s ease-in-out infinite alternate;
}

@keyframes taviko-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

/* Mensaje de prelanzamiento (elemento visual estático) */
.preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.2rem 0 0;
  padding: 1rem 1.25rem 1rem 1rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  max-width: 34rem;
}

.preview__avatar {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  background: var(--white);
}

.preview__bubble {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.preview__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9FC7FF;
}

.preview__text {
  font-size: .98rem;
  line-height: 1.5;
  color: var(--white);
}

/* ------------------------------------------------------- Plataforma (news) */
.announce {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.announce__body .lead { color: var(--slate); }

.announce__body .link-arrow { margin-top: 1.4rem; }

.announce__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}

.announce__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
}

.announce__ring--1 {
  width: 190px; height: 190px;
  border-color: rgba(0, 107, 255, .35);
  animation: ring-pulse 6s var(--ease) infinite;
}

.announce__ring--2 {
  width: 142px; height: 142px;
  border-color: rgba(255, 61, 127, .35);
  animation: ring-pulse 6s var(--ease) 1.2s infinite;
}

.announce__ring--3 {
  width: 96px; height: 96px;
  border-color: rgba(255, 173, 82, .45);
  animation: ring-pulse 6s var(--ease) 2.4s infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%      { transform: scale(1.07); opacity: 1; }
}

.announce__iso {
  position: relative;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 10px 24px rgba(16, 41, 67, .18));
}

/* --------------------------------------------------------------- Contacto */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.contact:hover { transform: translateY(-3px); border-color: #D6E3F5; }

.contact__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: .85rem;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.contact__icon svg { width: 23px; height: 23px; }

.contact__label {
  font-weight: 600;
  font-size: 1.02rem;
}

.contact__value {
  font-size: .93rem;
  color: var(--slate);
}

a.contact__value {
  color: var(--blue);
  font-weight: 500;
  overflow-wrap: anywhere;
  transition: color .2s var(--ease);
}

a.contact__value:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--navy);
  color: #C6D5E4;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.footer__logo {
  width: 172px;
  height: auto;
  margin-bottom: .9rem;
}

.footer__tagline {
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93AFC9;
  margin-bottom: 0;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer__line {
  font-size: .93rem;
  margin-bottom: 0;
  color: #B4C7DA;
}

.footer__key {
  font-weight: 600;
  color: var(--white);
}

.footer__link {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer__link:hover {
  color: #9FC7FF;
  border-color: #9FC7FF;
}

.card__title { font-size: 1.2rem; margin-bottom: .45rem; }

/* En la grilla de 3 columnas los títulos ocupan siempre dos líneas,
   de modo que el párrafo de todas las tarjetas arranca a la misma altura. */
@media (min-width: 1025px) {
  .card__title { min-height: 2.4em; }
}

.footer__copy p {
  margin-bottom: 0;
  font-size: .9rem;
  color: #93AFC9;
}

/* ------------------------------------------------------- Animación reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .split,
  .taviko__inner,
  .announce,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .taviko__figure { order: -1; }

  .taviko__img { height: clamp(240px, 46vw, 380px); }

  .announce__art { min-height: 180px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }

  .header__inner {
    min-height: 72px;
    gap: .75rem;
  }

  .brand img { width: 142px; }

  .header__cta { display: none; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: 0 var(--gutter);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .3s var(--ease), visibility .3s var(--ease), padding .3s var(--ease);
  }

  .nav.is-open {
    max-height: 320px;
    visibility: visible;
    padding-top: .5rem;
    padding-bottom: 1.1rem;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li + li { border-top: 1px solid var(--line); }

  .nav__list a {
    display: block;
    padding: .85rem .2rem;
    font-size: 1rem;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: min(92vh, 760px);
    background-position: 64% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg,
        rgba(9, 31, 56, .80) 0%,
        rgba(9, 31, 56, .86) 34%,
        rgba(9, 31, 56, .93) 68%,
        rgba(9, 31, 56, .97) 100%);
  }

  .hero__content { max-width: 100%; }

  .hero__actions { flex-direction: column; align-items: stretch; }

  .hero__actions .btn { width: 100%; }

  .preview {
    border-radius: 22px;
    padding: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .card { padding: 1.5rem; }

  .announce { padding: 1.6rem; }

  .contact { padding: 1.35rem; }
}

/* --------------------------------------------------- Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .taviko__img { animation: none; }

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

/* --------------------------------------------------------------- Impresión */
@media print {
  .site-header,
  .nav-toggle,
  .hero::before { display: none; }

  .hero {
    background: none;
    color: var(--ink);
    min-height: 0;
    padding: 2rem 0;
  }

  .hero__title { color: var(--ink); text-shadow: none; }
}
