/* section-borme-acts — Figma node 1127:70289 */

.section-borme-acts {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: clip;
}

/* ---- Breadcrumb section — Frame 23423: SEPARATE from OfficialDataSection  ---- */
/* layout_WEMC15: column, gap 20px, padding 8px 0; bg #F9FAFB                     */
/* inner layout_3XOUNF: padding 0 80px                                             */
/* Frame 23426 gap: 40px — creates 40px between breadcrumb-section and official   */
.borme-acts-breadcrumb-section {
    background: #F9FAFB;
    padding: 8px 0 40px;
}

.borme-acts-breadcrumb-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ---- Official Data Section — Figma layout_EST74S: column, center, gap 80px, padding 80px, bg #F9FAFB ---- */
/* Contains ONLY: section header (title+subtitle) + card. NO breadcrumb inside. */
.borme-acts-official-section {
    background: #F9FAFB;
    padding: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

/* ---- Section header (title + subtitle only) — Figma layout_LA2H1R: column, center, gap 16px ---- */
.borme-acts-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1280px;
}

.borme-acts-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--skin-font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: var(--skin-text-muted);
}

.borme-acts-breadcrumb__item {
    color: var(--skin-text-muted);
    text-decoration: none;
}

.borme-acts-breadcrumb__item:hover {
    text-decoration: underline;
}

.borme-acts-breadcrumb__item--current {
    font-weight: 600;
    color: var(--skin-dark-900);
}

.borme-acts-breadcrumb__sep {
    margin: 0 8px;
    color: var(--skin-text-muted);
}

/* Title — Figma layout_P22FS8: width 1152, Manrope/H5/Bold 40px/48px, CENTER, color var(--skin-dark-900) */
.borme-acts-header__title {
    font-family: var(--skin-font-display);
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    color: var(--skin-dark-900);
    text-align: center;
    max-width: 1152px;
    margin: 0;
}

/* Subtitle — Figma Manrope/body L/Medium 20px/29px, CENTER, color var(--skin-text-muted) */
.borme-acts-header__subtitle {
    font-family: var(--skin-font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 29px;
    color: var(--skin-text-muted);
    text-align: center;
    max-width: 1152px;
    margin: 0;
}

/* ---- Main Content — max-width 1280px inner container ---- */
.borme-acts-main__inner {
    width: 100%;
    max-width: 1280px;
}

/* ---- Card — Figma layout_L1TKLH: column, center, gap 20px, padding 24px, bg #FFF, radius 16px, shadow-sm ---- */
.borme-acts-card {
    background: var(--skin-bg-surface);
    border-radius: 16px;
    box-shadow: 0px 1px 4px 1px rgba(10, 13, 18, 0.1), 0px 1px 7px 0px rgba(10, 13, 18, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Card header row — Figma layout_XM8AVG: row, gap 20px, width 1280 */
.borme-acts-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Title — Figma layout_N5VS1J: width 816, Manrope/H7/semibold 28px/34px, LEFT, color var(--skin-dark-900) */
.borme-acts-card__title {
    font-family: var(--skin-font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 34px;
    color: var(--skin-dark-900);
    margin: 0;
    max-width: 816px;
}

/* ---- Communities accordion container ---- */
.borme-acts-communities {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Hide community rows with empty name (NULL ie_comunidad from DB) */
.borme-acts-community:has(.borme-acts-community__name:empty) {
    display: none;
}

/* Figma: hasChildren=True rows have border-bottom rgba(9,30,66,0.14) */
.borme-acts-community {
    border-bottom: 1px solid rgba(9, 30, 66, 0.14);
}

.borme-acts-community:first-child {
    border-top: 1px solid rgba(9, 30, 66, 0.14);
}

.borme-acts-community__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 8px;
}

.borme-acts-community__name {
    font-family: var(--skin-font-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--skin-dark-900);
}

.borme-acts-community__chevron {
    flex-shrink: 0;
    color: var(--skin-text-muted);
    transition: transform 0.2s;
}

.borme-acts-community__provinces {
    list-style: none;
    margin: 0;
    padding: 4px 0 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.borme-acts-community__province-link {
    display: block;
    font-family: var(--skin-font-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: var(--skin-brand-navy);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.15s;
}

.borme-acts-community__province-link:hover {
    color: var(--skin-dark-900);
    text-decoration: underline;
}

/* ---- Explore Categories — layout_G1XH0J: bg #F9FAFB, padding 96px 0 ---- */
.borme-acts-explore {
    background: #F9FAFB;
    padding: 96px 0;
}

.borme-acts-explore__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.borme-acts-explore__title {
    font-family: var(--skin-font-display);
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    color: var(--skin-dark-900);
    margin: 0;
    text-align: center;
    max-width: 1152px;
}

.borme-acts-explore__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.borme-acts-explore__row {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.borme-acts-explore__row--center {
    justify-content: center;
}

.borme-acts-explore__row--center .borme-acts-explore-card {
    max-width: calc(33.333% - 16px);
}

.borme-acts-explore-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--skin-bg-surface);
    border-radius: 16px;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    flex: 1;
    min-height: 140px;
    gap: 12px;
    text-decoration: none;
    transition: box-shadow 0.15s;
}

.borme-acts-explore-card:hover {
    box-shadow: 0px 4px 12px 0px rgba(10, 13, 18, 0.12);
}

.borme-acts-explore-card__top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.borme-acts-explore-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--skin-tag-blue-bg);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--skin-brand-navy);
}

.borme-acts-explore-card__title {
    font-family: var(--skin-font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 29px;
    color: var(--skin-brand-navy);
    margin: 0;
}

.borme-acts-explore-card__desc {
    font-family: var(--skin-font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: var(--skin-text-muted);
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .borme-acts-official-section {
        padding: 60px 40px;
        gap: 60px;
    }

    .borme-acts-explore__inner {
        padding: 60px 40px;
    }

    .borme-acts-explore__row {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .borme-acts-official-section {
        padding: 40px 16px;
        gap: 40px;
    }

    .borme-acts-explore__inner {
        padding: 40px 16px;
    }

    .borme-acts-header__title {
        font-size: 28px;
        line-height: 36px;
    }

    .borme-acts-header__subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .borme-acts-explore__row {
        flex-direction: column;
    }
}
