/*
 * Directorio interactivo de Organismos Públicos Locales Electorales.
 * Requiere cargar previamente /css/micrositios-base.css.
 */

.oples-page {
    width: 100%;
    max-width: 1320px !important;
    min-height: 100vh;
    padding-bottom: 54px;
}

.oples-icon-fix,
.oples-icon-fix .v-icon,
.oples-page .site-hero-badge .v-icon,
.oples-page .site-metric-icon .v-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.oples-icon-fix .v-icon,
.oples-page .site-hero-badge .v-icon,
.oples-page .site-metric-icon .v-icon {
    width: 24px;
    height: 24px;
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

/* Encabezado */
.oples-hero {
    min-height: 330px;
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.18) 0 92px, transparent 93px),
        radial-gradient(circle at 76% 92%, rgba(255,255,255,.09) 0 150px, transparent 151px),
        linear-gradient(112deg, #532680 0%, #622f8d 44%, #c45c91 80%, #8f8992 100%);
}

.oples-hero::after {
    content: "";
    position: absolute;
    right: clamp(28px, 7vw, 96px);
    bottom: 38px;
    width: 190px;
    height: 104px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.oples-metrics .site-metric-card {
    min-height: 96px;
}

.oples-metrics .site-metric-value {
    white-space: nowrap;
}

.oples-selected-metric {
    max-width: 205px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Encabezado de consulta */
.oples-explorer-heading {
    align-items: flex-end;
}

.oples-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 41px;
    padding: 9px 15px;
    border: 1px solid var(--site-color-border);
    border-radius: 999px;
    color: var(--site-color-primary);
    background: #fff;
    box-shadow: 0 8px 20px rgba(82,82,90,.07);
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}

.oples-result-pill .v-icon {
    color: #8a3564 !important;
    line-height: 1 !important;
}

/* Buscador y filtros */
.oples-control-panel {
    margin-top: 22px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid transparent !important;
    border-radius: 27px !important;
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(90deg, var(--site-color-primary), var(--site-color-secondary), var(--site-color-neutral)) border-box !important;
    box-shadow: 0 13px 30px rgba(82,82,90,.09) !important;
}

.oples-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.oples-search-field {
    min-width: 0;
    margin: 0 !important;
}

.oples-reset-btn {
    min-height: 44px !important;
    border-color: var(--site-color-border) !important;
    color: var(--site-color-primary) !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.oples-region-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--site-color-border);
}

.oples-region-label {
    color: var(--site-color-neutral);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.oples-region-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.oples-region-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px !important;
    padding: 5px 11px;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
    border: 1px solid var(--site-color-border) !important;
    color: var(--site-color-neutral) !important;
    background: var(--site-color-surface-soft) !important;
    font-size: .74rem !important;
    font-weight: 850 !important;
}

.oples-region-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    margin-left: 7px;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--site-color-primary);
    background: #fff;
    font-size: .64rem;
    font-weight: 900;
}

.oples-page .v-input--is-focused fieldset,
.oples-page .v-input--is-label-active fieldset {
    border-color: var(--site-color-primary) !important;
}

.oples-page .primary--text {
    color: var(--site-color-primary) !important;
    caret-color: var(--site-color-primary) !important;
}

.oples-page .v-input__prepend-inner .v-icon,
.oples-page .v-input__append-inner .v-icon {
    color: var(--site-color-primary) !important;
}

/* Espacio de trabajo */
.oples-workspace {
    display: grid;
    grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr);
    gap: 24px;
    align-items: start;
    margin-top: 25px;
}

.oples-catalog,
.oples-profile {
    border: 1px solid var(--site-color-border);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 17px 38px rgba(82,82,90,.10);
}

.oples-catalog {
    overflow: hidden;
}

.oples-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 82px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--site-color-border);
    background:
        radial-gradient(circle at 90% 0%, rgba(196,92,145,.12), transparent 38%),
        linear-gradient(145deg, #faf7fb, #fff);
}

.oples-catalog-header span,
.oples-catalog-header strong {
    display: block;
}

.oples-catalog-header > div > span {
    color: #8a3564;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.oples-catalog-header strong {
    margin-top: 4px;
    color: var(--site-color-primary);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
}

.oples-catalog-count {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 11px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-color-primary), var(--site-color-secondary));
    box-shadow: 0 9px 20px rgba(83,38,128,.18);
    font-size: .82rem;
    font-weight: 900;
}

.oples-state-list {
    display: grid;
    gap: 10px;
    max-height: 760px;
    padding: 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(83,38,128,.32) transparent;
}

.oples-state-list::-webkit-scrollbar {
    width: 8px;
}

.oples-state-list::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(83,38,128,.30);
}

.oples-state-item {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    width: 100%;
    min-height: 92px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid var(--site-color-border);
    border-radius: 20px;
    color: inherit;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.oples-state-item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    opacity: 0;
    background: linear-gradient(180deg, var(--site-color-primary), var(--site-color-secondary));
    transition: opacity .18s ease;
}

.oples-state-item:hover,
.oples-state-item:focus-visible {
    transform: translateX(3px);
    border-color: rgba(196,92,145,.38);
    box-shadow: 0 10px 24px rgba(82,82,90,.10);
    outline: none;
}

.oples-state-item--selected {
    border-color: rgba(83,38,128,.34);
    background:
        radial-gradient(circle at 100% 0%, rgba(196,92,145,.10), transparent 40%),
        linear-gradient(145deg, #fbf8fc, #fff);
    box-shadow: 0 12px 26px rgba(83,38,128,.13);
}

.oples-state-item--selected::before {
    opacity: 1;
}

.oples-state-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 66px;
    padding: 7px;
    border: 1px solid var(--site-color-border);
    border-radius: 15px;
    background: #fff;
}

.oples-state-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.oples-state-copy {
    min-width: 0;
}

.oples-state-copy small,
.oples-state-copy strong,
.oples-state-copy span {
    display: block;
}

.oples-state-copy small {
    color: #8a3564;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.oples-state-copy strong {
    margin-top: 3px;
    color: var(--site-color-primary);
    font-size: .96rem;
    font-weight: 900;
    line-height: 1.24;
}

.oples-state-copy span {
    margin-top: 3px;
    color: var(--site-color-neutral);
    font-size: .69rem;
    font-weight: 700;
}

.oples-state-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 999px;
    color: var(--site-color-primary);
    background: var(--site-color-surface-soft);
}

.oples-state-item--selected .oples-state-arrow {
    color: #fff;
    background: linear-gradient(135deg, var(--site-color-secondary), #a64077);
    box-shadow: 0 7px 16px rgba(196,92,145,.22);
}

.oples-state-arrow .v-icon {
    color: currentColor !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.oples-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    padding: 34px 24px;
    color: var(--site-color-neutral);
    background: var(--site-color-surface-soft);
    text-align: center;
}

.oples-empty-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 13px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--site-color-neutral), #747078);
}

.oples-empty-state strong {
    color: var(--site-color-primary);
    font-size: 1rem;
    font-weight: 900;
}

.oples-empty-state p {
    margin: 5px 0 15px;
    font-size: .84rem;
    font-weight: 650;
}

/* Ficha seleccionada */
.oples-profile {
    position: sticky;
    top: 92px;
    overflow: hidden;
}

.oples-profile-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--site-color-border);
    background:
        radial-gradient(circle at 93% 0%, rgba(196,92,145,.15), transparent 35%),
        linear-gradient(135deg, #faf7fb, #fff);
}

.oples-profile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 82px;
    padding: 9px;
    border: 1px solid var(--site-color-border);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 9px 20px rgba(82,82,90,.07);
}

.oples-profile-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.oples-profile-title span {
    display: block;
    color: #8a3564;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.oples-profile-title h2 {
    margin: 4px 0 0;
    color: var(--site-color-primary);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
}

.oples-profile-title p {
    margin: 5px 0 0;
    color: var(--site-color-neutral);
    font-size: .83rem;
    font-weight: 750;
}

.oples-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid rgba(83,38,128,.12);
    border-radius: 999px;
    color: var(--site-color-primary);
    background: #fff;
    font-size: .7rem;
    font-weight: 900;
    white-space: nowrap;
}

.oples-profile-status i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #49a16c;
    box-shadow: 0 0 0 4px rgba(73,161,108,.12);
}

.oples-action-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--site-color-border);
    background: #fff;
}

.oples-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 63px;
    padding: 10px 11px;
    border: 1px solid var(--site-color-border);
    border-radius: 17px;
    color: inherit !important;
    background: linear-gradient(145deg, #fff, var(--site-color-surface-soft));
    font: inherit;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.oples-action:hover,
.oples-action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(196,92,145,.35);
    box-shadow: 0 9px 20px rgba(82,82,90,.09);
    outline: none;
}/* Contenido proveniente de mapas.js */
.oples-info-content {
    padding: clamp(20px, 3vw, 30px);
}

.oples-info-content .content-section-b,
.oples-info-content .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.oples-info-heading,
#oples-info > .col-lg-12,
#oples-info > .col-md-12,
#oples-info .row > .col-lg-12,
#oples-info .row > .col-md-12 {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    text-align: left !important;
}

.oples-info-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #8a3564;
    background: rgba(196,92,145,.10);
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}

.oples-info-heading h2,
#oples-info h1,
#oples-info h2 {
    margin: 8px 0 0 !important;
    color: var(--site-color-primary) !important;
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

.oples-info-heading p {
    margin: 6px 0 0;
    color: var(--site-color-neutral);
    font-size: .88rem;
    font-weight: 700;
}

.oples-info-grid,
#oples-info > .row,
#oples-info .row {
    display: grid !important;
    grid-template-columns: minmax(255px, .80fr) minmax(0, 1.20fr);
    gap: 20px;
    align-items: stretch;
    width: 100%;
    margin: 0 !important;
}

#oples-info > .col-lg-6,
#oples-info > .col-md-6,
#oples-info .row > .col-lg-6,
#oples-info .row > .col-md-6 {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.oples-contact-panel,
#oples-info > .col-lg-6:first-of-type,
#oples-info > .col-md-6:first-of-type,
#oples-info .row > .col-lg-6:first-of-type,
#oples-info .row > .col-md-6:first-of-type {
    padding: 21px !important;
    border: 1px solid var(--site-color-border);
    border-radius: 22px;
    background: linear-gradient(155deg, #fff, var(--site-color-surface-soft));
}

.oples-contact-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.oples-contact-item + .oples-contact-item {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid var(--site-color-border);
}

.oples-contact-icon {
    width: 41px;
    height: 41px;
    min-width: 41px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-color-primary), var(--site-color-secondary));
    box-shadow: 0 8px 17px rgba(83,38,128,.17);
}

.oples-contact-item strong,
#oples-info h3 {
    display: block;
    margin: 0 0 6px !important;
    color: var(--site-color-primary) !important;
    font-size: .78rem !important;
    font-weight: 900 !important;
    letter-spacing: .045em;
    line-height: 1.3;
    text-transform: uppercase;
}

.oples-contact-item p,
#oples-info blockquote,
#oples-info blockquote p,
#oples-info > .col-lg-6 p,
#oples-info > .col-md-6 p,
#oples-info .row > .col-lg-6 p,
#oples-info .row > .col-md-6 p {
    margin: 0 !important;
    color: var(--site-color-neutral) !important;
    font-size: .87rem !important;
    font-weight: 600;
    line-height: 1.62 !important;
    text-align: left !important;
}

#oples-info blockquote {
    margin: 0 0 16px !important;
    padding: 0 0 0 13px !important;
    border-left: 3px solid rgba(196,92,145,.48);
}

#oples-info a {
    color: var(--site-color-primary) !important;
    font-weight: 850;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.oples-map-frame,
#oples-info > .col-lg-6:last-of-type,
#oples-info > .col-md-6:last-of-type,
#oples-info .row > .col-lg-6:last-of-type,
#oples-info .row > .col-md-6:last-of-type {
    min-height: 410px;
    overflow: hidden;
    border: 1px solid var(--site-color-border);
    border-radius: 22px;
    background: var(--site-color-surface-soft);
}

.oples-map-frame iframe,
#oples-info iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 410px;
    border: 0 !important;
}

.oples-profile-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 20px 20px;
    padding: 13px 15px;
    border: 1px solid var(--site-color-border);
    border-radius: 15px;
    color: var(--site-color-neutral);
    background: var(--site-color-surface-soft);
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.5;
}

.oples-profile-note .v-icon {
    margin-top: 1px;
    color: var(--site-color-primary) !important;
    line-height: 1 !important;
}

@media (max-width: 1120px) {
    .oples-workspace {
        grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    }

    .oples-action-bar {
        grid-template-columns: 1fr;
    }

    .oples-action {
        min-height: 57px;
    }

    .oples-info-grid,
    #oples-info > .row,
    #oples-info .row {
        grid-template-columns: 1fr;
    }

    .oples-map-frame,
    #oples-info > .col-lg-6:last-of-type,
    #oples-info > .col-md-6:last-of-type,
    #oples-info .row > .col-lg-6:last-of-type,
    #oples-info .row > .col-md-6:last-of-type,
    .oples-map-frame iframe,
    #oples-info iframe {
        min-height: 340px;
    }
}

@media (max-width: 960px) {
    .oples-explorer-heading {
        align-items: flex-start;
    }

    .oples-result-pill {
        margin-top: 12px;
    }

    .oples-workspace {
        grid-template-columns: 1fr;
    }

    .oples-profile {
        position: relative;
        top: auto;
        scroll-margin-top: 88px;
    }

    .oples-state-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 520px;
    }
}

@media (max-width: 720px) {
    .oples-page {
        padding-bottom: 36px;
    }

    .oples-hero {
        min-height: 365px;
    }

    .oples-control-panel {
        padding: 18px;
        border-radius: 23px !important;
    }

    .oples-search-row,
    .oples-region-row {
        grid-template-columns: 1fr;
    }

    .oples-reset-btn {
        width: 100%;
    }

    .oples-workspace {
        gap: 18px;
    }

    .oples-catalog,
    .oples-profile {
        border-radius: 24px;
    }

    .oples-state-list {
        grid-template-columns: 1fr;
        max-height: 520px;
    }

    .oples-profile-header {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 18px;
    }

    .oples-profile-logo {
        width: 88px;
        height: 68px;
    }

    .oples-profile-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .oples-action-bar {
        padding: 13px 15px;
    }

    .oples-info-content {
        padding: 17px;
    }

    .oples-contact-panel,
    #oples-info > .col-lg-6:first-of-type,
    #oples-info > .col-md-6:first-of-type,
    #oples-info .row > .col-lg-6:first-of-type,
    #oples-info .row > .col-md-6:first-of-type {
        padding: 18px !important;
        border-radius: 19px;
    }

    .oples-map-frame,
    #oples-info > .col-lg-6:last-of-type,
    #oples-info > .col-md-6:last-of-type,
    #oples-info .row > .col-lg-6:last-of-type,
    #oples-info .row > .col-md-6:last-of-type,
    .oples-map-frame iframe,
    #oples-info iframe {
        min-height: 300px;
        border-radius: 19px;
    }

    .oples-profile-note {
        margin: 0 17px 17px;
    }
}

@media (max-width: 480px) {
    .oples-state-item {
        grid-template-columns: 62px minmax(0, 1fr) auto;
        min-height: 84px;
        border-radius: 17px;
    }

    .oples-state-logo {
        width: 62px;
        height: 58px;
    }

    .oples-profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .oples-profile-logo,
    .oples-profile-status {
        justify-self: center;
    }}


/* Navegación interactiva del explorador */
.oples-region-chip:hover,
.oples-region-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(196, 92, 145, .40) !important;
    box-shadow: 0 7px 16px rgba(82, 82, 90, .09);
    outline: none;
}

.oples-region-chip--active {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--site-color-primary), #7141a0) !important;
    box-shadow: 0 8px 18px rgba(83, 38, 128, .18);
}

.oples-profile-navigation {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--site-color-border);
    background: var(--site-color-surface-soft);
}

.oples-profile-navigation button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid var(--site-color-border);
    border-radius: 6px;
    color: var(--site-color-primary);
    background: #fff;
    font: inherit;
    font-size: .72rem;
    font-weight: 850;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.oples-profile-navigation button:hover:not(:disabled),
.oples-profile-navigation button:focus-visible:not(:disabled) {
    border-color: rgba(83, 38, 128, .34);
    color: #8a3564;
    box-shadow: 0 6px 15px rgba(82, 82, 90, .08);
    outline: none;
}

.oples-profile-navigation button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.oples-profile-navigation button .v-icon {
    color: currentColor !important;
}

.oples-profile-navigation > span {
    min-width: 0;
    text-align: center;
}

.oples-profile-navigation > span strong,
.oples-profile-navigation > span small {
    display: block;
}

.oples-profile-navigation > span strong {
    color: var(--site-color-primary);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.oples-profile-navigation > span small {
    margin-top: 3px;
    color: var(--site-color-muted);
    font-size: .65rem;
    font-weight: 700;
}

@media (max-width: 560px) {
    .oples-profile-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .oples-profile-navigation > span {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .oples-profile-navigation button {
        width: 100%;
    }
}

/* Ficha compacta: acciones, navegación y datos */
.oples-profile-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--site-color-border);
    background: #fff;
}

.oples-profile-toolbar .oples-action-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.oples-profile-toolbar .oples-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-height: 44px;
    padding: 8px 11px;
    border-radius: 6px;
    color: var(--site-color-primary) !important;
    background: var(--site-color-surface-soft);
    font-size: .72rem;
    font-weight: 850;
    white-space: nowrap;
}

.oples-profile-toolbar .oples-action--primary {
    border-color: transparent;
    color: #fff !important;
    background: var(--site-color-primary);
}

.oples-profile-toolbar .oples-action > .v-icon {
    color: currentColor !important;
    font-size: 18px !important;
}

.oples-profile-toolbar .oples-profile-navigation {
    grid-template-columns: auto minmax(56px, auto) auto;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
}

.oples-profile-toolbar .oples-profile-navigation button {
    min-height: 44px;
    padding: 7px 9px;
}

.oples-profile-toolbar .oples-profile-navigation > span small {
    white-space: nowrap;
}

.oples-info-heading,
#oples-info > .col-lg-12,
#oples-info > .col-md-12,
#oples-info .row > .col-lg-12,
#oples-info .row > .col-md-12 {
    display: none !important;
}

.oples-profile-toolbar + .oples-info-content {
    padding-top: 20px;
}

@media (max-width: 1180px) {
    .oples-profile-toolbar {
        grid-template-columns: 1fr;
    }

    .oples-profile-toolbar .oples-profile-navigation {
        padding-top: 10px;
        border-top: 1px solid var(--site-color-border);
    }
}

@media (max-width: 720px) {
    .oples-profile-toolbar {
        padding: 12px 15px;
    }

    .oples-profile-toolbar .oples-action-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .oples-profile-toolbar .oples-action {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .oples-profile-toolbar .oples-action-bar {
        grid-template-columns: 1fr;
    }
}

/* Datos institucionales normalizados desde mapas.js */
.oples-contact-value {
    min-width: 0;
    color: var(--site-color-neutral);
    font-size: .87rem;
    font-weight: 600;
    line-height: 1.62;
}

.oples-contact-value p {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: justify !important;
    text-justify: inter-word;
}

.oples-contact-value p + p {
    margin-top: 3px !important;
}

.oples-contact-value a {
    color: var(--site-color-primary) !important;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.oples-contact-icon {
    position: relative;
}

.oples-contact-icon .v-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 22px;
    height: 22px;
    margin: 0 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    transform: translate(-50%, -50%) !important;
}

.oples-contact-icon .v-icon::before {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    color: inherit !important;
    line-height: 1 !important;
}

/* Contraste final de iconos de contacto */
.oples-contact-icon .v-icon,
.oples-contact-icon .v-icon::before {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
}

/* Foco visible, áreas táctiles y reducción de movimiento. */
.oples-region-chip:focus-visible,
.oples-state-item:focus-visible,
.oples-action:focus-visible,
.oples-profile-navigation button:focus-visible:not(:disabled),
.oples-reset-btn:focus-visible {
    outline: 3px solid rgba(83, 38, 128, 0.42);
    outline-offset: 3px;
}

.oples-state-copy,
.oples-profile-title,
.oples-contact-value {
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .oples-page *,
    .oples-page *::before,
    .oples-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}