/* =========================================================
   OCTAVIO SANTIAGO — Landing temporal
   Sistema visual: negro / ivory / piedra / dorado sutil
   (coherente con el brochure premium del chef)
   ========================================================= */

:root {
  --color-black: #111111;
  --color-ivory: #F8F6F2;
  --color-stone: #8C8C8C;
  --color-gold: #BFA980;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --reveal-duration: 900ms;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--color-black);
  color: var(--color-ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
   HERO — pantalla única
   --------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* respeta la altura dinámica del navegador móvil */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Fondo de respaldo: gradiente sobrio en negro/piedra,
   visible mientras el video no exista o esté cargando. */
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, #1c1c1c 0%, #0a0a0a 75%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  max-width: 90vw;
}

/* ---------------------------------------------------------
   TIPOGRAFÍA
   --------------------------------------------------------- */

.hero__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: var(--color-ivory);
}

/* Si se sustituye por imagen de logo (ver comentario en index.html) */
.hero__logo-image {
  max-width: min(420px, 70vw);
  height: auto;
}

.hero__descriptor {
  margin: 0.9rem 0 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero__cta {
  margin-top: clamp(2.2rem, 5vw, 3rem);
  display: inline-block;
  padding: 0.95rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-black);
  background: var(--color-ivory);
  border: 1px solid var(--color-ivory);
  border-radius: 2px;
  transition: background 320ms ease, color 320ms ease, border-color 320ms ease;
  min-height: 48px; /* tamaño táctil suficiente en móvil */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: transparent;
  color: var(--color-ivory);
  border-color: var(--color-gold);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   MICROANIMACIONES — aparición suave y secuencial
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in var(--reveal-duration) var(--reveal-ease) forwards;
}

.reveal[data-reveal="1"] { animation-delay: 200ms; }
.reveal[data-reveal="2"] { animation-delay: 550ms; }
.reveal[data-reveal="3"] { animation-delay: 900ms; }

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero__cta {
    transition: none;
  }
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 480px) {
  .hero__name {
    letter-spacing: 0.08em;
  }
  .hero__descriptor {
    letter-spacing: 0.12em;
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .hero__content {
    transform: scale(0.85);
  }
}
