:root {
    /* Azul principal y variantes */
    --blue-primary: #00aaa9;
    --blue-dark:    #008f8e;
    --blue-darker:  #007474;
    --blue-light:   #66cfcf;
    --blue-lighter:#ccf5f5;
    --blue-very-light: #e6f5f5;
}

/* Reset básico para el contenedor del partido */
.ppm-single-partido * {
    box-sizing: border-box;
}

/* Contenedor principal */
.ppm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.ppm-header {
    background-color: var(--blue-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Header con imagen de fondo */
.ppm-header[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Filtros para mejorar la imagen */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Overlay de color cuando hay imagen de fondo */
.ppm-header[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 170, 169, 0.5);
    z-index: 1;
    
    /* Filtros para mejorar nitidez sin escalar */
    filter: contrast(1.1) saturate(1.2);
}

/* Asegurar que el contenido esté por encima de la imagen */
.ppm-header-content {
    text-align: center;
    position: relative;
    z-index: 3;
    width: 100%;
}

.ppm-partido-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ppm-partido-municipio {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.ppm-hero {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--blue-very-light), #ffffff);
}

.ppm-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.ppm-hero-content h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 24px;
}

.ppm-descripcion {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 32px;
}

.ppm-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Botones */
.ppm-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ppm-btn-primary {
    background-color: var(--blue-primary);
    color: white;
}

.ppm-btn-primary:hover {
    background-color: var(--blue-dark);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ppm-btn-link {
    color: var(--blue-primary);
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid var(--blue-primary);
    padding: 6px 16px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.ppm-btn-link:hover {
    background-color: var(--blue-very-light);
}

/* Valores */
.ppm-valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ppm-valor-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.ppm-valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ppm-valor-imagen {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.ppm-valor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppm-valor-icon {
    color: var(--blue-primary);
    margin-bottom: 20px;
}

.ppm-valor-card h3 {
    color: var(--blue-dark);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.ppm-valor-card p {
    color: #4b5563;
    line-height: 1.6;
}

.ppm-propuestas .ppm-section-title {
    color: #ffffff;
}

.ppm-propuestas .ppm-section-subtitle {
    color: #ffffff;
}


/* Propuestas */
.ppm-propuestas {
    padding: 80px 0;
    background-color: var(--global-palette1);
}

.ppm-section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: #111827;
    margin-bottom: 16px;
}

.ppm-section-subtitle {
    text-align: center;
    color: #4b5563;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ppm-propuestas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.ppm-propuesta-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ppm-propuesta-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.ppm-propuesta-image {
    height: 200px;
    overflow: hidden;
}

.ppm-propuesta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppm-propuesta-content {
    padding: 24px;
}

.ppm-propuesta-content h3 {
    color: var(--blue-dark);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.ppm-propuesta-content p {
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ppm-propuesta-puntos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ppm-propuesta-puntos li {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.ppm-propuesta-puntos li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--blue-primary);
}

/* Noticias */
.ppm-noticias {
    padding: 80px 0;
    background: white;
    min-height: 400px; /* Asegurar altura mínima */
}

.ppm-noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.ppm-noticia-card {
    background: white;
    border-radius: 
8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ppm-noticia-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.ppm-noticia-image {
    height: 200px;
    overflow: hidden;
}

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

.ppm-noticia-content {
    padding: 24px;
}

.ppm-noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.ppm-noticia-categoria {
    background-color: var(--blue-lighter);
    color: var(--blue-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.ppm-noticia-fecha {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ppm-noticia-content h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: #111827;
    line-height: 1.4;
}

.ppm-noticia-content p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Contacto */
.ppm-contacto {
    padding: 80px 0;
    background: white;
}

.ppm-contacto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.ppm-contacto-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ppm-contacto-card h3 {
    color: var(--blue-dark);
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ppm-icon {
    width: 20px;
    height: 20px;
    color: var(--blue-dark);
}

.ppm-icon-small {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.ppm-contacto-info p {
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ppm-contacto-imagen {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.ppm-contacto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppm-contacto-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    margin-bottom: 12px;
}

.ppm-redes-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ppm-redes-sociales {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ppm-red-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ppm-red-icon {
    margin-right: 8px;
    vertical-align: middle;
  }
  
  .ppm-red-icon.facebook  { color: #1877f2; }
  .ppm-red-icon.twitter   { color: #1da1f2; }
  .ppm-red-icon.instagram { color: #E1306C; }
  
  
/* Equipo */
.ppm-equipo {
    padding: 80px 0;
    background-color: var(--blue-very-light);
}

.ppm-equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ppm-miembro-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ppm-miembro-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
}

.ppm-miembro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppm-miembro-card h3 {
    color: var(--blue-dark);
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.ppm-miembro-cargo {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.ppm-miembro-descripcion {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer */
.ppm-footer {
    background-color: var(--blue-primary);
    color: white;
    padding: 40px 0;
}

.ppm-footer-content {
    text-align: center;
}

.ppm-footer-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: white;
}

.ppm-footer-content p {
    color: white;
    margin-bottom: 20px;
}

.ppm-footer-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.875rem;
}

/* No hay noticias */
.ppm-no-noticias {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 40px 0;
}

.ppm-no-noticias p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 20px;
}

.ppm-help-text {
    font-weight: 600;
    color: #374151;
    margin-top: 30px !important;
}

.ppm-help-steps {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 500px;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ppm-help-steps li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #4b5563;
}

.ppm-help-steps li:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 10px;
    background: var(--blue-primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.ppm-help-steps {
    counter-reset: step-counter;
}

.ppm-help-steps a {
    color: var(--blue-primary);
    text-decoration: underline;
}

.ppm-help-steps a:hover {
    color: var(--blue-dark);
}

/* Utilidades */
.ppm-cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .ppm-header {
        min-height: 300px;
        padding: 60px 0;
    }
    
    .ppm-partido-title {
        font-size: 2.5rem;
    }
    
    .ppm-partido-municipio {
        font-size: 1.25rem;
    }
    
    .ppm-hero-grid,
    .ppm-propuestas-grid,
    .ppm-valores-grid,
    .ppm-noticias-grid,
    .ppm-contacto-grid,
    .ppm-equipo-grid {
        grid-template-columns: 1fr;
    }

    .ppm-section-title {
        font-size: 1.5rem;
    }

    .ppm-hero-content h2 {
        font-size: 1.5rem;
    }

    .ppm-footer-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* Lista de partidos (shortcode) */
.ppm-partidos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.ppm-partido-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ppm-partido-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ppm-partido-thumbnail {
    height: 200px;
    overflow: hidden;
}

.ppm-partido-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppm-partido-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
    color: #111827;
}

.ppm-municipio {
    padding: 0 20px;
    color: #6b7280;
    margin: 0;
}

.ppm-partido-card .ppm-btn {
    margin: 20px;
    display: inline-block;
    background-color: var(--blue-primary);
    color: white;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
}

.ppm-partido-card .ppm-btn:hover {
    background-color: var(--blue-dark);
}
