/* Hotel Director Vitacura — hero landing
   Ported from the "Vista Mobile + Desktop" Claude Design canvas. */

:root {
  --hd-navy: #0d1b2a;
  --hd-ink: #091420;
  --hd-slide-seconds: 6s;   /* cuánto se queda cada foto en pantalla */
  --hd-fade: 1.8s;          /* duración del fundido entre fotos */
  --hd-kenburns: 7.8s;      /* = slide + fade: el zoom termina justo cuando la
                               foto termina de desvanecerse, sin cortes */
  --hd-mobile: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--hd-navy);
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
}

a { color: #ffffff; text-decoration: none; }
a:hover { color: #cfe0ee; }

.hd-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--hd-navy);
}

/* ---------- Background slideshow ---------- */

.hd-backdrop { position: absolute; inset: 0; }
.hd-slides { position: absolute; inset: 0; }

.hd-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity var(--hd-fade) ease;
}

/* El zoom vive acá y no en .is-active a propósito: la clase `has-run` no se
   quita cuando la foto deja de ser la activa, así la animación sigue corriendo
   mientras se desvanece. Si estuviera en .is-active, al quitarla la animación
   desaparecería y el transform volvería de golpe a scale(1.08) — ese era el
   salto que se veía justo antes de cada cambio. */
.hd-slide.has-run {
  animation: hd-kenburns var(--hd-kenburns) linear forwards;
}

.hd-slide.is-active {
  opacity: 1;
}

@keyframes hd-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hd-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 20, 32, 0.55) 0%,
    rgba(9, 20, 32, 0.35) 40%,
    rgba(9, 20, 32, 0.72) 100%
  );
}

/* ---------- Shared link type ---------- */

.hd-link {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Header ---------- */

.hd-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 48px;
}

.hd-header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hd-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hd-social svg { display: block; }

/* ---------- Hero ---------- */

.hd-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 60px;
}

.hd-logo {
  width: min(480px, 78vw);
  height: auto;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

.hd-tagline {
  margin: 28px 0 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}

.hd-cta {
  margin-top: 44px;
  display: inline-block;
  text-align: center;
  padding: 18px 52px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(13, 27, 42, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.hd-cta:hover,
.hd-cta:focus-visible {
  background: #ffffff;
  color: var(--hd-navy);
}

.hd-note {
  margin: 20px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Footer ---------- */

.hd-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px 36px;
  flex-wrap: wrap;
  padding: 22px 32px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 20, 32, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hd-footer .hd-link {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

/* El texto mide 14px de alto: como área para tocar con el dedo es muy poco.
   El padding agranda el blanco sin mover nada de sitio — el pie compensa
   restando otro tanto de su propio padding inferior. */
.hd-footer a.hd-link {
  padding: 8px 2px;
  margin: -8px 0;
}

.hd-mapa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hd-mapa svg {
  display: block;
  flex: none;
  opacity: 0.8;
}

/* `.hd-footer .hd-link` le gana por especificidad al `a:hover` general, así que
   el hover del pie hay que declararlo acá o los enlaces quedan sin respuesta. */
.hd-footer a.hd-link:hover,
.hd-footer a.hd-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hd-footer a.hd-mapa:hover svg,
.hd-footer a.hd-mapa:focus-visible svg {
  opacity: 1;
}

/* ---------- Focus ---------- */

a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .hd-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px 12px;
  }

  .hd-header-right {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hd-tagline {
    font-size: 13px;
    letter-spacing: 0.24em;
    margin-top: 20px;
  }

  .hd-cta {
    padding: 16px 40px;
    margin-top: 32px;
    width: min(320px, 86vw);
  }

  .hd-note {
    font-size: 12px;
    padding: 0 12px;
  }

  .hd-footer {
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 22px;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hd-slide { transition: none; transform: none; }
  .hd-slide.has-run { animation: none; transform: none; }
}
