/*
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.0.0
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 --- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* 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);
}

/* 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);
}

/* 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 personalizado de WordPress */
.custom-logo {
    max-height: 48px !important;
    width: auto !important;
    max-width: 200px !important;
    display: block;
    object-fit: contain;
}
.custom-logo-link {
    display: block;
}

/* 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;
}
