/* Estilos del tema EDLP. Colores y medidas como variables para que un hijo pise fácil. */

/* Fuentes propias del tema (nada de Google Fonts: privacidad y velocidad) */
@font-face {
	font-family: "Archivo Black";
	src: url(../fonts/ArchivoBlack-Regular.woff2) format("woff2");
	font-weight: 400;
	font-display: swap;
	font-style: normal;
}
@font-face {
	font-family: "EDELP";
	src: url(../fonts/EDELP-Regular-v3.woff2) format("woff2");
	font-weight: 400;
	font-display: swap;
	font-style: normal;
}
@font-face {
	font-family: "Archivo";
	src: url(../fonts/Archivo-Variable.woff2) format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	font-style: normal;
}
@font-face {
	font-family: "Roboto Mono";
	src: url(../fonts/RobotoMono-Variable.woff2) format("woff2");
	font-weight: 100 700;
	font-display: swap;
	font-style: normal;
}

/* Colores, tipografías y medidas base.
   Tokens alineados con la landing sumate.estudiantesdelaplata.com para que el multisitio
   se vea EN SISTEMA: mismos rojos, hover/press, radios y sombras. Las fuentes son las PROPIAS
   del club (woff2 local), NO las Google Fonts de la landing: esa identidad se mantiene. */
:root {
	--edlp-paper:      #e7e5dc;
	--edlp-red:      #e41815;
	--edlp-red-dark: #b00000;
	--edlp-bone:     #e6e6dc;
	--edlp-gold:     #ada072;
	--edlp-ink:      #111111;
	--edlp-black:    #000000;
	--edlp-white:    #ffffff;

	/* estados del rojo, tomados tal cual de la landing para que hovers/press calcen entre sitios */
	--edlp-red-hover: #c9130f;
	--edlp-red-press: #a50f0c;

	--edlp-font-display:  "Archivo Black", "Arial Black", sans-serif;
	--edlp-font-body:     "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--edlp-font-mono:     "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--edlp-font-score:    "EDELP", "Archivo Black", sans-serif; /* tanteadores y números grandes: fuente institucional propia */

	--edlp-header-h:        104px;
	--edlp-header-h-scroll: 68px;
	--edlp-maxw:            1200px;

	--edlp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--edlp-dur:  0.28s;
	--edlp-cut:  20px; /* el corte de esquina que usa todo el sitio */

	/* escala de radios de la landing (nombres iguales para hablar el mismo idioma entre sitios) */
	--edlp-radius-sm: 4px;
	--edlp-radius-md: 6px;
	--edlp-radius-lg: 10px;

	/* escala de sombras de la landing */
	--edlp-shadow-sm: 0 1px 2px rgba(33, 25, 21, .08);
	--edlp-shadow-md: 0 4px 14px rgba(33, 25, 21, .12);
	--edlp-shadow-lg: 0 12px 34px rgba(33, 25, 21, .18);
}

/* Base y reseteo liviano */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--edlp-font-body); color: var(--edlp-ink); background: var(--edlp-paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.home { background-color: var(--edlp-red); }
a { color: var(--edlp-red); text-decoration: none; }
a:hover { color: var(--edlp-red-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--edlp-font-display); line-height: 1.1; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--edlp-red); outline-offset: 2px; }

.edlp-skip-link { position: absolute; left: -9999px; top: 0; background: var(--edlp-red); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.edlp-skip-link:focus { left: 8px; top: 8px; color: #fff; }

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

/* título de sección estilo "expandido" (imitamos GT America con Archivo ancho) */
.edlp-section-title {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-align: center;
	font-size: clamp(1.7rem, 5vw, 2.6rem);
}

/* corte de esquinas reutilizable */
.edlp-cut {
	clip-path: polygon(var(--edlp-cut) 0, 100% 0, 100% calc(100% - var(--edlp-cut)), calc(100% - var(--edlp-cut)) 100%, 0 100%, 0 var(--edlp-cut));
}

/* botón tipo el del sitio: rojo oscuro, mono, esquinitas y filo blanco */
.edlp-btn {
	display: inline-block;
	background: var(--edlp-red-dark);
	color: #fff;
	font-family: var(--edlp-font-mono);
	font-weight: 700;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 9px 18px;
	border: 0;
	cursor: pointer;
	clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
	transition: transform var(--edlp-dur) var(--edlp-ease), background var(--edlp-dur) var(--edlp-ease);
}
.edlp-btn:hover { background: var(--edlp-red); color: #fff; transform: scale(1.05); }

/* Header: dos menús con el escudo al medio */
.edlp-header {
	position: sticky; top: 0; z-index: 100;
	background: transparent;
	border-bottom: none;
	transition: background var(--edlp-dur) var(--edlp-ease), box-shadow var(--edlp-dur) var(--edlp-ease), border-color var(--edlp-dur) var(--edlp-ease);
}
.edlp-header__inner {
	max-width: var(--edlp-maxw); min-height: var(--edlp-header-h);
	margin: 0 auto; padding: 0 24px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
	transition: min-height var(--edlp-dur) var(--edlp-ease);
}
.edlp-header.is-scrolled .edlp-header__inner { min-height: var(--edlp-header-h-scroll); }
/* al bajar: negro translúcido con blur, como el sitio activo */
.edlp-header.is-scrolled {
	background: rgba(0, 0, 0, 0.3);
	border-bottom: none;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 20px;
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	transition: transform 0.3s, background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
	color: #fff;
}
.edlp-header.is-scrolled .edlp-nav__list a,
.edlp-header.is-scrolled .edlp-header__search-toggle { color: #fff; }
.edlp-header.is-scrolled .edlp-header__toggle-bar { background: #fff; }
.edlp-header__brand { grid-column: 2; justify-self: center; display: flex; align-items: center; margin: 0 clamp(28px, 4vw, 64px); }
.edlp-header__brand img { max-height: 68px; width: auto; transition: max-height var(--edlp-dur) var(--edlp-ease); }
.edlp-header.is-scrolled .edlp-header__brand img { max-height: 50px; }
.edlp-header__brand-text { font-family: var(--edlp-font-display); font-size: 1.25rem; color: var(--edlp-red); text-transform: uppercase; }

.edlp-nav--left  { grid-column: 1; justify-self: end; }
.edlp-header__right { grid-column: 3; justify-self: start; display: flex; align-items: center; gap: 12px; width: 100%; }
.edlp-header__search-toggle { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.edlp-header__search-toggle .dashicons { font-size: 22px; width: 22px; height: 22px; }

.edlp-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.edlp-nav__list li { position: relative; }
.edlp-nav__list a {
	position: relative; display: inline-block; padding: 8px 0; color: inherit;
	font-family: var(--edlp-font-body); font-weight: 700; text-transform: uppercase; font-size: .84rem; letter-spacing: .03em; white-space: nowrap;
}
.edlp-nav__list a::after {
	content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
	background: var(--edlp-red); transform: scaleX(0); transform-origin: left center;
	transition: transform var(--edlp-dur) var(--edlp-ease);
}
.edlp-nav__list a:hover::after, .edlp-nav__list .current-menu-item > a::after, .edlp-nav__list .current-menu-ancestor > a::after { transform: scaleX(1); }
.edlp-nav__list a:hover { color: var(--edlp-red); }

/* dropdowns de los menús */
.edlp-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0;
	min-width: 220px;
	/* mismo tratamiento que la barra del header al bajar: negro translúcido + desenfoque */
	background: rgba(0, 0, 0, 0.72);
	border: 1px solid rgba(255,255,255,.12);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	box-shadow: 0 12px 28px rgba(0,0,0,.35); border-radius: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity var(--edlp-dur) var(--edlp-ease), transform var(--edlp-dur) var(--edlp-ease), visibility var(--edlp-dur);
	z-index: 20;
}
.edlp-nav__list li:hover > .sub-menu, .edlp-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.edlp-nav__list .sub-menu a { display: block; padding: 9px 18px; color: #fff; text-transform: none; font-weight: 600; letter-spacing: 0; }
.edlp-nav__list .sub-menu a::after { display: none; }
.edlp-nav__list .sub-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
/* el color del enlace del submenú no cambia con el header scrolleado ni con hero */
.edlp-header.is-scrolled .edlp-nav__list .sub-menu a,
.edlp-has-hero .edlp-header .edlp-nav__list .sub-menu a { color: #fff; }

/* la lupa despliega esto */
.edlp-search { border-top: 1px solid rgba(0,0,0,.08); padding: 16px 0; background: inherit; }
.edlp-search .edlp-wrap { display: flex; }
.edlp-search input[type="search"] { flex: 1; padding: 12px 14px; font-size: 1rem; border: 1px solid rgba(0,0,0,.2); border-radius: 4px; }
.edlp-search button { margin-left: 8px; }

/* hamburguesa (solo móvil) */
.edlp-header__toggle { grid-column: 1; justify-self: start; display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; padding: 8px; background: none; border: 0; cursor: pointer; }
.edlp-header__toggle-bar { display: block; height: 2px; width: 100%; background: currentColor; transition: transform var(--edlp-dur) var(--edlp-ease), opacity var(--edlp-dur) var(--edlp-ease); }
.edlp-header__toggle[aria-expanded="true"] .edlp-header__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.edlp-header__toggle[aria-expanded="true"] .edlp-header__toggle-bar:nth-child(2) { opacity: 0; }
.edlp-header__toggle[aria-expanded="true"] .edlp-header__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* panel de menú en móvil */
.edlp-mobilenav {
	display: none;
	background: #fff;
	border-bottom: 1px solid rgba(0,0,0,.08);
	padding: 8px 24px 16px;
	position: sticky;
	top: var(--edlp-header-h-scroll);
	z-index: 99;
	/* si no entra en pantalla, que scrollee el menú y no la página de atrás */
	max-height: calc(100vh - var(--edlp-header-h-scroll));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.edlp-mobilenav__list { list-style: none; margin: 0; padding: 0; }
.edlp-mobilenav__list li { position: relative; }
.edlp-mobilenav__list a { display: block; padding: 12px 0; color: var(--edlp-ink); font-weight: 700; text-transform: uppercase; font-size: .95rem; border-bottom: 1px solid rgba(0,0,0,.06); }

/* Submenús plegados: se abre solo el que se toca */
.edlp-mobilenav__list .sub-menu { list-style: none; margin: 0; padding-left: 16px; display: none; }
.edlp-mobilenav__list li.is-abierto > .sub-menu { display: block; }
.edlp-mobilenav__list .sub-menu a { font-weight: 500; font-size: .88rem; padding: 10px 0; text-transform: none; }

/* Botón que despliega, separado del enlace para que el título siga navegando */
.edlp-mobilenav__mas {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--edlp-ink);
}
.edlp-mobilenav__chev {
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s ease;
}
.edlp-mobilenav__list li.is-abierto > .edlp-mobilenav__mas { color: var(--edlp-red); }
.edlp-mobilenav__list li.is-abierto > .edlp-mobilenav__mas .edlp-mobilenav__chev { transform: rotate(-135deg) translate(-3px, -3px); }
.edlp-mobilenav__mas:focus-visible { outline: 2px solid var(--edlp-red); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
	.edlp-mobilenav__chev { transition: none; }
}
/* el enlace deja lugar al chevron para que no se pisen */
.edlp-mobilenav__list li.menu-item-has-children > a { padding-right: 52px; }

/* Header transparente cuando hay hero media; sólido al scrollear */
.edlp-has-hero .edlp-header {
	position: fixed; left: 0; right: 0; top: 0;
	background: transparent; color: #fff; border-bottom-color: transparent;
}
.edlp-has-hero .edlp-header .edlp-nav__list a,
.edlp-has-hero .edlp-header .edlp-header__search-toggle,
.edlp-has-hero .edlp-header .edlp-header__toggle-bar { color: #fff; }
.edlp-has-hero .edlp-header.is-scrolled { position: fixed; }
.edlp-has-hero .edlp-main { margin-top: 0; }

/* aparecer al scrollear */
.edlp-main { display: block; min-height: 50vh; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--edlp-ease), transform .5s var(--edlp-ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero media (imagen o video), a pantalla completa como el sitio */
.edlp-heromedia {
	position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden;
	background-color: var(--edlp-black); background-size: cover; background-position: center; color: #fff;
}
.edlp-heromedia__video, .edlp-heromedia__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.edlp-heromedia::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.42); pointer-events: none; }
.edlp-heromedia__overlay { position: relative; z-index: 2; width: 100%; padding: 0 0 12vh; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 55%); }
.edlp-heromedia__sub { font-family: var(--edlp-font-mono); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; opacity: .9; margin: 0 0 10px; }
.edlp-heromedia__title { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.4rem); line-height: 1.05; margin: 0 0 20px; max-width: 20ch; }

/* Carrusel de noticias destacadas (scroll-snap nativo, sin librerías) */
.edlp-hero-carousel { padding: 28px 0 12px; }
.edlp-carousel { position: relative; }
.edlp-carousel__track {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 4px 18px; scrollbar-width: none; -ms-overflow-style: none;
}
.edlp-carousel__track::-webkit-scrollbar { display: none; }
.edlp-ncard { flex: 0 0 300px; width: 300px; min-width: 0; max-width: 300px; box-sizing: border-box; scroll-snap-align: start; background: #1a1a1a; color: var(--edlp-bone); transition: transform var(--edlp-dur) var(--edlp-ease); clip-path: polygon(var(--edlp-cut) 0, 100% 0, 100% calc(100% - var(--edlp-cut)), calc(100% - var(--edlp-cut)) 100%, 0 100%, 0 var(--edlp-cut)); }
.edlp-ncard:hover { transform: translateY(-5px); }
.edlp-ncard__imglink { display: block; }
.edlp-ncard__img { width: 100%; max-width: 100%; height: 185px; object-fit: cover; display: block; }
.edlp-ncard__img--empty { background: #2a2a2a; }
.edlp-ncard__body { padding: 18px 16px 16px; background: #1a1a1a; }
/* ticket #1: chip de sección arriba del título */
.edlp-ncard__cat { display: inline-block; background: var(--edlp-red); color: #fff; font-family: var(--edlp-font-mono); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; margin-bottom: 10px; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.edlp-ncard__cat:hover { background: var(--edlp-red-dark); color: #fff; }
/* ticket #2: tamaño un toque menor y reserva de 3 líneas para que el título entre completo sin recortarse */
.edlp-ncard__title { font-family: var(--edlp-font-display); font-size: .8rem; line-height: 1.25; text-transform: uppercase; margin: 0 0 16px; min-height: 3.75em; overflow-wrap: break-word; }
.edlp-ncard__title a { color: var(--edlp-bone); }
.edlp-ncard__title a:hover { color: #fff; }
.edlp-ncard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.edlp-ncard__btn { background: #2b2b2b; }
.edlp-ncard__btn:hover { background: var(--edlp-red); }
.edlp-ncard__date { font-family: var(--edlp-font-mono); font-size: .78rem; color: var(--edlp-gold); }
.edlp-carousel__arrow {
	position: absolute; top: 40%; transform: translateY(-50%); z-index: 5;
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: #fff; color: var(--edlp-red); font-size: 1.2rem; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background var(--edlp-dur) var(--edlp-ease), transform var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease);
}
.edlp-carousel__arrow:hover { background: var(--edlp-red); color: #fff; }
.edlp-carousel__arrow--prev { left: -10px; }
.edlp-carousel__arrow--next { right: -10px; }

/* Bloque de partidos: últimos (carrusel a la izquierda) + próximo (recuadro a la derecha) */
.edlp-fixtures { padding: 48px 0 56px; color: #fff; overflow-x: clip; }
.edlp-fixtures__grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.edlp-fixtures__past { min-width: 0; }
.edlp-fixtures__next { min-width: 0; }
.edlp-fixtures__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; min-height: 64px; }
.edlp-fixtures__title { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(.55rem, 1.35vw, .95rem); line-height: 1.1; color: #fff; margin: 0; }
.edlp-fixtures__arrows { display: flex; gap: 8px; }
.edlp-fixtures__arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; cursor: pointer; font-size: .8rem; display: flex; align-items: center; justify-content: center; transition: background var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease); }
.edlp-fixtures__arrow:hover { background: #fff; color: var(--edlp-red); }

/* pista del carrusel de últimos */
.edlp-fixtures__track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.edlp-fixtures__track::-webkit-scrollbar { display: none; }

/* tarjeta de partido pasado: 3 por vista, separadas por líneas verticales */
.edlp-fx { flex: 0 0 33.333%; scroll-snap-align: start; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.18); }
.edlp-fx:first-child { border-left: 0; padding-left: 0; }
.edlp-fx__info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.edlp-fx__date { display: inline-flex; flex-direction: column; line-height: 1; }
.edlp-fx__day { font-family: var(--edlp-font-display); font-size: 1.5rem; }
.edlp-fx__month { font-family: var(--edlp-font-body); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.edlp-fx__tourn { display: flex; flex-direction: column; text-align: right; font-family: var(--edlp-font-body); font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.edlp-fx__tourn-name { font-size: .82rem; }
.edlp-fx__tourn-inst { font-size: .82rem; }
.edlp-fx__rows { padding: 20px 0; display: flex; flex-direction: column; gap: 14px; }
.edlp-fx__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.edlp-fx__crest { display: inline-flex; align-items: center; }
.edlp-fx__crest-img, .edlp-fx__crest img { max-height: 55px; width: auto; object-fit: contain; }
.edlp-fx__crest .edlp-match__crest-img { max-height: 58px; max-width: 58px; width: auto; height: auto; object-fit: contain; }
.edlp-fx__crest .edlp-match__crest-txt { width: 40px; height: 40px; background: rgba(255,255,255,.15); }
.edlp-fx__score { font-family: var(--edlp-font-score); font-size: 2.4rem; line-height: 1; }
.edlp-fx__btn { display: block; text-align: center; margin-top: 8px; }
.edlp-fixtures__past .edlp-fx__btn { background: transparent; border: 0.5px solid rgba(255,255,255,.55); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.edlp-fixtures__past .edlp-fx__btn:hover { background: rgba(255,255,255,.95); color: var(--edlp-red); transform: none; }

/* recuadro de próximo partido */
.edlp-fixtures__next .edlp-fixtures__title { margin-bottom: 12px; }
.edlp-fxbox { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); padding: 22px 22px 26px; text-align: center; }
.edlp-fxbox .edlp-fx__info { justify-content: space-between; border-top: 0; border-bottom: 0; padding: 0 0 6px; text-align: left; }
.edlp-fxbox__crests { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 0 6px; }
.edlp-fxbox__crests img { max-height: 62px; width: auto; object-fit: contain; }
.edlp-fxbox__crests .edlp-match__crest-img { max-height: 66px; max-width: 66px; width: auto; height: auto; object-fit: contain; }
.edlp-fxbox__meta { font-family: var(--edlp-font-mono); font-size: .8rem; opacity: .9; margin: 10px 0 16px; }
.edlp-fxbox__btn { margin-top: 8px; }

@media (max-width: 900px) {
	.edlp-fixtures__grid { grid-template-columns: 1fr; gap: 28px; }
	.edlp-fx { flex-basis: 80%; }
}
@media (max-width: 560px) {
	.edlp-fx { flex-basis: 100%; }
}

/* Grilla de noticias */
.edlp-news { padding: 56px 0 72px; }
.edlp-news__title { margin-bottom: 28px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.edlp-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edlp-news__card { background: var(--edlp-bone); overflow: hidden; transition: transform var(--edlp-dur) var(--edlp-ease), box-shadow var(--edlp-dur) var(--edlp-ease); }
.edlp-news__card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.edlp-news__thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }
.edlp-news__body { padding: 16px; }
.edlp-news__headline { font-size: 1.05rem; text-transform: uppercase; margin: 0 0 12px; color: var(--edlp-ink); }
.edlp-news__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.edlp-news__date { font-family: var(--edlp-font-mono); font-size: .78rem; color: #666; }
.edlp-news__link { color: inherit; display: block; }

/* Sponsors — mismo diseño que el sitio activo: fondo rojo, logos en fila separados por líneas */
.edlp-sponsors { padding: 44px 0 52px; background: transparent; color: #fff; }
.edlp-sponsors__title { color: var(--edlp-bone); font-size: clamp(1.15rem, 3vw, 1.5rem); text-align: center; margin-bottom: 28px; }
.edlp-sponsors__tier + .edlp-sponsors__tier { border-top: 1px solid rgba(255,255,255,.22); }
.edlp-sponsors__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; }
.edlp-sponsors__item { flex: 1 1 140px; max-width: 210px; display: inline-flex; align-items: center; justify-content: center; padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.18); transition: opacity var(--edlp-dur) var(--edlp-ease); }
.edlp-sponsors__item:first-child { border-left: 0; }
.edlp-sponsors__item[href]:hover { opacity: .75; }
/* los logos se muestran en blanco, como en el sitio activo (se puede quitar este filtro si algún sponsor exige su color) */
.edlp-sponsors__logo { max-height: 46px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.edlp-sponsors__name { font-family: var(--edlp-font-display); font-size: 1rem; color: var(--edlp-bone); }

/* Niveles/jerarquías de sponsors */
.edlp-sponsors__nivel { margin-bottom: 8px; }
.edlp-sponsors__nivel:last-child { margin-bottom: 0; }
.edlp-sponsors__nivel-tit { text-align: center; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: rgba(255,255,255,.7); margin: 0 0 6px; }
/* Oficiales (hilera superior): apenas más grandes. Diferencia sutil con técnicos. */
.edlp-sponsors__nivel--oficiales .edlp-sponsors__logo { max-height: 48px; }
.edlp-sponsors__nivel--tecnicos .edlp-sponsors__logo { max-height: 40px; }
/* Especial de sección: un escalón por encima y destacado */
.edlp-sponsors__nivel--especial .edlp-sponsors__logo { max-height: 56px; }
.edlp-sponsors__nivel--especial { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.18); }

/* utilitario: visible solo para lectores de pantalla */
.edlp-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* Pie */
/* Pie — como el sitio activo: fondo rojo, marca de agua EDLP, 4 sedes centradas */
.edlp-footer { position: relative; overflow: hidden; background: var(--edlp-red); color: var(--edlp-bone); }
.edlp-footer__brandzone { position: relative; padding: 24px 24px 0; }
.edlp-footer__inner { position: relative; z-index: 2; max-width: var(--edlp-maxw); margin: 0 auto; padding: 10px 24px 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.edlp-footer__bottom { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16); padding: 14px 24px; text-align: center; font-size: .68rem; font-family: var(--edlp-font-mono); }

/* Responsive */
@media (max-width: 980px) {
	.edlp-nav--left, .edlp-nav--right { display: none; }
	.edlp-header__toggle { display: flex; }
	.edlp-header__right { grid-column: 3; justify-self: end; }
	.edlp-mobilenav:not([hidden]) { display: block; }
	.edlp-matches__grid { grid-template-columns: 1fr; }
	.edlp-news__grid { grid-template-columns: 1fr 1fr; }
	.edlp-footer__inner { grid-template-columns: repeat(2, 1fr); }
	.edlp-heromedia { min-height: 82vh; }
	.edlp-heromedia__video { display: none; }
	.edlp-carousel__arrow { display: none; } /* en móvil se scrollea con el dedo */
}
@media (max-width: 560px) {
	.edlp-news__grid { grid-template-columns: 1fr; }
	.edlp-footer__inner { grid-template-columns: 1fr; }
}

/* si pidieron menos movimiento, cortamos animaciones */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	[data-reveal] { opacity: 1; transform: none; }
	.edlp-heromedia__video { display: none; }
}

/* --- Ajustes bloque partidos: fila fecha+torneo y escudo de texto --- */
.edlp-match__head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.edlp-match__date { align-items: center; margin: 0; }
.edlp-match--result .edlp-match__tournament,
.edlp-match--next .edlp-match__tournament { margin: 0; text-align: left; }
.edlp-match__crest-txt { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; font-family: var(--edlp-font-display); font-size: .8rem; background: rgba(255,255,255,.15); border-radius: 50%; }

/* --- Banner 1 (título logo/texto + descripción + imagen/video) --- */
.edlp-banner { padding: 0 0 0; }
.edlp-banner__head { text-align: center; padding: 34px 24px 26px; }
.edlp-banner__title { display: flex; align-items: center; justify-content: center; gap: 18px; }
.edlp-banner__text { font-family: var(--edlp-font-display); text-transform: uppercase; font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: .06em; color: #fff; }
.edlp-banner__logo img { max-height: 54px; width: auto; display: block; }
.edlp-banner__rule { flex: 1; max-width: 120px; height: 2px; background: linear-gradient(to right, transparent, var(--edlp-gold)); }
.edlp-banner__rule:last-child { background: linear-gradient(to left, transparent, var(--edlp-gold)); }
.edlp-banner__desc { max-width: 720px; margin: 14px auto 0; color: var(--edlp-bone); font-size: 1rem; line-height: 1.6; }
.edlp-banner__media { display: block; width: 100%; line-height: 0; }
.edlp-banner__media[href]:hover { opacity: .96; }
.edlp-banner__img, .edlp-banner__video { width: 100%; height: auto; display: block; }

/* --- Noticias institucionales (sección roja) + tarjeta Agenda --- */
.edlp-inst { background: var(--edlp-red); padding: 44px 0 60px; }
.edlp-inst__title { color: var(--edlp-bone); font-size: clamp(1.15rem, 3vw, 1.5rem); margin-bottom: 32px; letter-spacing: 1px; }
.edlp-inst__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: stretch; }
.edlp-inst__col { display: flex; flex-direction: column; gap: 22px; }
.edlp-inst__item { display: flex; flex-direction: column; gap: 12px; }
.edlp-inst__card { display: block; height: 210px; background: var(--edlp-bone) center/cover no-repeat; box-shadow: 0 4px 12px rgba(0,0,0,.1); transition: transform var(--edlp-dur) var(--edlp-ease), box-shadow var(--edlp-dur) var(--edlp-ease); }
.edlp-inst__card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.edlp-inst__headline { margin: 0; }
.edlp-inst__headline a { color: var(--edlp-bone); font-family: var(--edlp-font-display); font-size: clamp(.95rem, 2.4vw, 1.2rem); line-height: 1.1; text-transform: uppercase; letter-spacing: -.5px; }
.edlp-inst__headline a:hover { color: #fff; }
.edlp-inst__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.edlp-inst__date { color: var(--edlp-bone); font-family: var(--edlp-font-mono); font-size: .85rem; }

.edlp-agenda { position: relative; overflow: hidden; min-height: 480px; background: var(--edlp-black); color: var(--edlp-bone); padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 8px 25px rgba(0,0,0,.3); transition: transform var(--edlp-dur) var(--edlp-ease); }
.edlp-agenda:hover { transform: scale(1.02); color: var(--edlp-bone); }
.edlp-agenda__pattern { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.edlp-agenda > *:not(.edlp-agenda__pattern) { position: relative; z-index: 1; }
.edlp-agenda__kicker { font-family: var(--edlp-font-mono); font-weight: 700; letter-spacing: .3em; font-size: clamp(.9rem, 2vw, 1.1rem); margin-bottom: 4px; }
.edlp-agenda__big { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1; transform: skewX(-10deg); margin-bottom: 24px; }
.edlp-agenda__text { font-family: var(--edlp-font-display); font-size: clamp(.75rem, 1.8vw, .85rem); line-height: 1.4; max-width: 34ch; margin-bottom: 22px; }
.edlp-agenda__btn { align-self: center; }

/* --- Footer: banda de aniversario + sedes --- */
/* fila superior repartida (superpuesta a la imagen) + imagen de fondo del pie */
.edlp-footer__brandzone { position: relative; min-height: 72px; }
.edlp-footer__top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; margin: 0; padding: 56px 28px 0; }
.edlp-footer__word { font-family: var(--edlp-font-display); text-transform: uppercase; font-size: clamp(.5rem, .8vw, .58rem); color: var(--edlp-bone); letter-spacing: .08em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.edlp-footer__word:first-child { justify-self: start; }
.edlp-footer__word:last-child { justify-self: end; }
.edlp-footer__anniv { justify-self: center; display: flex; flex-direction: column; align-items: center; line-height: 1.15; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.edlp-footer__anniv-years { font-family: var(--edlp-font-mono); font-size: .52rem; color: var(--edlp-bone); letter-spacing: .12em; }
.edlp-footer__anniv-big { font-family: var(--edlp-font-display); color: var(--edlp-white); font-size: clamp(.55rem, .9vw, .64rem); }

.edlp-footer__bg { display: block; width: 100%; height: auto; }

.edlp-footer__sede-title { color: var(--edlp-white); font-family: var(--edlp-font-body); font-weight: 800; font-size: .82rem; line-height: 1.25; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .02em; }
.edlp-footer__sede-text { font-family: var(--edlp-font-mono); font-size: .7rem; line-height: 1.75; color: var(--edlp-bone); margin: 0; }

@media (max-width: 980px) {
	.edlp-inst__grid { grid-template-columns: 1fr; }
	.edlp-agenda { min-height: 360px; }
}
@media (max-width: 560px) {
	.edlp-banner__text { font-size: 1.1rem; }
	.edlp-banner__rule { max-width: 60px; }
	.edlp-footer__top { position: static; grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 28px 20px 8px; }
	.edlp-footer__word:first-child, .edlp-footer__word:last-child { justify-self: center; }
}

/* --- Módulo Noticia destacada (imagen grande + texto + botón a la derecha) --- */
.edlp-featured { padding: 40px 0 16px; }
.edlp-featured__card { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--edlp-bone); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.edlp-featured__media { display: block; min-height: 340px; background: var(--edlp-ink); overflow: hidden; }
.edlp-featured__img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; transition: transform .6s var(--edlp-ease); }
.edlp-featured__media:hover .edlp-featured__img { transform: scale(1.04); }
.edlp-featured__body { padding: 34px 34px 30px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.edlp-featured__kicker { font-family: var(--edlp-font-mono); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--edlp-red); margin-bottom: 12px; }
.edlp-featured__title { margin: 0 0 14px; }
.edlp-featured__title a { color: var(--edlp-ink); font-family: var(--edlp-font-display); text-transform: uppercase; font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.08; letter-spacing: -.5px; }
.edlp-featured__title a:hover { color: var(--edlp-red); }
.edlp-featured__text { margin: 0 0 22px; font-size: 1rem; line-height: 1.6; color: #3a3a3a; }

@media (max-width: 780px) {
	.edlp-featured__card { grid-template-columns: 1fr; }
	.edlp-featured__media, .edlp-featured__img { min-height: 220px; }
	.edlp-featured__body { padding: 24px 22px 26px; }
}

/* --- Ficha de partido (single-partido.php) --- */
.edlp-partido { padding: 0 0 56px; }
.edlp-partido__head { background: var(--edlp-red); color: #fff; padding: 48px 0; text-align: center; }
.edlp-partido__meta-top { font-family: var(--edlp-font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; opacity: .95; margin: 0 0 24px; }
.edlp-partido__match { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 5vw, 56px); }
.edlp-partido__team { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 100px; }
.edlp-partido__crest img { max-height: 84px; width: auto; }
.edlp-partido__crest .edlp-match__crest-txt { width: 64px; height: 64px; background: rgba(255,255,255,.15); font-size: 1rem; }
.edlp-partido__name { font-family: var(--edlp-font-display); text-transform: uppercase; font-size: clamp(1rem, 2.4vw, 1.4rem); }
.edlp-partido__center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.edlp-partido__score { font-family: var(--edlp-font-score); font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; }
.edlp-partido__dash { margin: 0 10px; }
.edlp-partido__vs { font-family: var(--edlp-font-display); font-size: clamp(1.6rem, 5vw, 2.4rem); opacity: .8; }
.edlp-partido__date { font-family: var(--edlp-font-mono); font-size: .85rem; opacity: .95; }
.edlp-partido__meta-bot { font-family: var(--edlp-font-mono); font-size: .85rem; opacity: .9; margin: 24px 0 0; }
.edlp-partido__body { padding: 40px 0 8px; }
.edlp-partido__back { margin-top: 24px; }

/* contenido del editor, prolijo */
.edlp-content { max-width: 780px; }
.edlp-content p { margin: 0 0 1.1em; line-height: 1.7; }
.edlp-content img { height: auto; border-radius: 8px; }
.edlp-content h2, .edlp-content h3 { margin: 1.4em 0 .5em; }

/* --- Bloques nativos de Gutenberg dentro del contenido editable --- */
.edlp-content ul, .edlp-content ol { margin: 0 0 1.1em; padding-left: 1.3em; line-height: 1.7; }
.edlp-content ul li, .edlp-content ol li { margin-bottom: .3em; }

.edlp-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--edlp-red); font-style: italic; }
.edlp-content blockquote p:last-child { margin-bottom: 0; }
.edlp-content blockquote cite { display: block; margin-top: 8px; font-family: var(--edlp-font-mono); font-style: normal; font-size: .8rem; opacity: .7; }

.edlp-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.edlp-content table th, .edlp-content table td { border: 1px solid rgba(0,0,0,.15); padding: 10px 12px; text-align: left; }
.edlp-content table th { background: var(--edlp-ink); color: var(--edlp-bone); font-family: var(--edlp-font-mono); text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }

.edlp-content .wp-block-image { margin: 0 0 1.4em; }
.edlp-content .wp-block-image figcaption { margin-top: 8px; text-align: center; font-family: var(--edlp-font-mono); font-size: .78rem; opacity: .7; }

.edlp-content .wp-block-button__link { display: inline-block; background: var(--edlp-red-dark); color: var(--edlp-bone); font-family: var(--edlp-font-mono); text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; padding: 12px 22px; text-decoration: none; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background var(--edlp-dur) var(--edlp-ease); }
.edlp-content .wp-block-button__link:hover { background: var(--edlp-red); }
.edlp-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--edlp-ink); border: 1.5px solid var(--edlp-ink); }

.edlp-content .wp-block-columns { gap: 32px; }

.edlp-content .wp-block-gallery { margin: 0 0 1.4em; }
.edlp-content .wp-block-gallery figcaption { font-family: var(--edlp-font-mono); font-size: .78rem; opacity: .7; }

.edlp-content .wp-block-embed { margin: 0 0 1.4em; }
.edlp-content .wp-block-embed iframe { width: 100%; border-radius: 8px; }
.edlp-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper { position: relative; padding-top: 56.25%; }
.edlp-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* alineado ancho/full-bleed: se sale del columnado angosto de .edlp-content aunque esté dentro de .edlp-wrap */
.edlp-content .alignwide { max-width: 1100px; width: auto; margin-left: calc(50% - 550px); margin-right: calc(50% - 550px); }
.edlp-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.edlp-content .alignfull img { width: 100%; border-radius: 0; }

@media (max-width: 780px) {
	.edlp-content .wp-block-columns { flex-wrap: wrap; }
	.edlp-content .alignwide { max-width: 100%; margin-left: 0; margin-right: 0; }
}

@media (max-width: 560px) {
	.edlp-partido__match { gap: 12px; }
	.edlp-partido__crest img { max-height: 60px; }
}

/* --- Nota y página individual --- */
.edlp-single, .edlp-page { background: transparent; }
.edlp-single__hero { position: relative; min-height: 46vh; background: var(--edlp-ink); overflow: hidden; display: flex; align-items: flex-end; }
.edlp-single__hero--page { min-height: 34vh; }
.edlp-single__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edlp-single__hero-overlay { position: relative; z-index: 1; width: 100%; padding: 90px 0 34px; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0)); color: #fff; }
.edlp-single__cat { display: inline-block; background: var(--edlp-red); color: #fff; font-family: var(--edlp-font-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; margin-bottom: 12px; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.edlp-single__title { color: #fff; font-family: var(--edlp-font-display); text-transform: uppercase; font-size: clamp(1.2rem, 3vw, 2rem); line-height: 1.12; margin: 0 0 10px; max-width: 26ch; }
.edlp-single__title--dark { color: var(--edlp-ink); }
.edlp-single__meta { font-family: var(--edlp-font-mono); font-size: .8rem; opacity: .9; margin: 0; }
.edlp-single__meta--dark { color: #666; }
.edlp-single__plain { padding: 48px 0 8px; }
.edlp-single__body { padding: 40px 0 40px; }

.edlp-single__nav { border-top: 1px solid rgba(0,0,0,.08); padding: 26px 0 48px; }
.edlp-single__nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.edlp-single__nav-link { display: flex; flex-direction: column; gap: 6px; color: var(--edlp-ink); }
.edlp-single__nav-link--next { text-align: right; }
.edlp-single__nav-label { font-family: var(--edlp-font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--edlp-red); }
.edlp-single__nav-title { font-family: var(--edlp-font-display); font-size: .95rem; line-height: 1.2; }
.edlp-single__nav-link:hover .edlp-single__nav-title { color: var(--edlp-red); }

.edlp-content__pages { margin-top: 24px; font-family: var(--edlp-font-mono); font-size: .85rem; }

@media (max-width: 640px) {
	.edlp-single__nav-grid { grid-template-columns: 1fr; }
	.edlp-single__nav-link--next { text-align: left; }
}

/* --- Pie interior (paginas que no son la portada): oscuro, escudo y redes --- */
.edlp-footer--interior { background: #1d1a16; color: var(--edlp-bone); padding-top: 44px; }
.edlp-footer--interior .edlp-footer__crest { text-align: center; margin-bottom: 20px; }
.edlp-footer--interior .edlp-footer__crest img { max-height: 76px; width: auto; display: inline-block; }
.edlp-footer__social { display: flex; justify-content: center; gap: 14px; margin-bottom: 34px; }
.edlp-footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--edlp-bone); transition: background var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease); }
.edlp-footer__social-link:hover { background: var(--edlp-bone); color: #1d1a16; }

/* redes con más de una cuenta: el mismo círculo pero un poco más ancho (pill) + flechita */
.edlp-footer__social-item { position: relative; }
.edlp-footer__social-toggle { width: auto; padding: 0 12px; border-radius: 19px; gap: 6px; background: transparent; cursor: pointer; }
.edlp-footer__social-chevron { display: inline-flex; transition: transform var(--edlp-dur) var(--edlp-ease); }
.edlp-footer__social-item:hover .edlp-footer__social-chevron, .edlp-footer__social-item.is-open .edlp-footer__social-chevron { transform: rotate(180deg); }

.edlp-footer__social-menu {
	position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
	min-width: 180px; margin: 0; padding: 6px; list-style: none;
	background: #141414; border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
	box-shadow: 0 14px 30px rgba(0,0,0,.45); z-index: 20;
}
/* funciona con solo CSS (hover/foco); el JS suma click/touch y prolijidad de teclado */
.edlp-footer__social-item:hover .edlp-footer__social-menu,
.edlp-footer__social-item:focus-within .edlp-footer__social-menu,
.edlp-footer__social-item.is-open .edlp-footer__social-menu { display: block; }
.edlp-footer__social-menu li + li { margin-top: 2px; }
.edlp-footer__social-menu a { display: block; padding: 8px 12px; border-radius: 4px; font-family: var(--edlp-font-mono); font-size: .82rem; color: var(--edlp-bone); }
.edlp-footer__social-menu a:hover, .edlp-footer__social-menu a:focus-visible { background: rgba(255,255,255,.1); outline: 1px solid var(--edlp-bone); outline-offset: -1px; }
.edlp-footer--interior .edlp-footer__inner { padding-top: 0; }
.edlp-footer--interior .edlp-footer__bottom { border-top-color: rgba(255,255,255,.12); }

/* escudo del pie interior: si usan el logo de color como respaldo, lo pasamos a gris */
.edlp-footer--interior .edlp-footer__crest img { max-height: 64px; width: auto; display: inline-block; }
.edlp-footer__crest--auto img { filter: grayscale(1) brightness(1.6) opacity(.9); }

/* que la barra de administracion no tape el header */
.admin-bar .edlp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .edlp-header { top: 46px; } }

/* --- Plantilla Deportes: hero con titulo gigante + bloques --- */
.edlp-deporte__hero { position: relative; min-height: 62vh; background: var(--edlp-ink); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.edlp-deporte__hero--plain { min-height: 32vh; background: var(--edlp-paper); }
.edlp-deporte__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edlp-deporte__hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.edlp-deporte__hero--plain::after { display: none; }
.edlp-deporte__title { position: relative; z-index: 1; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; color: var(--edlp-bone); font-size: clamp(2.6rem, 10vw, 7rem); line-height: .95; text-align: center; margin: 0; letter-spacing: -.01em; mix-blend-mode: screen; }
.edlp-deporte__hero--plain .edlp-deporte__title { color: var(--edlp-ink); mix-blend-mode: normal; }
.edlp-deporte__body { padding: 44px 0 8px; }
.edlp-deporte__block { padding: 26px 0; }
.edlp-deporte__block-title { font-size: clamp(1.1rem, 2.6vw, 1.4rem); text-align: left; margin-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,.12); padding-bottom: 10px; }
.edlp-deporte__block-content { max-width: 780px; }

.edlp-plantel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
/* card como el sitio activo: foto sobre degradé bordó→rojo con el nombre arriba a la izquierda */
.edlp-plantel__card { position: relative; display: block; background: linear-gradient(180deg, var(--edlp-red) 0%, var(--edlp-red-dark, #b00000) 55%, #1a0000 88%, #000 100%); overflow: hidden; aspect-ratio: 3 / 4; }
/* La foto del jugador viene en PNG con fondo transparente: se apoya abajo para que el
   degradé quede detrás y el recorte no se corte a la altura del pecho. */
.edlp-plantel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom center; display: block; margin: 0; transition: transform var(--edlp-dur) var(--edlp-ease); }
.edlp-plantel__card:hover .edlp-plantel__img { transform: scale(1.04); }
.edlp-plantel__dorsal { position: absolute; top: 12px; right: 12px; z-index: 2; font-family: var(--edlp-font-display); font-size: 1.1rem; color: #fff; opacity: .85; }
.edlp-plantel__nombre { position: absolute; top: 12px; left: 14px; right: 44px; z-index: 2; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: .92rem; line-height: 1.2; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* --- FAQ: acordeon nativo con <details>, sin una linea de JS --- */
.edlp-accordion { max-width: 780px; border-top: 1px solid rgba(0,0,0,.12); }
.edlp-accordion__item { border-bottom: 1px solid rgba(0,0,0,.12); }
.edlp-accordion__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-family: var(--edlp-font-body); font-weight: 700; font-size: 1rem; }
.edlp-accordion__q::-webkit-details-marker { display: none; }
.edlp-accordion__q::after { content: "+"; font-family: var(--edlp-font-mono); font-size: 1.2rem; color: var(--edlp-red); flex: 0 0 auto; transition: transform var(--edlp-dur) var(--edlp-ease); }
.edlp-accordion__item[open] .edlp-accordion__q::after { transform: rotate(45deg); }
.edlp-accordion__a { padding: 0 4px 20px; max-width: 720px; }
.edlp-faqs__grupo { padding: 8px 0; }
.edlp-faqs__link { margin-top: 4px; }

/* --- Historia: linea de tiempo nativa --- */
.edlp-timeline { list-style: none; margin: 0; padding: 0; max-width: 720px; border-left: 2px solid var(--edlp-red); }
.edlp-timeline__item { position: relative; padding: 4px 0 22px 26px; }
.edlp-timeline__item::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; background: var(--edlp-red); border-radius: 50%; }
.edlp-timeline__anio { display: block; font-family: var(--edlp-font-mono); font-weight: 700; color: var(--edlp-red-dark); margin-bottom: 4px; }
.edlp-timeline__texto { display: block; line-height: 1.6; }

/* --- Planteles: agrupado por deporte, mismo repetidor y tarjetas que template-deportes --- */
.edlp-planteles__link { color: inherit; }
.edlp-planteles__link:hover { color: var(--edlp-red); }
.edlp-planteles__posicion { font-family: var(--edlp-font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--edlp-red-dark); border-bottom: 1px solid rgba(176,0,0,.25); padding-bottom: 6px; margin: 26px 0 14px; }

/* Estilo de bloque "Título EDLP": fuente institucional, mayúsculas (uso: impacto, sin acentos). */
.is-style-edlp-titulo {
	font-family: var(--edlp-font-score);
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1.1;
}
.is-style-edlp-titulo.wp-block-paragraph {
	font-size: 1.6rem;
}

/* --- Almanaque mensual (opcional) --- */
.edlp-almanaque { padding: 20px 0 40px; background: var(--edlp-red); }
.edlp-almanaque__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.edlp-almanaque__title { color: #fff; margin: 0; }
.edlp-almanaque__nav { display: flex; align-items: center; gap: 14px; }
.edlp-almanaque__mes { color: #fff; font-family: var(--edlp-font-body); font-weight: 800; text-transform: uppercase; font-size: 1rem; min-width: 160px; text-align: center; }
.edlp-almanaque__navbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; transition: background var(--edlp-dur) var(--edlp-ease); }
.edlp-almanaque__navbtn:hover { background: rgba(255,255,255,.15); color: #fff; }

.edlp-almanaque__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.edlp-almanaque__dow { text-align: center; font-family: var(--edlp-font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.75); padding-bottom: 6px; }
.edlp-almanaque__cell { position: relative; aspect-ratio: 1; display: flex; align-items: flex-start; justify-content: flex-start; padding: 6px 8px; background: rgba(0,0,0,.12); border: 0; border-radius: var(--edlp-radius-sm); color: #fff; font: inherit; }
.edlp-almanaque__cell--empty { background: transparent; }
.edlp-almanaque__num { font-family: var(--edlp-font-mono); font-size: .8rem; }
.edlp-almanaque__cell--hoy { outline: 2px solid var(--edlp-gold); outline-offset: -2px; }
.edlp-almanaque__cell--evento { background: #fff; color: var(--edlp-ink); cursor: pointer; font-weight: 700; }
.edlp-almanaque__cell--evento:hover { background: var(--edlp-bone); }
.edlp-almanaque__dot { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--edlp-red); }

/* popup de detalle: oculto por defecto, se muestra con .is-open (click) o hover en desktop */
.edlp-almanaque__pop { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); min-width: 220px; max-width: 280px; display: none; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--edlp-ink); color: #fff; border-radius: var(--edlp-radius-md); box-shadow: var(--edlp-shadow-lg); text-align: left; }
.edlp-almanaque__cell--evento.is-open .edlp-almanaque__pop { display: flex; }
@media (hover: hover) { .edlp-almanaque__cell--evento:hover .edlp-almanaque__pop { display: flex; } }
.edlp-almanaque__pop::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--edlp-ink); }
.edlp-almanaque__ev { display: flex; flex-direction: column; gap: 2px; }
.edlp-almanaque__ev + .edlp-almanaque__ev { border-top: 1px solid rgba(255,255,255,.15); padding-top: 8px; }
.edlp-almanaque__ev-tit { font-family: var(--edlp-font-body); font-weight: 800; text-transform: uppercase; font-size: .85rem; line-height: 1.2; }
.edlp-almanaque__ev-meta { font-family: var(--edlp-font-mono); font-size: .72rem; color: var(--edlp-gold); }
.edlp-almanaque__ev-comp { font-size: .74rem; opacity: .85; }

@media (max-width: 600px) {
	.edlp-almanaque__cell { padding: 4px; }
	.edlp-almanaque__num { font-size: .7rem; }
	.edlp-almanaque__pop { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; transform: none; min-width: 0; max-width: none; }
	.edlp-almanaque__pop::after { display: none; }
}

/* --- Comisión Directiva: banda de período + filas rojas por cargo --- */
.edlp-comision__banda { background: var(--edlp-ink); padding: 22px 0; }
.edlp-comision__banda-title { color: var(--edlp-bone); font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; text-align: center; letter-spacing: .02em; font-size: clamp(1.1rem, 3vw, 1.7rem); margin: 0; }
.edlp-comision__body { background: var(--edlp-red); padding: 8px 0 24px; }
.edlp-comision__row { border-bottom: 1px solid rgba(255,255,255,.28); padding: 30px 0; }
.edlp-comision__row:last-child { border-bottom: 0; }
.edlp-comision__row-wrap { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 24px 40px; align-items: start; }
.edlp-comision__row-label { color: var(--edlp-bone); font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.1rem, 2.6vw, 1.6rem); line-height: 1.15; margin: 0; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.edlp-comision__personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 40px; min-width: 0; }
.edlp-comision__persona { min-width: 0; }
.edlp-comision__persona-name { color: var(--edlp-bone); font-weight: 800; text-transform: uppercase; font-size: .98rem; line-height: 1.3; overflow-wrap: break-word; }
/* edlp-content trae max-width:780px, que dentro de la grilla descoloca las columnas */
.edlp-comision__persona-name.edlp-content,
.edlp-comision__lista.edlp-content { max-width: none; }
.edlp-comision__persona-name p { margin: 0; }
.edlp-comision__persona-role { display: block; color: var(--edlp-bone); opacity: .75; font-family: var(--edlp-font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.edlp-comision__lista { color: var(--edlp-bone); text-transform: uppercase; font-weight: 700; font-size: .9rem; column-count: 2; column-gap: 48px; }
.edlp-comision__lista p { margin: 0 0 16px; break-inside: avoid; }

@media (max-width: 700px) {
	.edlp-comision__row-wrap { grid-template-columns: 1fr; gap: 14px; }
	.edlp-comision__lista { column-count: 1; }
}

/* --- Ticket #5/#23: grilla de noticias (Últimas noticias y bandas por sección) --- */
.edlp-noticias__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 8px 0 24px; }
.edlp-ncard--grid { flex: none; width: auto; }
.edlp-ncard--grid .edlp-ncard__title { min-height: 0; }
@media (max-width: 900px) { .edlp-noticias__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .edlp-noticias__grid { grid-template-columns: 1fr; } }

/* --- Ticket #12: crédito del fotógrafo bajo el hero de la nota --- */

/* --- Ticket #11: etiquetas al pie de la nota --- */
.edlp-single__tags { padding: 0 0 26px; }
.edlp-single__tags .edlp-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.edlp-single__tag { font-family: var(--edlp-font-mono); font-size: .78rem; color: var(--edlp-red-dark); border: 1px solid rgba(176,0,0,.35); padding: 4px 10px; border-radius: 3px; transition: background var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease); }
.edlp-single__tag:hover { background: var(--edlp-red-dark); color: #fff; }

/* --- Ticket #21: listado de partidos --- */
.edlp-partidos__bloque { padding: 10px 0 26px; }
.edlp-partidos__lista { display: flex; flex-direction: column; gap: 12px; }
.edlp-partidos__row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; background: #1a1a1a; color: var(--edlp-bone); padding: 14px 18px; transition: transform var(--edlp-dur) var(--edlp-ease); }
.edlp-partidos__row:hover { transform: translateX(4px); color: #fff; }
.edlp-partidos__fecha { display: flex; flex-direction: column; line-height: 1; text-align: center; }
.edlp-partidos__dia { font-family: var(--edlp-font-display); font-size: 1.4rem; }
.edlp-partidos__mes { font-family: var(--edlp-font-mono); font-size: .68rem; text-transform: uppercase; margin-top: 3px; color: var(--edlp-gold); }
.edlp-partidos__cruce { display: flex; align-items: center; gap: 14px; font-family: var(--edlp-font-body); font-weight: 800; text-transform: uppercase; font-size: .92rem; }
.edlp-partidos__marcador { font-family: var(--edlp-font-score); color: var(--edlp-red); background: var(--edlp-bone); padding: 4px 10px; font-size: .95rem; white-space: nowrap; }
.edlp-partidos__meta { display: flex; flex-direction: column; text-align: right; font-family: var(--edlp-font-mono); font-size: .68rem; text-transform: uppercase; opacity: .75; gap: 2px; }
@media (max-width: 700px) {
	.edlp-partidos__row { grid-template-columns: 52px 1fr; }
	.edlp-partidos__meta { display: none; }
	.edlp-partidos__cruce { flex-wrap: wrap; gap: 8px; font-size: .8rem; }
}

/* --- Paginación nativa (noticias y partidos) --- */
.edlp-paginacion { padding: 8px 0 34px; }
.edlp-paginacion ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.edlp-paginacion a, .edlp-paginacion span.page-numbers { display: inline-block; font-family: var(--edlp-font-mono); font-size: .82rem; padding: 8px 13px; border: 1px solid rgba(0,0,0,.2); color: var(--edlp-ink); transition: background var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease); }
.edlp-paginacion a:hover { background: var(--edlp-red); border-color: var(--edlp-red); color: #fff; }
.edlp-paginacion span.current { background: var(--edlp-ink); border-color: var(--edlp-ink); color: var(--edlp-bone); }

/* --- Ticket #23: banda de noticias por sección --- */
.edlp-relnews { padding: 6px 0 34px; }
.edlp-relnews__more { margin-top: 4px; }

/* --- Ticket #15: penales en la ficha de partido --- */
.edlp-partido__penales { display: block; font-family: var(--edlp-font-mono); font-size: .8rem; color: var(--edlp-gold); margin-top: 4px; }
.edlp-partido__penales-det { padding: 10px 0 20px; }
.edlp-penales-lista { list-style: none; margin: 0; padding: 0; max-width: 520px; counter-reset: patada; }
.edlp-penales-lista li { counter-increment: patada; padding: 9px 2px; border-bottom: 1px solid rgba(0,0,0,.1); font-size: .92rem; }
.edlp-penales-lista li::before { content: counter(patada); display: inline-block; width: 26px; font-family: var(--edlp-font-mono); font-size: .75rem; color: var(--edlp-red-dark); }

/* --- Ficha del jugador (ticket #28) --- */
.edlp-jugador__hero { background: var(--edlp-red); }
.edlp-jugador__hero-wrap { display: flex; align-items: flex-end; gap: 34px; padding-top: 30px; }
.edlp-jugador__foto { max-height: 340px; width: auto; display: block; }
.edlp-jugador__head { padding: 0 0 34px; }
.edlp-jugador__dorsal { display: inline-block; background: var(--edlp-bone); color: var(--edlp-red); font-family: var(--edlp-font-display); font-size: 1.1rem; padding: 4px 12px; }
.edlp-jugador__nombre { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.05; margin: 10px 0 8px; }
.edlp-jugador__posicion { font-family: var(--edlp-font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.edlp-jugador__posicion a { color: var(--edlp-bone); }
.edlp-jugador__redes a { color: #fff; font-family: var(--edlp-font-mono); font-size: .8rem; text-transform: uppercase; margin-right: 14px; text-decoration: underline; }

.edlp-jugador__titulo { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1.3rem; border-bottom: 3px solid var(--edlp-red); display: inline-block; padding-bottom: 4px; margin: 34px 0 18px; }
.edlp-jugador__subtitulo { font-family: var(--edlp-font-mono); color: var(--edlp-red-dark); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 20px 0 10px; }

.edlp-jugador__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.edlp-jugador__tile { border: 1px solid rgba(0,0,0,.15); background: #fff; padding: 14px 16px; }
.edlp-jugador__tile-label { display: block; font-family: var(--edlp-font-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin-bottom: 4px; }
.edlp-jugador__tile-valor { display: block; font-weight: 800; font-size: 1.05rem; }

.edlp-jugador__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.edlp-jugador__stat { text-align: center; color: #fff; padding: 18px 8px 14px; }
.edlp-jugador__stat--rojo { background: var(--edlp-red); }
.edlp-jugador__stat--dorado { background: var(--edlp-gold); }
.edlp-jugador__stat--amarillo { background: #e0a800; }
.edlp-jugador__stat--bordo { background: #8f0000; }
.edlp-jugador__stat-num { display: block; font-family: var(--edlp-font-display); font-size: 2rem; line-height: 1; }
.edlp-jugador__stat-label { display: block; font-family: var(--edlp-font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

.edlp-jugador__tabla-wrap { overflow-x: auto; margin-bottom: 26px; }
.edlp-jugador__tabla { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
.edlp-jugador__tabla th { background: var(--edlp-red); color: #fff; font-family: var(--edlp-font-mono); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; text-align: left; padding: 12px 14px; }
.edlp-jugador__tabla td { padding: 11px 14px; border-bottom: 1px solid rgba(0,0,0,.08); }
.edlp-jugador__competicion { color: var(--edlp-red-dark); font-weight: 700; }
.edlp-jugador article:last-child { padding-bottom: 40px; }
@media (max-width: 700px) { .edlp-jugador__hero-wrap { flex-direction: column; align-items: flex-start; gap: 10px; } .edlp-jugador__foto { max-height: 240px; } }

/* --- Planteles: otras disciplinas (foto grupal del CPT planteles) --- */
.edlp-planteles__disciplinas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.edlp-planteles__disciplina { margin: 0; }
.edlp-planteles__grupal { width: 100%; height: auto; display: block; }
.edlp-planteles__disciplina figcaption { margin-top: 8px; font-family: var(--edlp-font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 700px) { .edlp-planteles__disciplinas { grid-template-columns: 1fr; } }

/* --- Plantilla Parent: botonera de hijas --- */
.edlp-parent__head { padding: 46px 0 8px; }
.edlp-parent__title { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.4rem, 3.4vw, 2.2rem); margin: 0 0 10px; }
.edlp-parent__intro { max-width: 720px; }
.edlp-botonera { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px 0 64px; }
.edlp-botonera__card { display: flex; flex-direction: column; justify-content: space-between; gap: 34px; min-height: 120px; padding: 20px 22px; border: 1px solid var(--edlp-ink); color: var(--edlp-ink); background: transparent; transition: background var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease), transform var(--edlp-dur) var(--edlp-ease); }
.edlp-botonera__card:hover { background: var(--edlp-ink); color: var(--edlp-bone); transform: translateY(-3px); }
.edlp-botonera__label { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; }
.edlp-botonera__arrow { align-self: flex-end; font-size: 1.2rem; }
/* variedad de tamanos como el sitio: algunas tarjetas ocupan dos columnas y una va en oscuro */
.edlp-botonera__card:nth-child(6n+1) { grid-column: span 2; }
.edlp-botonera__card:nth-child(6n+4) { grid-column: span 2; min-height: 200px; background: var(--edlp-ink); color: var(--edlp-bone); }
.edlp-botonera__card:nth-child(6n+4):hover { background: var(--edlp-red-dark); }

@media (max-width: 760px) {
	.edlp-botonera { grid-template-columns: 1fr; }
	.edlp-botonera__card, .edlp-botonera__card:nth-child(6n+1), .edlp-botonera__card:nth-child(6n+4) { grid-column: auto; min-height: 96px; }
	.edlp-deporte__hero { min-height: 44vh; }
}

/* --- Ficha de partido: secciones Goles / Cambios / Tarjetas --- */
.edlp-partido__sec { padding: 26px 0 6px; }
.edlp-partido__sec-title { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1rem, 2.4vw, 1.3rem); border-bottom: 1px solid rgba(0,0,0,.15); padding-bottom: 10px; margin: 0 0 6px; }
.edlp-partido__row { display: flex; align-items: center; gap: 18px; padding: 14px 6px; border-bottom: 1px solid rgba(0,0,0,.1); }
.edlp-partido__min { font-family: var(--edlp-font-mono); font-weight: 700; min-width: 52px; text-align: right; }
.edlp-partido__who { flex: 1; font-weight: 700; text-transform: uppercase; font-size: .9rem; }
.edlp-partido__who--swap { display: flex; flex-direction: column; gap: 4px; }
.edlp-partido__dorsal { font-family: var(--edlp-font-mono); font-weight: 400; font-size: .78rem; opacity: .7; }
.edlp-partido__out { opacity: .75; }
.edlp-partido__card { width: 14px; height: 18px; border-radius: 2px; flex: 0 0 auto; }
.edlp-partido__card--amarilla { background: #f2c200; }
.edlp-partido__card--roja { background: var(--edlp-red); }
.edlp-partido__team-ico img, .edlp-partido__team-ico .edlp-fx__crest-img { max-height: 26px; max-width: 26px; width: auto; height: auto; }
.edlp-partido__team-ico .edlp-match__crest-img { max-height: 26px; max-width: 26px; width: auto; height: auto; }
.edlp-partido__team-ico .edlp-match__crest-txt { width: 24px; height: 24px; font-size: .5rem; background: rgba(0,0,0,.12); color: var(--edlp-ink); }

/* Terna arbitral: lista sobria, mismo aire que las demás secciones del partido */
.edlp-partido__terna { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; }
.edlp-partido__terna li { font-size: .9rem; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.edlp-partido__terna-rol { font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: .02em; opacity: .7; }

/* Formaciones: dos columnas (Estudiantes / rival), listas de dorsal + nombre */
.edlp-forma { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 40px; margin-top: 8px; }
.edlp-forma__team { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1rem; margin: 0 0 4px; }
.edlp-forma__sistema { font-weight: 400; opacity: .6; font-size: .85rem; }
.edlp-forma__dt { font-size: .85rem; margin: 0 0 10px; opacity: .85; }
.edlp-forma__sub { text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; opacity: .55; margin: 12px 0 6px; }
.edlp-forma__lista { list-style: none; margin: 0; padding: 0; }
.edlp-forma__lista li { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .9rem; }
.edlp-forma__num { font-family: var(--edlp-font-mono); font-weight: 700; min-width: 26px; text-align: right; opacity: .75; }
.edlp-forma__nom { text-transform: uppercase; font-weight: 700; }

/* --- Agenda Deportiva (page-agenda) --- */
.edlp-agenda-pg { padding-bottom: 48px; }
.edlp-agenda-pg__head { padding: 40px 0 8px; }
.edlp-agenda-pg__kicker { display: block; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1; color: var(--edlp-red); }
.edlp-agenda-pg__title { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.2rem, 7vw, 4rem); line-height: .95; margin: 0; }
.edlp-agenda-pg__list { border-top: 1px solid rgba(0,0,0,.12); }
.edlp-agenda-pg__row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 20px; align-items: center; padding: 18px 8px; border-bottom: 1px solid rgba(0,0,0,.1); }
.edlp-agenda-pg__row:nth-child(odd) { background: rgba(0,0,0,.03); }
.edlp-agenda-pg__when { display: flex; flex-direction: column; }
.edlp-agenda-pg__date { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; color: var(--edlp-red); font-size: 1.05rem; line-height: 1.1; }
.edlp-agenda-pg__time { font-family: var(--edlp-font-mono); font-size: .82rem; opacity: .75; }
.edlp-agenda-pg__what { font-weight: 700; text-transform: uppercase; font-size: .98rem; }
.edlp-agenda-pg__meta { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.edlp-agenda-pg__meta strong { text-transform: uppercase; font-size: .72rem; letter-spacing: .03em; opacity: .6; margin-right: 4px; }
.edlp-agenda-pg__empty { padding: 30px 0; opacity: .7; }
.edlp-agenda-pg__body { margin-top: 24px; }
@media (max-width: 640px) {
	.edlp-agenda-pg__row { grid-template-columns: 92px 1fr; }
	.edlp-agenda-pg__meta { grid-column: 1 / -1; flex-direction: row; gap: 18px; flex-wrap: wrap; padding-left: 112px; }
}

/* Bloque "Sponsors por categoría" dentro de una página: fondo propio para el blanqueo */
.edlp-sponsors--bloque { background: var(--edlp-red); border-radius: var(--edlp-radius, 10px); margin: 28px 0; padding: 30px 0 34px; }
/* Placeholder del bloque en el editor */
.edlp-block-sponsors-ph { border: 1px dashed rgba(0,0,0,.25); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; background: rgba(0,0,0,.02); }
.edlp-block-sponsors-ph strong { text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
.edlp-block-sponsors-ph span { opacity: .7; font-size: .9rem; }

/* --- Modal de Agenda (dialog nativo) --- */
.edlp-agenda { cursor: pointer; border: 0; text-align: left; font: inherit; width: 100%; }
.edlp-agenda-modal { border: 0; padding: 0; max-width: min(760px, 92vw); width: 100%; background: transparent; }
.edlp-agenda-modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.edlp-agenda-modal:not([open]) { display: none; }
.edlp-agenda-modal__box { background: var(--edlp-bone, #efece6); color: var(--edlp-ink, #16130f); border-radius: var(--edlp-radius, 10px); overflow: hidden; max-height: 86vh; display: flex; flex-direction: column; }
.edlp-agenda-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid rgba(0,0,0,.1); }
.edlp-agenda-modal__title { margin: 0; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.3rem, 3.5vw, 1.9rem); line-height: 1; }
.edlp-agenda-modal__title span { color: var(--edlp-red); }
.edlp-agenda-modal__close { border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.edlp-agenda-modal__body { overflow-y: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; padding: 8px 22px 22px; }
html.edlp-modal-open { overflow: hidden; }

/* --- Archivo de categoría: título EDELP + grilla de tarjetas --- */
.edlp-cat { padding-bottom: 54px; }
.edlp-cat__head { padding: 44px 0 22px; }
.edlp-cat__title { font-family: var(--edlp-font-score); text-transform: uppercase; line-height: .95; letter-spacing: 0; font-size: clamp(2.6rem, 8vw, 5.5rem); margin: 0; color: var(--edlp-ink); }
.edlp-cat__desc { margin-top: 10px; max-width: 70ch; opacity: .8; }
.edlp-cat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px; }
/* En grilla las tarjetas ocupan la columna (en el carrusel van a 300px fijos) */
.edlp-cat__grid .edlp-ncard { flex: none; width: auto; max-width: none; }
.edlp-cat__grid .edlp-ncard__title { min-height: 0; }
.edlp-cat__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; }
.edlp-cat__nav-newer { margin-right: auto; }
.edlp-cat__nav-older { margin-left: auto; }
.edlp-cat__nav a { display: inline-block; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; padding: 12px 22px; background: var(--edlp-red); color: #fff; clip-path: polygon(var(--edlp-cut) 0, 100% 0, 100% calc(100% - var(--edlp-cut)), calc(100% - var(--edlp-cut)) 100%, 0 100%, 0 var(--edlp-cut)); transition: background var(--edlp-dur) var(--edlp-ease); }
.edlp-cat__nav a:hover { background: var(--edlp-red-dark); color: #fff; }
.edlp-cat__empty { padding: 40px 0; opacity: .7; }


/* --- Plantel: extras de la ficha (cargo y lesionado) --- */
.edlp-plantel__nombre-pila { font-weight: 400; opacity: .85; }
.edlp-plantel__cargo { display: block; font-family: var(--edlp-font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; opacity: .7; margin-top: 2px; }
.edlp-plantel__card.is-lesionado { position: relative; }
.edlp-plantel__card.is-lesionado .edlp-plantel__img { filter: grayscale(1); opacity: .75; }
.edlp-plantel__card.is-lesionado::after { content: "Lesionado"; position: absolute; top: 8px; right: 8px; background: var(--edlp-red); color: #fff; font-family: var(--edlp-font-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; }

/* ============================================================
   AJUSTES FINALES (van al final para ganar por orden de cascada)
   ============================================================ */

/* Submenú del header: negro translúcido con desenfoque, igual que la barra */
.edlp-nav__list li > .sub-menu,
.edlp-header .edlp-nav__list .sub-menu {
	background: rgba(0, 0, 0, 0.72) !important;
	border: 1px solid rgba(255, 255, 255, .12);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
	min-width: 220px;
}
.edlp-nav__list .sub-menu a,
.edlp-header.is-scrolled .edlp-nav__list .sub-menu a,
.edlp-has-hero .edlp-header .edlp-nav__list .sub-menu a { color: #fff !important; }
.edlp-nav__list .sub-menu a:hover { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }

/* Comisión Directiva: el max-width de .edlp-content rompía la grilla de columnas */
.edlp-comision .edlp-content,
.edlp-comision__persona-name,
.edlp-comision__lista { max-width: none !important; }
.edlp-comision__row-wrap { display: grid !important; grid-template-columns: minmax(220px, 320px) 1fr !important; gap: 24px 40px; align-items: start; }
.edlp-comision__row-label { min-width: 0; overflow-wrap: break-word; }
.edlp-comision__personas { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 40px; min-width: 0; }
.edlp-comision__persona { min-width: 0; }
@media (max-width: 860px) {
	.edlp-comision__row-wrap { grid-template-columns: 1fr !important; gap: 14px; }
}

/* ============================================================
   PATRÓN UNIVERSAL DE PÁGINAS (page.php)
   Hero a pantalla con título EDELP centrado + contenido centrado.
   ============================================================ */
.edlp-pagehero {
	position: relative;
	min-height: clamp(320px, 62vh, 620px);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.edlp-pagehero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edlp-pagehero__mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.45) 100%); }
.edlp-pagehero__in { position: relative; width: 100%; padding: 0 24px; text-align: center; }
.edlp-pagehero__title {
	font-family: var(--edlp-font-score); /* fuente institucional EDELP */
	text-transform: uppercase;
	color: #fff;
	font-size: clamp(2.4rem, 9vw, 7rem);
	line-height: .92;
	letter-spacing: 0;
	margin: 0;
	text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
/* Sin imagen: el título va oscuro sobre el fondo del sitio */
.edlp-pagehero--plain { min-height: 0; padding: 54px 0 10px; }
.edlp-pagehero__title--dark { color: var(--edlp-ink); text-shadow: none; }

/* Cuerpo de la página: centrado y con ancho de lectura */
.edlp-page__body { padding: 44px 0 56px; }
.edlp-page__content { max-width: 820px; margin: 0 auto; text-align: center; }
.edlp-page__content ul, .edlp-page__content ol { display: inline-block; text-align: left; }
.edlp-page__content .wp-block-image, .edlp-page__content figure { text-align: center; }

/* Índice de páginas hijas (Secretarías, Socios…) */
.edlp-page__hijas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 36px; }
.edlp-page__hija { display: block; padding: 15px 18px; background: rgba(0,0,0,.04); border-left: 4px solid var(--edlp-red); color: var(--edlp-ink); font-weight: 700; text-transform: uppercase; font-size: .84rem; letter-spacing: .02em; transition: background var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease); }
.edlp-page__hija:hover { background: rgba(0,0,0,.08); color: var(--edlp-red); }

@media (max-width: 640px) {
	.edlp-pagehero { min-height: clamp(220px, 44vh, 380px); }
	.edlp-page__content { text-align: left; }
	.edlp-page__content ul, .edlp-page__content ol { display: block; }
}

/* Refuerzo del hero universal (al final, gana la cascada) */
.edlp-page .edlp-pagehero { position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important; min-height: clamp(320px, 62vh, 620px); overflow: hidden; }
.edlp-page .edlp-pagehero__img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
.edlp-page .edlp-pagehero__in { position: relative !important; z-index: 2; width: 100%; text-align: center !important; padding: 0 24px; }
.edlp-page .edlp-pagehero__title { font-family: var(--edlp-font-score) !important; text-transform: uppercase; color: #fff; font-size: clamp(2.4rem, 9vw, 7rem) !important; line-height: .92; margin: 0 !important; text-align: center !important; }
.edlp-page .edlp-pagehero--plain { min-height: 0 !important; display: block !important; padding: 54px 0 10px; }
.edlp-page .edlp-pagehero__title--dark { color: var(--edlp-ink); text-shadow: none; }

/* Título de la banda de Comisión Directiva: un poco de aire entre letras */
.edlp-comision__banda-title { letter-spacing: .06em !important; line-height: 1.25; }
.edlp-comision__banda { padding: 26px 0 !important; }

/* Protección global: ninguna cabecera de plantilla debe quedar bajo el header fijo.
   (Sólo aplica cuando el header NO es transparente, es decir sin hero de imagen.) */
body:not(.edlp-has-hero) .edlp-comision__banda,
body:not(.edlp-has-hero) .edlp-deporte__hero,
body:not(.edlp-has-hero) .edlp-cat__head,
body:not(.edlp-has-hero) .edlp-planteles__grupo:first-of-type { margin-top: 0; }

/* Datos del Deporte: acordeón nativo <details> (Horarios / Profesores / Aranceles) */
.edlp-datos { max-width: 820px; margin: 34px auto 0; text-align: left; }
.edlp-datos__item { border: 1px solid rgba(0,0,0,.12); border-radius: 8px; margin-bottom: 10px; background: rgba(0,0,0,.02); overflow: hidden; }
.edlp-datos__sum { cursor: pointer; list-style: none; padding: 15px 20px; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: .88rem; letter-spacing: .03em; display: flex; align-items: center; justify-content: space-between; transition: background var(--edlp-dur) var(--edlp-ease); }
.edlp-datos__sum::-webkit-details-marker { display: none; }
.edlp-datos__sum::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--edlp-red); font-weight: 400; }
.edlp-datos__item[open] .edlp-datos__sum::after { content: "−"; }
.edlp-datos__sum:hover { background: rgba(0,0,0,.05); }
.edlp-datos__item[open] .edlp-datos__sum { background: rgba(0,0,0,.05); border-bottom: 1px solid rgba(0,0,0,.1); }
.edlp-datos__body { padding: 16px 20px 20px; max-width: none; }
.edlp-datos__body p:last-child { margin-bottom: 0; }

/* ============================================================
   BLOQUES EDLP (biblioteca para Gutenberg)
   ============================================================ */

/* Título EDELP */
.edlp-blk-titulo { font-family: var(--edlp-font-score); text-transform: uppercase; line-height: .95; letter-spacing: 0; margin: 0 0 18px; }
.edlp-blk-titulo--chico   { font-size: clamp(1.2rem, 3vw, 1.8rem); }
.edlp-blk-titulo--medio   { font-size: clamp(1.7rem, 4.5vw, 2.8rem); }
.edlp-blk-titulo--grande  { font-size: clamp(2.2rem, 6vw, 4rem); }
.edlp-blk-titulo--gigante { font-size: clamp(2.8rem, 9vw, 6.5rem); }
.edlp-blk-titulo--tinta { color: var(--edlp-ink); }
.edlp-blk-titulo--rojo  { color: var(--edlp-red); }
.edlp-blk-titulo--claro { color: var(--edlp-bone); }

/* Botón EDLP */
.edlp-blk-boton-wrap { margin: 18px 0; }
.edlp-blk-boton { display: inline-block; cursor: pointer; border: 0; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; padding: 13px 26px; clip-path: polygon(var(--edlp-cut) 0, 100% 0, 100% calc(100% - var(--edlp-cut)), calc(100% - var(--edlp-cut)) 100%, 0 100%, 0 var(--edlp-cut)); transition: background var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease); }
.edlp-blk-boton--rojo { background: var(--edlp-red); color: #fff; }
.edlp-blk-boton--rojo:hover { background: var(--edlp-red-dark); color: #fff; }
.edlp-blk-boton--oscuro { background: var(--edlp-ink); color: #fff; }
.edlp-blk-boton--oscuro:hover { background: #000; color: #fff; }
.edlp-blk-boton--linea { background: transparent; color: var(--edlp-ink); box-shadow: inset 0 0 0 2px currentColor; }
.edlp-blk-boton--linea:hover { background: var(--edlp-ink); color: #fff; }

/* Tarjeta con corte diagonal */
.edlp-blk-card { background: var(--edlp-ink); color: var(--edlp-bone); overflow: hidden; margin: 20px 0; }
.edlp-blk-card__media { line-height: 0; }
.edlp-blk-card__img { width: 100%; height: auto; object-fit: cover; }
.edlp-blk-card__body { padding: 20px 22px 24px; text-align: left; }
.edlp-blk-card__tag { display: inline-block; background: var(--edlp-red); color: #fff; font-family: var(--edlp-font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; margin-bottom: 10px; }
.edlp-blk-card__title { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1.15rem; line-height: 1.15; margin: 0 0 8px; color: var(--edlp-bone); }
.edlp-blk-card__text { font-size: .92rem; opacity: .88; max-width: none; }
.edlp-blk-card__text p:last-child { margin-bottom: 0; }
.edlp-blk-card__cta { margin-top: 16px; }

/* Galería con corte diagonal */
.edlp-blk-gal { display: grid; grid-template-columns: repeat(var(--edlp-gal-cols, 3), 1fr); gap: 14px; margin: 24px 0; }
.edlp-blk-gal__item { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; overflow: hidden; }
.edlp-blk-gal__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--edlp-dur) var(--edlp-ease); }
.edlp-blk-gal__item:hover .edlp-blk-gal__img { transform: scale(1.04); }
@media (max-width: 700px) { .edlp-blk-gal { grid-template-columns: repeat(2, 1fr); } }

/* Modal de botón y lightbox de galería */
.edlp-blk-modal, .edlp-lightbox { border: 0; padding: 0; background: transparent; max-width: min(760px, 92vw); width: 100%; }
.edlp-blk-modal::backdrop, .edlp-lightbox::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(3px); }
.edlp-blk-modal:not([open]), .edlp-lightbox:not([open]) { display: none; }
.edlp-blk-modal__box { background: var(--edlp-bone); color: var(--edlp-ink); border-radius: var(--edlp-radius, 10px); overflow: hidden; max-height: 86vh; display: flex; flex-direction: column; }
.edlp-blk-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid rgba(0,0,0,.1); }
.edlp-blk-modal__title { margin: 0; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1.1rem; }
.edlp-blk-modal__close, .edlp-lightbox__close { border: 0; background: transparent; font-size: 1.9rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.edlp-blk-modal__body { overflow-y: auto; padding: 18px 22px 22px; }
.edlp-lightbox { max-width: min(1100px, 94vw); }
.edlp-lightbox__img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; display: block; }
.edlp-lightbox__close { position: absolute; top: 8px; right: 14px; color: #fff; font-size: 2.4rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); }


/* Descarga */
.edlp-blk-descarga { display: flex; align-items: center; gap: 14px; padding: 15px 20px; background: rgba(0,0,0,.04); border-left: 4px solid var(--edlp-red); margin: 14px 0; color: var(--edlp-ink); transition: background var(--edlp-dur) var(--edlp-ease); text-align: left; }
.edlp-blk-descarga:hover { background: rgba(0,0,0,.08); color: var(--edlp-ink); }
.edlp-blk-descarga__ico { font-size: 1.5rem; color: var(--edlp-red); line-height: 1; }
.edlp-blk-descarga__txt { display: flex; flex-direction: column; }
.edlp-blk-descarga__txt strong { font-weight: 800; text-transform: uppercase; font-size: .88rem; letter-spacing: .02em; }
.edlp-blk-descarga__txt small { opacity: .65; font-family: var(--edlp-font-mono); font-size: .72rem; }

/* Datos destacados */
.edlp-blk-datos { display: grid; grid-template-columns: repeat(var(--edlp-datos-cols, 3), 1fr); gap: 18px; margin: 28px 0; }
.edlp-blk-datos__item { text-align: center; padding: 20px 12px; background: rgba(0,0,0,.04); }
.edlp-blk-datos__cifra { display: block; font-family: var(--edlp-font-score); font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1; color: var(--edlp-red); }
.edlp-blk-datos__rotulo { display: block; margin-top: 8px; text-transform: uppercase; font-size: .74rem; letter-spacing: .06em; opacity: .75; font-weight: 700; }
@media (max-width: 640px) { .edlp-blk-datos { grid-template-columns: repeat(2, 1fr); } }

/* Cartelito de los bloques en el editor */
.edlp-block-ph { border: 1px dashed rgba(0,0,0,.25); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; background: rgba(0,0,0,.02); }
.edlp-block-ph strong { text-transform: uppercase; font-size: .76rem; letter-spacing: .05em; }
.edlp-block-ph span { opacity: .7; font-size: .88rem; }

/* ============================================================
   AJUSTES v40
   ============================================================ */

/* Barra de admin: en ≤782px WP la vuelve absoluta (se va al scrollear), así que el
   header fijo no debe seguir descontando su alto o queda un hueco arriba. */
@media (max-width: 782px) {
	.admin-bar .edlp-header.is-scrolled { top: 0; }
	.admin-bar.edlp-has-hero .edlp-header.is-scrolled { top: 0; }
}

/* Galería: crédito del fotógrafo abajo a la derecha de cada foto */
.edlp-blk-gal__fig { margin: 0; position: relative; }
.edlp-blk-gal__item { position: relative; width: 100%; }
.edlp-blk-gal__credito {
	position: absolute; right: 8px; bottom: 8px; z-index: 2;
	background: rgba(0,0,0,.6); color: #fff;
	font-family: var(--edlp-font-mono); font-size: .62rem; letter-spacing: .04em;
	padding: 3px 8px; border-radius: 3px; line-height: 1.4;
	max-width: calc(100% - 16px); text-align: right;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	pointer-events: none;
}

/* Galería en modo carrusel: flechas laterales y desplazamiento horizontal */
.edlp-blk-gal-car { position: relative; margin: 24px 0; }
.edlp-blk-gal--carrusel {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--edlp-gal-cols, 3) - 1) * 14px) / var(--edlp-gal-cols, 3));
	gap: 14px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
	padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none;
}
.edlp-blk-gal--carrusel::-webkit-scrollbar { display: none; }
.edlp-blk-gal--carrusel .edlp-blk-gal__fig { scroll-snap-align: start; }
.edlp-blk-gal-car .edlp-carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.edlp-blk-gal-car .edlp-carousel__arrow--prev { left: -6px; }
.edlp-blk-gal-car .edlp-carousel__arrow--next { right: -6px; }
@media (max-width: 700px) {
	.edlp-blk-gal--carrusel { grid-auto-columns: 78%; }
}


/* ============================================================
   AJUSTES v44
   ============================================================ */

/* Galería: normalizar el alto de todas las celdas. La proporción se fija en el
   contenedor (no en la imagen) para que una foto vertical no estire su fila. */
.edlp-blk-gal { grid-auto-rows: 1fr; align-items: stretch; }
.edlp-blk-gal__fig { margin: 0; position: relative; height: 100%; }
.edlp-blk-gal__item { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; background: rgba(0,0,0,.05); }
.edlp-blk-gal__img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; object-position: center; display: block; }
.edlp-blk-gal--carrusel .edlp-blk-gal__item { aspect-ratio: 4 / 3; }

/* Pie: en la home las redes también van sobre los datos de las sedes */
.edlp-footer .edlp-footer__social,
.edlp-footer__brandzone + .edlp-footer__social { display: flex; }

/* Institucionales: etiqueta de categoría en las tarjetas junto a la agenda */
.edlp-inst__cat { display: inline-block; margin: 10px 0 6px; }
/* Resto de noticias en carrusel, debajo de las institucionales y la agenda */
.edlp-inst__mas { margin-top: 26px; }
.edlp-inst__mas .edlp-carousel { position: relative; }

/* Video de apertura (cortina de precarga) */
.edlp-intro { position: fixed; inset: 0; z-index: 9999; background: #000; display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity .55s ease; }
.edlp-intro.is-cerrando { opacity: 0; pointer-events: none; }
.edlp-intro__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.edlp-intro__skip { position: absolute; right: 22px; bottom: 22px; z-index: 2; border: 0; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; padding: 10px 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background var(--edlp-dur) var(--edlp-ease); }
.edlp-intro__skip:hover { background: var(--edlp-red); color: #fff; }
html.edlp-intro-abierta { overflow: hidden; }
@media (max-width: 640px) { .edlp-intro__skip { right: 14px; bottom: 14px; } }

/* La fuente EDELP ya trae el espaciado correcto en sus métricas: el CSS no suma más. */
.edlp-pagehero__title, .edlp-page .edlp-pagehero__title, .edlp-blk-titulo, .edlp-cat__title { letter-spacing: 0 !important; }

/* ============================================================
   AJUSTES v47 — devolución de Comunicación
   ============================================================ */

/* Entradas: título más grande y centrado */
.edlp-single__title { text-align: center; font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1.06; max-width: 20ch; margin-left: auto; margin-right: auto; }
.edlp-single__cat, .edlp-single__meta { text-align: center; }
.edlp-single__hero-overlay .edlp-wrap { text-align: center; }
.edlp-single__plain .edlp-wrap { text-align: center; }

/* Bajada de la entrada (Extracto) */
.edlp-single__bajada { max-width: 780px; margin: 0 auto 26px; font-size: clamp(1.02rem, 2.1vw, 1.22rem); line-height: 1.55; font-weight: 500; opacity: .9; text-align: left; }

/* Imagen destacada dentro de la nota: completa, ampliable y descargable */
.edlp-single__figura { margin: 0 auto 28px; max-width: 900px; }
.edlp-single__figura-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.edlp-single__figura-img { width: 100%; height: auto; display: block; }
.edlp-single__figura-pie { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; margin-top: 8px; font-family: var(--edlp-font-mono); font-size: .72rem; opacity: .75; }
.edlp-single__descarga { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--edlp-red); }
.edlp-single__descarga:hover { color: var(--edlp-red-dark); }

/* Volanta de la destacada del home: enlace a la categoría */
a.edlp-featured__kicker { display: inline-block; text-decoration: none; }
a.edlp-featured__kicker:hover { color: var(--edlp-red-dark); }

/* Filtros de categoría en el listado de noticias */
.edlp-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.edlp-filtros__item { display: inline-block; padding: 8px 16px; background: rgba(0,0,0,.05); color: var(--edlp-ink); font-family: var(--edlp-font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .74rem; transition: background var(--edlp-dur) var(--edlp-ease), color var(--edlp-dur) var(--edlp-ease); }
.edlp-filtros__item:hover { background: rgba(0,0,0,.1); color: var(--edlp-red); }
.edlp-filtros__item.is-activo { background: var(--edlp-red); color: #fff; }

/* ============================================================
   AJUSTES v48 — carrusel de destacadas y modo duelo
   ============================================================ */

/* Carrusel de noticias destacadas: flechas y puntos */
.edlp-featured__slider { position: relative; }
.edlp-featured__slide { display: none; }
.edlp-featured__slide.is-activa { display: block; animation: edlpFeatIn .45s var(--edlp-ease) both; }
@keyframes edlpFeatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.edlp-featured__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(0,0,0,.45); color: #fff; font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background var(--edlp-dur) var(--edlp-ease); }
.edlp-featured__arrow:hover { background: var(--edlp-red); }
.edlp-featured__arrow--prev { left: 10px; }
.edlp-featured__arrow--next { right: 10px; }
.edlp-featured__dots { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }
.edlp-featured__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(0,0,0,.22); transition: background var(--edlp-dur) var(--edlp-ease), transform var(--edlp-dur) var(--edlp-ease); }
.edlp-featured__dot:hover { background: rgba(0,0,0,.4); }
.edlp-featured__dot.is-activa { background: var(--edlp-red); transform: scale(1.25); }
@media (max-width: 640px) {
	.edlp-featured__arrow { width: 36px; height: 36px; }
	.edlp-featured__arrow--prev { left: 4px; }
	.edlp-featured__arrow--next { right: 4px; }
}

/* Modo duelo: todo el sitio en escala de grises + banda con el mensaje */
/* El filtro va en <html>: aplicado a body dejaba afuera lo fijo y los fondos propios,
   que reaparecían en rojo al scrollear. Además se neutralizan las variables de color
   para que nada quede rojo aunque el filtro tarde en pintarse. */
html.edlp-duelo { filter: grayscale(1); -webkit-filter: grayscale(1); }
html.edlp-duelo body {
	--edlp-red: #4a4a4a;
	--edlp-red-dark: #333;
}
.edlp-duelo-banda { background: #111; color: #e9e9e9; text-align: center; padding: 11px 0; font-family: var(--edlp-font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.edlp-duelo-banda a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.edlp-duelo-banda a:hover { color: #fff; opacity: .8; }

/* Banda de duelo: va FIJA arriba de todo y el header se apoya justo debajo, así los
   dos viajan juntos al scrollear y no queda un hueco entre ellos. */
.edlp-duelo-banda { position: fixed; top: 0; left: 0; right: 0; z-index: 210; }
.admin-bar .edlp-duelo-banda { top: 32px; }
@media (max-width: 782px) { .admin-bar .edlp-duelo-banda { top: 46px; } }

/* El header (sticky o fijo) arranca debajo de la banda */
html.edlp-con-banda .edlp-header { top: var(--edlp-banda-h, 44px); }
html.edlp-con-banda .admin-bar .edlp-header { top: calc(var(--edlp-banda-h, 44px) + 32px); }
@media (max-width: 782px) {
	html.edlp-con-banda .admin-bar .edlp-header { top: var(--edlp-banda-h, 44px); }
}
/* El contenido baja para no quedar tapado por la banda fija */
html.edlp-con-banda body { padding-top: var(--edlp-banda-h, 44px); }
html.edlp-con-banda .edlp-has-hero .edlp-main { margin-top: 0; }
/* En pantallas chicas el mensaje puede ocupar dos líneas */
@media (max-width: 900px) { :root { --edlp-banda-h: 58px; } }

/* Carrusel de destacadas: todas las slides con el MISMO formato, sin importar el
   largo del texto ni la proporción de la imagen. */
.edlp-featured__slider { --edlp-feat-h: 380px; }
.edlp-featured__card { height: var(--edlp-feat-h); align-items: stretch; }
.edlp-featured__media { min-height: 0; height: 100%; }
.edlp-featured__img { min-height: 0; height: 100%; width: 100%; object-fit: cover; }
.edlp-featured__body { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
/* El extracto se recorta a 4 líneas para que no estire la tarjeta */
.edlp-featured__text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.edlp-featured__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) {
	.edlp-featured__slider { --edlp-feat-h: auto; }
	.edlp-featured__card { height: auto; }
	.edlp-featured__media { height: 220px; }
	.edlp-featured__img { height: 220px; }
}

/* ============================================================
   AJUSTES v51 — entrada: hero, imagen destacada y ficha
   ============================================================ */

/* Hero del título: la foto queda como textura detrás de una capa roja institucional */
.edlp-single__hero-img { filter: grayscale(.35) contrast(1.05); }
.edlp-single__hero::after { content: ""; position: absolute; inset: 0; background: var(--edlp-red); opacity: .8; z-index: 0; }
.edlp-single__hero-overlay { background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0)); z-index: 2; }

/* Cuerpo de la entrada: centrado (el max-width de .edlp-content no centraba solo) */
.edlp-single__wrap > * { margin-left: auto; margin-right: auto; }
.edlp-single__texto { max-width: 780px; margin-left: auto; margin-right: auto; }
.edlp-single__bajada { max-width: 780px; }

/* Imagen destacada del cuerpo: alto fijo, centrada, corte diagonal.
   Si la foto es vertical entra completa y el sobrante queda en gris oscuro. */
.edlp-single__figura { position: relative; max-width: 900px; margin: 0 auto 30px; background: var(--edlp-ink); height: clamp(280px, 46vh, 520px); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.edlp-single__figura-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
/* cover y centrada: con contain quedaban franjas grises a los costados cuando la
   proporción de la foto no coincidía con la de la caja */
.edlp-single__figura-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }

/* Punto con la ficha de la imagen (fotógrafo + descarga), abajo a la izquierda */
.edlp-single__ficha { position: absolute; left: 12px; bottom: 12px; z-index: 3; }
.edlp-single__ficha-punto { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.6); color: #fff; font-family: var(--edlp-font-mono); font-size: .72rem; line-height: 1; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background var(--edlp-dur) var(--edlp-ease); }
.edlp-single__ficha-punto:hover { background: var(--edlp-red); }
.edlp-single__ficha-panel { position: absolute; left: 0; bottom: calc(100% + 8px); min-width: 220px; padding: 12px 14px; background: rgba(0,0,0,.86); color: #fff; border-radius: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--edlp-dur) var(--edlp-ease), transform var(--edlp-dur) var(--edlp-ease), visibility var(--edlp-dur); display: flex; flex-direction: column; gap: 8px; }
.edlp-single__ficha:hover .edlp-single__ficha-panel,
.edlp-single__ficha:focus-within .edlp-single__ficha-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.edlp-single__ficha-foto { font-family: var(--edlp-font-mono); font-size: .7rem; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.edlp-single__ficha-panel .edlp-single__descarga { color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.edlp-single__ficha-panel .edlp-single__descarga:hover { color: var(--edlp-red); }

/* Flecha de bajada en el hero del home */
.edlp-hero__bajar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 5; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background var(--edlp-dur) var(--edlp-ease), transform var(--edlp-dur) var(--edlp-ease); animation: edlpBajar 2.2s ease-in-out infinite; }
.edlp-hero__bajar:hover { background: var(--edlp-red); }
.edlp-hero__bajar svg { width: 20px; height: 20px; }
@keyframes edlpBajar { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .edlp-hero__bajar { animation: none; } }

/* Formación táctica: campo de juego con los jugadores posicionados */
.edlp-formacion { max-width: 300px; margin: 26px auto; }
.edlp-formacion__titulo { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: .86rem; letter-spacing: .04em; text-align: center; margin: 0 0 10px; }
.edlp-formacion__campo { position: relative; width: 100%; aspect-ratio: 100 / 150; background: linear-gradient(180deg, #1f6b3a 0%, #17532c 100%); border-radius: 6px; overflow: visible; }
.edlp-formacion--basquet .edlp-formacion__campo { background: linear-gradient(180deg, #a4632c 0%, #8a5023 100%); }
.edlp-formacion--voley .edlp-formacion__campo { background: linear-gradient(180deg, #c26a35 0%, #a5522a 100%); }
.edlp-formacion--hockey .edlp-formacion__campo { background: linear-gradient(180deg, #2f6f8f 0%, #235773 100%); }
.edlp-formacion__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.edlp-formacion__jug { position: absolute; transform: translate(-50%, -50%); z-index: 2; cursor: default; }
.edlp-formacion__dorsal { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--edlp-red); color: #fff; font-family: var(--edlp-font-mono); font-weight: 700; font-size: .68rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 1.5px solid rgba(255,255,255,.85); transition: transform var(--edlp-dur) var(--edlp-ease); }
.edlp-formacion__jug:hover .edlp-formacion__dorsal,
.edlp-formacion__jug:focus .edlp-formacion__dorsal { transform: scale(1.15); }
.edlp-formacion__nombre { position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); white-space: nowrap; background: rgba(0,0,0,.88); color: #fff; font-family: var(--edlp-font-mono); font-size: .62rem; letter-spacing: .03em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; opacity: 0; visibility: hidden; transition: opacity var(--edlp-dur) var(--edlp-ease), visibility var(--edlp-dur); pointer-events: none; z-index: 3; }
.edlp-formacion__jug:hover .edlp-formacion__nombre,
.edlp-formacion__jug:focus .edlp-formacion__nombre { opacity: 1; visibility: visible; }

/* ============================================================
   AJUSTES v52 — Tarjeta EDLP ampliada
   ============================================================ */
.edlp-blk-card-wrap { margin: 20px 0; }
.edlp-blk-card-wrap > .edlp-blk-card { display: inline-flex; flex-direction: column; text-align: left; vertical-align: top; width: 100%; }
/* Alto fijo: el texto se recorta para no desbordar */
.edlp-blk-card--alto { height: var(--edlp-card-h, auto); }
.edlp-blk-card--alto .edlp-blk-card__body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.edlp-blk-card--alto .edlp-blk-card__text { flex: 1; min-height: 0; overflow: hidden; }

/* Variantes de color */
.edlp-blk-card--oscuro { background: var(--edlp-ink); color: var(--edlp-bone); }
.edlp-blk-card--oscuro .edlp-blk-card__title { color: var(--edlp-bone); }
.edlp-blk-card--claro { background: var(--edlp-bone); color: var(--edlp-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.edlp-blk-card--claro .edlp-blk-card__title { color: var(--edlp-ink); }
.edlp-blk-card--rojo { background: var(--edlp-red); color: #fff; }
.edlp-blk-card--rojo .edlp-blk-card__title { color: #fff; }
.edlp-blk-card--rojo .edlp-blk-card__tag { background: rgba(0,0,0,.35); }
.edlp-blk-card--linea { background: transparent; color: var(--edlp-ink); box-shadow: inset 0 0 0 2px var(--edlp-ink); }
.edlp-blk-card--linea .edlp-blk-card__title { color: var(--edlp-ink); }

/* Tipografía del título */
.edlp-blk-card__title--body { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.edlp-blk-card__title--score { font-family: var(--edlp-font-score); text-transform: uppercase; letter-spacing: 0; }
.edlp-blk-card__title--mono { font-family: var(--edlp-font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.edlp-blk-card__title--chico { font-size: .98rem; }
.edlp-blk-card__title--medio { font-size: 1.25rem; }
.edlp-blk-card__title--grande { font-size: 1.75rem; line-height: 1.1; }

/* El texto admite negrita, cursiva y enlaces */
.edlp-blk-card__text strong { font-weight: 800; }
.edlp-blk-card__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.edlp-blk-card--oscuro .edlp-blk-card__text a:hover,
.edlp-blk-card--rojo .edlp-blk-card__text a:hover { color: #fff; opacity: .8; }

/* Vista del bloque en el editor */
.edlp-blk-card-edit__inner { padding: 18px 20px; border-radius: 6px; background: rgba(0,0,0,.03); border: 1px dashed rgba(0,0,0,.2); }
.edlp-blk-card-edit__img { max-width: 100%; height: auto; margin-bottom: 12px; display: block; }
.edlp-blk-card-edit__modal { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.2); }
.edlp-blk-card-edit__modal strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .6; margin-bottom: 6px; }

/* ============================================================
   LÍNEA DE TIEMPO (Historia)
   Eje gris oscuro centrado entre el año y el contenido; año nivelado con el título;
   tarjeta integrada (imagen + texto sobre gris oscuro) con el corte del sitio.
   ============================================================ */
.edlp-tl { --edlp-tl-col: 120px; --edlp-tl-gap: 40px; position: relative; margin: 34px 0; }
/* el eje cae justo en el medio del espacio entre la columna del año y el contenido */
.edlp-tl::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: calc(var(--edlp-tl-col) + (var(--edlp-tl-gap) / 2)); width: 2px; background: var(--edlp-ink); opacity: .85; }
.edlp-tl__hito { position: relative; display: grid; grid-template-columns: var(--edlp-tl-col) 1fr; gap: 0 var(--edlp-tl-gap); padding-bottom: 42px; align-items: start; }
.edlp-tl__hito:last-child { padding-bottom: 0; }

/* Año: alineado a la derecha y a la misma altura que el título */
.edlp-tl__marca { position: relative; text-align: right; padding-top: 2px; }
.edlp-tl__anio { font-family: var(--edlp-font-score); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1; color: var(--edlp-red); display: inline-block; }
/* punto sobre el eje, centrado con la línea del título */
.edlp-tl__marca::after { content: ""; position: absolute; top: 8px; left: calc(100% + (var(--edlp-tl-gap) / 2) - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--edlp-red); box-shadow: 0 0 0 4px var(--edlp-paper, #e7e5dc); }

.edlp-tl__cuerpo { text-align: left; min-width: 0; }
.edlp-tl__titulo { font-family: var(--edlp-font-body); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 1.3rem); line-height: 1.15; margin: 0 0 14px; color: var(--edlp-ink); }

/* Tarjeta: imagen y texto integrados, mismo ancho */
.edlp-tl__tarjeta { max-width: 620px; background: var(--edlp-ink); color: var(--edlp-bone); overflow: hidden; }
.edlp-tl__media { line-height: 0; }
.edlp-tl__img { width: 100%; height: auto; display: block; }
.edlp-tl__texto { padding: 18px 22px 20px; max-width: none; font-size: .93rem; line-height: 1.6; }
.edlp-tl__texto p { margin: 0 0 8px; }
.edlp-tl__texto p:last-child { margin-bottom: 0; }
.edlp-tl__texto strong { font-weight: 800; color: #fff; }
.edlp-tl__texto a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 720px) {
	.edlp-tl { --edlp-tl-col: 64px; --edlp-tl-gap: 22px; }
	.edlp-tl__anio { font-size: 1.15rem; }
	.edlp-tl__marca::after { width: 10px; height: 10px; top: 5px; left: calc(100% + (var(--edlp-tl-gap) / 2) - 5px); }
	.edlp-tl__texto { padding: 14px 16px 16px; font-size: .88rem; }
}

/* Campo de texto enriquecido de la línea de tiempo, en el editor */
.edlp-tl-edit__campo { margin: 8px 0 12px; }
.edlp-tl-edit__texto { border: 1px solid #949494; border-radius: 2px; padding: 8px 10px; min-height: 70px; background: #fff; font-size: 13px; line-height: 1.5; }
.edlp-tl-edit__texto:focus { border-color: var(--wp-admin-theme-color, #3858e9); outline: none; box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #3858e9); }

/* ==========================================================================
   Club de Beneficios
   Hero rotativo (reusa las flechas/puntos de destacadas), filtro por rubro y
   grilla de tarjetas con el cartelito de descuento en la esquina.
   ========================================================================== */

/* --- Hero rotativo --- */
.edlp-benef-hero { position: relative; background: var(--edlp-ink); }
.edlp-benef-hero__slider { position: relative; }
.edlp-benef-hero__slide { display: none; position: relative; }
.edlp-benef-hero__slide.is-activa { display: block; }
.edlp-benef-hero__media { line-height: 0; position: relative; }
/* Mismo tratamiento que el hero de las entradas: la foto queda de textura debajo de
   una capa roja institucional. Va sobre la IMAGEN, no sobre el bloque del título. */
.edlp-benef-hero__img { filter: grayscale(.35) contrast(1.05); }
.edlp-benef-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--edlp-red);
	opacity: .8;
	pointer-events: none;
}
.edlp-benef-hero__img { width: 100%; height: clamp(280px, 46vw, 520px); object-fit: cover; display: block; }
.edlp-benef-hero__caja {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,0) 80%);
}
.edlp-benef-hero__inner { width: 100%; padding-bottom: 34px; color: #fff; }
.edlp-benef-hero__badge {
	display: inline-block;
	margin: 0 0 8px;
	background: var(--edlp-red);
	color: #fff;
	font-family: var(--edlp-font-mono);
	font-weight: 700;
	text-transform: uppercase;
	font-size: .82rem;
	letter-spacing: .04em;
	padding: 5px 12px;
}
.edlp-benef-hero__tit {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	font-size: clamp(1.3rem, 3.2vw, 2.1rem);
	line-height: 1.1;
	margin: 0 0 16px;
	text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.edlp-benef-hero__btn { margin: 0; }

/* --- Filtro por rubro --- */
.edlp-benef__filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.edlp-benef__filtro {
	border: 1px solid rgba(0,0,0,.22);
	background: transparent;
	color: var(--edlp-ink);
	font-family: var(--edlp-font-mono);
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 8px 15px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.edlp-benef__filtro:hover { border-color: var(--edlp-red); color: var(--edlp-red); }
.edlp-benef__filtro.is-activa { background: var(--edlp-red-dark); border-color: var(--edlp-red-dark); color: #fff; }
.edlp-benef__filtro:focus-visible { outline: 2px solid var(--edlp-red); outline-offset: 2px; }

/* --- Grilla de tarjetas --- */
.edlp-benef__seccion { padding: 8px 0 60px; }
.edlp-benef__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 22px;
}
/* el filtro esconde con [hidden]: hay que ganarle al display:flex de la tarjeta */
.edlp-benef__card[hidden] { display: none !important; }
.edlp-benef__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	padding: 26px 20px 22px;
	box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.edlp-benef__badge {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	background: var(--edlp-red);
	color: #fff;
	font-family: var(--edlp-font-mono);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1;
	padding: 13px 17px;
	text-transform: lowercase;
	box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.edlp-benef__marca {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 92px;
	width: 100%;
	margin-bottom: 14px;
}
.edlp-benef__logo { max-width: 100%; max-height: 92px; width: auto; height: auto; object-fit: contain; }
.edlp-benef__marca-txt { font-family: var(--edlp-font-display); font-size: 1.05rem; text-transform: uppercase; }
.edlp-benef__nombre {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	font-size: .98rem;
	line-height: 1.2;
	margin: 0 0 6px;
}
.edlp-benef__rubro { font-family: var(--edlp-font-mono); font-size: .72rem; text-transform: uppercase; color: rgba(0,0,0,.55); margin: 0 0 16px; }
.edlp-benef__ver { margin-top: auto; }
.edlp-benef__vacio,
.edlp-benef__sinresultados { font-family: var(--edlp-font-mono); text-align: center; padding: 40px 0; color: rgba(0,0,0,.6); }

/* --- Modal de detalle --- */
.edlp-benef-modal__head { align-items: center; }
.edlp-benef-modal__marca { display: inline-flex; align-items: center; flex: 0 0 auto; }
.edlp-benef-modal__marca .edlp-benef__logo { max-width: 92px; max-height: 56px; }
.edlp-benef-modal__tits { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.edlp-benef-modal__desc { font-family: var(--edlp-font-mono); font-size: .78rem; text-transform: uppercase; color: var(--edlp-red-dark); font-weight: 700; }
.edlp-benef-modal__texto { max-width: none; font-size: .94rem; line-height: 1.65; }
.edlp-benef-modal__texto p:last-child { margin-bottom: 0; }

.edlp-benef__contacto { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,.12); }
.edlp-benef__dato--dir { font-family: var(--edlp-font-mono); font-size: .84rem; margin: 0 0 10px; }
.edlp-benef__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.edlp-benef__links a { font-family: var(--edlp-font-mono); font-size: .82rem; color: var(--edlp-red-dark); text-decoration: underline; text-underline-offset: 3px; }
.edlp-benef__links a:hover { color: var(--edlp-red); }
.edlp-benef__redes { display: flex; gap: 12px; margin-top: 14px; }
.edlp-benef__red { color: var(--edlp-ink); display: inline-flex; transition: color .18s ease, transform .18s ease; }
.edlp-benef__red:hover { color: var(--edlp-red); transform: translateY(-2px); }
.edlp-benef__icono { width: 22px; height: 22px; display: block; }

/* Beneficio sin descuento (uso del country, prioridad de entradas, etc.): va en dorado
   para que se lea distinto del rojo del porcentaje, y sin forzar minúsculas. */
.edlp-benef__badge--especial { background: var(--edlp-gold); color: var(--edlp-ink); text-transform: none; letter-spacing: .02em; font-size: 1rem; }
.edlp-benef-hero__badge--especial { background: var(--edlp-gold); color: var(--edlp-ink); }

/* Foto del comercio: encabeza la tarjeta cuando está cargada */
.edlp-benef__media { position: relative; width: calc(100% + 40px); margin: -26px -20px 16px; line-height: 0; overflow: hidden; }
.edlp-benef__foto { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; transition: transform .35s ease; }
/* capa que atenúa la foto para que el conjunto se lea parejo; se aclara en hover */
.edlp-benef__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #211915;
	opacity: .8;
	transition: opacity .28s ease;
	pointer-events: none;
}
.edlp-benef__card:hover .edlp-benef__media::after { opacity: .2; }
.edlp-benef__card:hover .edlp-benef__foto { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
	.edlp-benef__foto { transition: none; }
	.edlp-benef__card:hover .edlp-benef__foto { transform: none; }
}

/* Imagen grande dentro del modal */
.edlp-benef-modal__media { margin: 0 0 18px; line-height: 0; }
.edlp-benef-modal__img { width: 100%; height: auto; display: block; }

@media (max-width: 720px) {
	.edlp-benef__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
	.edlp-benef__card { padding: 20px 14px 18px; }
	.edlp-benef__media { width: calc(100% + 28px); margin: -20px -14px 12px; }
	.edlp-benef__badge { font-size: 1.05rem; padding: 10px 13px; }
	.edlp-benef__marca { height: 70px; }
	.edlp-benef__logo { max-height: 70px; }
	.edlp-benef-hero__inner { padding-bottom: 22px; }
	.edlp-benef__filtros { margin: 20px 0 22px; }
}

/* --------------------------------------------------------------------------
   Estados de la caja del partido del día: próximo → en juego → finalizado.
   Se queda en el mismo lugar todo el día y solo cambia el cartel y el marcador.
   -------------------------------------------------------------------------- */
.edlp-fxbox__vivo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0 0 6px;
	font-family: var(--edlp-font-mono);
	font-size: .74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #fff;
}
.edlp-fxbox__punto {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	animation: edlp-latido 1.4s ease-in-out infinite;
}
@keyframes edlp-latido {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: .35; transform: scale(.75); }
}
@media (prefers-reduced-motion: reduce) {
	.edlp-fxbox__punto { animation: none; }
}

/* con marcador, los escudos se corren a los costados y el resultado va al medio */
.edlp-fxbox__crests--marcador { gap: 10px; }
.edlp-fxbox__score {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 125%;
	font-size: clamp(1.7rem, 5vw, 2.5rem);
	line-height: 1;
}
.edlp-fxbox__guion { opacity: .35; }
.edlp-fxbox__score { color: #fff; }

/* Aviso de partido suspendido / postergado / reprogramado */
.edlp-fxbox__aviso {
	margin: 0 0 6px;
	font-family: var(--edlp-font-mono);
	font-size: .74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--edlp-ink);
	background: var(--edlp-gold);
	padding: 5px 10px;
	display: inline-block;
}
/* Aclaración libre que carga Comunicación ("Se reprograma para el 25/8") */
.edlp-fxbox__nota {
	margin: 6px 0 0;
	font-family: var(--edlp-font-mono);
	font-size: .76rem;
	line-height: 1.4;
	opacity: .8;
}
.edlp-fixtures__next--suspendido .edlp-fxbox__score,
.edlp-fixtures__next--postergado .edlp-fxbox__score { opacity: .45; }

/* Otras incidencias en la ficha del partido */
.edlp-incidencias-lista { list-style: none; margin: 0; padding: 0; }
.edlp-incidencias-lista li {
	font-family: var(--edlp-font-mono);
	font-size: .88rem;
	line-height: 1.5;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0,0,0,.1);
}
.edlp-incidencias-lista li:last-child { border-bottom: 0; }

/* Última tarjeta del carrusel de noticias: salida a la sección con todas.
   Mantiene la medida de la ncard para que el carrusel siga alineado. */
.edlp-ncard--mas {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: var(--edlp-red);
	color: #fff;
	min-height: 280px;
	padding: 24px;
}
.edlp-ncard--mas:hover { background: var(--edlp-red-dark); color: #fff; }
.edlp-ncard--mas__txt {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	font-size: 1.15rem;
	line-height: 1.15;
	letter-spacing: .01em;
}
@media (max-width: 720px) {
	.edlp-ncard--mas { min-height: 220px; }
	.edlp-ncard--mas__txt { font-size: 1rem; }
}

/* ==========================================================================
   Sección Socios: listados, aranceles y formularios
   ========================================================================== */

/* --- Listado en columnas (agrupaciones, socios protectores) --- */
.edlp-blk-listado { margin: 24px 0; }
.edlp-blk-listado__titulo {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	font-size: 1.05rem;
	color: var(--edlp-red);
	margin: 0 0 14px;
}
.edlp-blk-listado__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: var(--edlp-list-cols, 3);
	column-gap: 28px;
}
.edlp-blk-listado__item {
	break-inside: avoid;
	font-size: .92rem;
	line-height: 1.45;
	padding: 3px 0 3px 16px;
	position: relative;
}
.edlp-blk-listado--puntos .edlp-blk-listado__item::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .72em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--edlp-red);
}
/* Variante en cajas: para padrones largos tipo socios protectores */
.edlp-blk-listado--cajas .edlp-blk-listado__lista { columns: auto; display: grid; grid-template-columns: repeat(var(--edlp-list-cols, 4), 1fr); gap: 8px; }
.edlp-blk-listado--cajas .edlp-blk-listado__item {
	padding: 10px 12px;
	background: rgba(0,0,0,.04);
	border-left: 3px solid var(--edlp-red);
	font-family: var(--edlp-font-mono);
	font-size: .76rem;
	text-transform: uppercase;
	line-height: 1.3;
}
.edlp-blk-listado--cajas .edlp-blk-listado__item::before { content: none; }

/* --- Tabla de aranceles --- */
/* Cada fila es un bloque suelto, así que la grilla y los bordes se repiten en cada una
   para que en conjunto se lean como una tabla. */
.edlp-arancel { border-bottom: 1px solid rgba(0,0,0,.09); }
.edlp-arancel__fila {
	display: grid;
	grid-template-columns: minmax(130px, 1.15fr) minmax(110px, 1fr) 128px minmax(190px, 1.7fr) 116px;
	gap: 18px;
	align-items: center;
	padding: 15px 12px;
	list-style: none;
	transition: background .16s ease;
}
.edlp-arancel__det > summary { cursor: pointer; }
.edlp-arancel__det > summary::-webkit-details-marker { display: none; }
.edlp-arancel__det > summary::marker { content: ""; }
.edlp-arancel__det:hover > summary { background: rgba(0,0,0,.028); }
.edlp-arancel__det[open] > summary { background: rgba(228,24,21,.05); }

/* Todo alineado a la izquierda salvo el precio y el botón: es lo que hace que las
   columnas se lean como columnas y no como texto suelto centrado. */
.edlp-arancel__col { font-size: .88rem; line-height: 1.35; min-width: 0; text-align: left; }
.edlp-arancel__col--cat {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 110%;
	text-transform: uppercase;
	font-size: .88rem;
	letter-spacing: .01em;
	color: var(--edlp-red);
	line-height: 1.2;
}
.edlp-arancel__col--detalle { font-size: .84rem; opacity: .72; }
.edlp-arancel__col--precio {
	font-family: var(--edlp-font-mono);
	font-weight: 700;
	font-size: .98rem;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums; /* que los números alineen entre filas */
}
.edlp-arancel__col--accion { text-align: right; }
.edlp-arancel__vacio { opacity: .3; }

/* Adicionales: información secundaria, con guión en vez de viñeta gorda */
.edlp-arancel__adic { list-style: none; margin: 0; padding: 0; font-size: .76rem; line-height: 1.4; opacity: .78; }
.edlp-arancel__adic li { position: relative; padding-left: 12px; margin: 0 0 2px; }
.edlp-arancel__adic li::before { content: "–"; position: absolute; left: 0; opacity: .5; }
.edlp-arancel__adic li:last-child { margin-bottom: 0; }

/* Botón Ver más / Ver menos */
.edlp-arancel__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid rgba(0,0,0,.18);
	font-family: var(--edlp-font-mono);
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 6px 10px;
	white-space: nowrap;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.edlp-arancel__det:hover .edlp-arancel__btn { border-color: var(--edlp-red); color: var(--edlp-red); }
.edlp-arancel__det[open] .edlp-arancel__btn { background: var(--edlp-red-dark); border-color: var(--edlp-red-dark); color: #fff; }
.edlp-arancel__btn-txt--menos { display: none; }
.edlp-arancel__det[open] .edlp-arancel__btn-txt--mas { display: none; }
.edlp-arancel__det[open] .edlp-arancel__btn-txt--menos { display: inline; }
.edlp-arancel__chevron {
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
	transition: transform .2s ease;
}
.edlp-arancel__det[open] .edlp-arancel__chevron { transform: rotate(-135deg) translate(-2px, -2px); }

/* Contenido desplegado: entra alineado con la primera columna */
.edlp-arancel__cuerpo {
	padding: 2px 12px 22px;
	font-size: .89rem;
	border-left: 3px solid var(--edlp-red);
	margin: 0 12px 6px;
	background: rgba(0,0,0,.02);
	padding-left: 16px;
	padding-top: 14px;
}
.edlp-arancel__nota { font-family: var(--edlp-font-mono); font-size: .76rem; color: var(--edlp-red-dark); margin: 0 0 10px; }
.edlp-arancel__cuerpo > *:last-child { margin-bottom: 0; }

/* Fila de títulos */
.edlp-arancel--head { border-bottom: 2px solid var(--edlp-ink); }
.edlp-arancel--head .edlp-arancel__fila { padding-top: 8px; padding-bottom: 8px; }
.edlp-arancel--head .edlp-arancel__col {
	font-family: var(--edlp-font-mono);
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--edlp-ink);
	opacity: 1;
}
.edlp-arancel--head .edlp-arancel__col--cat { color: var(--edlp-ink); font-family: var(--edlp-font-mono); font-weight: 700; font-stretch: normal; font-size: .68rem; }

/* En celular la grilla no entra: cada fila pasa a ser una ficha con etiquetas */
@media (max-width: 860px) {
	.edlp-arancel--head { display: none; }
	.edlp-arancel__fila {
		grid-template-columns: 1fr auto;
		gap: 4px 14px;
		padding: 16px 10px;
		align-items: start;
	}
	.edlp-arancel__col--cat { grid-column: 1; font-size: 1rem; }
	.edlp-arancel__col--precio { grid-column: 2; grid-row: 1; font-size: 1.02rem; }
	.edlp-arancel__col--detalle { grid-column: 1 / -1; }
	.edlp-arancel__col--adic { grid-column: 1 / -1; margin-top: 6px; }
	.edlp-arancel__col--accion { grid-column: 1 / -1; text-align: left; margin-top: 10px; }
	.edlp-arancel__cuerpo { margin: 0 10px 6px; }
	.edlp-blk-listado__lista { columns: 2; }
	.edlp-blk-listado--cajas .edlp-blk-listado__lista { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.edlp-blk-listado__lista { columns: 1; }
	.edlp-blk-listado--cajas .edlp-blk-listado__lista { grid-template-columns: 1fr; }
}

/* --- Formularios de Contact Form 7 con la ropa del sitio --- */
.wpcf7 { margin: 24px 0; }
.wpcf7 label { display: block; font-family: var(--edlp-font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid rgba(0,0,0,.2);
	padding: 11px 13px;
	font-family: inherit;
	font-size: .92rem;
	color: var(--edlp-ink);
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: 2px solid var(--edlp-red); outline-offset: 1px; border-color: transparent; }
.wpcf7 input[type="submit"] {
	background: var(--edlp-red-dark);
	color: #fff;
	border: 0;
	font-family: var(--edlp-font-mono);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: .8rem;
	padding: 13px 26px;
	cursor: pointer;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	transition: background .18s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--edlp-red); }
.wpcf7-not-valid-tip { color: var(--edlp-red); font-size: .78rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
	border: 0;
	border-left: 4px solid var(--edlp-red);
	background: rgba(0,0,0,.04);
	margin: 18px 0 0;
	padding: 12px 14px;
	font-size: .88rem;
}
/* Grilla opcional: envolviendo campos en <div class="edlp-form-fila"> quedan en columnas */
.edlp-form-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.edlp-form-paso {
	background: rgba(0,0,0,.03);
	border: 1px solid rgba(0,0,0,.08);
	padding: 20px;
	margin: 0 0 16px;
}
.edlp-form-paso__tit {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	font-size: .95rem;
	margin: 0 0 4px;
}
.edlp-form-paso__sub { font-size: .82rem; opacity: .7; margin: 0 0 16px; }


/* Acordeón EDLP en el editor: el área de contenido admite bloques (texto con formato,
   listas, tablas, imágenes), así que la marcamos para que se distinga del título. */
.edlp-blk-acc-edit__body {
	border: 1px dashed rgba(0,0,0,.2);
	padding: 12px;
	margin-top: 10px;
	background: rgba(0,0,0,.02);
}
/* Tablas dentro de un acordeón */
.edlp-datos__body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .9rem; }
.edlp-datos__body th,
.edlp-datos__body td { border: 1px solid rgba(0,0,0,.14); padding: 8px 10px; text-align: left; vertical-align: top; }
.edlp-datos__body th { background: rgba(0,0,0,.05); font-family: var(--edlp-font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.edlp-datos__body figure.wp-block-table { margin: 12px 0; overflow-x: auto; }

/* ==========================================================================
   Filiales: buscador, filtro por región y grilla
   ========================================================================== */
.edlp-filiales__seccion { padding: 8px 0 60px; }

.edlp-filiales__barra { margin: 22px 0 6px; }
.edlp-filiales__buscador { position: relative; max-width: 420px; margin-bottom: 18px; }
.edlp-filiales__input {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid rgba(0,0,0,.2);
	padding: 12px 40px 12px 14px;
	font-family: var(--edlp-font-mono);
	font-size: .86rem;
	color: var(--edlp-ink);
}
.edlp-filiales__input:focus { outline: 2px solid var(--edlp-red); outline-offset: 1px; border-color: transparent; }
.edlp-filiales__limpiar {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	font-size: 1.4rem;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	color: rgba(0,0,0,.45);
}
.edlp-filiales__limpiar:hover { color: var(--edlp-red); }

.edlp-filiales__filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.edlp-filiales__filtro {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid rgba(0,0,0,.2);
	background: transparent;
	color: var(--edlp-ink);
	font-family: var(--edlp-font-mono);
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 8px 13px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.edlp-filiales__filtro:hover { border-color: var(--edlp-red); color: var(--edlp-red); }
.edlp-filiales__filtro.is-activa { background: var(--edlp-red-dark); border-color: var(--edlp-red-dark); color: #fff; }
.edlp-filiales__filtro:focus-visible { outline: 2px solid var(--edlp-red); outline-offset: 2px; }
.edlp-filiales__cuenta {
	background: rgba(0,0,0,.09);
	border-radius: 10px;
	padding: 1px 7px;
	font-size: .68rem;
	font-weight: 700;
}
.edlp-filiales__filtro.is-activa .edlp-filiales__cuenta { background: rgba(255,255,255,.22); }

.edlp-filiales__resumen {
	font-family: var(--edlp-font-mono);
	font-size: .74rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .6;
	margin: 16px 0 10px;
	min-height: 1em;
}

.edlp-filiales__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin-top: 6px;
}
.edlp-filial[hidden] { display: none !important; }
.edlp-filial {
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 20px 18px 18px;
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
	border-top: 3px solid var(--edlp-red);
}
.edlp-filial__nombre {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 115%;
	text-transform: uppercase;
	font-size: .95rem;
	line-height: 1.2;
	margin: 0 0 4px;
}
.edlp-filial__loc { font-family: var(--edlp-font-mono); font-size: .76rem; text-transform: uppercase; color: var(--edlp-red-dark); margin: 0 0 12px; }
.edlp-filial__datos { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.edlp-filial__datos li { font-size: .8rem; }
.edlp-filial__datos span { font-family: var(--edlp-font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; opacity: .55; display: block; }
.edlp-filial__mail {
	margin-top: auto;
	font-family: var(--edlp-font-mono);
	font-size: .72rem;
	color: var(--edlp-red-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
	word-break: break-all;
	line-height: 1.4;
}
.edlp-filial__mail:hover { color: var(--edlp-red); }

.edlp-filiales__vacio,
.edlp-filiales__sinresultados {
	font-family: var(--edlp-font-mono);
	text-align: center;
	padding: 40px 0;
	color: rgba(0,0,0,.6);
}

@media (max-width: 720px) {
	.edlp-filiales__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
	.edlp-filial { padding: 16px 14px 14px; }
	.edlp-filial__mail { font-size: .66rem; }
	.edlp-filiales__filtro { font-size: .68rem; padding: 7px 10px; }
}

/* ==========================================================================
   Bloque "Noticias EDLP": carrusel por categoría
   ========================================================================== */
.edlp-blk-noticias { margin: 34px 0; }
.edlp-blk-noticias__titulo {
	font-family: var(--edlp-font-body);
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	font-size: clamp(1.1rem, 2.6vw, 1.6rem);
	margin: 0 0 16px;
}
/* las flechas quedarían fuera del ancho de lectura: se corren adentro */
.edlp-blk-noticias .edlp-carousel__arrow--prev { left: 4px; }
.edlp-blk-noticias .edlp-carousel__arrow--next { right: 4px; }

/* En celular, las noticias relacionadas dejan de apilarse: pasan a carrusel con
   arrastre, una tarjeta por pantalla. Antes quedaban tres una debajo de la otra. */
@media (max-width: 720px) {
	.edlp-noticias__grid,
	.edlp-relnews .edlp-noticias__grid {
		display: flex;
		gap: 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		padding: 6px 4px 18px;
		scrollbar-width: none;
		-ms-overflow-style: none;
		grid-template-columns: none;
	}
	.edlp-noticias__grid::-webkit-scrollbar { display: none; }
	.edlp-noticias__grid .edlp-ncard {
		flex: 0 0 82%;
		width: 82%;
		max-width: 82%;
		scroll-snap-align: center;
	}
	/* el carrusel del bloque también muestra una por vez, centrada */
	.edlp-blk-noticias .edlp-ncard {
		flex: 0 0 82%;
		width: 82%;
		max-width: 82%;
		scroll-snap-align: center;
	}
	.edlp-carousel__arrow { width: 38px; height: 38px; font-size: 1rem; }
	.edlp-blk-noticias .edlp-carousel__arrow--prev { left: 0; }
	.edlp-blk-noticias .edlp-carousel__arrow--next { right: 0; }
}
