/*
Theme Name: Esscenia
Theme URI: https://esscenia.es/
Description: Tema a medida para Espacio Esscenia (Griñón): escuela de teatro, danza y música, café teatro, eventos y alquiler de salas.
Author: RiC0n3
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: esscenia
License: Propietario
*/

/* ---------- Tipografías (alojadas en el propio tema) ---------- */
@font-face { font-family: "Bricolage"; src: url("assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dmsans-italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

/* ---------- Variables ---------- */
:root {
	--ink: #140d18;
	--night: #1e1324;
	--night-2: #2a1a33;
	--magenta: #e6007e;
	--magenta-hi: #ff2f9a;
	--magenta-soft: #fde6f2;
	--gold: #ffc857;
	--paper: #faf6f2;
	--paper-2: #f3ece6;
	--text: #251b29;
	--muted: #6a6170;
	--line: #e7dfe3;
	--on-dark: #f6eef4;
	--on-dark-muted: #c2b3c4;
	--wa: #1faa59;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 18px 40px -18px rgba(20, 13, 24, .35);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--font-head: "Bricolage", "Arial Narrow", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: var(--magenta-hi); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Botones ---------- */
.es-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap; }
.es-btn:hover { transform: translateY(-2px); }
.es-btn svg { width: 1.2em; height: 1.2em; flex: none; }
.es-btn--primary { background: var(--magenta); color: #fff; }
.es-btn--primary:hover { background: var(--magenta-hi); color: #fff; }
.es-btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.es-btn--ghost:hover { color: inherit; background: rgba(255, 255, 255, .08); }
.es-btn--light { background: #fff; color: var(--ink); }
.es-btn--light:hover { color: var(--magenta); }
.es-btn--wa { background: var(--wa); color: #fff; }
.es-btn--wa:hover { background: #179a4e; color: #fff; }
.es-btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.es-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.es-header { position: sticky; top: 0; z-index: 50; color: var(--on-dark); border-bottom: 1px solid rgba(255, 255, 255, .06); }
/* El desenfoque va en una capa aparte: si estuviera en la cabecera, el menú móvil (fijo) quedaría encerrado dentro de ella. */
.es-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 13, 24, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.admin-bar .es-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .es-header { top: 0; } }
.es-header__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.es-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.es-logo img { height: 46px; width: auto; }
.es-logo span { font: 800 1.15rem/1 var(--font-head); letter-spacing: .02em; }
.es-logo small { display: block; font: 600 .68rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 3px; }
.es-nav { margin-left: auto; }
.es-nav ul { list-style: none; margin: 0; padding: 0; }
.es-nav > ul { display: flex; align-items: center; gap: 4px; }
.es-nav li { position: relative; }
.es-nav a { display: block; white-space: nowrap; padding: 10px 14px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 999px; }
.es-nav a:hover, .es-nav .current-menu-item > a, .es-nav .current-menu-ancestor > a, .es-nav .current_page_item > a { color: #fff; background: rgba(255, 255, 255, .08); }
.es-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.es-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; background: var(--night); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.es-nav li:hover > .sub-menu, .es-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.es-nav .sub-menu a { border-radius: 8px; font-weight: 500; }
.es-header__cta { flex: none; }
.es-burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.es-burger span, .es-burger span::before, .es-burger span::after { display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; border-radius: 2px; position: relative; transition: .2s; }
.es-burger span::before, .es-burger span::after { content: ""; position: absolute; left: 0; }
.es-burger span::before { top: -7px; }
.es-burger span::after { top: 7px; }
.nav-open .es-burger span { background: transparent; }
.nav-open .es-burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .es-burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1140px) {
	.es-burger { display: block; }
	.es-header__cta { display: none; }
	.es-nav { position: fixed; top: 72px; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: var(--ink); padding: 16px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; display: none; }
	.admin-bar .es-nav { height: calc(100dvh - 118px); }
	.admin-bar .es-nav { top: 118px; }
	.nav-open .es-nav { display: block; }
	.nav-open { overflow: hidden; }
	.es-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.es-nav a { font-size: 1.15rem; padding: 14px 12px; border-radius: 10px; }
	.es-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
	.es-nav .sub-menu a { font-size: 1rem; color: var(--on-dark-muted); }
	.es-nav .menu-item-has-children > a::after { display: none; }
	.es-nav__extra { display: grid !important; gap: 10px; margin-top: 18px; }
}
.es-nav__extra { display: none; }

/* ---------- Secciones ---------- */
.es-section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.es-section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.es-section--paper2 { background: var(--paper-2); }
.es-section--dark { background: var(--ink); color: var(--on-dark); }
.es-section--dark a:not(.es-btn) { color: var(--magenta-hi); }
.es-section--night { background: radial-gradient(900px 500px at 85% 0%, rgba(230, 0, 126, .22), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(255, 200, 87, .10), transparent 60%), var(--night); color: var(--on-dark); }
.es-section--magenta { background: linear-gradient(120deg, #c4006b, var(--magenta) 45%, #ff3f8f); color: #fff; }
.es-kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); margin-bottom: 16px; }
.es-kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.es-section--dark .es-kicker, .es-section--night .es-kicker { color: var(--gold); }
.es-section--magenta .es-kicker { color: #fff; }
.es-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.es-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.es-head--center .es-kicker { justify-content: center; }
.es-head p { font-size: 1.12rem; color: var(--muted); }
.es-section--dark .es-head p, .es-section--night .es-head p { color: var(--on-dark-muted); }
.es-head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.es-head--row > div { max-width: 700px; }
.es-mark { background: linear-gradient(transparent 62%, rgba(230, 0, 126, .28) 62%); padding: 0 .08em; }
.es-section--dark .es-mark, .es-section--night .es-mark { background: none; color: var(--magenta-hi); }

/* ---------- Hero portada ---------- */
.es-hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.es-hero__bg { position: absolute; inset: 0; z-index: -2; }
.es-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transform: scale(1.04); }
.es-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 70% 20%, rgba(255, 200, 87, .22), transparent 60%), linear-gradient(180deg, rgba(20, 13, 24, .35) 0%, rgba(20, 13, 24, .2) 35%, rgba(20, 13, 24, .92) 100%); }
.es-hero__in { padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.es-hero__tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; font-size: .92rem; margin-bottom: 22px; backdrop-filter: blur(6px); }
.es-hero__tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta-hi); box-shadow: 0 0 0 5px rgba(255, 47, 154, .25); }
.es-hero h1 { max-width: 15ch; margin-bottom: 18px; text-wrap: balance; }
.es-hero h1 em { font-style: normal; color: var(--magenta-hi); }
.es-hero__lead { max-width: 58ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #eadfe8; margin-bottom: 30px; }

/* ---------- Cinta (marquee) ---------- */
.es-ticker { background: var(--magenta); color: #fff; overflow: hidden; white-space: nowrap; border-block: 1px solid rgba(0, 0, 0, .1); }
.es-ticker__track { display: inline-flex; gap: 0; padding: 14px 0; animation: es-ticker 38s linear infinite; }
.es-ticker span { font: 800 clamp(1rem, 2vw, 1.3rem)/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; padding: 0 22px; }
.es-ticker span::after { content: "★"; margin-left: 44px; color: var(--gold); }
@keyframes es-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .es-ticker__track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Datos rápidos ---------- */
.es-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.es-facts > div { background: #fff; padding: 24px 22px; }
.es-facts b { display: block; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--font-head); color: var(--magenta); margin-bottom: 8px; }
.es-facts span { color: var(--muted); font-size: .96rem; line-height: 1.4; display: block; }
@media (max-width: 800px) { .es-facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Rejillas y tarjetas ---------- */
.es-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.es-grid--2 { grid-template-columns: repeat(2, 1fr); }
.es-grid--3 { grid-template-columns: repeat(3, 1fr); }
.es-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .es-grid--3, .es-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
	.es-grid--2, .es-grid--3, .es-grid--4 { grid-template-columns: 1fr; }
	.es-grid:has(> .es-ev) { grid-template-columns: 1fr 1fr; gap: 12px; }
	.es-ev__body { padding: 12px 12px 14px; }
	.es-ev__body h3 { font-size: 1rem; }
	.es-ev__meta { font-size: .8rem; }
	.es-ev__date { top: 8px; left: 8px; padding: 6px 8px 7px; min-width: 48px; }
	.es-ev__date b { font-size: 1.3rem; }
	.es-ev__tag { display: none; }
}

.es-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.es-card:hover, .es-card:has(a.es-card__link:hover) { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.es-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.es-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.es-card:hover .es-card__img img { transform: scale(1.05); }
.es-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.es-card__body h3 { margin-bottom: .35em; }
.es-card__body p { color: var(--muted); font-size: .98rem; margin-bottom: 14px; }
.es-card__label { align-self: flex-start; font: 700 .74rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); background: var(--magenta-soft); padding: 7px 10px; border-radius: 999px; margin-bottom: 12px; }
.es-card__price { font: 800 1.15rem/1 var(--font-head); color: var(--ink); margin: 4px 0 14px; }
.es-card__more { margin-top: auto; font-weight: 700; color: var(--magenta); display: inline-flex; align-items: center; gap: 6px; }
.es-card__more::after { content: "→"; transition: transform .2s; }
a.es-card:hover .es-card__more::after { transform: translateX(4px); }
.es-card__link { position: absolute; inset: 0; z-index: 1; }

/* Tarjetas de disciplinas (portada) */
.es-disc { position: relative; display: flex; align-items: flex-end; min-height: 380px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: var(--night); }
.es-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.es-disc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 13, 24, 0) 25%, rgba(20, 13, 24, .9) 100%); transition: background .3s; }
.es-disc:hover img { transform: scale(1.06); }
.es-disc:hover::before { background: linear-gradient(180deg, rgba(230, 0, 126, .15) 0%, rgba(20, 13, 24, .92) 100%); }
.es-disc__body { padding: 24px; }
.es-disc__body h3 { margin: 0 0 6px; font-size: 1.6rem; }
.es-disc__body p { margin: 0; color: #e8dce6; font-size: .98rem; line-height: 1.45; }
.es-disc__body .es-card__more { color: #fff; margin-top: 12px; }
.es-disc:hover { color: #fff; }

/* ---------- Eventos ---------- */
.es-ev { position: relative; display: flex; flex-direction: column; background: var(--night-2); border-radius: var(--radius); overflow: hidden; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .07); transition: transform .2s ease, box-shadow .2s; }
.es-section:not(.es-section--dark):not(.es-section--night) .es-ev { background: #fff; color: var(--text); border-color: var(--line); }
.es-ev:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .55); }
.es-ev__poster { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--magenta), #6b1a6f); overflow: hidden; }
.es-ev__poster img { width: 100%; height: 100%; object-fit: cover; }
.es-ev__poster--empty { display: grid; place-items: center; }
.es-ev__poster--empty img { width: 46%; height: auto; object-fit: contain; opacity: .9; }
.es-ev__date { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); border-radius: 12px; text-align: center; padding: 8px 12px 9px; min-width: 64px; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.es-ev__date b { display: block; font: 800 1.7rem/1 var(--font-head); }
.es-ev__date span { display: block; font: 700 .72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--magenta); margin-top: 4px; }
.es-ev__tag { position: absolute; top: 14px; right: 14px; background: rgba(20, 13, 24, .78); color: #fff; font: 700 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.es-ev__tag--off { background: var(--gold); color: var(--ink); }
.es-ev__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.es-ev__body h3 { font-size: 1.25rem; margin: 0; }
.es-ev .es-ev__body h3 a { color: inherit; text-decoration: none; }
.es-ev__body h3 a::after { content: ""; position: absolute; inset: 0; }
.es-ev__meta { font-size: .93rem; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.es-section:not(.es-section--dark):not(.es-section--night) .es-ev__meta { color: var(--muted); }
.es-ev__price { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--gold); }
.es-section:not(.es-section--dark):not(.es-section--night) .es-ev__price { color: var(--magenta); }
.es-ev--past { opacity: .82; }
.es-ev--more { display: flex; justify-content: center; padding: 28px; border-style: dashed; border-color: rgba(255, 255, 255, .2); background: transparent; }
.es-ev--more:hover { transform: none; box-shadow: none; }
.es-ev--more h3 { font-size: 1.4rem; }
.es-ev--more p { color: var(--on-dark-muted); font-size: .98rem; }
@media (max-width: 640px) { .es-grid:has(> .es-ev--more) { grid-template-columns: 1fr; } }
.es-ev--past .es-ev__poster img { filter: grayscale(.35); }
.es-empty { border: 1.5px dashed rgba(255, 255, 255, .25); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); text-align: center; }
.es-section:not(.es-section--dark):not(.es-section--night) .es-empty { border-color: var(--line); background: #fff; }
.es-empty h3 { margin-bottom: 8px; }
.es-empty p { color: var(--on-dark-muted); max-width: 560px; margin: 0 auto 20px; }
.es-section:not(.es-section--dark):not(.es-section--night) .es-empty p { color: var(--muted); }
.es-empty .es-btns { justify-content: center; }
.es-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.es-filter a { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .94rem; }
.es-filter a:hover, .es-filter a.is-active { background: var(--magenta); border-color: var(--magenta); color: #fff; }

/* Ficha de evento */
.es-evsingle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.es-evsingle__poster { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); position: sticky; top: 100px; }
.es-evsingle__info { display: grid; gap: 10px; margin: 26px 0 30px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.es-evsingle__info div { display: flex; gap: 12px; align-items: baseline; }
.es-evsingle__info dt { min-width: 74px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 700; }
.es-evsingle__info dd { margin: 0; font-weight: 600; }
.es-evsingle .entry { color: var(--on-dark); }
@media (max-width: 860px) { .es-evsingle { grid-template-columns: 1fr; } .es-evsingle__poster { position: static; max-width: 460px; } }

/* ---------- Bloque imagen + texto ---------- */
.es-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.es-split--rev > :first-child { order: 2; }
.es-split__media { position: relative; }
.es-split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; }
.es-split__media::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 46%; border: 3px solid var(--magenta); border-radius: var(--radius); z-index: -1; }
.es-split__badge { position: absolute; left: -12px; bottom: 26px; background: var(--gold); color: var(--ink); padding: 14px 18px; border-radius: 14px; font-weight: 700; line-height: 1.25; box-shadow: var(--shadow); max-width: 230px; }
.es-split__badge b { display: block; font: 800 1.5rem/1 var(--font-head); }
@media (max-width: 860px) { .es-split { grid-template-columns: 1fr; } .es-split--rev > :first-child { order: 0; } .es-split__badge { left: 12px; } }
.es-checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.es-checks li { position: relative; padding-left: 32px; }
.es-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Equipo ---------- */
.es-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.es-person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.es-person b { font: 800 1.25rem/1.1 var(--font-head); display: block; }
.es-person em { font-style: normal; color: var(--magenta); font-weight: 700; font-size: .9rem; display: block; margin: 4px 0 10px; }
.es-person p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Reseñas ---------- */
.es-rating { display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.es-rating b { font: 800 2rem/1 var(--font-head); color: #fff; }
.es-stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.es-rating small { display: block; color: var(--on-dark-muted); font-size: .85rem; }
.es-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .es-quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .es-quotes { grid-template-columns: 1fr; } }
.es-quote { margin: 0; padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 14px; }
.es-quote p { margin: 0; font-size: 1.02rem; color: #efe4ee; }
.es-quote p::before { content: "“"; display: block; font: 800 3rem/0.6 var(--font-head); color: var(--magenta-hi); margin-bottom: 10px; }
.es-quote footer { margin-top: auto; font-weight: 700; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.es-quote footer .es-stars { font-size: .9rem; }
/* Reseñas sobre fondo claro (p. ej. en la página Nosotros). */
.es-section:not(.es-section--dark):not(.es-section--night) .es-quote,
.entry .es-quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; font-style: normal; font-size: 1rem; box-shadow: 0 10px 30px -22px rgba(20, 13, 24, .4); }
.es-section:not(.es-section--dark):not(.es-section--night) .es-quote p { color: var(--text); font-style: normal; margin: 0; }
.es-section:not(.es-section--dark):not(.es-section--night) .es-quote footer { color: var(--ink); }
.es-section:not(.es-section--dark):not(.es-section--night) .es-quote p::before { color: var(--magenta); }

/* ---------- Galería ---------- */
.es-gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 12px; }
.es-gallery a { display: block; border-radius: 14px; overflow: hidden; position: relative; background: var(--paper-2); aspect-ratio: 4 / 3; }
.es-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.es-gallery a:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .es-gallery { grid-template-columns: repeat(2, 1fr); } }
.es-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 6, 12, .94); display: none; align-items: center; justify-content: center; padding: 20px; }
.es-lightbox.is-open { display: flex; }
.es-lightbox img { max-height: 88vh; width: auto; border-radius: 10px; }
.es-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.es-lightbox button:hover { background: var(--magenta); }
.es-lightbox .lb-close { top: 18px; right: 18px; }
.es-lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.es-lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA ---------- */
.es-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.es-cta h2 { margin-bottom: 10px; }
.es-cta p { margin: 0; font-size: 1.1rem; opacity: .92; }
.es-cta .es-btns { justify-content: flex-end; }
@media (max-width: 860px) { .es-cta { grid-template-columns: 1fr; } .es-cta .es-btns { justify-content: flex-start; } }

/* ---------- Contacto / mapa ---------- */
.es-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
@media (max-width: 900px) { .es-contact { grid-template-columns: 1fr; } }
.es-contact__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.es-contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.es-contact__list .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--magenta-soft); color: var(--magenta); }
.es-section--dark .es-contact__list .ico, .es-section--night .es-contact__list .ico { background: rgba(230, 0, 126, .18); color: var(--magenta-hi); }
.es-contact__list .ico svg { width: 22px; height: 22px; }
.es-contact__list b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.es-section--dark .es-contact__list b, .es-section--night .es-contact__list b { color: var(--on-dark-muted); }
.es-contact__list a { color: inherit; text-decoration: none; font-weight: 600; }
.es-contact__list a:hover { color: var(--magenta); }
.es-map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--paper-2); border: 1px solid var(--line); position: relative; }
.es-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.es-hours { width: 100%; border-collapse: collapse; font-size: .97rem; }
.es-hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.es-hours td:last-child { text-align: right; font-weight: 600; }

/* ---------- Formulario ---------- */
.es-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); color: var(--text); box-shadow: var(--shadow); }
.es-form h3 { margin-bottom: 4px; }
.es-form > p { color: var(--muted); }
.es-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.es-form__full { grid-column: 1 / -1; }
@media (max-width: 600px) { .es-form__grid { grid-template-columns: 1fr; } }
.es-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.es-form input[type=text], .es-form input[type=email], .es-form input[type=tel], .es-form input[type=date], .es-form select, .es-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.es-form textarea { min-height: 130px; resize: vertical; }
.es-form input:focus, .es-form select:focus, .es-form textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(230, 0, 126, .14); background: #fff; }
.es-form__check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; color: var(--muted); }
.es-form__check input { margin-top: 4px; accent-color: var(--magenta); width: 18px; height: 18px; flex: none; }
.es-form__hp { position: absolute !important; left: -9999px !important; }
.es-form .es-btn { margin-top: 6px; }
.es-notice { padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.es-notice--ok { background: #e7f7ee; color: #145c33; border: 1px solid #b9e6cb; }
.es-notice--err { background: #fdecef; color: #8a1532; border: 1px solid #f5c2cd; }

/* ---------- Cabecera de página interior ---------- */
.es-phero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.es-phero__bg { position: absolute; inset: 0; z-index: -2; }
.es-phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.es-phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 80% 0%, rgba(230, 0, 126, .35), transparent 60%), linear-gradient(180deg, rgba(20, 13, 24, .2), rgba(20, 13, 24, .88)); }
.es-phero__in { padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(44px, 6vw, 72px); }
.es-phero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); max-width: 18ch; margin-bottom: 14px; text-wrap: balance; }
.es-phero p { max-width: 62ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #eadfe8; margin: 0 0 24px; }
.es-crumbs { font-size: .88rem; color: var(--on-dark-muted); margin-bottom: 18px; }
.es-crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.es-crumbs a:hover { color: #fff; }
.es-crumbs span { margin: 0 8px; opacity: .6; }

/* ---------- Contenido de páginas (editor de bloques) ---------- */
.entry { font-size: 1.06rem; }
.entry > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry > .alignwide, .entry > .es-wide { max-width: var(--wrap); padding-left: 0; padding-right: 0; }
.entry > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.es-page:has(.entry > .alignfull:last-child) { padding-bottom: 0; }
.es-page .entry > .alignfull:last-child { margin-bottom: 0; }
.entry h2 { margin-top: 1.8em; }
.entry h3 { margin-top: 1.5em; }
.entry > :first-child { margin-top: 0; }
.entry ul:not(.es-checks), .entry ol { padding-left: 1.3em; margin: 0 auto 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul.wp-block-list:not(.es-checks) li::marker { color: var(--magenta); }
.entry img { border-radius: var(--radius-sm); }
.entry figure { margin: 2em auto; }
.entry figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry blockquote { border-left: 4px solid var(--magenta); margin: 1.8em auto; padding: 4px 0 4px 22px; font-size: 1.15rem; font-style: italic; }
.entry blockquote p { margin-bottom: .4em; }
.entry blockquote cite { display: block; font-style: normal; font-size: .88rem; font-weight: 700; color: var(--magenta); letter-spacing: .02em; }
.entry > .es-form { margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 380px) { .es-logo small { display: none; } .es-logo span { font-size: 1rem; } }
.entry .wp-block-details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0; margin-bottom: 12px; overflow: hidden; }
.entry .wp-block-details summary { cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; list-style: none; position: relative; }
.entry .wp-block-details summary::-webkit-details-marker { display: none; }
.entry .wp-block-details summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--magenta-soft); color: var(--magenta); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s; }
.entry .wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.entry .wp-block-details > :not(summary) { padding: 0 20px; color: var(--muted); }
.entry .wp-block-details > :last-child { padding-bottom: 18px; }
.entry .es-block { margin-top: clamp(40px, 6vw, 64px); margin-bottom: clamp(40px, 6vw, 64px); }
.es-section--dark .entry, .es-section--night .entry { color: var(--on-dark); }
.entry .wp-block-buttons { margin: 1.4em auto; }
.entry .wp-block-button__link { background: var(--magenta); color: #fff; border-radius: 999px; padding: .85em 1.5em; font-weight: 700; text-decoration: none; }
.entry .wp-block-button__link:hover { background: var(--magenta-hi); }
.entry .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--magenta); color: var(--magenta); }
.entry .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: var(--wrap); }
.entry .gallery br { display: none; }
.entry .gallery-item { margin: 0; }
.entry .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
@media (max-width: 640px) { .entry .gallery { grid-template-columns: 1fr 1fr; } }
.es-lead { font-size: 1.22rem; color: var(--text); }
.entry .has-text-align-center { text-align: center; }

/* ---------- Avisos destacados ---------- */
.es-note { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--magenta-soft); color: #6d0a43; border: 1px solid #f7c4de; }
.es-note::before { content: "★"; color: var(--magenta); font-size: 1.2rem; line-height: 1.4; }

/* ---------- Pie ---------- */
.es-footer { background: var(--ink); color: var(--on-dark-muted); padding: 72px 0 0; font-size: .97rem; }
.es-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 48px; }
@media (max-width: 960px) { .es-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .es-footer__grid { grid-template-columns: 1fr; } }
.es-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 800; }
.es-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.es-footer a { color: var(--on-dark); text-decoration: none; }
.es-footer a:hover { color: var(--magenta-hi); }
.es-footer__logo img { height: 92px; width: auto; margin-bottom: 18px; }
.es-social { display: flex; gap: 10px; margin-top: 18px; }
.es-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; }
.es-social a:hover { background: var(--magenta); color: #fff; }
.es-social svg { width: 20px; height: 20px; }
.es-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; }
.es-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Botón flotante WhatsApp ---------- */
.es-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.es-wa-float:hover { transform: scale(1.08); color: #fff; }
.es-wa-float svg { width: 32px; height: 32px; }
.es-wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: es-ping 2.6s ease-out infinite; }
@keyframes es-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .es-wa-float::before { animation: none; } }
.nav-open .es-wa-float { display: none; }

/* ---------- 404 ---------- */
.es-404 { text-align: center; }
.es-404 b { display: block; font: 800 clamp(5rem, 16vw, 10rem)/1 var(--font-head); color: var(--magenta); }

/* ---------- Novedades ---------- */
.es-card--nov .es-card__img { aspect-ratio: 1 / 1; }
.es-card--nov h3 { font-size: 1.2rem; }
.es-filter--light a { border-color: var(--line); color: var(--text); background: #fff; }
.es-pager { margin-top: 40px; }
.es-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.es-pager .page-numbers { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); font-weight: 600; }
.es-pager .page-numbers.current, .es-pager a.page-numbers:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.entry .es-ig-origen { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.es-nov-entry > figure img, .es-nov-entry .wp-block-image img { width: 100%; max-width: 560px; margin: 0 auto; }

/* ---------- Horario de clases ---------- */
.es-horario__titulo { margin-bottom: 18px; }
[id] { scroll-margin-top: 90px; }
.es-horario__filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.es-horario__filtros button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 600 .95rem var(--font-body); cursor: pointer; }
.es-horario__filtros button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.es-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.es-dot--teatro { background: var(--magenta); }
.es-dot--pole { background: #7b4ce0; }
.es-dot--baile { background: #f2a900; }
.es-horario__dias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.es-horario__dia { background: var(--paper-2); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; }
.es-horario__dia[hidden] { display: none; }
.es-horario__dia h3 { font-size: 1.05rem; margin: 2px 4px 4px; letter-spacing: 0; }
.es-clase { display: grid; gap: 2px; padding: 12px 12px 11px; border-radius: 14px; background: #fff; border-left: 4px solid; color: var(--text); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.es-clase[hidden] { display: none; }
.es-clase:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(20, 13, 24, .45); color: var(--text); }
.es-clase--teatro { border-color: var(--magenta); }
.es-clase--pole { border-color: #7b4ce0; }
.es-clase--baile { border-color: #f2a900; }
.es-clase__hora { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.es-clase b { font-size: .98rem; line-height: 1.25; }
.es-clase__cta { font-size: .78rem; font-weight: 700; color: var(--wa); opacity: 0; transition: opacity .15s; }
.es-clase:hover .es-clase__cta, .es-clase:focus .es-clase__cta { opacity: 1; }
.es-horario__nota { font-size: .9rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 980px) {
	.es-horario__dias { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
	.es-horario__dias::-webkit-scrollbar { display: none; }
	.es-horario__dia { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; }
	.es-horario__dia:last-child { margin-right: var(--gutter); }
	.es-clase__cta { opacity: 1; }
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.es-more-link { text-align: center; margin-top: 36px; }
