/* ============================================================
   DISFORIA — Landing
   Una sola tipografía (Cormorant Garamond) y sin dependencias
   externas. Fondo de vídeo con nubes en movimiento.
   ============================================================ */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Regular.woff2") format("woff2"),
       url("assets/fonts/CormorantGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #08080a;
  --ink:       #e9e4db;   /* blanco cálido */
  --ink-soft:  #b7b1a7;
  --ink-faint: #7d786f;

  --red:        #9b1e1e;  /* rojo sangre (título) */
  --red-deep:   #7c1414;
  --red-bright: #c33028;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ---------- Fondo de vídeo ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg) center / cover no-repeat;
  background-image: url("assets/img/fondo-portrait.jpg");   /* fallback móvil */
}

@media (min-width: 700px) {
  .bg { background-image: url("assets/img/fondo-poster.jpg"); }
}

.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Oscurecido + viñeta para sentar el texto sin tapar las nubes */
.bg__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(to bottom, rgba(8, 8, 10, 0.35) 0%, rgba(8, 8, 10, 0.15) 35%, rgba(8, 8, 10, 0.55) 100%);
}

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

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: clamp(2rem, 6vh, 5rem) clamp(1.25rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.4rem, 3.2vh, 2.6rem);
}

/* ---------- Título (imagen) ---------- */

.hero__title {
  margin: 0;
  width: 100%;
  line-height: 0;
}

.hero__title-img {
  width: clamp(280px, 82vw, 1500px);
  height: auto;
  filter: drop-shadow(0 6px 34px rgba(0, 0, 0, 0.55));
}

/* ---------- Eslogan ---------- */

.hero__tagline {
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.6vw, 2.1rem);
  letter-spacing: 0.14em;
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

/* ---------- Reparto ---------- */

.cast {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.4rem, 5vw, 4.5rem);
}

.cast__member {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.18;
  font-size: clamp(0.92rem, 1.55vw, 1.4rem);
  color: var(--ink);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

/* ---------- Botón "Más info" (sello desgastado) ---------- */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.55rem, 1.4vh, 0.9rem) clamp(1.6rem, 4vw, 2.8rem);
  margin-top: clamp(0.4rem, 1.5vh, 1.2rem);
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.3s var(--ease);
}

.cta__frame {
  position: absolute;
  inset: 0;
  border: 3px solid var(--red);
  filter: url(#rough);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cta__label {
  position: relative;
  z-index: 1;
  color: var(--red);
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.3vw, 1.7rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;   /* compensa el letter-spacing final */
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}

.cta:hover {
  transform: translateY(-2px);
}

.cta:hover .cta__frame {
  border-color: var(--red-bright);
  box-shadow: 0 0 22px rgba(195, 48, 40, 0.35);
}

.cta:hover .cta__label {
  color: var(--red-bright);
  text-shadow: 0 0 18px rgba(195, 48, 40, 0.5);
}

.cta:focus-visible {
  outline: none;
}

.cta:focus-visible .cta__frame {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(195, 48, 40, 0.4);
}

/* ---------- Dirección ---------- */

.director {
  margin: clamp(1rem, 3.5vh, 3rem) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.director__pre {
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.director__name {
  color: var(--ink);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

/* ---------- Entrada (fade-up escalonado) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 1.1s var(--ease) forwards;
}

.hero__title.reveal   { animation-delay: 0.15s; }
.hero__tagline.reveal { animation-delay: 0.55s; }
.cast.reveal          { animation-delay: 0.85s; }
.cta.reveal           { animation-delay: 1.1s; }
.director.reveal      { animation-delay: 1.35s; }

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

/* ---------- Móvil ---------- */

@media (max-width: 560px) {
  .cast {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1.1rem 2.6rem;
    justify-content: center;
  }
}

/* ---------- Accesibilidad: menos movimiento ---------- */

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