/* Fuentes */
@font-face {
  font-family: "Sedgwick Ave Display";
  src: url("../fuentes/sedgwick-ave-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fuentes/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fuentes/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* Variables */
:root {
  color-scheme: light;
  --papel: #EFE1D4;
  --papel-oscuro: #E4D0BE;
  --tinta: #000000;
  --tinta-suave: #4A3D33;
  --spray: #E8160C;
  --crema: #FEECBC;
  --rosa: #F865C0;
  --destello: #F5A623;

  --letra-titulo: "Sedgwick Ave Display", "Marker Felt", "Comic Sans MS", cursive;
  --letra-texto: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --ancho: 1200px;
  --margen: clamp(1.25rem, 4vw, 3rem);
  --espacio-seccion: clamp(4.5rem, 10vw, 8rem);
}

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

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

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--papel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: var(--tinta);
  font-family: var(--letra-texto);
  font-size: 1.125rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

h2,
h3 {
  font-family: var(--letra-titulo);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--spray);
}

:focus-visible {
  outline: 3px solid var(--spray);
  outline-offset: 3px;
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--tinta);
  color: var(--crema);
  z-index: 10;
}

.saltar:focus {
  top: 1rem;
}

/* Foto con borde blanco, como impresa */
.impresa {
  background: #fff;
  padding: clamp(0.4rem, 1vw, 0.7rem);
}

/* Cabecera */
.cabecera {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 1.25rem var(--margen);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cabecera__logo img {
  width: clamp(76px, 9vw, 104px);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.menu a {
  text-decoration: none;
  padding: 0.25rem 0;
}

.menu a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .cabecera {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .menu {
    width: calc(100% + 2 * var(--margen));
    margin: 0 calc(-1 * var(--margen));
    padding: 0 var(--margen);
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }
}

/* Portada */
.portada {
  position: relative;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem) var(--margen) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.portada::before,
.portada::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

.portada::before {
  left: calc(50% - 50vw);
  top: -2rem;
  width: clamp(70px, 8vw, 120px);
  aspect-ratio: 240 / 1120;
  background-image: url("../img/marca/trazos-izq.webp");
  background-position: left top;
}

.portada::after {
  right: calc(50% - 50vw);
  top: 12%;
  width: clamp(90px, 11vw, 150px);
  aspect-ratio: 270 / 790;
  background-image: url("../img/marca/trazos-der.webp");
  background-position: right top;
}

.portada__titulo img {
  width: min(100%, 520px);
  margin-bottom: 1.5rem;
}

.portada__bajada {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  max-width: 34ch;
  margin-top: 0.25rem;
}

.portada__foto {
  margin: 0;
  transform: rotate(2deg);
}

.boton {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--tinta);
  color: var(--crema);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.boton:hover {
  background: var(--spray);
  color: var(--crema);
}

@media (min-width: 900px) {
  .portada {
    grid-template-columns: 1.05fr 1fr;
    min-height: min(74vh, 700px);
  }

  .portada__foto {
    margin-right: -1rem;
  }
}

@media (max-width: 899px) {
  .portada::before {
    opacity: 0.6;
  }

  .portada::after {
    top: auto;
    bottom: 0;
    opacity: 0.6;
  }
}

/* Secciones */
.seccion {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--espacio-seccion) var(--margen) 0;
}

/* Nosotros */
.nosotros__grilla {
  display: grid;
  gap: 3rem;
}

.aprendizajes {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.aprendizajes li {
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--tinta);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.lider {
  margin: 0;
}

.lider img {
  transform: rotate(-1.5deg);
  margin-bottom: 1.5rem;
}

.lider h3 {
  margin-bottom: 0.5rem;
}

.lider p {
  color: var(--tinta-suave);
}

.cita {
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  padding: 0;
}

.cita p {
  font-family: var(--letra-titulo);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  max-width: 24ch;
  margin: 0;
}

@media (min-width: 900px) {
  .nosotros__grilla {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .lider {
    margin-top: -1rem;
  }
}

/* Actividades */
.actividades {
  display: grid;
  gap: 2.5rem 2rem;
}

.actividad img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 1rem;
}

.actividad h3 {
  margin-bottom: 0.4rem;
}

.actividad p {
  color: var(--tinta-suave);
}

@media (min-width: 640px) {
  .actividades {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .actividades {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Universo Hip Hop */
.universo__intro {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.universo__intro h2 {
  margin: 0;
}

.universo__intro h2 img {
  width: min(100%, 380px);
}

.universo__nota {
  color: var(--tinta-suave);
}

.sesiones {
  list-style: none;
  counter-reset: sesion;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem 1.5rem;
}

.sesiones li {
  counter-increment: sesion;
  border-top: 2px solid var(--tinta);
  padding-top: 1rem;
}

.sesiones li::before {
  content: counter(sesion);
  display: block;
  font-family: var(--letra-titulo);
  font-size: 3rem;
  line-height: 1;
  color: var(--spray);
  margin-bottom: 0.4rem;
}

.sesiones h3 {
  margin-bottom: 0.4rem;
}

.sesiones p {
  font-size: 1rem;
  color: var(--tinta-suave);
}

@media (min-width: 760px) {
  .universo__intro {
    grid-template-columns: 380px 1fr;
    gap: 3rem;
  }

  .sesiones {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 560px) and (max-width: 759px) {
  .sesiones {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Proyectos */
.proyectos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.proyecto {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 0;
  border-top: 2px solid var(--tinta);
}

.proyecto:last-child {
  border-bottom: 2px solid var(--tinta);
}

.proyecto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.proyecto h3 {
  margin-bottom: 0.5rem;
}

.proyecto p {
  color: var(--tinta-suave);
  margin: 0;
}

@media (min-width: 700px) {
  .proyecto {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: center;
  }
}

/* VideoFlow */
.videoflow {
  margin-top: var(--espacio-seccion);
  padding: clamp(3.5rem, 8vw, 6rem) var(--margen);
  background: var(--tinta);
  color: #fff;
}

.videoflow__contenido {
  max-width: calc(var(--ancho) - 2 * var(--margen));
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.videoflow__intro h2 {
  margin-bottom: 1.5rem;
}

.videoflow__intro h2 img {
  width: min(100%, 320px);
}

.videoflow__intro p {
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.invitada {
  margin: 0;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  display: grid;
  gap: 1.5rem;
}

.invitada img {
  width: min(100%, 440px);
  transform: rotate(-1.5deg);
}

.invitada h3 {
  margin-bottom: 0.5rem;
}

.invitada p {
  margin: 0;
  max-width: 42ch;
}

.invitada .invitada__etiqueta {
  color: var(--rosa);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.boton--rosa {
  background: var(--rosa);
  color: var(--tinta);
}

.boton--rosa:hover {
  background: #fff;
  color: var(--tinta);
}

.videoflow :focus-visible {
  outline-color: var(--rosa);
}

@media (min-width: 900px) {
  .videoflow__contenido {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
  }

  .invitada {
    padding-top: 0;
    border-top: 0;
  }
}

/* Galería */
.banda {
  width: 100%;
  margin-bottom: 2rem;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filtros button {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 2px solid var(--tinta);
  border-radius: 999px;
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
}

.filtros button:hover {
  background: var(--papel-oscuro);
}

.filtros button[aria-pressed="true"] {
  background: var(--spray);
  border-color: var(--spray);
  color: var(--crema);
}

.galeria {
  columns: 4 240px;
  column-gap: 0.75rem;
}

.foto {
  display: block;
  margin-bottom: 0.75rem;
  break-inside: avoid;
  background: var(--papel-oscuro);
}

.foto[hidden] {
  display: none;
}

.foto img {
  width: 100%;
  transition: opacity 0.2s;
}

.foto:hover img {
  opacity: 0.85;
}

/* Contacto */
.contacto {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding-bottom: 2rem;
}

.contacto h2 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.contacto__enlaces {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.contacto__personajes {
  width: min(260px, 60%);
  justify-self: end;
}

@media (min-width: 800px) {
  .contacto {
    grid-template-columns: 1fr auto;
  }

  .contacto__personajes {
    width: 280px;
  }
}

/* Pie */
.pie {
  width: calc(100% - 2 * var(--margen));
  max-width: calc(var(--ancho) - 2 * var(--margen));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 2px solid var(--tinta);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.pie img {
  width: 64px;
}

.pie p {
  margin: 0;
}

/* Visor de fotos */
.visor {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--crema);
}

.visor[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visor::backdrop {
  background: transparent;
}

.visor figure {
  margin: 0;
  padding: 3.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.visor img {
  max-width: min(92vw, 1600px);
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
}

.visor figcaption {
  font-size: 1rem;
  text-align: center;
  max-width: 60ch;
}

.visor button {
  position: absolute;
  font: inherit;
  font-size: 2.25rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(254, 236, 188, 0.12);
  color: var(--crema);
  cursor: pointer;
}

.visor button:hover {
  background: var(--spray);
}

.visor__cerrar {
  top: 0.75rem;
  right: 0.75rem;
}

.visor__anterior {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.visor__siguiente {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .visor__anterior,
  .visor__siguiente {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .visor img {
    max-height: calc(100dvh - 12rem);
  }
}

/* Entrada de la portada */
@media (prefers-reduced-motion: no-preference) {
  .portada__titulo img {
    animation: spray 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .portada__foto {
    animation: pegar 0.7s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  @keyframes spray {
    from {
      opacity: 0;
      transform: scale(0.94);
      filter: blur(6px);
    }
  }

  @keyframes pegar {
    from {
      opacity: 0;
      transform: rotate(6deg) translateY(1.5rem);
    }
  }
}

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

/* Página 404 */
.error {
  min-height: 100dvh;
  padding-bottom: var(--espacio-seccion);
}

.error img {
  width: 120px;
  margin-bottom: 2rem;
}

.error h1 {
  font-family: var(--letra-titulo);
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
