@font-face {
  font-family: "Manrope Portada";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

.portada {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(540px, 72svh, 690px);
  margin-inline: 24px;
  color: white;
  background-color: var(--deep);
}
.portada-fotos,
.portada-foto,
.portada-video,
.portada::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portada-fotos { z-index: -2; }
.portada-foto {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.portada-foto.visible { opacity: 1; }
.foto-camino { object-position: 66% 60%; }
.foto-agua { object-position: 53% 8%; }
.foto-reunion { object-position: 55% 42%; }
.portada-video {
  object-fit: cover;
  object-position: 66% center;
  opacity: 0;
  pointer-events: none;
}
.portada-video.en-pantalla { opacity: 1; }
@media (max-width: 680px) {
  .portada-video { object-position: 56% center; }
}
.portada::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(0deg, rgb(7 31 34 / 47%), transparent 23%),
    linear-gradient(90deg, rgb(7 36 39 / 89%) 0%, rgb(11 46 49 / 79%) 29%, rgb(13 50 52 / 56%) 48%, rgb(12 45 47 / 16%) 75%, rgb(11 36 38 / 8%) 100%);
}
.portada .shell {
  width: min(1200px, calc(100% - clamp(64px, 11vw, 160px)));
}
.portada-contenido {
  align-self: center;
  padding-block: clamp(40px, 6vh, 80px) 22px;
}
.portada-publico {
  margin-bottom: 17px;
  font-size: 14px;
  font-weight: 600;
}
.portada h1 {
  max-width: 16em;
  color: white;
  font: 500 clamp(46px, 4.8vw, 72px) / 1.12 "Manrope Portada", var(--body);
  letter-spacing: -.055em;
}
.portada-texto {
  max-width: 49ch;
  margin-top: 23px;
  font-size: clamp(16px, 1.31vw, 19px);
  line-height: 1.55;
}
.portada-enlaces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 25px;
  margin-top: 27px;
}
.portada-metodo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration-color: rgb(255 255 255 / 75%);
}
.portada-metodo:hover { text-decoration-thickness: 2px; }
.portada-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px 20px;
}
.portada-origen {
  font-size: 13px;
  text-shadow: 0 1px 3px rgb(0 0 0 / 82%);
}
.portada-mando {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-left: 14px;
  border-radius: 4px;
  background: rgb(10 37 40 / 86%);
}
#portada-escena {
  padding-right: 12px;
  font-size: 13px;
}
.portada-controles {
  display: flex;
  border-left: 1px solid rgb(255 255 255 / 28%);
}
.portada-controles button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  border: 0;
  background: transparent;
}
.portada-controles button:hover { background: var(--teal-dark); }
.portada-controles svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portada-controles .icono-reproducir,
.portada-controles .en-pausa .icono-pausa { display: none; }
.portada-controles .en-pausa .icono-reproducir { display: block; }
.portada :focus-visible { outline: 3px solid white; outline-offset: 3px; }
.portada-controles button:focus-visible { outline-offset: -4px; }

@media (max-width: 900px) {
  .portada { margin-inline: 16px; min-height: clamp(500px, 72svh, 650px); }
  .portada .shell { width: calc(100% - 68px); }
  .portada::before {
    background: linear-gradient(90deg, rgb(8 36 39 / 87%), rgb(8 36 39 / 72%) 51%, rgb(8 36 39 / 25%));
  }
}
@media (max-width: 680px) {
  .portada { margin-inline: 8px; min-height: clamp(495px, 74svh, 660px); }
  .portada .shell { width: calc(100% - 40px); }
  .portada::before {
    background: linear-gradient(90deg, rgb(7 35 38 / 83%), rgb(7 35 38 / 58%) 75%, rgb(7 35 38 / 35%));
  }
  .portada-contenido { padding-block: 32px 18px; }
  .portada-publico { margin-bottom: 15px; font-size: 13px; }
  .portada h1 { font-size: clamp(36px, 8.5vw, 49px); }
  .portada-texto { max-width: 39ch; margin-top: 17px; }
  .portada-enlaces { gap: 6px 19px; margin-top: 18px; }
  .portada-enlaces .button { min-height: 46px; padding: 11px 15px; font-size: 13px; }
  .portada-metodo { font-size: 13px; }
  .portada-pie { flex-wrap: wrap; gap: 8px; padding-block: 4px 14px; }
  .portada-origen { width: 100%; font-size: 12px; }
  .portada-mando { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .portada-foto { transition: none; }
}
