/* Comité Ejecutivo y mapa de Secciones.
   Archivo separado: no modifica assets/css/main.css. */

.committee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5em;
}

.committee-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ampf-border);
    border-radius: 14px;
    box-shadow: var(--ampf-shadow);
}

.committee-photo {
    display: grid;
    place-items: center;
    min-height: 220px;
    background: #edf5ef;
}

.committee-photo span {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--ampf-green);
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 600;
}

.committee-photo img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.committee-content {
    padding: 1.5em;
    text-align: center;
}

.committee-role {
    display: block;
    margin-bottom: 0.45em;
    color: var(--ampf-green);
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.committee-content h3 {
    margin-bottom: 0.35em;
    color: var(--ampf-green-dark);
}

.committee-content p {
    margin-bottom: 1.25em;
}

.committee-email {
    background: var(--ampf-green) !important;
    color: #ffffff !important;
}

.committee-email:hover,
.committee-email:focus {
    background: #1c6b3d !important;
    color: #ffffff !important;
}

.state-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 2em;
    align-items: stretch;
}

.state-map-panel,
.state-detail-card {
    background: #ffffff;
    border: 1px solid var(--ampf-border);
    border-radius: 14px;
    box-shadow: var(--ampf-shadow);
}

.state-map-panel {
    padding: 1.2em;
}

#mexico-map {
    width: 100%;
    height: 520px;
}

.map-help {
    margin: 0.7em 0 0;
    text-align: center;
    font-size: 0.9em;
}

.state-detail-card {
    padding: 2em;
}

.state-detail-card h3 {
    margin-bottom: 1.25em;
    color: var(--ampf-green-dark);
    font-size: 1.8em;
}

.state-contact-row {
    padding: 1em 0;
    border-bottom: 1px solid var(--ampf-border);
}

.state-contact-row span {
    display: block;
    margin-bottom: 0.25em;
    color: var(--ampf-green);
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.state-contact-row strong,
.state-contact-row a {
    color: var(--ampf-dark);
}

.state-contact-button {
    width: 100%;
    margin-top: 1.5em;
    background: var(--ampf-green) !important;
    color: #ffffff !important;
    text-align: center;
}

.state-contact-button:hover,
.state-contact-button:focus {
    background: #1c6b3d !important;
    color: #ffffff !important;
}

.state-empty-message {
    padding: 1.2em;
    background: #f5f9f6;
    border-radius: 10px;
}

.state-empty-message p {
    margin: 0;
}

.is-hidden {
    display: none !important;
}

.state-contact-button.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

@media screen and (max-width: 980px) {
    .committee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .state-map-layout {
        grid-template-columns: 1fr;
    }

    #mexico-map {
        height: 460px;
    }
}

@media screen and (max-width: 736px) {
    .committee-grid {
        grid-template-columns: 1fr;
    }

    #mexico-map {
        height: 390px;
    }

    .state-map-panel,
    .state-detail-card {
        padding: 1em;
    }
}
