/* =========================================================
   SOMOS 100 BARRIOS
   Estilos públicos
========================================================= */

.s100b-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 16px 50px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #172b4d;
}

.s100b-container *,
.s100b-container *::before,
.s100b-container *::after {
    box-sizing: border-box;
}

/* =========================================================
   BANNER
========================================================= */

.s100b-banner {
    width: 100%;
    max-width: 760px;
    height: auto;
    min-height: 170px;
    margin: 0 auto 22px;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s100b-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* =========================================================
   CAJA DE CONSULTA
========================================================= */

.s100b-box {
    width: 100%;
    margin: 0 auto 20px;
    padding: 34px 30px 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.07);
}

.s100b-box h1 {
    margin: 0 0 10px;
    padding: 0;
    color: #172b4d;
    font-size: 28px;
    line-height: 1.25;
    text-align: center;
}

.s100b-description {
    margin: 0 0 25px;
    color: #6d7580;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

#s100b-form {
    width: 100%;
}

#s100b-form label {
    display: block;
    margin: 0 0 8px;
    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
}

#s100b-dni {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #d4d7db;
    border-radius: 9px;
    background: #ffffff;
    color: #172b4d;
    font-size: 17px;
    line-height: 48px;
    text-align: center;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

#s100b-dni:focus {
    border-color: #168bd0;
    box-shadow: 0 0 0 3px rgba(22, 139, 208, 0.12);
}

#s100b-dni::placeholder {
    color: #aeb5be;
}

.s100b-help {
    margin-top: 7px;
    color: #8a919a;
    font-size: 12px;
    line-height: 1.4;
}

#s100b-submit {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 12px 0 0;
    padding: 0 20px;
    border: 0;
    border-radius: 9px;
    background: #222222;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    -webkit-appearance: none;
    appearance: none;
}

#s100b-submit:hover {
    opacity: 0.9;
}

#s100b-submit:active {
    transform: translateY(1px);
}

#s100b-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* =========================================================
   RESULTADO
========================================================= */

.s100b-result {
    width: 100%;
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
}

.s100b-result:empty {
    display: none;
}

.s100b-result-inner {
    padding: 18px;
    text-align: center;
}

.s100b-result-found {
    background: #f6fbff;
    border: 1px solid #d8ebf8;
}

.s100b-result-not-found {
    background: #fff8e8;
    border: 1px solid #f1dfae;
}

.s100b-result-error {
    background: #fff1f1;
    border: 1px solid #efcaca;
}

.s100b-result-title {
    margin: 0;
    color: #172b4d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.s100b-result-message {
    margin-top: 6px;
    color: #606872;
    font-size: 14px;
    line-height: 1.5;
}

.s100b-result-name {
    margin-top: 7px;
    color: #172b4d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* =========================================================
   ESTADO APROBADO / RECHAZADO
========================================================= */

.s100b-status {
    display: block;
    width: 100%;
    margin: 16px auto 0;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.4px;
    text-align: center;
}

.s100b-status-approved {
    background: #e8f7ed;
    border: 1px solid #9fd4ad;
    color: #18743a;
}

.s100b-status-rejected {
    background: #fdeaea;
    border: 1px solid #e1a4a4;
    color: #b42323;
}

.s100b-status-unknown {
    background: #f1f3f5;
    border: 1px solid #d5d9de;
    color: #5e6670;
}

/* =========================================================
   CAJAS DE CIFRAS
========================================================= */

.s100b-progress-box {
    width: 100%;
    margin: 0 auto 20px;
    padding: 26px 24px 27px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.07);
    text-align: center;
}

/*
 * El margen inferior está aplicado a cada caja.
 * Esto evita que "Adhesiones en revisión" y
 * "Progreso de carga" queden pegadas.
 */
.s100b-revision-box {
    margin-top: 0;
    margin-bottom: 20px;
}

.s100b-load-box {
    margin-top: 0;
    margin-bottom: 0;
}

.s100b-progress-title {
    margin: 0;
    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: center;
}

.s100b-progress-number {
    margin-top: 12px;
    color: #344d6e;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

/* =========================================================
   BARRA DE PROGRESO
========================================================= */

.s100b-progress-bar {
    width: 100%;
    height: 20px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5e5e5;
}

.s100b-progress-fill {
    height: 100%;
    min-width: 0;
    border-radius: 20px;
    background: #222222;
    transition: width 0.4s ease;
}

.s100b-progress-percent {
    margin-top: 9px;
    color: #6d7580;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 600px) {
    .s100b-container {
        max-width: 100%;
        padding: 12px 10px 35px;
    }

    .s100b-banner {
        min-height: 120px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .s100b-banner img {
        max-height: 220px;
    }

    .s100b-box {
        margin-bottom: 16px;
        padding: 25px 17px 22px;
        border-radius: 14px;
    }

    .s100b-box h1 {
        font-size: 24px;
    }

    .s100b-description {
        font-size: 14px;
        margin-bottom: 21px;
    }

    .s100b-progress-box {
        margin-bottom: 16px;
        padding: 22px 16px 23px;
        border-radius: 14px;
    }

    .s100b-revision-box {
        margin-bottom: 16px;
    }

    .s100b-progress-number {
        font-size: 25px;
    }

    .s100b-status {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .s100b-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .s100b-box {
        padding-left: 14px;
        padding-right: 14px;
    }

    .s100b-progress-box {
        padding-left: 13px;
        padding-right: 13px;
    }

    .s100b-box h1 {
        font-size: 22px;
    }

    .s100b-progress-number {
        font-size: 23px;
    }
}
