/* Malamúsica Producciones — hecha a mano por CraftedLanding */

@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--azul: #2D2E83;
	--rojo: #E6332A;
	--amarillo: #FFED00;
	--morado: #951B81;
	--rosa: #E71D73;
	--negro: #000;
	--gris: #121216;
	--linea: #2a2a33;
	--texto: #fff;
	--suave: #b9b9c6;
	--titulos: "Clash Display", "Outfit", sans-serif;
	--base: "Outfit", system-ui, sans-serif;
	--hueco: .45vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--negro); color: var(--texto); font-family: var(--base); font-weight: 300; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Títulos, menú y cuadros del mosaico: Clash Display. Texto normal: Outfit */
.ancha { font-family: var(--titulos); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.baldosa { container-type: inline-size; }
.baldosa.ancha { padding: 0; line-height: 1; white-space: nowrap; overflow: visible; }
/* El tamaño exacto (70 % del ancho) lo pone agenda.js midiendo cada palabra;
   esto es solo el punto de partida por si no hay JavaScript */
.baldosa.ancha > span { font-size: 12cqi; }

/* ---------- Portada: tres franjas + menú + mosaico ---------- */

.portada {
	display: grid;
	/* La banda ocupa la pantalla entera al entrar. El mosaico llena todo el
	   alto (3 filas de carteles 4:5) y la foto se queda con el ancho que sobre,
	   nunca menos de 280px. */
	--ancho-mosaico: min(calc(100vw - 280px), calc((100svh - 4 * var(--hueco)) * 1.3333 + 6 * var(--hueco)));
	grid-template-columns: minmax(0, 1fr) var(--ancho-mosaico);
	height: 100svh;
	min-height: 520px;
	align-items: stretch;
}
.franja { position: relative; overflow: hidden; background: var(--gris); }
.franja > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* El menú va encima de la foto que cambia */
.carrusel { grid-column: 1; grid-row: 1; }
.menu { grid-column: 1; grid-row: 1; z-index: 2; }
.mosaico { grid-column: 2; grid-row: 1; }

/* Carrusel: fundido entre fotos con un zoom muy lento */
.carrusel > img { opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 9s linear; }
.carrusel > img.activa { opacity: 1; transform: scale(1); }

.menu { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 56px); background: none; }
.menu::before { content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%),
		linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 30%); }
.menu > a, .menu > nav, .menu > ul { position: relative; z-index: 2; }
.menu .logo img { width: clamp(180px, 16vw, 300px); }
.menu nav { display: flex; flex-direction: column; align-items: flex-start; gap: .55em; margin-top: 3vw; font-size: clamp(14px, 1.25vw, 22px); }
.menu nav a { text-decoration: none; }
.menu nav a:hover { color: var(--amarillo); }
.menu .redes { margin-top: auto; }

.redes { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.redes a { display: block; width: 20px; height: 20px; opacity: .9; }
.redes a:hover { opacity: 1; color: var(--amarillo); }
.redes svg { width: 100%; height: 100%; fill: currentColor; }

/* Mosaico */
.mosaico {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-auto-flow: row dense;
	gap: var(--hueco);
	padding: var(--hueco);
	background: var(--azul);
	align-content: center;
}
.celda { position: relative; aspect-ratio: 4 / 5; }
.celda.grande { grid-column: span 2; grid-row: span 2; }

.baldosa { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; padding: 8%;
	font-size: clamp(10px, 1.05vw, 22px); line-height: 1.05; transition: filter .2s; }
a.baldosa:hover { filter: brightness(1.12); }
.c-rojo { background: var(--rojo); }
.c-amarillo { background: var(--amarillo); color: #111; }
.c-morado { background: var(--morado); }
.c-rosa { background: var(--rosa); }
.c-negro { background: #000; }
.c-azul { background: #23246b; }

/* ---------- Tarjetas que giran ---------- */

.tarjeta { perspective: 1400px; container-type: inline-size; }
.giro { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3,.7,.2,1); }
.tarjeta.girada .giro { transform: rotateY(180deg); }
.cara { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.frente { display: block; width: 100%; padding: 0; border: 0; background: #ddd; cursor: pointer; }
.frente img { width: 100%; height: 100%; object-fit: cover; }
.grande .frente { background: var(--fondo, #F4F1DE); }
.grande .frente img { object-fit: contain; }
.grande.concierto .frente { background: #000; }
.ciclo .frente { background: var(--fondo, #F4F1DE); }
.ciclo .frente img { object-fit: contain; }
.grande.concierto .frente img { object-fit: cover; }
.frente:hover img { filter: brightness(1.06); }

.reverso {
	transform: rotateY(180deg);
	display: flex; flex-direction: column; justify-content: center; gap: 4cqi;
	padding: 9cqi 8cqi;
	background: var(--color, var(--rojo)); color: #fff;
	cursor: pointer;
}
.reverso .r-fecha { margin: 0; font-weight: 600; font-size: clamp(10px, 7cqi, 16px); text-transform: uppercase; letter-spacing: .04em; }
.reverso h3 { margin: 0; font-size: clamp(11px, 9cqi, 30px); line-height: 1.1; }
.reverso h3 small { font-size: .6em; font-weight: 500; }
.reverso .r-lugar, .reverso .r-texto { margin: 0; font-size: clamp(10px, 6.5cqi, 16px); line-height: 1.25; opacity: .92; }
.reverso .r-botones { display: flex; flex-direction: column; gap: 3cqi; margin-top: 2cqi; }
.grande .reverso { gap: 3cqi; padding: 8cqi; }
.grande .reverso h3 { font-size: clamp(14px, 6cqi, 34px); }
.grande .reverso .r-botones { flex-direction: row; flex-wrap: wrap; }

.volver { position: absolute; top: 3cqi; right: 3cqi; width: clamp(24px, 13cqi, 36px); height: clamp(24px, 13cqi, 36px);
	border: 0; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: clamp(13px, 7cqi, 18px); line-height: 1; cursor: pointer; }
.volver:hover { background: rgba(0,0,0,.45); }

.finalizado { position: absolute; left: 0; top: 6cqi; z-index: 3; padding: .35em .7em; background: #000; color: #fff;
	font: 600 clamp(9px, 5.5cqi, 13px)/1 var(--base); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.tarjeta.girada .finalizado { display: none; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .6em 1em;
	border: 2px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
	font: 600 clamp(10px, 6.5cqi, 15px)/1.1 var(--base); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.boton:hover { background: rgba(255,255,255,.15); }
.boton.lleno { background: #fff; border-color: #fff; color: #111; }
.boton.lleno:hover { background: var(--amarillo); border-color: var(--amarillo); }
.aviso { display: inline-block; padding: .55em 1em; border: 2px dashed currentColor; border-radius: 999px; text-align: center;
	font: 600 clamp(10px, 6.5cqi, 15px)/1.1 var(--base); text-transform: uppercase; letter-spacing: .05em; }

@media (prefers-reduced-motion: reduce) {
	.giro { transition: none; }
	.carrusel > img, .carrusel > img.activa { transform: none; transition: opacity 1.6s ease; }
	.tarjeta.girada .giro { transform: none; }
	.reverso { transform: none; opacity: 0; transition: opacity .25s; }
	.frente { transition: opacity .25s; }
	.tarjeta.girada .reverso { opacity: 1; }
	.tarjeta.girada .frente { opacity: 0; }
}

/* ---------- Lista de conciertos (estilo agenda) ---------- */

.bloque { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) 20px; }
.bloque h2, .titulo-pagina { margin: 0 0 28px; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.1; }
.pie-bloque { margin-top: 28px; text-align: center; }
.pie-bloque .boton { font-size: 14px; }

.lista-eventos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.evento { display: grid; grid-template-columns: 120px 96px 1fr auto; align-items: stretch; background: var(--gris); border: 1px solid var(--linea); }
.ev-fecha { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 8px;
	background: var(--color, var(--azul)); text-align: center; line-height: 1.05; text-transform: uppercase; }
.ev-fecha .sem { font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.ev-fecha .dia { font-weight: 700; font-size: 44px; margin: 4px 0 2px; }
.ev-fecha .mes { font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.ev-fecha .hora { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.4); font-size: 14px; font-weight: 600; }
.ev-cartel { width: 96px; height: 100%; min-height: 120px; object-fit: cover; }
.ev-texto { padding: 16px 22px; align-self: center; }
.ev-texto h3 { margin: 0 0 4px; font-size: clamp(14px, 1.5vw, 20px); line-height: 1.15; }
.ev-texto h3 small { font-size: .6em; font-weight: 500; color: var(--suave); }
.ev-texto .sub { margin: 0 0 6px; color: var(--suave); font-size: 15px; }
.ev-texto .lugar { margin: 0; font-size: 15px; font-weight: 500; }
.ev-texto .lugar::before { content: "◉ "; color: var(--rosa); }
.ev-texto .marca { display: inline-block; margin-left: .5em; padding: .15em .5em; background: #000; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.ev-accion { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 8px; padding: 16px 22px; }
.ev-accion .boton, .ev-accion .aviso { font-size: 13px; }
.ev-accion .boton.lleno:hover { background: var(--amarillo); }
.ev-accion .proximamente { color: var(--suave); font-size: 13px; text-align: center; }
.vacio { padding: 30px; border: 1px dashed var(--linea); color: var(--suave); text-align: center; }

.filtros { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.filtros label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); }
.filtros select { min-width: 200px; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 0; background: var(--gris); color: #fff; font: 400 15px var(--base); }

/* ---------- Páginas interiores ---------- */

.cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding: 18px clamp(16px, 4vw, 48px); background: var(--azul); }
.logo { display: block; }
.cabecera .logo img { width: 210px; }
.cabecera nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; }
.cabecera nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.cabecera nav a:hover, .cabecera nav a[aria-current="page"] { border-color: var(--amarillo); }
.banda { padding: clamp(36px, 6vw, 80px) clamp(16px, 4vw, 48px); }
.banda .titulo-pagina { max-width: 1180px; margin: 0 auto; font-size: clamp(24px, 4vw, 52px); }
.texto-pagina { max-width: 680px; font-size: 18px; color: var(--suave); }

/* Pie */
.pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px clamp(16px, 4vw, 48px); border-top: 1px solid var(--linea); color: var(--suave); font-size: 14px; }
.pie p { margin: 0; }
.pie a { text-decoration: none; }
.pie a:hover { color: #fff; }

/* ---------- Tableta y móvil ---------- */

@media (max-width: 1100px) {
	:root { --hueco: 1vw; }
	.portada { grid-template-columns: 1fr; gap: 2vw; height: auto; min-height: 0; }
	.menu { grid-column: 1; grid-row: 1; min-height: 82svh; padding: 28px 22px 22px; align-items: center; text-align: center; }
	.menu::before { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.6) 100%); }
	.menu .logo img { max-width: 300px; }
	.menu nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 28px; font-size: 14px; }
	.menu .redes { justify-content: center; }
	.carrusel { grid-column: 1; grid-row: 1; }
	.mosaico { grid-column: 1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.baldosa { font-size: clamp(11px, 2.2vw, 20px); }
}

@media (max-width: 640px) {
	:root { --hueco: 6px; }
	.mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.baldosa { font-size: clamp(12px, 4vw, 18px); }
	.evento { grid-template-columns: 92px 1fr; }
	.ev-cartel { display: none; }
	.ev-fecha .dia { font-size: 30px; }
	.ev-texto { padding: 14px 16px 6px; }
	.ev-accion { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; padding: 12px 16px 16px; border-top: 1px solid var(--linea); }
	.ev-accion > * { flex: 1 1 auto; }
	.filtros select { min-width: 0; width: 100%; }
	.filtros label { flex: 1 1 140px; }
}

/* ---------- Página de un concierto ---------- */

.ficha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 70svh; background: var(--color, var(--azul)); }
.ficha-foto { position: relative; margin: 0; min-height: 60svh; background: #000; }
.ficha-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.ficha-foto figcaption { position: absolute; right: 10px; bottom: 8px; padding: 2px 8px; background: rgba(0,0,0,.55); font-size: 12px; }
.ficha-datos { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(28px, 5vw, 80px); }
.ficha-datos h1 { margin: 0; font-size: clamp(32px, 5vw, 76px); line-height: 1; }
.ficha-datos .sub { margin: 0; font-size: 20px; opacity: .9; }
.ficha-datos .cuando { margin: 12px 0 0; font-size: 20px; font-weight: 600; }
.ficha-datos .cuando::first-letter { text-transform: uppercase; }
.ficha-datos .lugar { margin: 0; font-size: 18px; }
.ficha-accion { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ficha-accion .boton, .ficha-accion .aviso { font-size: 15px; }
.ficha-fecha + .ficha-fecha { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.35); }
.bio { max-width: 780px; }
.bio p { margin: 0 0 1.1em; font-size: 18px; line-height: 1.65; color: #e4e4ec; }
.bio .origen { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
@media (max-width: 800px) {
	.ficha { grid-template-columns: 1fr; }
	.ficha-foto { min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---------- Nosotros ---------- */

.nosotros { max-width: 820px; }
.nosotros p { margin: 0 0 1.1em; font-size: 19px; line-height: 1.65; color: #e4e4ec; }
.nosotros .entradilla { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 500; color: #fff; }
.nosotros a { color: var(--amarillo); }
.servicios { padding-top: 0; }
.tarjetas-servicio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tarjetas-servicio li { padding: 28px 24px; }
.tarjetas-servicio h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.15; }
.tarjetas-servicio p { margin: 0; font-size: 16px; line-height: 1.55; }
.servicios .pie-bloque { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; font-size: 18px; }

/* ---------- Páginas legales ---------- */

.legal { max-width: 820px; }
.legal h2 { margin: 2em 0 .6em; font-family: var(--titulos); font-size: 22px; text-transform: none; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: #e4e4ec; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--amarillo); }
.datos-titular { border-collapse: collapse; margin: 0 0 1em; font-size: 16px; }
.datos-titular th, .datos-titular td { padding: 8px 18px 8px 0; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.datos-titular th { color: var(--suave); font-weight: 600; }
.pie .legales a { text-decoration: underline; text-underline-offset: 3px; }
.boton.correo { font-size: 16px; text-transform: none; letter-spacing: 0; }

/* Efecto Dock en las palabras de los cuadros */
/* El tamaño de cada letra lo mueve agenda.js fotograma a fotograma */
.baldosa .letra { display: inline-block; font-style: normal; transform-origin: 50% 55%; will-change: transform; }
.midiendo .letra { transition: none !important; }
.texto-pagina a { color: var(--amarillo); }
.bio h2 { margin: 2em 0 .8em; font-size: 22px; }
.videos { list-style: none; margin: 0 0 2em; padding: 0; display: grid; gap: 8px; }
.videos a { display: block; padding: 14px 18px; background: var(--gris); border: 1px solid var(--linea); border-left: 4px solid var(--color, var(--rojo)); text-decoration: none; font-weight: 500; }
.videos a:hover { background: #1c1c22; color: var(--amarillo); }
