/* =========================================================
   CENTROS DE ACOPIO
========================================================= */

.centros-page {
    background: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.centros-hero {
    padding:
        170px 0 115px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(39, 170, 115, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(255, 211, 29, 0.10),
            transparent 25%
        ),
        var(--apapacho-blue-dark);
}

.centros-hero-content {
    max-width: 900px;
}

.centros-kicker {
    display: inline-block;

    margin-bottom: 20px;

    color:
        rgba(255, 255, 255, 0.76);

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 0.14em;
}

.centros-hero h1 {
    margin:
        0 0 25px;

    font-size:
        clamp(
            58px,
            7vw,
            100px
        );

    line-height: 0.92;

    letter-spacing: -0.055em;
}

.centros-hero h1 span {
    display: block;

    color: #8be8f6;
}

.centros-hero p {
    max-width: 650px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.80);

    font-size: 18px;
    line-height: 1.65;
}


/* =========================================================
   BUSCADOR
========================================================= */

.centros-search-section {
    padding:
        110px 0 60px;

    background:
        var(--apapacho-blue-light);
}

.centros-search-panel {
    padding: 42px;

    border-radius: 32px;

    background:
        #ffffff;

    box-shadow:
        0 30px 70px
        rgba(9, 43, 59, 0.07);
}

.centros-search-head {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 32px;
}

.centros-label {
    display: block;

    margin-bottom: 10px;

    color:
        var(--apapacho-blue);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.13em;
}

.centros-search-head h2 {
    margin: 0;

    color:
        var(--apapacho-ink);

    font-size:
        clamp(
            32px,
            3.5vw,
            48px
        );

    line-height: 1;

    letter-spacing: -0.04em;
}

.centros-count {
    display: flex;

    align-items: baseline;

    gap: 8px;

    flex-shrink: 0;
}

.centros-count strong {
    color:
        var(--apapacho-blue);

    font-size: 32px;
    font-weight: 900;
}

.centros-count span {
    color:
        var(--apapacho-text);

    font-size: 13px;
    font-weight: 700;
}

.centros-filters {
    display: grid;

    grid-template-columns:
        1.5fr 0.6fr;

    gap: 14px;
}

.centros-search-input {
    position: relative;
}

.centros-search-icon {
    position: absolute;

    top: 50%;
    left: 18px;

    transform:
        translateY(-50%);

    color:
        var(--apapacho-blue);

    font-size: 24px;
}

.centros-search-input input,
.centros-filters select {
    width: 100%;
    height: 60px;

    padding:
        0 18px;

    border:
        1px solid
        rgba(9, 43, 59, 0.12);

    border-radius: 16px;

    outline: none;

    color:
        var(--apapacho-ink);

    background:
        #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.centros-search-input input {
    padding-left: 52px;
}

.centros-search-input input:focus,
.centros-filters select:focus {
    border-color:
        var(--apapacho-blue);

    box-shadow:
        0 0 0 4px
        rgba(20, 181, 212, 0.10);
}


/* =========================================================
   DIRECTORIO
========================================================= */

.centros-directory-section {
    padding:
        60px 0 150px;

    background:
        var(--apapacho-blue-light);
}

.centros-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: stretch;

    gap: 24px;
}


/* =========================================================
   CARD
========================================================= */

.centro-card {
    display: flex;

    min-width: 0;
    min-height: 360px;

    flex-direction: column;

    padding: 28px;

    border:
        1px solid
        rgba(9, 43, 59, 0.08);

    border-radius: 28px;

    background:
        #ffffff;

    box-shadow:
        0 18px 45px
        rgba(9, 43, 59, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.centro-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        0 28px 60px
        rgba(9, 43, 59, 0.09);
}

.centro-card[hidden] {
    display: none;
}


/* =========================================================
   CARD TOP
========================================================= */

.centro-card-top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 34px;
}

.centro-logo-box {
    width: 82px;
    height: 82px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 20px;

    color:
        rgba(9, 43, 59, 0.38);

    background:
        var(--apapacho-blue-light);

    font-size: 11px;
    font-weight: 900;
}

.centro-status {
    padding:
        8px 12px;

    color:
        var(--apapacho-green-dark);

    border-radius: 999px;

    background:
        rgba(39, 170, 115, 0.10);

    font-size: 11px;
    font-weight: 900;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.centro-card-content {
    flex: 1;
}

.centro-card-content h3 {
    margin:
        0 0 10px;

    color:
        var(--apapacho-ink);

    font-size: 26px;

    line-height: 1.05;

    letter-spacing: -0.03em;
}

.centro-location {
    margin:
        0 0 12px;

    color:
        var(--apapacho-blue);

    font-size: 14px;
    font-weight: 800;
}

.centro-address {
    margin: 0;

    color:
        var(--apapacho-text);

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.centro-card-footer {
    margin-top: 30px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(9, 43, 59, 0.08);
}

.centro-map-link {
    display: flex;

    align-items: center;
    justify-content: space-between;

    color:
        var(--apapacho-ink);

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.centro-map-link span {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    color:
        #ffffff;

    border-radius: 50%;

    background:
        var(--apapacho-blue);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.centro-map-link:hover {
    color:
        var(--apapacho-blue);
}

.centro-map-link:hover span {
    transform:
        translateX(3px);

    background:
        var(--apapacho-green);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.centros-empty {
    max-width: 520px;

    margin:
        70px auto 0;

    padding: 50px;

    text-align: center;

    border-radius: 28px;

    background:
        #ffffff;
}

.centros-empty-icon {
    margin-bottom: 15px;

    color:
        var(--apapacho-blue);

    font-size: 60px;
}

.centros-empty h3 {
    margin:
        0 0 10px;

    color:
        var(--apapacho-ink);

    font-size: 28px;
}

.centros-empty p {
    margin: 0;

    color:
        var(--apapacho-text);

    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .centros-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .centros-filters {
        grid-template-columns:
            1fr 0.6fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .centros-hero {
        padding:
            130px 0 90px;
    }

    .centros-hero h1 {
        font-size:
            clamp(
                48px,
                14vw,
                68px
            );
    }

    .centros-search-section {
        padding:
            80px 0 35px;
    }

    .centros-search-panel {
        padding:
            28px 20px;

        border-radius: 26px;
    }

    .centros-search-head {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .centros-filters {
        grid-template-columns:
            1fr;
    }

    .centros-directory-section {
        padding:
            35px 0 100px;
    }

    .centros-grid {
        grid-template-columns:
            1fr;

        gap: 18px;
    }

    .centro-card {
        min-height: 320px;

        padding: 24px;

        border-radius: 24px;
    }

    .centro-card-top {
        margin-bottom: 28px;
    }

    .centro-logo-box {
        width: 72px;
        height: 72px;
    }

}