/*
Theme Name: Alamedas
Theme URI: https://alamedas.cl
Author: Portable
Description: Tema para la banda Alamedas. Amarillo, negro y líneas de carretera, a partir de la portada del primer disco (2005).
Version: 1.0.0
Requires PHP: 8.0
Text Domain: alamedas
*/

:root {
	--amarillo: #fbde2a;
	--negro: #111;
	--blanco: #fff;
	--rojo: #e1141c;
	--carmin: #d60034;
	--gris: #6b6b6b;
	--display: "Anton", "Impact", "Arial Narrow", sans-serif;
	--texto: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ancho: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--amarillo);
	color: var(--negro);
	font: 400 17px/1.6 var(--texto);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.con-reproductor { padding-bottom: 72px; }
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .5em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr, .saltar:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--negro); color: var(--amarillo); padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.contenedor--texto { max-width: 780px; }

/* ---------- Cabecera ---------- */
.cabecera { background: var(--negro); color: var(--amarillo); position: sticky; top: 0; z-index: 50; }
.cabecera__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { font-family: var(--display); font-size: 1.9rem; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; line-height: 1; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
	display: block; padding: 8px 14px; text-decoration: none; text-transform: uppercase;
	font-weight: 800; font-size: .85rem; letter-spacing: .12em; color: var(--blanco);
}
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--amarillo); }
.nav .menu-comprar a, .nav li:last-child a[href*="comprar"] { background: var(--amarillo); color: var(--negro); margin-left: 8px; }
.nav .menu-comprar a:hover { background: var(--blanco); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; position: relative; }
.menu-toggle span:not(.sr) { display: block; height: 3px; background: var(--amarillo); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-abierto .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-abierto .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-abierto .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
	.menu-toggle { display: block; }
	.nav { position: fixed; inset: 64px 0 0; background: var(--negro); display: none; padding: 24px var(--gutter); }
	.menu-abierto .nav { display: block; }
	.menu-abierto { overflow: hidden; }
	.nav .menu { flex-direction: column; gap: 0; }
	.nav a { font-family: var(--display); font-weight: 400; font-size: 2.4rem; letter-spacing: .02em; padding: 10px 0; border-bottom: 1px solid #333; }
	.nav .menu-comprar a, .nav li:last-child a[href*="comprar"] { margin: 16px 0 0; padding: 10px 16px; border: 0; }
}

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
	display: inline-block; padding: 14px 26px; border: 3px solid var(--negro); background: transparent;
	text-decoration: none; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: .85rem;
	transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--negro { background: var(--negro); color: var(--amarillo); }
.btn--negro:hover { background: var(--blanco); color: var(--negro); }
.btn--borde:hover { background: var(--negro); color: var(--amarillo); }
.btn--blanco { background: var(--blanco); border-color: var(--blanco); color: var(--negro); }
.btn--blanco:hover { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
.btn--chico { padding: 9px 16px; font-size: .75rem; border-width: 2px; }
.link-flecha { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; text-decoration: none; border-bottom: 3px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.link-flecha::after { content: " →"; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; min-height: min(86vh, 820px); }
.hero__texto { padding: 64px 0; align-self: center; position: relative; z-index: 1; }
.hero__kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; margin-bottom: 8px; }
.hero__titulo { font-size: clamp(4.2rem, 13vw, 11rem); line-height: .85; margin: 0 0 24px; letter-spacing: -.01em; }
.hero__bajada { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 30ch; margin-bottom: 32px; }
.hero__foto {
	width: 100%; max-width: 620px; justify-self: end; align-self: end;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%), linear-gradient(to bottom, transparent 0, #000 14%);
	-webkit-mask-composite: source-in; mask-composite: intersect;
	mask-image: linear-gradient(to right, transparent 0, #000 18%), linear-gradient(to bottom, transparent 0, #000 14%);
}
@media (max-width: 820px) {
	.hero__in { grid-template-columns: 1fr; min-height: 0; gap: 0; }
	.hero__texto { padding: 48px 0 8px; }
	.hero__foto { max-width: 440px; margin-right: calc(var(--gutter) * -1); }
}

/* ---------- Franja ---------- */
.franja { background: var(--negro); color: var(--blanco); padding: 18px 0; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.franja p { margin: 0; text-align: center; }
.franja span { color: var(--amarillo); }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(56px, 9vw, 112px) 0; }
.seccion--corta { padding-bottom: 0; }
.seccion--negra { background: var(--negro); color: var(--blanco); }
.seccion--negra h2 { color: var(--amarillo); }
.seccion--roja { background: var(--rojo); color: var(--blanco); }
.encabezado { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.encabezado h2 { margin: 0; }
.intro { margin: 0 auto 48px; }

.seccion--cita { text-align: center; }
.seccion--cita blockquote { margin: 0 0 32px; }
.seccion--cita blockquote p { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 16px; }
.seccion--cita cite { font-style: normal; font-weight: 600; }

/* ---------- Cabecera de página ---------- */
.pagina-cabecera { position: relative; overflow: hidden; background: var(--amarillo); padding: clamp(72px, 12vw, 150px) 0 32px; border-bottom: 8px solid var(--negro); }
.pagina-cabecera h1 { position: relative; font-size: clamp(3.6rem, 12vw, 9rem); line-height: .85; margin: 0; }
.pagina-cabecera--roja { background: var(--rojo); color: var(--blanco); }
.pagina-cabecera--roja .lineas polygon[fill] { fill: var(--rojo); }
.lineas--cabecera { position: absolute; top: 0; right: -10%; width: 80%; height: 100%; opacity: .9; }
@media (max-width: 820px) { .lineas--cabecera { width: 140%; right: -50%; opacity: .5; } }

/* ---------- Contenido editable ---------- */
.entry > * + * { margin-top: 1em; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry p, .entry li { font-size: 1.08rem; }
.entry a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry a:hover { background: var(--negro); color: var(--amarillo); text-decoration: none; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry blockquote { margin: 1.5em 0; padding: 0 0 0 24px; border-left: 6px solid var(--negro); font-size: 1.25rem; font-weight: 600; }
.entry figure { margin: 2em 0; }
.entry figcaption { font-size: .85rem; color: #333; margin-top: 8px; }
.entry .lead { font-size: 1.35rem; font-weight: 600; line-height: 1.45; }

/* Línea de tiempo (Historia) */
.entry .linea-tiempo { list-style: none; padding: 0; margin: 2em 0; border-left: 6px solid var(--negro); }
.entry .linea-tiempo li { position: relative; padding: 0 0 1.6em 28px; }
.entry .linea-tiempo li::before { content: ""; position: absolute; left: -15px; top: 4px; width: 24px; height: 24px; background: var(--blanco); border: 6px solid var(--negro); }
.entry .linea-tiempo strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }

/* Formación */
.entry .formacion { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.entry .formacion li { background: var(--negro); color: var(--blanco); padding: 16px 18px; margin: 0; }
.entry .formacion strong { display: block; color: var(--amarillo); font-family: var(--display); font-weight: 400; font-size: 1.4rem; text-transform: uppercase; }

/* Prensa */
.entry .prensa-item { background: var(--blanco); padding: 24px 28px; border-left: 10px solid var(--negro); margin-top: 20px; }
.entry .prensa-item h3 { margin: 0 0 .3em; font-size: 1.6rem; }
.entry .prensa-item .prensa-medio { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin: 0 0 .6em; color: var(--rojo); }
.entry .prensa-item p { margin: 0 0 .6em; }
.entry .prensa-item a { font-weight: 800; }

/* ---------- Discos ---------- */
.discos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.disco-card { text-decoration: none; display: block; }
.disco-card img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .2s; }
.disco-card:hover img { transform: translateY(-6px) rotate(-1deg); }
.disco-card__titulo { display: block; font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; margin-top: 14px; line-height: 1; }
.disco-card__anio { display: block; color: #bbb; font-size: .9rem; margin-top: 4px; }
@media (max-width: 900px) { .discos-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.disco { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 8px solid var(--negro); scroll-margin-top: 64px; }
.disco:nth-of-type(even) { background: var(--negro); color: var(--blanco); }
.disco__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.disco__portada { position: sticky; top: 96px; }
.disco__portada img { width: 100%; box-shadow: 14px 14px 0 var(--disco, var(--negro)); }
.disco:nth-of-type(odd) .disco__portada img { box-shadow: 14px 14px 0 var(--negro); }
.disco__meta { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 6px; }
.disco h2 { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: .25em; }
.disco:nth-of-type(even) h2 { color: var(--amarillo); }
.disco__extra { font-size: .9rem; opacity: .8; margin-top: 16px; }
@media (max-width: 820px) { .disco__in { grid-template-columns: 1fr; } .disco__portada { position: static; max-width: 420px; } }

.pistas { list-style: none; margin: 24px 0; padding: 0; border-top: 2px solid currentColor; }
.pistas li { border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.pista { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 11px 6px; text-align: left; }
.pista:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.pista__n { font-weight: 800; opacity: .55; font-variant-numeric: tabular-nums; }
.pista__t { font-weight: 600; }
.pista__d { opacity: .6; font-variant-numeric: tabular-nums; font-size: .9rem; }
.pista.sonando { background: var(--negro); color: var(--amarillo); }
.disco:nth-of-type(even) .pista.sonando { background: var(--amarillo); color: var(--negro); }
.pista.sonando .pista__n { opacity: 1; }
.pista.sonando .pista__n::before { content: "▶"; }
.pista.sonando .pista__n { font-size: 0; }
.pista.sonando .pista__n::before { font-size: .9rem; }

.reproductor { position: fixed; left: 0; right: 0; bottom: 0; background: var(--negro); color: var(--blanco); z-index: 60; border-top: 4px solid var(--amarillo); }
.reproductor__in { display: flex; align-items: center; gap: 14px; height: 68px; }
.reproductor__btn { width: 44px; height: 44px; flex: none; border: 0; background: var(--amarillo); color: var(--negro); font-size: 1rem; }
.reproductor__titulo { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; max-width: 40%; }
.reproductor__barra { flex: 1; accent-color: var(--amarillo); min-width: 60px; }
.reproductor__tiempo { font-variant-numeric: tabular-nums; font-size: .9rem; opacity: .7; }
@media (max-width: 600px) { .reproductor__titulo { max-width: 45%; font-size: .85rem; } .reproductor__tiempo { display: none; } }

/* ---------- Videos ---------- */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.videos-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .videos-grid, .videos-grid--2 { grid-template-columns: 1fr; } }
.video h3 { margin: 16px 0 6px; }
.video p { margin: 0; }
.video__play, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--negro); position: relative; overflow: hidden; }
.video__play img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); transition: filter .2s; mix-blend-mode: normal; }
.video__play:hover img { filter: none; }
.video__icono { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; background: var(--amarillo); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateX(6px); transition: transform .2s; }
.video__play:hover .video__icono { transform: translateX(6px) scale(1.12); }

/* ---------- Tienda ---------- */
.tienda-teaser { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.tienda-teaser h2 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.tienda-teaser__cds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tienda-teaser figure { margin: 0; }
.tienda-teaser img { box-shadow: 10px 10px 0 var(--negro); }
.tienda-teaser figcaption { margin-top: 14px; font-weight: 600; }
.tienda-teaser figcaption strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
@media (max-width: 820px) { .tienda-teaser { grid-template-columns: 1fr; } }

.productos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; }
@media (max-width: 820px) { .productos { grid-template-columns: 1fr; } }
.producto { background: var(--blanco); display: grid; grid-template-columns: 1fr; border: 4px solid var(--negro); }
.producto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 4px solid var(--negro); }
.producto__info { padding: 22px 24px 26px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; }
.producto__info > :not(.cantidad):not(.producto__precio) { grid-column: 1 / -1; }
.producto h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0; }
.producto__detalle { font-size: .9rem; color: var(--gris); margin: 0 0 6px; }
.producto__precio { font-family: var(--display); font-size: 2.1rem; margin: 0; line-height: 1; }
.producto .link-flecha { justify-self: start; font-size: .75rem; margin-top: 14px; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.producto--agotado img { filter: grayscale(1); opacity: .6; }
.producto__agotado { font-weight: 800; text-transform: uppercase; color: var(--rojo); }
@media (max-width: 420px) { .producto__info { grid-template-columns: 1fr; } }

.cantidad { display: flex; flex-direction: column; gap: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.cantidad__ctrl { display: inline-flex; align-self: flex-start; border: 3px solid var(--negro); }
.cantidad__ctrl button { width: 44px; height: 44px; border: 0; background: var(--negro); color: var(--amarillo); font-size: 1.3rem; font-weight: 800; }
.cantidad__ctrl input { width: 56px; border: 0; text-align: center; font: 800 1.2rem var(--texto); -moz-appearance: textfield; appearance: textfield; background: var(--blanco); }
.cantidad__ctrl input::-webkit-inner-spin-button, .cantidad__ctrl input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.tienda__datos { max-width: 820px; }
.campos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.campos--envio[hidden] { display: none; }
@media (max-width: 600px) { .campos { grid-template-columns: 1fr; } }
.tienda label:not(.radio):not(.cantidad) { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.tienda .ancho { grid-column: 1 / -1; margin-bottom: 20px; }
.tienda input[type=text], .tienda input[type=email], .tienda input[type=tel], .tienda textarea {
	font: 400 1rem var(--texto); padding: 13px 14px; border: 3px solid var(--negro); background: var(--blanco); border-radius: 0; width: 100%;
	-webkit-appearance: none; appearance: none; text-transform: none; letter-spacing: 0;
}
.tienda input:focus, .tienda textarea:focus { outline: 3px solid var(--rojo); outline-offset: 0; }
.entrega { border: 0; padding: 0; margin: 0 0 20px; }
.entrega legend { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.radio { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--blanco); border: 3px solid var(--negro); margin-bottom: 8px; cursor: pointer; }
.radio input { accent-color: var(--negro); width: 20px; height: 20px; flex: none; }
.radio:has(input:checked) { background: var(--negro); color: var(--amarillo); }
.radio:has(input:checked) input { accent-color: var(--amarillo); }
.tienda__total { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 6px solid var(--negro); padding-top: 20px; margin-top: 12px; }
.tienda__total p { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.tienda__total strong { font-family: var(--display); font-weight: 400; font-size: 2.6rem; letter-spacing: 0; margin-left: 12px; }
.nota { font-size: .9rem; margin-top: 16px; }
.hp { position: absolute; left: -9999px; }
.aviso { padding: 14px 18px; font-weight: 600; border: 3px solid var(--negro); background: var(--blanco); }
.aviso--error { background: var(--rojo); color: var(--blanco); border-color: var(--rojo); }
.confirmacion { max-width: 780px; background: var(--blanco); border: 4px solid var(--negro); padding: clamp(24px, 5vw, 48px); }
.confirmacion__resumen { font-size: 1.15rem; font-weight: 600; }

/* ---------- Pie ---------- */
.pie { background: var(--negro); color: var(--blanco); padding: 56px 0 40px; }
.pie__in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.pie__logo { font-family: var(--display); font-size: 3rem; text-transform: uppercase; color: var(--amarillo); line-height: 1; margin-bottom: 12px; }
.pie__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pie__links a { text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.pie__links a:hover { color: var(--amarillo); }
.pie__copy { grid-column: 1 / -1; font-size: .85rem; opacity: .6; margin: 0; border-top: 1px solid #333; padding-top: 20px; }
@media (max-width: 700px) { .pie__in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
