/*
Theme Name: Delik2 Arco
Theme URI: https://delik2.es/
Author: Delik2 Gran Canaria
Description: Tema a medida para el Club Deportivo Delik2 Gran Canaria (tiro con arco). Diseño visual basado en la diana y en el logo del club. Todo el contenido se sigue escribiendo en WordPress; la portada se edita en Apariencia → Personalizar → Delik2.
Version: 1.10.4
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: delik2
*/

/* =========================================================================
   Concepto: la web es una diana. Amarillo del logo como color de marca,
   anillos de la diana (rojo, azul, negro) para identificar cada sección,
   titulares condensados grandes y texto cómodo de leer.
   ========================================================================= */

@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

:root {
	--paper: #F6F4EC;
	--paper-2: #EDEADF;
	--white: #FFFFFF;
	--ink: #13232A;
	--muted: #4A5A60;
	--line: #D5D1C2;
	--yellow: #FFE600;
	--petrol: #1B6E8F;
	--blue: #00A3D9;
	--red: #D8232A;
	--black: #232523;

	--display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--gutter: clamp(16px, 5vw, 56px);
	--max: 1320px;
	--prose: 1040px;
	--radius: 6px;
	--header-h: 212px;
}

/* -------------------------------------------------------------------------
   Base
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 3px; }
mark { background: var(--yellow); color: var(--ink); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-prose { width: 100%; max-width: calc(var(--prose) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--yellow); padding: 10px 16px; font-weight: 600; }

.eyebrow {
	font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--petrol); margin: 0 0 16px;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { font-size: clamp(19px, 1.7vw, 23px); color: var(--muted); max-width: 58ch; margin-top: 22px; }

.display-xl, .display-lg, .hero__title, .page-hero__title, .post-hero__title, .feature__title, .card__title, .path h3 {
	font-family: var(--display); text-transform: uppercase; font-weight: 900; line-height: .92; letter-spacing: .005em; margin: 0;
}
.display-xl { font-size: clamp(48px, 8vw, 112px); }
.display-lg { font-size: clamp(42px, 6.4vw, 88px); }

/* -------------------------------------------------------------------------
   Botones
   ---------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn, .wp-block-button__link, .wp-element-button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1.2;
	padding: 14px 24px; border-radius: 999px; border: 2px solid var(--ink);
	background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover, .wp-block-button__link:hover, .wp-element-button:hover, input[type="submit"]:hover { transform: translateY(-2px); }
.btn--gold { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--gold:hover { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.btn--ink, .wp-block-button__link, .wp-element-button, input[type="submit"] { background: var(--ink); color: var(--white); }
.btn--ink:hover, .wp-block-button__link:hover, .wp-element-button:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--pill { padding: 11px 22px; font-size: 17px; }
.main-nav__cta { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 25px; letter-spacing: .02em; padding: 10px 24px; }
.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline { background: transparent; color: var(--ink); }
.is-style-outline > .wp-block-button__link:hover { background: var(--ink); color: var(--white); }

/* -------------------------------------------------------------------------
   Cabecera
   ---------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
	max-width: none; margin-inline: auto; padding-inline: clamp(16px, 3vw, 48px);
	height: var(--header-h); padding-block: 16px; display: flex; align-items: center; gap: 24px; transition: height .25s ease;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; flex: none; }
.brand-logo { width: 164px; height: auto; display: block; transition: transform .4s cubic-bezier(.2,.8,.2,1), width .25s ease; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: .9; }
.brand__name { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .85; text-transform: uppercase; transition: font-size .25s ease; }
.brand__place { font-size: 16px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--petrol); margin-top: 6px; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px clamp(14px, 1.4vw, 22px); flex-wrap: nowrap; white-space: nowrap; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a { display: block; text-decoration: none; font-family: var(--display); font-size: 25px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1; padding: 8px 0; border-bottom: 4px solid transparent; }
.main-nav .menu a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_parent > a { border-bottom-color: var(--yellow); }
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -16px; top: 100%; min-width: 220px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
	box-shadow: 0 12px 30px rgba(19,35,42,.12);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 8px 16px; border: 0; font-family: var(--body); font-size: 16px; font-weight: 500; text-transform: none; }
.main-nav .sub-menu a:hover { background: var(--paper-2); }

.menu-toggle {
	display: none; align-items: center; gap: 10px; background: var(--ink); color: var(--white);
	border: 0; border-radius: 999px; padding: 10px 16px; font: 600 15px var(--body); cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 4px; width: 18px; }
.menu-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-open .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1279px) {
	:root { --header-h: 160px; }
	.brand-logo { width: 120px; }
	.brand__name { font-size: 54px; }
	.menu-toggle { display: inline-flex; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
		background: var(--yellow); flex-direction: column; align-items: stretch; gap: 24px;
		padding: 24px var(--gutter) 40px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.menu-open { overflow: hidden; }
	.main-nav .menu { flex-direction: column; gap: 0; white-space: normal; }
	.main-nav .menu a { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 10vw, 54px); line-height: 1.05; padding: 6px 0; border: 0; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 8px 16px; }
	.main-nav .sub-menu a { font-family: var(--body); font-size: 18px; text-transform: none; font-weight: 500; padding: 4px 0; }
	.main-nav .sub-menu a:hover { background: none; text-decoration: underline; }
	.main-nav__cta { align-self: flex-start; background: var(--ink); color: var(--yellow); border-color: var(--ink); font-size: 18px; padding: 14px 26px; }
}
@media (max-width: 480px) {
	:root { --header-h: 112px; }
	.brand-logo { width: 84px; }
	.brand__name { font-size: 42px; }
	.brand__place { font-size: 11px; letter-spacing: .18em; margin-top: 4px; }
	.menu-toggle__label { display: none; }
	.menu-toggle { padding: 12px; }
}

/* -------------------------------------------------------------------------
   Portada
   ---------------------------------------------------------------------- */
.hero {
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
	padding-block: clamp(32px, 6vw, 80px) clamp(40px, 6vw, 72px);
}
.hero__text { min-width: 0; }
.hero__title { font-size: clamp(54px, 7.6vw, 118px); }
.hero__title span { display: block; }
.hero__title mark { display: inline-block; margin-top: .06em; }
.hero__lead { max-width: 52ch; font-size: clamp(19px, 1.7vw, 23px); color: var(--muted); margin-top: 26px; }
.hero__visual { min-width: 0; display: flex; justify-content: center; }
.target--hero { width: 100%; max-width: 520px; height: auto; display: block; }
.target .ring { transform-origin: 200px 200px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.target--hero:hover .ring:nth-of-type(5) { transform: scale(1.06); }
.target--hero:hover .ring:nth-of-type(3) { transform: scale(1.02); }
.target .arrow { animation: d2-hit .55s cubic-bezier(.2,.9,.25,1.2) both; }
.target .a2 { animation-delay: .18s; }
.target .a3 { animation-delay: .36s; }
@keyframes d2-hit {
	from { transform: translate(var(--tx, 300px), var(--ty, -300px)); opacity: 0; }
}
.target .a1 { --tx: 360px; --ty: -170px; }
.target .a2 { --tx: 330px; --ty: -230px; }
.target .a3 { --tx: 370px; --ty: -150px; }
/* el transform de SVG ya posiciona la flecha: la animación se aplica sobre el grupo interior */
.target .arrow { transform-box: view-box; }

.hero__photo { position: relative; width: 100%; max-width: 560px; }
.hero__photo img { width: 100%; height: auto; max-height: 640px; object-fit: contain; display: block; }

.facts {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	border-block: 2px solid var(--ink);
}
.fact { padding: 22px 20px 22px 0; min-width: 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.fact span { display: block; color: var(--muted); font-size: 17px; margin-top: 6px; }
@media (max-width: 820px) {
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fact:nth-child(3) { padding-left: 0; border-left: 0; }
	.fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 100px); }
.section--tint { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { max-width: 14ch; }
.section-head p { max-width: 52ch; color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); }

.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.path {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
	min-height: 320px; padding: 28px; border-radius: var(--radius); text-decoration: none;
	transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.path:hover { transform: translateY(-6px); }
.path h3 { font-size: clamp(32px, 3.1vw, 44px); position: relative; }
.path p { max-width: 36ch; position: relative; font-size: 18px; }
.path__go { margin-top: auto; font-weight: 600; position: relative; }
.path__ring {
	position: absolute; right: -90px; top: -90px; width: 240px; height: 240px; border-radius: 50%;
	border: 2px solid currentColor; opacity: .28; transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.path__ring::before, .path__ring::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid currentColor; }
.path__ring::before { inset: 34px; }
.path__ring::after { inset: 74px; background: currentColor; }
.path:hover .path__ring { transform: scale(1.15); }
.path--amarillo { background: var(--yellow); color: var(--ink); }
.path--rojo { background: var(--red); color: var(--white); }
.path--azul { background: var(--petrol); color: var(--white); }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } .path { min-height: 240px; } }

.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.why__intro { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 28px; max-width: 60ch; }
.pillars { margin: 0; }
.pillars > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 6px 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.pillars > div:last-child { border-bottom: 1px solid var(--line); }
.pillars dt { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1; }
.pillars dd { margin: 0; color: var(--muted); min-width: 0; font-size: 19px; }
@media (max-width: 820px) { .why__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pillars > div { grid-template-columns: 1fr; } }

.contact-band__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 6vw, 72px); align-items: center; }
.contact-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 6px 24px; background: var(--white); min-width: 0; }
.contact-card__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-card__row:last-child { border-bottom: 0; }
.contact-card__row > div { min-width: 0; overflow-wrap: anywhere; }
.contact-card small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card a:not(.copy) { text-decoration: none; font-weight: 500; font-size: 18px; }
.copy {
	flex: none; font: 600 14px var(--body); background: var(--paper-2); color: var(--ink); border: 1px solid var(--line);
	border-radius: 999px; padding: 6px 14px; cursor: pointer; text-decoration: none;
}
.copy:hover { background: var(--yellow); border-color: var(--yellow); }
@media (max-width: 820px) { .contact-band__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Tarjetas de entradas
   ---------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; min-width: 0; position: relative; }
.card__media { display: block; aspect-ratio: 10 / 7; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--yellow); }
.card__target { width: 46%; height: auto; }
.card__body { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: clamp(28px, 2.6vw, 34px); line-height: .98; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { color: var(--muted); font-size: 17px; }
.card__more { font-weight: 600; font-size: 15px; margin-top: auto; padding-top: 4px; }
.card:hover .card__more { color: var(--red); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--white); }
.tag--gold { background: var(--yellow); color: var(--ink); }

.feature {
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 48px); align-items: center;
	padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 2px solid var(--ink);
}
.feature__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__body { min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.feature__title { font-size: clamp(40px, 5vw, 72px); }
.feature__title a { text-decoration: none; }
.feature__excerpt { color: var(--muted); font-size: 18px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.chip {
	display: inline-flex; align-items: center; font: 500 14px var(--body); padding: 7px 14px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip--on { background: var(--ink); color: var(--white); border-color: var(--ink); }

.pagination { margin-top: 48px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--white); }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }

.empty { text-align: center; padding-block: 40px; color: var(--muted); }
.empty__target { width: 140px; height: auto; margin: 0 auto 16px; display: block; }

/* -------------------------------------------------------------------------
   Cabeceras de páginas interiores y entradas
   ---------------------------------------------------------------------- */
.page-hero { --tone-bg: var(--yellow); --tone-fg: var(--ink); --tone-eyebrow: var(--ink); background: var(--tone-bg); color: var(--tone-fg); overflow: hidden; }
.page-hero--rojo { --tone-bg: var(--red); --tone-fg: var(--white); --tone-eyebrow: var(--white); }
.page-hero--azul { --tone-bg: var(--blue); --tone-fg: var(--ink); --tone-eyebrow: var(--ink); }
.page-hero--petroleo { --tone-bg: var(--petrol); --tone-fg: var(--white); --tone-eyebrow: var(--yellow); }
.page-hero--tinta { --tone-bg: var(--ink); --tone-fg: var(--white); --tone-eyebrow: var(--yellow); }
.page-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: clamp(40px, 6vw, 84px) clamp(36px, 5vw, 64px); }
.page-hero .eyebrow { color: var(--tone-eyebrow); opacity: .95; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: .16em; margin-bottom: 18px; }
.page-hero__title { font-size: clamp(54px, 10vw, 136px); max-width: 12ch; }
.page-hero__title mark { background: var(--ink); color: var(--yellow); }
.page-hero__intro { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.35; font-weight: 500; max-width: 40ch; margin-top: 22px; opacity: 1; }
.page-hero__rings { width: clamp(140px, 22vw, 300px); height: auto; color: var(--tone-fg); opacity: .22; margin-right: calc(var(--gutter) * -1 - 60px); }
@media (max-width: 640px) {
	.page-hero__inner { grid-template-columns: 1fr; }
	.page-hero__rings { position: absolute; right: -60px; top: 16px; width: 180px; margin: 0; }
}

.entry__cover { margin: clamp(28px, 4vw, 48px) auto 0; }
.entry__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); display: block; }

.post-hero { background: var(--paper); border-bottom: 2px solid var(--ink); }
.post-hero__inner { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(36px, 6vw, 76px); }
.post-hero--img .post-hero__inner { grid-template-columns: 1.1fr .9fr; }
.post-hero__text { min-width: 0; }
.post-hero__title { font-size: clamp(46px, 7vw, 100px); max-width: 16ch; }
.post-hero__intro { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 52ch; margin-top: 20px; }
.meta--hero { margin-top: 22px; font-size: 15px; }
.post-hero__media { margin: 0; position: relative; }
.post-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.post-hero__media::after {
	content: ""; position: absolute; width: 64px; height: 64px; right: -14px; bottom: -14px; border-radius: 50%;
	background: radial-gradient(circle, var(--yellow) 0 30%, var(--red) 31% 52%, var(--blue) 53% 74%, var(--black) 75%);
	border: 2px solid var(--paper);
}
@media (max-width: 820px) { .post-hero--img .post-hero__inner { grid-template-columns: 1fr; } .post-hero__media { order: -1; } }

.entry-foot { display: grid; gap: 28px; padding-bottom: clamp(40px, 6vw, 72px); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.share > span { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--radius); text-decoration: none; min-width: 0; }
.post-nav__link:hover { background: var(--yellow); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__link small { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-nav__link span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: auto; } }

/* -------------------------------------------------------------------------
   Contenido escrito en el editor (bloques de WordPress)
   ---------------------------------------------------------------------- */
.prose { padding-block: clamp(36px, 5vw, 64px); font-size: 18px; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); text-transform: uppercase; font-weight: 900; line-height: .98; margin-top: 1.6em; margin-bottom: 0; }
.prose h2 { font-size: clamp(36px, 4.6vw, 56px); }
.prose h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; }
.prose h4 { font-size: 24px; font-weight: 800; }
.prose h5, .prose h6 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin: 1.6em 0 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose p, .prose li { max-width: none; }
.prose a:not(.wp-block-button__link):not(.wp-element-button):not(.wp-block-file__button) { color: var(--petrol); font-weight: 500; }
.prose a:not(.wp-block-button__link):not(.wp-element-button):not(.wp-block-file__button):hover { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { font-family: var(--display); font-weight: 800; color: var(--petrol); }
.prose li + li { margin-top: .35em; }
.prose strong { font-weight: 600; }
.prose hr, .wp-block-separator { border: 0; border-top: 2px solid var(--ink); margin-block: 2.4em; opacity: 1; }
.wp-block-separator.is-style-dots { border: 0; }
.prose blockquote, .wp-block-quote {
	margin-inline: 0; padding: 4px 0 4px 24px; border-left: 6px solid var(--yellow); font-size: 21px;
}
.wp-block-quote cite, .wp-block-pullquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wp-block-pullquote { border-block: 2px solid var(--ink); padding: 32px 0; text-align: left; }
.wp-block-pullquote blockquote { border: 0; padding: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4vw, 46px); line-height: 1; }
.prose code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--ink); color: var(--paper); padding: 20px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }

/* Ancho completo y ancho amplio dentro del texto */
.prose .alignwide { width: min(var(--max) - 2 * var(--gutter), 100vw - 2 * var(--gutter)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose::after { content: ""; display: table; clear: both; }

/* Imágenes, galerías y portadas */
.prose figure { margin-inline: 0; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-image figcaption, .wp-element-caption, .wp-caption-text, .blocks-gallery-caption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: left; }
.wp-block-gallery.has-nested-images { gap: 10px; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 4px; }
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { transition: transform .3s ease; }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover { transform: scale(1.015); z-index: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.wp-block-cover { border-radius: var(--radius); }
.wp-block-cover.alignfull { border-radius: 0; }
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3 { margin-top: 0; }
.wp-block-media-text { gap: 0; }
.wp-block-media-text__media img { border-radius: var(--radius); }
.wp-block-embed { margin-inline: 0; }
.wp-block-embed__wrapper iframe { border-radius: var(--radius); }

/* Tablas (documentos, horarios, clasificaciones) */
.wp-block-table, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.prose thead th, .prose table tr:first-child th {
	background: var(--ink); color: var(--white); font-weight: 600; text-align: left;
	font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.prose th, .prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.wp-block-table.is-style-stripes, .wp-block-table.is-style-stripes table { border: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--paper); }
.prose tbody tr:hover { background: #FFFBD1; }
.prose td a[href$=".pdf"], .prose td a[href*=".pdf?"] {
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none;
	font-weight: 600; font-size: 14px; color: var(--ink) !important; background: var(--yellow); padding: 5px 12px; border-radius: 999px;
}
.prose td a[href$=".pdf"]:hover { background: var(--ink); color: var(--yellow) !important; }
.wp-block-table figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Archivos para descargar */
.wp-block-file {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: var(--radius);
}
.wp-block-file a:not(.wp-block-file__button) { color: var(--ink) !important; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.wp-block-file .wp-block-file__button {
	background: var(--ink); color: var(--white) !important; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.wp-block-file .wp-block-file__button:hover { background: var(--yellow); color: var(--ink) !important; }
.wp-block-file__embed { display: none; }

/* Preguntas frecuentes (bloque Detalles) */
.wp-block-details { border-top: 1px solid var(--line); padding: 0; }
.wp-block-details + .wp-block-details { margin-top: 0; }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--line); }
.wp-block-details summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 0; font-weight: 600; font-size: 19px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	background: var(--yellow); font: 600 22px/1 var(--body); transition: transform .2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { padding-bottom: 18px; color: var(--muted); }

/* Columnas, grupos con fondo y tarjetas de precio */
.wp-block-columns { gap: 24px; }
.prose .wp-block-group.has-background, .prose .wp-block-column.has-background { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
.prose :is(.wp-block-group, .wp-block-column, .wp-block-cover__inner-container, .wp-block-media-text__content) > :first-child { margin-top: 0; }
.prose :is(.wp-block-group, .wp-block-column, .wp-block-cover__inner-container, .wp-block-media-text__content) > * + * { margin-top: 1em; }
.prose .is-style-delik2-card, .prose .wp-block-group.is-style-delik2-card { border: 2px solid var(--ink); background: var(--white); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
.wp-block-buttons { gap: 12px; }
.wp-block-buttons > .wp-block-button { margin: 0; }

/* Bloques de "Últimas entradas" o "Consulta" dentro de una página */
.wp-block-latest-posts { padding: 0; }
.wp-block-latest-posts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wp-block-latest-posts__post-title { font-weight: 600; text-decoration: none; }
.wp-block-post-template { padding: 0; list-style: none; }

/* Formularios (comentarios, búsqueda y formularios de plugins) */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], input[type="date"], textarea, select {
	width: 100%; font: 400 17px var(--body); color: var(--ink); background: var(--white);
	border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
label { font-weight: 600; font-size: 15px; }
.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 24px; }
.search-form__input { flex: 1; min-width: 0; }
.search-again { padding-top: 28px; }

.comments { padding-bottom: 56px; }
.comments__title, .comment-reply-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 36px; line-height: 1; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form p { margin-top: 14px; }

.page-links { margin-top: 32px; display: flex; gap: 8px; }

/* -------------------------------------------------------------------------
   404
   ---------------------------------------------------------------------- */
.notfound { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 110px); }
.notfound__visual { position: relative; max-width: 420px; }
.target--miss { width: 100%; height: auto; display: block; }
.notfound__arrow { position: absolute; width: 46%; right: -18%; top: -6%; transform: rotate(-24deg); }
@media (max-width: 820px) { .notfound { grid-template-columns: 1fr; } .notfound__visual { max-width: 260px; } }

/* -------------------------------------------------------------------------
   Pie
   ---------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--petrol); color: var(--white); margin-top: 0; }
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-watermark { position: absolute; z-index: 0; width: clamp(360px, 46vw, 680px); height: auto; right: calc(clamp(360px, 46vw, 680px) * -0.4); top: -14%; color: var(--white); opacity: .13; pointer-events: none; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .btn--gold { color: var(--ink); }
.site-footer .btn--gold:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.site-footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid rgba(255,255,255,.22); }
.site-footer__claim { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 6vw, 92px); line-height: .9; color: var(--white); }
.site-footer__claim mark { display: block; font-size: 1.5em; line-height: .9; margin-top: .04em; background: none; color: var(--yellow); padding: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 48px; }
.site-footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.site-footer__brand p { color: rgba(255,255,255,.92); max-width: 34ch; font-size: 19px; line-height: 1.55; }
.footer-logo { width: 96px; height: auto; flex: none; }
.site-footer__title { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin: 0 0 14px; }
.footer-menu, .footer-contact, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 19px; }
.footer-contact__addr { color: rgba(255,255,255,.88); }
.footer-social { display: flex; gap: 16px; margin-top: 16px; font-weight: 600; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px 32px; border-top: 1px solid rgba(255,255,255,.22); font-size: 16px; color: rgba(255,255,255,.9); }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Movimiento reducido y portada en móvil
   ---------------------------------------------------------------------- */
@media (max-width: 820px) {
	.hero { grid-template-columns: 1fr; }
	.hero__visual { order: -1; }
	.target--hero { max-width: 300px; }
	.hero__photo { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* Galerías: rejilla uniforme, se vean como se vean configuradas en el editor */
.prose .wp-block-gallery.has-nested-images {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px;
}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: auto !important; margin: 0 !important; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.prose .wp-block-gallery.has-nested-images figcaption.blocks-gallery-caption { grid-column: 1 / -1; }

/* Con el menú móvil abierto, la cabecera no puede llevar desenfoque (rompería el panel fijo) */
@media (max-width: 1279px) {
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
}

/* Cabecera compacta al bajar por la página (solo en ordenador) */
@media (min-width: 1280px) {
	.site-header__inner { transition: min-height .25s ease; }
	.site-header.is-scrolled .site-header__inner { height: 104px; padding-block: 10px; }
	.site-header.is-scrolled .brand-logo { width: 78px; }
	.site-header.is-scrolled .brand__name { font-size: 44px; }
}

/* Carteles y fotos verticales: se ven enteros, con su propio fondo difuminado */
.card__media, .feature__media { position: relative; }
.media--poster { background: #FFF6B8; }
.media--poster::before {
	content: ""; position: absolute; inset: 0;
	background: var(--poster) center / auto 135% no-repeat;
	filter: blur(3px); opacity: .9;
}
.media--poster img { filter: drop-shadow(0 8px 18px rgba(19,35,42,.35)); object-position: center; }
.media--poster img { position: relative; object-fit: contain !important; }
.card:hover .media--poster img { transform: scale(1.02); }
.post-hero__media img.is-portrait { aspect-ratio: auto; max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }

/* Mapa */
.map { margin-top: clamp(28px, 4vw, 44px); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: clamp(300px, 34vw, 440px); border: 0; }
.map--static { position: relative; min-height: clamp(260px, 30vw, 380px); display: grid; align-items: center; background: var(--yellow); color: var(--white); padding: clamp(20px, 4vw, 48px); }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); }
.map__img { position: absolute; inset: 0; display: block; }
.map__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map__card { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(16px, 2.4vw, 26px); max-width: 760px; box-shadow: 0 18px 40px rgba(19,35,42,.28); }
.map__pin { width: 76px; height: 76px; flex: none; }
.map__card small { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.map__card p { margin: 2px 0 0; font: 800 clamp(22px, 2.2vw, 28px)/1.1 var(--display); text-transform: uppercase; }
.map__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
@media (max-width: 640px) { .map__btns { margin-left: 0; width: 100%; } .map__btns .btn { flex: 1 1 auto; } }

/* Titulares grandes con palabra resaltada: que el amarillo no pise la línea de arriba */
.display-xl { line-height: 1; }
.display-xl mark, .display-lg mark { padding: 0 .08em; line-height: 1.04; }

/* Portátiles (1280–1440 px): mismo menú grande, un poco más compacto para que quepa en una línea */
@media (min-width: 1280px) and (max-width: 1440px) {
	.site-header__inner { gap: 18px; padding-inline: 28px; }
	.main-nav { gap: 16px; }
	.main-nav .menu { gap: 4px 15px; }
}
@media (min-width: 1280px) and (max-width: 1365px) {
	.brand-logo { width: 140px; }
	.brand__name { font-size: 54px; }
	.main-nav .menu a { font-size: 23px; }
	.main-nav__cta { font-size: 23px; padding: 9px 20px; }
}

/* Grupos en temas clásicos: WordPress añade un contenedor interior */
.prose .wp-block-group__inner-container > :first-child { margin-top: 0; }
.prose .wp-block-group__inner-container > * + * { margin-top: 1em; }
.prose { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.7; }

/* Diana ilustrada de la portada */
.hero__art { width: 100%; max-width: 580px; height: auto; display: block; animation: d2-art-in .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes d2-art-in { from { opacity: 0; transform: translateX(40px) rotate(-6deg) scale(.94); } }
@media (max-width: 820px) { .hero__art { max-width: 340px; } }

/* Diana de la portada más arriba (en ordenador) */
@media (min-width: 821px) { .hero__visual { align-self: start; margin-top: 8px; } }

/* Carteles algo más grandes: se ve la parte de arriba y se recorta un poco el pie del cartel */
.media--poster img.is-portrait { width: 62% !important; height: 100% !important; margin-inline: auto; object-fit: cover !important; object-position: top center !important; }
.feature__media.media--poster img.is-portrait { width: 52% !important; }

/* Lista en tarjetas (estilo "Tarjetas Delik2"): cada punto es una tarjeta de color */
.prose ul.is-style-delik2-cards, .prose ol.is-style-delik2-cards {
	list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: none;
}
.prose .is-style-delik2-cards > li {
	--c: var(--yellow); --t: var(--ink);
	position: relative; overflow: hidden; margin: 0; max-width: none; min-height: 170px;
	display: flex; align-items: flex-end; padding: 24px 24px 22px; border-radius: var(--radius);
	background: var(--c); color: var(--t);
	font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.02;
}
.prose .is-style-delik2-cards > li:nth-child(4n+2) { --c: var(--red); --t: var(--white); }
.prose .is-style-delik2-cards > li:nth-child(4n+3) { --c: var(--petrol); --t: var(--white); }
.prose .is-style-delik2-cards > li:nth-child(4n+4) { --c: var(--ink); --t: var(--yellow); }
.prose .is-style-delik2-cards > li::before {
	content: ""; position: absolute; right: -46px; top: -46px; width: 140px; height: 140px; border-radius: 50%;
	border: 2px solid currentColor; box-shadow: inset 0 0 0 22px var(--c), inset 0 0 0 24px currentColor, inset 0 0 0 46px var(--c), inset 0 0 0 70px currentColor;
	opacity: .28;
}
.prose .is-style-delik2-cards > li::marker { content: none; }
@media (max-width: 560px) { .prose ul.is-style-delik2-cards { grid-template-columns: 1fr; } .prose .is-style-delik2-cards > li { min-height: 120px; } }

/* Lista de equipo (estilo "Equipo Delik2"): nombre en negrita + cargo */
.prose ul.is-style-delik2-team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; max-width: none; }
.prose .is-style-delik2-team > li {
	margin: 0; max-width: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 26px 18px 22px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
	font-size: 16px; color: var(--muted);
}
.prose .is-style-delik2-team > li::marker { content: none; }
.prose .is-style-delik2-team > li::before {
	content: ""; width: 88px; height: 88px; border-radius: 50%; margin-bottom: 12px; flex: none;
	background: radial-gradient(circle, var(--yellow) 0 20%, var(--red) 21% 40%, var(--blue) 41% 60%, var(--black) 61% 80%, var(--white) 81%);
	border: 2px solid var(--ink);
}
.prose .is-style-delik2-team > li:has(img)::before { display: none; }
.prose .is-style-delik2-team > li img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 2px solid var(--ink); }
.prose .is-style-delik2-team > li strong {
	display: block; color: var(--ink); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1;
}

/* Bloque "Medios y texto" con fondo de color (p. ej. Proyecto 360º) */
.prose .wp-block-media-text { border-radius: var(--radius); overflow: hidden; margin-block: 2.2em; }
.prose .wp-block-media-text.has-background { padding: clamp(20px, 3vw, 36px); gap: 0 clamp(16px, 3vw, 40px); }
.prose .wp-block-media-text__content { padding: 0 !important; }
.prose .wp-block-media-text__content > :first-child { margin-top: 0; }
.prose .wp-block-media-text__content > * + * { margin-top: .8em; }
.prose .wp-block-media-text__media img { border-radius: 0; max-height: 420px; width: auto; max-width: 100%; margin-inline: auto; display: block; }
.prose .wp-block-media-text.has-amarillo-background-color h2 { color: var(--ink); }

/* Equipo: más ancho que el texto, cuatro tarjetas por fila en ordenador */
@media (min-width: 900px) {
	.prose ul.is-style-delik2-team {
		width: min(var(--max) - 2 * var(--gutter), 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%);
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* "Medios y texto" estilo Diana: sin caja de color; la imagen sobre los anillos de una diana suave */
.prose .wp-block-media-text.is-style-delik2-diana { background: none !important; padding: 0; overflow: visible; gap: 0 clamp(20px, 4vw, 56px); align-items: center; }
.prose .is-style-delik2-diana .wp-block-media-text__media { position: relative; display: grid; place-items: center; padding: 6%; }
.prose .is-style-delik2-diana .wp-block-media-text__media::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 100%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, #FFF3A6 0 22%, transparent 22.5% 33%, #FFF3A6 33.5% 55%, transparent 55.5% 66%, #FFF3A6 66.5% 100%);
	border: 2px dashed rgba(19,35,42,.18);
}
.prose .is-style-delik2-diana .wp-block-media-text__media img { position: relative; max-height: 380px; }
.prose .is-style-delik2-diana .wp-block-media-text__content h2 { margin-top: 0; }
.prose .is-style-delik2-diana .wp-block-media-text__content .eyebrow-text { font: 600 14px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.prose .wp-block-media-text.is-style-delik2-diana { margin-block: clamp(48px, 6vw, 88px); }

/* Proyecto 360º (estilo Diana): dentro de un recuadro sin fondo con contorno amarillo */
.prose .wp-block-media-text.is-style-delik2-diana { border: 3px solid var(--yellow); border-radius: var(--radius); padding: clamp(20px, 3vw, 40px); }

/* Tamaños de letra del editor */
.has-small-font-size { font-size: 16px !important; }
.has-medium-font-size { font-size: 21px !important; }
.has-large-font-size { font-size: clamp(22px, 2vw, 27px) !important; line-height: 1.45; }
.has-x-large-font-size { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5vw, 64px) !important; line-height: 1; text-transform: uppercase; }
.has-huge-font-size { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 96px) !important; line-height: .95; text-transform: uppercase; }

/* Columnas con tarjetas: misma altura */
.prose .wp-block-columns { align-items: stretch; }
.prose .wp-block-column.is-style-delik2-card { height: auto; }
.prose .wp-block-column.is-style-delik2-card h3 { margin-top: 0; }

/* =========================================================================
   Página Competiciones: Calendario · Convocatorias · Clasificaciones
   ========================================================================= */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.subnav .chip { font-size: 17px; padding: 10px 20px; font-weight: 600; }
.subnav .chip:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.comp-section { padding-block: clamp(44px, 6vw, 80px); scroll-margin-top: calc(var(--header-h) + 12px); }
.comp-section--tint { background: var(--paper-2); }
.comp-section__head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(24px, 3vw, 36px); }
.comp-section__head h2 { max-width: none; }
.comp-section__num {
	flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--red); color: var(--white); font: 900 30px/1 var(--display);
	box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--red);
}
.comp-section--tint .comp-section__num { box-shadow: 0 0 0 4px var(--paper-2), 0 0 0 7px var(--red); }
.comp-empty { font-size: 20px; color: var(--muted); padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); }
.prose--flush { padding-block: 0; max-width: none; }

/* Convocatorias: cartel entero + datos */
.conv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 24px; }
.conv { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.conv__poster { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: #FFF6B8; padding: 18px; }
.conv__poster::before {
	content: ""; position: absolute; inset: 0; background: var(--poster) center / auto 130% no-repeat; filter: blur(3px); opacity: .9;
}
.conv__poster img { position: relative; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
	filter: drop-shadow(0 10px 22px rgba(19,35,42,.35)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.conv:hover .conv__poster img { transform: scale(1.03); }
.conv__noposter { position: relative; font: 800 26px/1 var(--display); text-transform: uppercase; color: var(--ink); background: var(--white); padding: 14px 18px; border-radius: var(--radius); }
.conv__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.conv__title { margin: 0; font: 900 clamp(28px, 2.6vw, 34px)/.98 var(--display); text-transform: uppercase; }
.conv__title a { text-decoration: none; }
.conv__excerpt { color: var(--muted); font-size: 17px; }
.conv__body .btn { margin-top: auto; }

/* Clasificaciones: lista de enlaces */
.clas-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.clas-list li { border-bottom: 1px solid var(--line); }
.clas-list a { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 20px 4px; text-decoration: none; }
.clas-list a:hover { background: #FFFBD1; }
.clas-list time { color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.clas-list__title { font: 800 clamp(24px, 2.2vw, 30px)/1 var(--display); text-transform: uppercase; }
.clas-list__go { font-weight: 600; color: var(--red); white-space: nowrap; }
@media (max-width: 640px) { .clas-list a { grid-template-columns: 1fr; } }
.conv__poster img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.conv__poster { display: block; }

/* Calendario con foto al lado */
.cal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.cal-grid--photo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.cal-grid__photo { margin: 0; position: relative; }
.cal-grid__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; border: 3px solid var(--yellow); }
.cal-grid__photo figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.cal-grid__photo::after {
	content: ""; position: absolute; width: 72px; height: 72px; left: -18px; bottom: -18px; border-radius: 50%;
	background: radial-gradient(circle, var(--yellow) 0 30%, var(--red) 31% 52%, var(--blue) 53% 74%, var(--black) 75%); border: 3px solid var(--paper);
}
@media (max-width: 900px) { .cal-grid--photo { grid-template-columns: minmax(0, 1fr); } .cal-grid__photo { order: -1; } .cal-grid__photo img { aspect-ratio: 16 / 10; } }

/* Pestañas (Temporada de sala / aire libre) */
.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 28px; border-bottom: 3px solid var(--ink); }
.tabs__btn {
	font: 800 clamp(22px, 2.2vw, 30px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
	padding: 14px 24px 12px; background: transparent; color: var(--muted); border: 0; border-radius: var(--radius) var(--radius) 0 0; cursor: pointer;
}
.tabs__btn[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.tabs__btn:hover:not([aria-selected="true"]) { color: var(--ink); background: var(--paper-2); }
.comp-section--tint .tabs__btn:hover:not([aria-selected="true"]) { background: var(--paper); }

/* Tablas de ranking y plusmarcas */
.ranking h3 { display: flex; align-items: center; gap: 12px; }
.ranking h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--yellow); flex: none; }
.ranking h3 + p { color: var(--muted); }
.ranking .wp-block-table { margin-bottom: 8px; }
.ranking table td:first-child { font: 800 22px/1 var(--display); width: 70px; }
.ranking.is-podium table tbody tr:nth-child(-n+3) td:first-child, .ranking table.podium tbody tr:nth-child(-n+3) td:first-child { color: var(--ink); }
.ranking table tbody tr:nth-child(1) td:first-child::before,
.ranking table tbody tr:nth-child(2) td:first-child::before,
.ranking table tbody tr:nth-child(3) td:first-child::before {
	content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: 2px;
}
.ranking table tbody tr:nth-child(1) td:first-child::before { background: #E8B400; }
.ranking table tbody tr:nth-child(2) td:first-child::before { background: #A9B1B5; }
.ranking table tbody tr:nth-child(3) td:first-child::before { background: #C27A3A; }
.ranking table.no-medals tbody td:first-child::before { display: none; }
.ranking table td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.ranking .no-medals tbody td:first-child::before { display: none !important; }
.ranking .no-medals td:first-child { font: 600 17px/1.4 var(--body); width: auto; }
.cal-grid__table { min-width: 0; }

/* Calendario: cartel vertical entero a la izquierda de la tabla */
.cal-grid--photo { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr); align-items: start; }
.cal-grid__photo img { aspect-ratio: auto; object-fit: contain; height: auto; border: 0; box-shadow: 0 14px 34px rgba(19,35,42,.22); }
.cal-grid__photo::after { left: auto; right: -18px; }
@media (max-width: 900px) {
	.cal-grid--photo { grid-template-columns: minmax(0, 1fr); }
	.cal-grid__photo { order: 0; max-width: 420px; justify-self: center; }
	.cal-grid__photo img { aspect-ratio: auto; }
}

/* Calendario: pestañas Sala / Aire libre con el cartel entero y una frase debajo */
.calendario .cartel-calendario { margin: 8px auto 0; max-width: 520px; }
.calendario .cartel-calendario img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 16px 38px rgba(19,35,42,.22); }
.calendario .calendario__nota { max-width: 60ch !important; margin: 24px auto 0; font-size: clamp(19px, 1.6vw, 22px); }
.calendario .tabs { justify-content: center; }

/* =========================================================================
   Tarjeta regalo (shortcode [delik2_regalo])
   ========================================================================= */
.prose .regalo, .regalo {
	width: min(var(--max) - 2 * var(--gutter), 100vw - 2 * var(--gutter)); max-width: none; margin-left: 50%; transform: translateX(-50%);
	margin-block: clamp(40px, 6vw, 72px);
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center;
	padding: clamp(24px, 4vw, 48px); border-radius: var(--radius);
	background: var(--petrol); color: var(--white); position: relative; overflow: hidden;
}
.regalo::before {
	content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -200px; border-radius: 50%;
	border: 3px solid var(--yellow); box-shadow: inset 0 0 0 40px var(--petrol), inset 0 0 0 43px var(--yellow), inset 0 0 0 86px var(--petrol), inset 0 0 0 89px var(--yellow);
	opacity: .18; pointer-events: none;
}
.regalo > * { position: relative; min-width: 0; }
.prose .regalo > * + * { margin-top: 0; }
.regalo__eyebrow { font: 600 15px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 0 0 10px; }
.prose .regalo__title, .regalo__title { font: 900 clamp(40px, 4.6vw, 64px)/.95 var(--display); text-transform: uppercase; color: var(--white); margin: 0; }
.prose .regalo p.regalo__lead, .regalo__lead { color: rgba(255,255,255,.85); font-size: clamp(18px, 1.5vw, 20px); margin: 14px 0 0; max-width: 44ch; }
.regalo__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 26px; }
.regalo__field { display: grid; gap: 6px; min-width: 0; }
.regalo__field--full, .regalo__error, .regalo__actions { grid-column: 1 / -1; }
.regalo__field label { color: var(--white); font-size: 15px; }
.regalo__field label span { color: var(--yellow); }
.regalo__field input, .regalo__field select { border-color: var(--white); background: var(--white); color: var(--ink); font-size: 17px; padding: 11px 13px; }
.regalo__field input:focus, .regalo__field select:focus { outline: 3px solid var(--yellow); }
.prose .regalo .regalo__error, .regalo__error { margin: 0; color: var(--ink); background: var(--yellow); padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 15px; }
.regalo__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.regalo__actions .btn, .regalo__send .btn { font-size: 16px; }
.regalo .btn, .prose .regalo a.btn { padding: 12px 18px; }
.regalo a.btn--pay, .prose .regalo a.btn--pay { background: transparent; color: var(--white); border: 2px solid var(--white); font-weight: 600; color: var(--white) !important; }
.regalo a.btn--pay:hover, .prose .regalo a.btn--pay:hover { background: var(--white); color: var(--ink) !important; }
.regalo a.btn--wa, .prose .regalo a.btn--wa { background: var(--yellow); border-color: var(--yellow); color: var(--ink) !important; font-weight: 600; }
.regalo a.btn--wa:hover, .prose .regalo a.btn--wa:hover { background: var(--white); border-color: var(--white); color: var(--ink) !important; }
.prose .regalo ol.regalo__steps, .regalo__steps { grid-column: 1 / -1; margin: 4px 0 0; padding-left: 1.3em; color: rgba(255,255,255,.85); font-size: 15px; display: grid; gap: 2px; }
.prose .regalo ol.regalo__steps li::marker, .regalo__steps li::marker { color: var(--yellow); font-weight: 800; }
.prose .regalo p.regalo__send, .regalo__send { grid-column: 1 / -1; margin: 0; }
.regalo__preview { display: grid; gap: 12px; }
.regalo__canvas { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); transform: rotate(-1.5deg); }
.prose .regalo p.regalo__note, .regalo__note { margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.8); max-width: 60ch; }
@media (max-width: 900px) {
	.prose .regalo, .regalo { grid-template-columns: minmax(0, 1fr); }
	.regalo__preview { order: -1; }
}
@media (max-width: 520px) { .regalo__form { grid-template-columns: 1fr; } }
.regalo .btn--gold:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Botón de pago del curso */
.pago { display: grid; gap: 10px; margin-top: 14px; }
.prose .pago > * + * { margin-top: 0; }
.pago__btns { display: flex; flex-wrap: nowrap; gap: 8px; }
.pago__btns .btn, .prose .pago__btns a.btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 15px; white-space: nowrap; }
@media (max-width: 359px) { .pago__btns { flex-wrap: wrap; } }
.pago a.btn--wa, .prose .pago a.btn--wa { background: var(--yellow); border-color: var(--ink); color: var(--ink) !important; }
.pago a.btn--wa:hover, .prose .pago a.btn--wa:hover { background: var(--ink); border-color: var(--ink); color: var(--yellow) !important; }
.prose .pago a.btn--ink { color: var(--white) !important; }
.prose .pago a.btn--ink:hover { color: var(--ink) !important; }
.prose .pago p.pago__nota, .pago__nota { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.prose .pago p.pago__dudas, .pago__dudas { margin: 0; font-size: 15px; }
.prose .pago__dudas a, .pago__dudas a { color: var(--ink) !important; font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose .pago__dudas a:hover, .pago__dudas a:hover { color: var(--petrol) !important; }

/* Anula estilos antiguos de un plugin del sitio (delik2-tables) en Documentación y Competiciones */
body .prose .wp-block-table td a[href$=".pdf"], body .prose .wp-block-table td a[href*=".pdf?"] {
	background: var(--yellow) !important; color: var(--ink) !important; border: 0 !important; box-shadow: none !important;
	padding: 5px 12px !important; border-radius: 999px !important; font-size: 14px !important;
}
body .prose .wp-block-table th, body .prose .wp-block-table td { border-left: 0 !important; border-right: 0 !important; }
body .prose .wp-block-table td a[href$=".pdf"]:hover { background: var(--ink) !important; color: var(--yellow) !important; }
/* Enlace "Ver convocatoria" de la tabla de competiciones (aunque no apunte a un PDF) */
body .delik2-peep-convocatorias td:last-child a {
	display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none !important;
	font-weight: 600; font-size: 14px !important; background: var(--yellow) !important; color: var(--ink) !important;
	padding: 5px 12px !important; border-radius: 999px !important; border: 0 !important;
}
body .delik2-peep-convocatorias td:last-child a:hover { background: var(--ink) !important; color: var(--yellow) !important; }
/* Carteles enlazados a un PDF: sin fondo de botón */
body .prose td a:has(img), body .prose td a:has(img):hover,
body .prose .wp-block-table td a[href]:has(img), body .prose .wp-block-table td a[href]:has(img):hover, body .delik2-peep-convocatorias td:last-child a:has(img) {
	background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; display: inline-block !important;
}

/* Tarjetas de competiciones que llegan de PEEP */
.conv__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.conv__estado { font: 600 13px var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.conv__estado.is-open { background: #d8f3dc; color: #146c2e; }
.conv__estado.is-closed { background: #fde2e2; color: #9b1c1c; }
.conv__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.conv__btns .btn { margin-top: 0; }
.conv__resultados { font-weight: 600; font-size: 15px; color: var(--petrol); }

.prose .pago p.pago__efectivo, .pago__efectivo { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--ink); }

/* Ranking: botones de categoría */
.rank-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.rank-cats__btn {
	font: 800 clamp(16px, 1.6vw, 20px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
	padding: 12px 20px 10px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.rank-cats__btn:hover { background: var(--yellow); }
.rank-cats__btn[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.ranking [data-cat][hidden] { display: none; }
