/* =========================================================
   LA CASKARA FESTIVAL
   Estructura inspirada en antiguafest.com: encabezado con logo
   y fecha, descripción + carrusel, playlists en dos columnas,
   cuenta regresiva y pie con patrocinadores.

   1cqw = 1% del ancho del contenedor (.landing-content).
   ========================================================= */

@font-face {
  font-family: "Permanent Marker";
  src: url("../fonts/permanent-marker.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue.woff2") format("woff2");
  font-display: swap;
}

:root {
  --fondo: #6f4f7c;
  --morado: #835e8b;
  --morado-oscuro: #2b1838;
  --tinta: #1e1550;          /* azul de marcador del flyer */
  --amarillo: #f6be1e;
  --mostaza: #cf9f17;
  --verde: #125450;
  --crema: #f0e0c5;
  --kraft: #d9ad81;
  --cinta: #f3e3a0;          /* masking tape */
  --texto: #ffffff;

  --marcador: "Permanent Marker", "Comic Sans MS", cursive;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--morado-oscuro);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--texto);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--morado-oscuro);
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   PÁGINA: fondo de cartón morado + arco de bananos
   ========================================================= */

.landing {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--fondo);
  background-image: url("../img/fondo.webp");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
}

.landing-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-bottom: 16cqw;
  container-type: inline-size;
}

/* ---------- Adornos ---------- */

.adornos {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.arco {
  position: absolute;
  top: -2vw;
  left: 50%;
  width: min(1500px, 125vw);
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.95;
}

.adorno {
  position: absolute;
  max-width: none;
  filter: drop-shadow(0 6px 10px rgba(20, 8, 30, 0.45));
  animation: flotar 6s ease-in-out infinite;
}

/* 'top' en % de la altura total de la página */
.adorno--mono-colgado { top: 21%;  left: 3%;   width: min(11vw, 150px); animation-duration: 7s; }
.adorno--estrella     { top: 2.6%; right: 5%;  width: min(13vw, 180px); animation-name: girar; animation-duration: 30s; animation-timing-function: linear; }
.adorno--babuino      { top: 3%;   right: 7%;  width: min(8.5vw, 115px); animation-delay: -2s; }
.adorno--banana-1     { top: 36%;  right: 4%;  width: min(8vw, 110px);  --rot: 25deg; }
.adorno--gorila       { top: 50%;  left: 2%;   width: min(10vw, 140px); animation-delay: -3s; }
.adorno--c            { top: 58%;  right: 1%;  width: min(7vw, 100px);  --rot: 8deg; animation-delay: -2.5s; }
.adorno--banana-2     { top: 63%;  left: 1%;   width: min(7vw, 95px);   --rot: -30deg; }
.adorno--caja-vacia   { top: 77.5%; right: 2%;  width: min(11vw, 150px); --rot: -6deg; animation-delay: -1s; }
.adorno--mono         { top: 79%;  left: 4%;   width: min(10vw, 140px); animation-delay: -4s; }

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-1.2vw) rotate(calc(var(--rot, 0deg) + 4deg)); }
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.event-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2cqw;
  text-align: center;
}

.event-logo {
  width: 36%;
  filter: drop-shadow(0 1cqw 1.6cqw rgba(20, 8, 30, 0.55));
  animation: entrar 900ms cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes entrar {
  from { transform: scale(0.85) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}

/* Pedazos de cartón con letra de marcador (como en el flyer) */
.event-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2cqw 2cqw;
  margin-top: 2cqw;
}

.cinta {
  position: relative;
  margin: 0;
  padding: 1cqw 2.6cqw 0.8cqw;
  color: var(--tinta);
  font-family: var(--marcador);
  font-size: 3.4cqw;
  line-height: 1.05;
  background: var(--kraft) url("../img/textura-carton.webp") center / cover;
  box-shadow: 0 0.6cqw 1.2cqw rgba(20, 8, 30, 0.45);
  clip-path: polygon(1% 4%, 99% 0, 100% 92%, 97% 100%, 2% 97%, 0 40%);
}

.cinta--fecha { transform: rotate(-3deg); }
.cinta--hora  { transform: rotate(2.5deg); }
.cinta--lugar {
  transform: rotate(-1.5deg);
  background: var(--cinta);
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 99% 100%, 96% 94%, 2% 100%);
}

.event-prices {
  display: flex;
  justify-content: center;
  gap: 2.5cqw;
  margin-top: 2cqw;
}

.precio {
  margin: 0;
  padding: 0.5cqw 2cqw;
  color: var(--tinta);
  font-family: var(--marcador);
  font-size: 2.2cqw;
  background: var(--cinta);
  transform: rotate(-2deg);
  box-shadow: 0 0.4cqw 0.8cqw rgba(20, 8, 30, 0.35);
}

.precio strong { font-size: 1.35em; font-weight: 400; }
.precio--taquilla { transform: rotate(1.5deg); opacity: 0.92; }

/* Botón de entradas (solo si hay enlace en contenido.toml) */
.boton-entradas {
  display: inline-block;
  margin-top: 2.6cqw;
  padding: 1cqw 3.4cqw;
  color: var(--morado-oscuro);
  font-family: var(--marcador);
  font-size: 2.4cqw;
  text-decoration: none;
  background: var(--amarillo);
  border: 3px solid var(--morado-oscuro);
  border-radius: 999px;
  box-shadow: 0 0.5cqw 0 var(--morado-oscuro);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.boton-entradas:hover { transform: translateY(-3px) rotate(-1deg); }
.boton-entradas:active { transform: translateY(2px); box-shadow: 0 0.2cqw 0 var(--morado-oscuro); }
.boton-entradas:focus-visible { outline: 3px solid var(--crema); outline-offset: 5px; }

/* =========================================================
   DESCRIPCIÓN Y CARRUSEL
   ========================================================= */

.festival-experience {
  margin: 4cqw 0 3cqw;
  text-align: center;
}

.festival-description {
  width: 64%;
  margin: 0 auto;
  padding: 2cqw 3cqw;
  color: var(--crema);
  font-family: var(--marcador);
  font-size: 2.1cqw;
  line-height: 1.45;
  text-shadow: 0 2px 0 rgba(30, 10, 40, 0.6);
  background: rgba(43, 24, 56, 0.55);
  border-radius: 1.5cqw;
}

.festival-carousel {
  position: relative;
  width: 70%;
  margin: 3cqw auto 0;
}

.festival-carousel:focus-visible {
  outline: 2px solid var(--amarillo);
  outline-offset: 8px;
}

.carousel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  height: 34cqw;
}

.carousel-photo {
  display: block;
  flex: 0 0 auto;
  width: 25.5cqw;          /* los flyers son 3:4 */
  height: 34cqw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0.35cqw solid var(--crema);
  border-radius: 0.8cqw;
  background: var(--morado-oscuro);
  box-shadow: 0 1cqw 2cqw rgba(20, 8, 30, 0.5);
}

.carousel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-photo--center { transform: rotate(-1deg); }

.carousel-photo--side {
  width: 18cqw;
  height: 24cqw;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.carousel-photo--side:first-child { transform: rotate(-4deg); }
.carousel-photo--side:last-child  { transform: rotate(4deg); }

.carousel-photo--side:hover,
.carousel-photo--side:focus-visible { opacity: 1; }

.carousel-photo--side:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 4px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 5cqw;
  min-width: 44px;
  aspect-ratio: 1;
  padding: 0;
  color: var(--morado-oscuro);
  font-size: 2.4cqw;
  font-weight: 700;
  background: var(--amarillo);
  border: 3px solid var(--morado-oscuro);
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: filter 180ms ease;
}

.carousel-arrow--previous { left: -7cqw; }
.carousel-arrow--next     { right: -7cqw; }
.carousel-arrow:hover     { filter: brightness(1.15); }
.carousel-arrow:focus-visible { outline: 3px solid var(--crema); outline-offset: 4px; }
.carousel-arrow[hidden]   { display: none; }

.festival-playlist-intro {
  width: 80%;
  margin: 4.5cqw auto 0;
  color: var(--amarillo);
  font-family: var(--marcador);
  font-size: 4cqw;
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0.25cqw 0.25cqw 0 var(--morado-oscuro);
  transform: rotate(-1.5deg);
}

.festival-playlist-intro span {
  color: var(--crema);
  white-space: nowrap;
}

/* =========================================================
   PLAYLISTS
   ========================================================= */

.featured-playlists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 3cqw;
  width: 90%;
  margin: 0 auto;
}

.featured-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4cqw 2.2cqw;
}

.playlist { min-width: 0; margin: 0; }

.playlist-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0.3cqw solid var(--morado-oscuro);
  border-radius: 1.5cqw;
  background: var(--morado) url("../img/fondo-cuadro.webp") center / cover;
  box-shadow: 0 0.8cqw 1.6cqw rgba(20, 8, 30, 0.45);
  transition: transform 200ms ease;
}

.playlist:hover .playlist-cover { transform: rotate(-1deg) scale(1.015); }

.playlist-cover > img.portada {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portada provisional: cartón + mono + nombre de la banda */
.cover-mono {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 52%;
  transform: translateX(-50%) rotate(-6deg);
  filter: drop-shadow(0 4px 6px rgba(20, 8, 30, 0.5));
}

.cover-name {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 9%;
  margin: 0;
  padding: 5% 6% 4%;
  color: var(--tinta);
  font-family: var(--marcador);
  font-size: 2.3cqw;
  line-height: 1.05;
  text-align: center;
  background: var(--kraft) url("../img/textura-carton.webp") center / cover;
  transform: rotate(2deg);
  box-shadow: 0 0.4cqw 0.8cqw rgba(20, 8, 30, 0.4);
  clip-path: polygon(0 6%, 98% 0, 100% 94%, 3% 100%);
}

.cover-tag {
  position: absolute;
  top: 5%;
  left: 5%;
  margin: 0;
  padding: 0.3cqw 1cqw;
  color: var(--tinta);
  font-family: var(--marcador);
  font-size: 1.1cqw;
  background: var(--cinta);
  transform: rotate(-6deg);
}

/* Portada con el logo de la banda: etiqueta de papel + mono en la esquina */
.cover-mono--esquina {
  top: auto;
  left: auto;
  right: -4%;
  bottom: -5%;
  z-index: 2;
  width: 34%;
  transform: rotate(10deg);
}

.cover-sticker {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 82%;
  height: 62%;
  padding: 7%;
  background: var(--crema);
  box-shadow: 0 0.6cqw 1.2cqw rgba(20, 8, 30, 0.45);
  transform: translate(-50%, -50%) rotate(-3deg);
  clip-path: polygon(1% 3%, 99% 0, 100% 96%, 97% 100%, 0 98%);
}

.cover-sticker--oscuro { background: var(--morado-oscuro); }

.cover-sticker img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.playlist-cover .cover-tag { z-index: 3; }

/* Tarjeta grande: playlist del festival */
.playlist--festival .cover-logo {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 56%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 10px rgba(20, 8, 30, 0.5));
}

.playlist--festival .cover-name {
  bottom: 7%;
  font-size: 3.6cqw;
  background: var(--cinta);
  transform: rotate(-2deg);
}

.playlist--festival .cover-name small {
  display: block;
  margin-top: 0.4em;
  font-size: 0.5em;
}

.playlist--festival .cover-tag { font-size: 1.6cqw; }

/* ---------- Plataformas ---------- */

.music-links { margin-top: 1.3cqw; }

.music-caption {
  margin: 0 0 0.6cqw;
  color: var(--crema);
  font-family: var(--marcador);
  font-size: 1.35cqw;
}

.music-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8cqw;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  min-height: 36px;
  padding: 0.55cqw 1.2cqw 0.55cqw 0.7cqw;
  color: var(--morado-oscuro);
  font-size: max(12px, 1.15cqw);
  font-weight: 700;
  text-decoration: none;
  background: var(--crema);
  border: 2px solid var(--morado-oscuro);
  border-radius: 999px;
  transition: transform 150ms ease, background 150ms ease;
}

.platform svg {
  flex: 0 0 auto;
  width: max(18px, 1.8cqw);
  height: max(18px, 1.8cqw);
}

.platform--spotify svg { color: #1db954; }
.platform--apple svg   { color: #fa2d48; }

.platform[href]:hover { transform: translateY(-2px); background: var(--amarillo); }
.platform[href]:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 4px; }

.platform[aria-disabled="true"] {
  cursor: default;
  opacity: 0.6;
  filter: grayscale(0.6);
}

.platform small {
  font-weight: 400;
  font-style: italic;
  opacity: 0.8;
}

.playlist--festival .music-caption { font-size: 1.8cqw; }
.playlist--festival .platform { font-size: max(13px, 1.5cqw); padding: 0.8cqw 1.8cqw 0.8cqw 1cqw; }
.playlist--festival .platform svg { width: max(22px, 2.4cqw); height: max(22px, 2.4cqw); }

/* =========================================================
   CUENTA REGRESIVA
   ========================================================= */

.presale-section {
  margin-top: 7cqw;
  text-align: center;
}

.presale-title {
  margin: 0;
  color: var(--amarillo);
  font-family: var(--marcador);
  font-size: 4.6cqw;
  font-weight: 400;
  text-shadow: 0.25cqw 0.25cqw 0 var(--morado-oscuro);
  transform: rotate(-1deg);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6cqw;
  width: 58%;
  margin: 2.4cqw auto 0;
}

.time-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 1.4cqw 0.3cqw 1.2cqw;
  background: var(--kraft) url("../img/textura-carton.webp") center / cover;
  box-shadow: 0 0.6cqw 1.2cqw rgba(20, 8, 30, 0.45);
  clip-path: polygon(2% 3%, 98% 0, 100% 96%, 1% 100%);
}

.time-card:nth-child(odd)  { transform: rotate(-2deg); }
.time-card:nth-child(even) { transform: rotate(1.8deg); }

.number {
  display: block;
  color: var(--morado-oscuro);
  font-family: var(--display);
  font-size: 7cqw;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.label {
  display: block;
  margin-top: 0.6cqw;
  color: var(--tinta);
  font-family: var(--marcador);
  font-size: 1.4cqw;
  letter-spacing: 0.06em;
}

.countdown-done {
  margin: 2cqw 0 0;
  color: var(--crema);
  font-family: var(--marcador);
  font-size: 2.6cqw;
}

/* =========================================================
   PIE
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--verde);
  border-top: 4px solid var(--morado-oscuro);
  text-align: center;
}

.caja-pie {
  position: absolute;
  bottom: calc(100% - 1.5vw);
  left: 50%;
  width: min(16vw, 220px);
  transform: translateX(-50%) rotate(-3deg);
  filter: drop-shadow(0 6px 10px rgba(20, 8, 30, 0.45));
}

.sponsors-title {
  margin: 0;
  padding: 28px 16px 0;
  color: var(--amarillo);
  font-family: var(--marcador);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  transform: rotate(-1deg);
}

/* Cada logo va en una "etiqueta" de papel, como los cartones del flyer */
.sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 26px;
  list-style: none;
}

.sponsor {
  display: grid;
  place-items: center;
  width: 160px;
  height: 116px;
  padding: 10px 12px;
  background: var(--crema);
  border: 2px solid var(--morado-oscuro);
  border-radius: 10px;
  box-shadow: 0 5px 0 rgba(20, 8, 30, 0.45);
  transition: transform 150ms ease;
}

.sponsor:nth-child(odd)  { transform: rotate(-2deg); }
.sponsor:nth-child(even) { transform: rotate(1.5deg); }
.sponsor:hover { transform: rotate(0) scale(1.06); }
.sponsor--oscuro { background: var(--morado-oscuro); border-color: var(--amarillo); }

.sponsor img,
.sponsor a {
  display: block;
  max-width: 100%;
  max-height: 94px;
  width: auto;
  height: auto;
}

.sponsor a:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 6px; }

.footer-text {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--amarillo);
  font-family: var(--marcador);
  font-size: 15px;
}

.footer-text a { color: var(--crema); }

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {
  .arco { top: 0; width: 170vw; }

  .adorno--estrella { top: 22vw; right: -4%; width: 22vw; }
  .adorno--babuino  { top: 25vw; right: 0;   width: 14vw; }
  .adorno--mono-colgado { top: 64vw; left: -3%; width: 18vw; }
  .adorno--banana-1, .adorno--banana-2,
  .adorno--gorila, .adorno--caja-vacia,
  .adorno--mono, .adorno--c { display: none; }
  .caja-pie { width: 30vw; }
  .sponsors { gap: 14px; }
  .sponsor { width: calc(50% - 7px); max-width: 170px; }

  .landing-content { padding-bottom: 34vw; }

  .event-header { padding-top: 8vw; }
  .event-logo { width: 72%; }

  .event-date { gap: 2.5vw 3vw; margin-top: 5vw; }
  .cinta { font-size: 6vw; padding: 2vw 4vw 1.6vw; }
  .event-prices { margin-top: 4vw; gap: 4vw; }
  .precio { font-size: 4.2vw; padding: 1vw 3vw; }
  .boton-entradas { font-size: 5vw; padding: 2.5vw 7vw; margin-top: 6vw; }

  .festival-experience { margin: 9vw 0 8vw; }
  .festival-description { width: 88%; font-size: 4.3vw; padding: 4vw 5vw; border-radius: 3vw; }

  .festival-carousel { width: 100%; margin-top: 7vw; }
  .carousel-stage { height: 92vw; }
  .carousel-photo, .carousel-photo--center { width: 69vw; height: 92vw; border-width: 1.2vw; border-radius: 2vw; }
  .carousel-arrow { width: 12vw; font-size: 5vw; }
  .carousel-arrow--previous { left: 2vw; }
  .carousel-arrow--next     { right: 2vw; }

  .festival-playlist-intro { width: 88%; font-size: 7.5vw; margin-top: 9vw; }

  .featured-playlists { grid-template-columns: minmax(0, 1fr); width: 86%; gap: 9vw; }
  .featured-right { gap: 8vw 4vw; }

  .playlist-cover { border-width: 2px; border-radius: 3vw; }
  .cover-name { font-size: 4.2vw; }
  .cover-tag { font-size: 2.8vw; padding: 0.6vw 2vw; }
  .playlist--festival .cover-name { font-size: 7.5vw; }
  .playlist--festival .cover-tag { font-size: 3.6vw; }

  .music-links { margin-top: 3vw; }
  .music-caption, .playlist--festival .music-caption { font-size: 3.6vw; margin-bottom: 1.5vw; }
  .music-platforms { gap: 2vw; }
  .platform { gap: 1.5vw; padding: 1vw 3vw 1vw 1.5vw; }
  .featured-right .platform { font-size: 11px; padding: 1vw 2vw 1vw 1vw; }
  .featured-right .platform small { display: none; }
  .playlist--festival .platform { font-size: 14px; padding: 1.5vw 4vw 1.5vw 2vw; }

  .presale-section { margin-top: 16vw; }
  .presale-title { font-size: 7vw; }
  .countdown { width: 90%; gap: 2.5vw; margin-top: 6vw; }
  .time-card { padding: 3vw 0.5vw 2.5vw; }
  .number { font-size: 12vw; }
  .label { font-size: 2.9vw; margin-top: 1vw; letter-spacing: 0; }
  .countdown-done { font-size: 5vw; margin-top: 5vw; }
}

@media (prefers-reduced-motion: reduce) {
  .adorno, .event-logo { animation: none; }
  .playlist-cover, .platform, .carousel-photo--side, .boton-entradas { transition: none; }
}
