/*
Theme Name: PP Alcorcón Premium
Theme URI: https://ppalcorcon.com
Author: Antigravity
Author URI: https://google.com/deepmind
Description: Tema de WordPress altamente optimizado, responsive y totalmente personalizable para el Partido Popular de Alcorcón. Desarrollado a partir de una plantilla de diseño político estratégico con integración de Tailwind CSS y Customizer dinámico.
Version: 1.1.96
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pp-alcorcon
Tags: custom-menu, featured-images, theme-options, translation-ready, block-styles

* This theme was built by Antigravity under Gemini Advanced Agentic Coding instructions.
*/

/* --- Estilos Visuales del Tema PP Alcorcón --- */

/* Tipografía corporativa PP: Söhne (autohospedada) */
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-Extraleicht.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-ExtraleichtKursiv.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-Leicht.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-LeichtKursiv.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-Buch.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-BuchKursiv.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-Kraftig.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-KraftigKursiv.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-Dreiviertelfett.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-DreiviertelfettKursiv.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-Halbfett.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-HalbfettKursiv.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-Fett.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-FettKursiv.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-Extrafett.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Söhne';
    src: url('assets/fonts/sohne/Sohne-ExtrafettKursiv.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Söhne', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* Evita calcular y pintar secciones alejadas mientras se resuelve el primer
 * pantallazo; el tamaño intrínseco conserva la geometría del documento. */
#mociones-demo,
#noticias,
#alcorcon-nos-importa {
    content-visibility: auto;
    contain-intrinsic-size: 0 720px;
}

/* Las imágenes de las cabeceras deben conservar el ancho completo de la ventana. */
.site-main > section.relative > img.absolute,
.site-main > section.relative > div.absolute > img.absolute {
    max-width: none;
}

/* Efectos de tarjeta hover premium */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 31, 91, 0.1), 0 10px 10px -5px rgba(0, 31, 91, 0.04);
}

.pp-campaign-card {
    text-decoration: none;
}
.pp-campaign-card:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 5px;
}

/* Compensación barra de administración de WordPress */
.admin-bar header.sticky {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    .admin-bar header.sticky {
        top: 46px !important;
    }
}

/* Transición del Menú Móvil */
.mobile-menu-transition {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, visibility 0.2s ease;
}

/* El estado del menú no depende únicamente de las utilidades de Tailwind.
 * Así los enlaces siguen siendo visibles aunque la hoja purgada cambie o tarde
 * en actualizarse en una caché móvil. */
#mobile-menu {
    visibility: hidden;
    opacity: 0;
    transform: translate3d(100%, 0, 0);
    pointer-events: none;
}
#mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}
#mobile-menu > a,
#mobile-menu > button,
#mobile-menu > .pp-mobile-search {
    visibility: visible;
    opacity: 1;
}
@media (min-width: 1024px) {
    #mobile-menu {
        display: none;
    }
}

/* Noticia destacada contenida: imagen protagonista y contenido separado. */
.pp-featured-news-section {
    background: #f8fafc;
}
.pp-featured-news-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.85fr);
    overflow: hidden;
    max-width: 72rem;
    margin: 0 auto;
    border: 1px solid #dbe4ef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}
.pp-featured-news-media {
    display: block;
    min-height: 26rem;
    overflow: hidden;
    background: #dbeafe;
}
.pp-featured-news-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.pp-featured-news-media:hover img,
.pp-featured-news-media:focus-visible img {
    transform: scale(1.03);
}
.pp-featured-news-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2.25rem;
}
.pp-featured-news-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
}
.pp-featured-news-category,
.pp-featured-news-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.7rem;
    text-transform: uppercase;
}
.pp-featured-news-badge {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}
.pp-featured-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}
.pp-featured-news-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.12;
}
.pp-featured-news-title a {
    color: inherit;
    text-decoration: none;
}
.pp-featured-news-title a:hover,
.pp-featured-news-title a:focus-visible {
    color: #1d4ed8;
}
.pp-featured-news-excerpt {
    max-width: 34rem;
    margin: 1rem 0 1.5rem;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
}
.pp-featured-news-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}
.pp-featured-news-cta:hover,
.pp-featured-news-cta:focus-visible {
    color: #1e3a8a;
}
@media (max-width: 767px) {
    .pp-featured-news-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .pp-featured-news-media {
        min-height: 15rem;
        aspect-ratio: 16 / 9;
    }
    .pp-featured-news-content {
        padding: 1.35rem;
    }
    .pp-featured-news-title {
        font-size: 1.55rem;
    }
    .pp-featured-news-excerpt {
        margin-bottom: 1.15rem;
        font-size: 0.88rem;
    }
}

/* Barra lateral de información en escritorio */
.pp-news-sidebar-section + .pp-news-sidebar-section {
    border-top: 1px solid #dbe4ef;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}
.pp-news-sidebar-list {
    display: grid;
    gap: 0.9rem;
}
.pp-news-sidebar-item {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	column-gap: 0.75rem;
	align-items: start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.9rem;
}
.pp-news-sidebar-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.pp-news-sidebar-thumb {
	display: block;
	width: 84px;
	height: 60px;
	overflow: hidden;
	border-radius: 0.45rem;
	background: #e2e8f0;
}
.pp-news-sidebar-thumb img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}
.pp-news-sidebar-content {
	min-width: 0;
}

/* Formulario de newsletter: alta sencilla, consentimiento visible y baja en cada correo. */
.pp-newsletter-card {
    border-top: 4px solid #2563eb;
}
.pp-newsletter-icon {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.95rem;
    font-weight: 800;
}
.pp-newsletter-form-wrap {
    min-width: 0;
}
.pp-newsletter-form {
    display: grid;
    gap: 0.75rem;
}
.pp-newsletter-label {
    display: block;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
}
.pp-newsletter-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}
.pp-newsletter-input {
    min-width: 0;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0.75rem 0.8rem;
}
.pp-newsletter-input:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.18);
}
.pp-newsletter-submit {
    border: 0;
    border-radius: 0.55rem;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0.75rem 0.9rem;
    white-space: nowrap;
}
.pp-newsletter-submit:hover,
.pp-newsletter-submit:focus-visible {
    background: #1d4ed8;
}
.pp-newsletter-consent {
    display: grid;
    grid-template-columns: 1.05rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.5;
}
.pp-newsletter-consent input {
    width: 1rem;
    height: 1rem;
    margin: 0.12rem 0 0;
    accent-color: #2563eb;
}
.pp-newsletter-consent a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: underline;
}
.pp-newsletter-note {
    margin: 0;
    color: #94a3b8;
    font-size: 0.68rem;
    line-height: 1.45;
}
.pp-newsletter-status {
    border-left: 3px solid;
    border-radius: 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.8rem;
    padding: 0.65rem 0.75rem;
}
.pp-newsletter-status-success {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}
.pp-newsletter-status-info {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e40af;
}
.pp-newsletter-status-error {
    border-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}
.pp-newsletter-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}
.pp-footer-newsletter .pp-newsletter-label {
    color: #e2e8f0;
}
.pp-footer-newsletter .pp-newsletter-consent {
    color: #cbd5e1;
}
.pp-footer-newsletter .pp-newsletter-consent a {
    color: #93c5fd;
}
.pp-footer-newsletter .pp-newsletter-note {
    color: #94a3b8;
}
.pp-footer-newsletter .pp-newsletter-form {
    gap: 0.6rem;
}
.pp-footer-newsletter .pp-newsletter-input-row {
    grid-template-columns: 1fr;
}
.pp-footer-newsletter .pp-newsletter-submit {
    width: 100%;
    background: #2563eb;
}
.pp-footer-newsletter .pp-newsletter-submit:hover,
.pp-footer-newsletter .pp-newsletter-submit:focus-visible {
    background: #3b82f6;
}
@media screen and (max-width: 480px) {
    .pp-newsletter-input-row {
        grid-template-columns: 1fr;
    }
    .pp-newsletter-submit {
        width: 100%;
    }
}

/* Apariciones en medios: imagen amplia y datos de la publicación sin duplicados. */
.pp-media-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.pp-media-feature-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.pp-media-feature-image {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    line-height: 0;
}
.pp-media-feature-image-element {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}
.pp-media-feature-image:hover .pp-media-feature-image-element,
.pp-media-feature-image:focus-visible .pp-media-feature-image-element {
    opacity: 0.92;
}
.pp-media-feature-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.3rem 1.35rem;
}
.pp-media-feature-outlet {
    margin: 0 0 0.5rem;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}
.pp-media-feature-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}
.pp-media-feature-title a {
    color: inherit;
    text-decoration: none;
}
.pp-media-feature-title a:hover,
.pp-media-feature-title a:focus-visible {
    color: #1d4ed8;
}
.pp-media-feature-date {
    display: block;
    margin-top: 0.8rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}
@media (max-width: 767px) {
    .pp-media-feature-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
    .pp-media-feature-content {
        padding: 1rem 1.1rem 1.15rem;
    }
    .pp-media-feature-title {
        font-size: 1rem;
    }
}

/* Portfolio móvil de noticias y medios: miniatura fija a la izquierda y texto a la derecha. */
.pp-mobile-portfolio-list {
    display: grid;
    gap: 0.25rem;
}
.pp-news-portfolio-list {
    display: grid;
    gap: 0.25rem;
}
.pp-mobile-portfolio-item {
    display: block;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
}
.pp-mobile-portfolio-item:last-child {
    border-bottom: 0;
}
.pp-mobile-portfolio-card-link {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: stretch;
    padding: 0.75rem 0;
    color: inherit;
    text-decoration: none;
}
.pp-mobile-portfolio-thumb {
    display: block;
    width: 120px;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: start;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #e2e8f0;
}
.pp-mobile-portfolio-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
}
.pp-mobile-portfolio-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 67.5px;
}
.pp-mobile-portfolio-card-link:hover .pp-mobile-portfolio-title,
.pp-mobile-portfolio-card-link:focus-visible .pp-mobile-portfolio-title {
    color: #1d4ed8;
}
.pp-mobile-portfolio-title,
.pp-mobile-portfolio-summary,
.pp-mobile-portfolio-meta {
    margin: 0;
}
.pp-mobile-portfolio-title {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.pp-mobile-portfolio-title a:hover,
.pp-mobile-portfolio-title a:focus-visible {
    color: #1d4ed8;
}
.pp-mobile-portfolio-summary {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0.25rem;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.pp-mobile-portfolio-more {
    display: inline-flex;
    margin-top: 0.25rem;
    color: #1d4ed8;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
}
.pp-mobile-portfolio-meta {
    overflow: hidden;
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pp-news-portfolio-empty {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    padding: 1.5rem;
    color: #475569;
}
@media (max-width: 767px) {
    .pp-news-portfolio-list--desktop {
        display: none;
    }
}
@media (min-width: 768px) {
    .pp-mobile-portfolio-list {
        display: none;
    }
    .pp-news-portfolio-list .pp-mobile-portfolio-card-link {
        grid-template-columns: 190px minmax(0, 1fr);
        column-gap: 1rem;
    }
    .pp-news-portfolio-list .pp-mobile-portfolio-thumb {
        width: 190px;
        height: auto;
    }
    .pp-news-portfolio-list .pp-mobile-portfolio-title {
        font-size: 1.05rem;
    }
    .pp-news-portfolio-list .pp-mobile-portfolio-content {
        min-height: 106.875px;
    }
    .pp-news-portfolio-list .pp-mobile-portfolio-summary {
        font-size: 0.8125rem;
    }
    .pp-news-portfolio-list--desktop .pp-mobile-portfolio-card-link {
        grid-template-columns: 190px minmax(0, 1fr);
        column-gap: 1rem;
    }
    .pp-news-portfolio-list--desktop .pp-mobile-portfolio-thumb {
        width: 190px;
        height: auto;
    }
    .pp-news-portfolio-list--desktop .pp-mobile-portfolio-title {
        font-size: 1.05rem;
    }
    .pp-news-portfolio-list--desktop .pp-mobile-portfolio-summary {
        font-size: 0.8125rem;
    }
    .pp-news-portfolio-list--desktop .pp-mobile-portfolio-content {
        min-height: 106.875px;
    }
}

/* Efecto de Sombra de Texto para Legibilidad */
.shadow-text {
    text-shadow: 2px 2px 10px rgba(0, 15, 45, 0.6);
}

/* ── Paginación del blog ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-links .page-numbers:hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}
.nav-links .page-numbers.current {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}
.nav-links .prev,
.nav-links .next {
    padding: 0 1.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.nav-links .dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    min-width: auto;
}

/* ── Contenido del artículo (single.php) ── */
.article-body h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.article-body h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-body p {
    margin-bottom: 1.5rem;
    color: #334155;
}
.article-body a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-body a:hover {
    color: #1e40af;
}
.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #334155;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
    border-left: 4px solid #1d4ed8;
    padding: 1rem 1.5rem;
    background: #eff6ff;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 2rem 0;
    font-style: italic;
    color: #1e40af;
    font-weight: 600;
}
.article-body img {
    border-radius: 1rem;
    margin: 2rem 0;
    width: 100%;
    height: auto;
}
.article-body hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 2.5rem 0;
}

/* ── Scrollbar oculto (categorías nav) ── */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ── FAQ Accordion (single.php) ── */
.pp-faq-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.pp-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 0.625rem;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.pp-faq-item:hover {
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.08);
}
.pp-faq-item[open] {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.1);
}
.pp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.pp-faq-item summary::-webkit-details-marker {
    display: none;
}
.pp-faq-item summary:hover {
    color: #1d4ed8;
}
.pp-faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #1d4ed8;
    transition: transform 0.25s ease;
}
.pp-faq-item[open] .pp-faq-icon {
    transform: rotate(45deg);
}
.pp-faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* ── Utilidad clamp height ── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ajustes para el logotipo del menú */
.custom-logo,
.pp-menu-logo {
    height: clamp(42px, 5vw, 76px) !important;
    width: auto !important;
    max-width: min(28vw, 280px) !important;
    display: block;
    object-fit: contain;
}
.custom-logo-link {
    display: block;
}
@media screen and (max-width: 767px) {
    .custom-logo,
    .pp-menu-logo {
        height: 54px !important;
        max-width: 58vw !important;
    }
}

/* Clases de WordPress requeridas por el Codex */
.aligncenter {
    display: block;
    margin: 1.5em auto;
}
.alignleft {
    float: left;
    margin: 0.5em 1.5em 1.5em 0;
}
.alignright {
    float: right;
    margin: 0.5em 0 1.5em 1.5em;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    position: absolute;
    top: 5px;
    width: auto;
    z-index: 100000;
}





/* ── Navegación independiente de noticias y medios ── */
#ultimas-noticias-tarjetas, #apariciones-medios-tarjetas, #medios-tarjetas {
    scroll-margin-top: 6.5rem;
}

.pp-news-pagination {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.25rem;
}
.pp-news-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.8rem;
    border: 1px solid #dbe3ef;
    border-radius: 0.75rem;
    background: #fff;
    color: #1e3a8a;
    font-size: 0.875rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pp-news-page-number:hover,
.pp-news-page-number:focus-visible {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-1px);
}
.pp-news-page-number.is-current {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.22);
}
.pp-news-page-prev,
.pp-news-page-next {
    padding-left: 1rem;
    padding-right: 1rem;
    color: #475569;
}
.pp-news-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    color: #94a3b8;
    font-weight: 800;
}
@media screen and (max-width: 639px) {
    .pp-news-page-number {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.65rem;
        border-radius: 0.65rem;
    }
    .pp-news-page-prev,
    .pp-news-page-next {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}
/* Presentación editorial de las campañas importadas */
.pp-campaign-content {
    max-width: 48rem;
}
.pp-campaign-content > p:first-of-type {
    border-left: 4px solid #2563eb;
    color: #0f2f68;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-left: 1.25rem;
}
.pp-campaign-content h2,
.pp-campaign-content h3 {
    color: #0f2f68;
    line-height: 1.2;
    margin-top: 2.5rem;
}
.pp-campaign-content figure,
.pp-campaign-content .wp-block-image {
    margin: 2rem 0;
}
.pp-campaign-content img {
    border-radius: 0.75rem;
    box-shadow: 0 18px 40px rgba(15, 47, 104, 0.14);
}
.pp-campaign-content a:not(.wp-block-file__button) {
    color: #1d4ed8;
    font-weight: 700;
}

/* Los modelos de las campanas no son las descargas antiguas de las noticias. */
body.single-post .pp-campaign-content .wp-block-file {
    display: block !important;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    overflow-wrap: anywhere;
}
body.single-post .pp-campaign-content .wp-block-file__button,
body.single-post .pp-campaign-content a[download] {
    display: inline-flex !important;
    align-items: center;
    margin: 0.75rem 0 0;
    padding: 0.65rem 1rem;
    background: #1d4ed8;
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}
body.single-post .pp-campaign-content a[download]:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

/* Participa: dos bloques reales, texto compacto a la izquierda y formulario a la derecha. */
.pp-participa-hero-image {
    object-position: center 74%;
}

.pp-participa-hero-overlay {
    background: linear-gradient(135deg, rgba(8, 36, 88, 0.66), rgba(29, 78, 216, 0.54) 58%, rgba(30, 64, 175, 0.68));
    -webkit-backdrop-filter: blur(2px) saturate(1.05);
    backdrop-filter: blur(2px) saturate(1.05);
}

#contacto .pp-participa-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    grid-template-areas: "copy form";
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
#contacto .pp-participa-copy {
    grid-area: copy;
    max-width: 26rem;
}
#contacto .pp-participa-form {
    grid-area: form;
}
@media screen and (max-width: 1023px) {
    #contacto .pp-participa-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "copy" "form";
        gap: 2rem;
    }
    #contacto .pp-participa-copy {
        max-width: none;
    }
}

/* Portada: tarjetas de noticias en formato thumbnail + contenido. */
#pp-home-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 2.5rem;
}
#pp-home-news-grid .pp-home-news-card {
    display: block;
    min-width: 0;
}
#pp-home-news-grid .pp-home-news-card-link {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
#pp-home-news-grid .pp-home-news-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    align-self: start;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f1f5f9;
}
#pp-home-news-grid .pp-home-news-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#pp-home-news-grid .pp-home-news-card-content {
    min-width: 0;
    padding-top: 0;
}
#pp-home-news-grid .pp-home-news-card-link:hover .pp-home-news-title,
#pp-home-news-grid .pp-home-news-card-link:focus-visible .pp-home-news-title {
    color: #2563eb;
}
#pp-home-news-grid .pp-home-news-title {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}
#pp-home-news-grid .pp-home-news-excerpt {
    display: none;
}
@media screen and (min-width: 768px) {
    #pp-home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #pp-home-news-grid .pp-home-news-card-link {
        grid-template-columns: 190px minmax(0, 1fr);
    }
    #pp-home-news-grid .pp-home-news-excerpt {
        display: block;
    }
}
@media screen and (min-width: 1280px) {
    #pp-home-news-grid .pp-home-news-card-link {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}
/* Portada: campañas más compactas y con una rejilla estable. */
#pp-home-campaign-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 64rem;
}
#pp-home-campaign-grid .pp-home-campaign-card {
    min-width: 0;
}
#pp-home-campaign-grid .pp-home-campaign-card > a {
    aspect-ratio: 16 / 8;
}
#pp-home-campaign-grid .pp-home-campaign-card-body {
    padding: 1.25rem;
}
#pp-home-campaign-grid .pp-home-campaign-card-body h4 {
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
}
#pp-home-campaign-grid .pp-home-campaign-card-body p {
    margin-bottom: 1.1rem;
}
@media screen and (max-width: 767px) {
    #pp-home-campaign-grid {
        gap: 1rem;
    }
    #pp-home-campaign-grid .pp-home-campaign-card {
        width: 100%;
        max-width: 24rem;
        margin-inline: auto;
    }
    #pp-home-campaign-grid .pp-home-campaign-card > a {
        aspect-ratio: 12 / 5;
    }
    #pp-home-campaign-grid .pp-home-campaign-card > a span {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.625rem;
    }
    #pp-home-campaign-grid .pp-home-campaign-card-body {
        padding: 1rem;
    }
    #pp-home-campaign-grid .pp-home-campaign-card-body h4 {
        margin-bottom: 0.5rem;
        font-size: 1rem;
        line-height: 1.2;
    }
    #pp-home-campaign-grid .pp-home-campaign-card-body p {
        display: -webkit-box;
        margin-bottom: 0.85rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.8rem;
        line-height: 1.35;
    }
}
@media screen and (min-width: 768px) {
    #pp-home-campaign-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media screen and (min-width: 1280px) {
    #pp-home-campaign-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
