/* Algán · Producción escénica — paleta "Marquesina" */
:root {
	--bg: #0F0E0D;
	--bg-alt: #151311;
	--surface: #1A1816;
	--surface-2: #24211E;
	--line: #2E2A26;
	--line-2: #3A3530;
	--line-3: #5A534C;
	--text: #F2EEE8;
	--text-2: #D9D3CA;
	--muted: #B3ACA3;
	--faint: #8C857C;
	--accent: #F0B44C;
	--on-accent: #0F0E0D;
	--display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
	--body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; line-height: 1; }
.brand img { height: 52px; width: auto; }
.brand__tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 14px; line-height: 1.4; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav__links a.is-active { color: var(--accent); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px; font-family: var(--body); border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--accent, .wpcf7-submit { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--accent:hover, .wpcf7-submit:hover { color: var(--on-accent); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-3); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Tipografía */
.kicker { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.kicker--accent { color: var(--accent); }
.kicker--s { font-size: 13px; letter-spacing: .12em; }
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.display--xl { font-size: clamp(56px, 9vw, 128px); line-height: .9; }
.display--l { font-size: clamp(42px, 6vw, 80px); line-height: .95; }
.display--m { font-size: clamp(34px, 4.5vw, 56px); line-height: 1; }
.lead { margin-top: 28px; max-width: 660px; font-size: 20px; color: var(--text-2); }
.lead--s { font-size: 18px; margin-top: 16px; }
.more { font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 4px; display: inline-block; }
.split__side .more { margin-top: 28px; }

/* Secciones */
.section { padding-top: 104px; padding-bottom: 96px; }
.section--tight { padding-top: 72px; padding-bottom: 72px; }
.section--top0 { padding-top: 0; padding-bottom: 88px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 24px; margin-bottom: 44px; }
.page-head { padding-top: 88px; padding-bottom: 64px; }
.page-head--split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.page-head--split > div:first-child { flex: 999 1 560px; min-width: 0; }

/* Portada */
.hero { padding-top: 96px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.hero__text { flex: 999 1 560px; min-width: 0; }
.hero__media { flex: 1 1 340px; min-width: 0; }
.hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }

/* Recuadros vacíos (sin imagen cargada) */
.placeholder { background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--faint); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.05; }
.hero__img.placeholder, .about__img.placeholder { font-family: var(--body); font-weight: 400; text-transform: none; font-size: 14px; }

/* Franja en temporada */
.band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 26px; padding-bottom: 26px; }
.band__title { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.band__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 16px; }
.band__list strong { font-weight: 600; }
.band__list span { color: var(--muted); }

/* Grillas y tarjetas */
.grid { display: grid; gap: 32px 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--posters { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--cols-4 .card__title { font-size: 30px; }
@media (max-width: 1000px) { .grid--cols-3, .grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--cols-3, .grid--cols-4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__poster { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); }
.card__eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.card__title { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.card__title--s { font-size: 28px; }
.card__meta { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.5; }
.card__venue { color: var(--text-2); font-size: 15px; font-weight: 600; }

.box { border: 1px solid var(--line); padding: 28px; }
.box h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.box h2 { font-size: 26px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.box p { color: var(--muted); font-size: 16px; }
.box--lg { padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.box--lg .book__link { margin-top: 16px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; margin-top: 48px; }
.service { padding: 28px 24px 28px 0; border-top: 2px solid var(--line-2); }
.service--accent { border-top-color: var(--accent); }
.service h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 16px; }

/* Marquesina de salas */
.marquee-section .kicker { margin-bottom: 24px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; align-items: center; animation: marquee var(--marquee-dur, 48s) linear infinite; }
.marquee__track li { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; color: var(--text-2); white-space: nowrap; display: flex; align-items: center; }
.marquee__track li::after { content: '·'; color: var(--accent); margin: 0 .55em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Título de portada que se revela */
.hero__title .reveal { display: block; overflow: hidden; padding: .14em 0 .06em; margin: -.14em 0 -.06em; }
.hero__title .reveal > span { display: block; transform: translateY(110%); animation: reveal-up .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 140ms + 120ms); }
.hero__text .lead, .hero__text .actions, .hero__text .kicker { opacity: 0; animation: fade-up .8s ease forwards; }
.hero__text .kicker { animation-delay: .05s; }
.hero__text .lead { animation-delay: .55s; }
.hero__text .actions { animation-delay: .7s; }
@keyframes reveal-up { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.marquee { -webkit-mask-image: none; mask-image: none; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
	.marquee__track { animation: none; flex-wrap: wrap; flex-shrink: 1; }
	.marquee__track[aria-hidden="true"] { display: none; }
	.marquee__track li { white-space: normal; }
	.hero__title .reveal > span { transform: none; animation: none; }
	.hero__text .lead, .hero__text .actions, .hero__text .kicker { opacity: 1; animation: none; }
}

/* Bloques divididos */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split__side { flex: 1 1 360px; min-width: 0; }
.split__main { flex: 999 1 540px; min-width: 0; }

/* Libros */
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.books--wide { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.book { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.book__cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 8px; }
.book__cover.placeholder { background: var(--surface-2); border: 0; font-size: 20px; }
.book__title { font-size: 22px; font-weight: 600; line-height: 1.25; }
.book__link { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent); }
.book__link:hover { color: var(--text); }
.book--row { flex-direction: row; flex-wrap: wrap; gap: 28px; }
.book--row .book__cover { flex: 0 0 150px; width: 150px; margin: 0; }
.book__body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Cifras y datos */
.stats { margin: 0; display: flex; flex-wrap: wrap; gap: 24px 40px; }
.stats dt, .facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stats dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; color: var(--accent); }
.facts { flex: 1 1 300px; margin: 0; display: flex; flex-direction: column; gap: 16px; border-left: 2px solid var(--accent); padding-left: 24px; }
.facts dd { margin: 2px 0 0; font-size: 17px; }
.facts--plain { border: 0; padding: 0; gap: 12px; margin-bottom: 20px; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-3); font-size: 15px; font-weight: 600; }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Trayectoria */
.year { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.year__label { flex: 0 0 120px; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; color: var(--accent); }
.year__list { flex: 999 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.entry { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.entry__main { flex: 1 1 320px; min-width: 0; }
.entry__title { font-size: 19px; font-weight: 600; }
.entry__title--link { border-bottom: 1px solid var(--line-3); }
.entry__meta { margin-top: 4px; font-size: 15px; color: var(--muted); }
.entry__side { flex: 0 1 300px; font-size: 15px; color: var(--text-2); text-align: right; }

.entry { align-items: flex-start; }
.entry__thumb { flex: 0 0 48px; }
.entry__thumb img { width: 48px; height: 64px; object-fit: cover; border: 1px solid var(--line); }
.card__link { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.card__link:hover .card__title { color: var(--accent); }
.card__link .card__poster { transition: transform .2s ease; }
.card__link:hover .card__poster { transform: translateY(-3px); }
.card__title a, .band__list a { color: inherit; }
.card__title a:hover, .band__list a:hover { color: var(--accent); }

/* Afiche flotante en la trayectoria (solo con mouse) */
.hover-preview { position: fixed; left: 0; top: 0; z-index: 50; width: 240px; pointer-events: none; opacity: 0; transition: opacity .18s ease; will-change: transform, opacity; }
.hover-preview img { width: 100%; height: auto; max-height: 360px; object-fit: contain; display: block; border: 1px solid var(--line-2); box-shadow: 0 24px 48px rgba(0, 0, 0, .55); transform: scale(.92); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.hover-preview.is-visible { opacity: 1; }
.hover-preview.is-visible img { transform: scale(1); }
.has-hover-preview .entry__thumb { display: none; }
@media (prefers-reduced-motion: reduce) {
	.hover-preview, .hover-preview img { transition: none; }
}

/* Página de una obra */
.obra { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 72px; padding-bottom: 96px; align-items: flex-start; }
.obra__poster { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.obra__img { width: 100%; height: auto; border: 1px solid var(--line); }
.obra__img.placeholder { aspect-ratio: 3 / 4; }
.obra__body { flex: 999 1 480px; min-width: 0; }
.obra__body .kicker { margin-bottom: 16px; }
.obra__sala { margin-top: 12px; font-size: 17px; font-weight: 600; color: var(--text-2); }
.actions--tight { margin-top: 28px; }
.obra__block { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.obra__h { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.obra__text { color: var(--text-2); font-size: 18px; max-width: 680px; }
.obra__text + .obra__text { margin-top: 14px; }
.ficha { margin: 0; display: flex; flex-direction: column; }
.ficha__row { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ficha__row dt { flex: 0 0 220px; color: var(--muted); font-size: 15px; }
.ficha__row dd { flex: 1 1 260px; margin: 0; font-size: 16px; }
.ficha__row--plain dd { color: var(--text-2); }
.obra__otras { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.obra__otras a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 15px; }
.obra__otras a:hover { border-color: var(--accent); }
.obra__back { margin-top: 48px; }

/* Fotos de escena */
.fotos__title { margin-bottom: 40px; }
.fotos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.fotos__link { display: block; overflow: hidden; border: 1px solid var(--line); }
.fotos__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.fotos__link:hover .fotos__img { transform: scale(1.03); }
.fotos__link:focus-visible { outline-offset: 2px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 7, 6, .96); display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { color: var(--muted); font-size: 14px; text-align: center; }
.lightbox__counter { position: absolute; top: 22px; left: 24px; color: var(--muted); font-size: 14px; letter-spacing: .1em; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-3); background: rgba(15, 14, 13, .7); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 12px; right: 16px; font-size: 30px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-open, .lightbox-open body { overflow: hidden; }
@media (max-width: 640px) {
	.lightbox { padding: 64px 12px 88px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
	.lightbox__prev { left: calc(50% - 64px); }
	.lightbox__next { right: calc(50% - 64px); }
}

/* Listado académico */
.ac-list { list-style: none; margin: 0; padding: 0; }
.ac { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--line); }
.ac__year { flex: 0 0 80px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--accent); }
.ac--wide .ac__year { flex-basis: 200px; font-size: 28px; }
.ac__main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ac__title { font-size: 18px; font-weight: 600; line-height: 1.4; }
.ac__title--plain { font-weight: 400; }
.ac__kind { flex: 0 1 180px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; text-align: right; }

/* Formación */
.feature { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.feature__main { flex: 999 1 520px; min-width: 0; }
.feature__side { flex: 1 1 260px; min-width: 0; }

/* Sobre Algán */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about__media { flex: 1 1 320px; min-width: 0; }
.about__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); }
.about__text { flex: 999 1 520px; min-width: 0; }
.about__text .lead + .lead { margin-top: 16px; }

/* CTA */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }

/* Contacto */
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.contact-form form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.contact-form .form-row label { flex: 1 1 220px; min-width: 0; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); padding: 0 16px; min-height: 52px; font: inherit; font-weight: 400; font-size: 16px; border-radius: 6px; }
.contact-form textarea { padding: 14px 16px; min-height: 160px; resize: vertical; }
.contact-form .wpcf7-submit { align-self: flex-start; min-height: 52px; padding: 0 32px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; border: 0; }
.contact-form .wpcf7-not-valid-tip { color: #FF9C8A; font-weight: 400; font-size: 14px; margin-top: 6px; }
.contact-form .wpcf7-response-output { margin: 8px 0 0 !important; padding: 12px 16px !important; border-radius: 6px; border-color: var(--line-2) !important; font-size: 15px; }
.contact-form .wpcf7-spinner { margin-left: 12px; }

/* Texto corrido (páginas genéricas) */
.prose { max-width: 760px; margin-top: 24px; color: var(--text-2); font-size: 18px; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--accent); }

/* Pie */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: var(--muted); }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.site-footer__brand img { width: 150px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--accent); }

@media (max-width: 640px) {
	body { font-size: 16px; }
	.section { padding-top: 72px; padding-bottom: 64px; }
	.hero { padding-top: 56px; }
	.page-head { padding-top: 56px; }
	.entry__side, .ac__kind { text-align: left; }
	.books--wide { grid-template-columns: 1fr; }
	.brand img { height: 44px; }
}

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