/* ============================================================
   POLIDICOM HOME / LANDING - Estilo informativo serio
   ============================================================ */

/* Ocultar slogan del header del tema en la home */
.home .site-description,
.home .flavor-developer-developer-developer-developer-developer-developer-developer .tagline,
.home header .site-branding p,
.home .flavor-developer-developer-developer-developer-developer-developer-developer .flavor-developer-developer-developer-developer-developer-developer-developer-description {
    display: none !important;
}

.polidicom-home {
    background: #0f0f14;
    color: #e2e8f0;
    font-family: 'Segoe UI', -apple-system, sans-serif;
}

/* ============================================================
   HERO
   ============================================================ */
.ph-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(160deg, #0a0a12 0%, #1a1a3e 50%, #0d1b2a 100%);
    overflow: hidden;
}

.ph-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.ph-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.ph-hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 6px;
    margin: 0 0 8px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.ph-hero-subtitle {
    font-size: 1.2rem;
    color: #c62828;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 16px;
}

.ph-hero-desc {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

/* Search */
.ph-search {
    display: flex;
    max-width: 480px;
    margin: 0 auto 36px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.ph-search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 0.95rem;
    background: #1e293b;
    color: #fff;
    outline: none;
}

.ph-search-input::placeholder {
    color: #64748b;
}

.ph-search-btn {
    padding: 14px 24px;
    background: #c62828;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ph-search-btn:hover {
    background: #b71c1c;
}

/* Stats */
.ph-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ph-stat {
    text-align: center;
}

.ph-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.ph-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   MODULES - Accesos Rápidos
   ============================================================ */
.ph-modules {
    padding: 60px 20px;
    background: #13131a;
}

.ph-modules-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.ph-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

.ph-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.ph-module-card {
    background: #1e1e2a;
    border: 1px solid #2a2a3d;
    border-radius: 12px;
    padding: 30px 24px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ph-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.ph-module-card:hover {
    transform: translateY(-4px);
    border-color: #3a3a5d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: #fff;
}

.ph-module-card:hover::before {
    opacity: 1;
}

.ph-module-politicos::before { background: #1a237e; }
.ph-module-alcaldes::before { background: #1b5e20; }
.ph-module-personajes::before { background: #e65100; }
.ph-module-judicial::before { background: #4a148c; }

.ph-module-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.ph-module-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
}

.ph-module-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.5;
}

.ph-module-count {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   LATEST PROFILES
   ============================================================ */
.ph-latest {
    padding: 60px 20px;
    background: #0f0f14;
}

.ph-latest-alt {
    background: #13131a;
}

.ph-latest-inner,
.ph-noticias-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.ph-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ph-section-header .ph-section-title {
    text-align: left;
    margin-bottom: 0;
}

.ph-view-all {
    font-size: 0.85rem;
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ph-view-all:hover {
    color: #ef5350;
}

.ph-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ph-person-card {
    display: flex;
    gap: 16px;
    background: #1e1e2a;
    border: 1px solid #2a2a3d;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.2s;
}

.ph-person-card:hover {
    border-color: #3a3a5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff;
}

.ph-person-photo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2a3d;
}

.ph-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-person-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #64748b;
    background: #2a2a3d;
}

.ph-person-info {
    flex: 1;
    min-width: 0;
}

.ph-person-cargo {
    font-size: 0.7rem;
    color: #c62828;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ph-person-name {
    font-size: 1rem;
    font-weight: 800;
    margin: 4px 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-person-partido {
    font-size: 0.8rem;
    color: #64748b;
}

.ph-person-rating {
    font-size: 0.8rem;
    color: #f59e0b;
    margin-top: 4px;
}

.ph-person-rating span {
    color: #94a3b8;
    font-weight: 600;
    margin-left: 4px;
}

/* ============================================================
   NOTICIAS
   ============================================================ */
.ph-noticias {
    padding: 60px 20px;
    background: #0f0f14;
}

.ph-noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ph-noticia-card {
    background: #1e1e2a;
    border: 1px solid #2a2a3d;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.2s;
}

.ph-noticia-card:hover {
    border-color: #3a3a5d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #fff;
}

.ph-noticia-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ph-noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-noticia-body {
    padding: 16px 20px;
}

.ph-noticia-date {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ph-noticia-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 6px 0 8px;
    color: #fff;
    line-height: 1.4;
}

.ph-noticia-body p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   CTA - DENUNCIA COMUNAL
   ============================================================ */
.ph-cta {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
}

.ph-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ph-cta h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
}

.ph-cta p {
    font-size: 1rem;
    color: #b3c7e8;
    margin: 0 0 24px;
    line-height: 1.6;
}

.ph-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #c62828;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(198,40,40,0.3);
}

.ph-cta-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198,40,40,0.4);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .ph-hero {
        min-height: 420px;
        padding: 60px 16px 40px;
    }

    .ph-hero-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .ph-hero-subtitle {
        font-size: 0.9rem;
    }

    .ph-search {
        flex-direction: column;
        border-radius: 12px;
    }

    .ph-search-input,
    .ph-search-btn {
        border-radius: 0;
    }

    .ph-stats {
        gap: 16px;
    }

    .ph-stat-number {
        font-size: 1.5rem;
    }

    .ph-modules-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ph-module-card {
        padding: 20px 16px;
    }

    .ph-module-icon {
        font-size: 2rem;
    }

    .ph-latest-grid {
        grid-template-columns: 1fr;
    }

    .ph-noticias-grid {
        grid-template-columns: 1fr;
    }

    .ph-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ph-hero-title {
        font-size: 2rem;
    }

    .ph-modules-grid {
        grid-template-columns: 1fr;
    }

    .ph-cta h2 {
        font-size: 1.5rem;
    }
}
