/* ==========================================================
   MI COOPERADORA
   portal-familia.css
   ========================================================== */

.portal-familia {

    padding: 32px 24px 48px;

}


.portal-familia__contenedor {

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

}


.portal-familia__encabezado {

    margin-bottom: 24px;

}


.portal-familia__encabezado h1 {

    margin: 0 0 8px;

    font-size: 32px;
    line-height: 1.2;

    color: #2f2f2f;

}


.portal-familia__encabezado p {

    margin: 0;

    font-size: 16px;

    color: #6f6f6f;

}


/* ==========================================================
   TARJETAS
   ========================================================== */

.portal-familia__card {

    background: #ffffff;

    border: 1px solid #f0e5de;

    border-radius: 18px;

    padding: 22px;

    margin-bottom: 18px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.05);

}


.portal-familia__card h2 {

    margin:
        0
        0
        18px;

    font-size: 21px;

    color: #2f2f2f;

}


/* ==========================================================
   DATOS DE FAMILIA
   ========================================================== */

.portal-familia__datos {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px 24px;

}


.portal-familia__datos p {

    margin: 0;

    padding: 12px 14px;

    background: #fff8f3;

    border-radius: 12px;

    color: #555555;

}


.portal-familia__datos strong {

    color: #333333;

}


/* ==========================================================
   ITEMS
   ========================================================== */

.portal-familia__item {

    padding: 16px;

    border: 1px solid #f0e5de;

    border-radius: 14px;

    background: #fffaf6;

    margin-bottom: 12px;

}


.portal-familia__item:last-child {

    margin-bottom: 0;

}


.portal-familia__item strong {

    display: block;

    margin-bottom: 6px;

    font-size: 16px;

    color: #333333;

}


.portal-familia__item p {

    margin:
        4px
        0;

    color: #666666;

}


/* ==========================================================
   RESUMEN DE CUOTAS
   ========================================================== */

.portal-familia__resumen {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

}


.portal-familia__resumen p {

    margin: 0;

    padding: 18px;

    border-radius: 14px;

    background: #fff1e7;

    color: #555555;

}


.portal-familia__resumen strong {

    display: block;

    margin-bottom: 6px;

    color: #d76f2f;

}


/* ==========================================================
   FORMULARIO DE ALTA
   ========================================================== */

.portal-familia .form-group {

    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-bottom: 16px;

}


.portal-familia .form-group label {

    font-weight: 600;

    color: #444444;

}


.portal-familia .form-group input {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid #ddd3cc;

    border-radius: 10px;

    font: inherit;

    background: #ffffff;

    color: #333333;

    box-sizing: border-box;

}


.portal-familia .form-group input:focus {

    outline: none;

    border-color: #f2a36b;

    box-shadow:
        0 0 0 3px
        rgba(242, 163, 107, 0.15);

}


#btnGuardarFamilia {

    border: none;

    border-radius: 10px;

    padding: 12px 18px;

    background: #f2a36b;

    color: #ffffff;

    font-weight: 700;

    cursor: pointer;

}


#btnGuardarFamilia:hover {

    opacity: 0.92;

}


#btnGuardarFamilia:disabled {

    opacity: 0.6;

    cursor: default;

}


/* ==========================================================
   MENSAJES
   ========================================================== */

#mensajePortalFamilia {

    margin-top: 14px;

    color: #666666;

}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (
    max-width: 700px
) {

    .portal-familia {

        padding:
            22px
            14px
            36px;

    }


    .portal-familia__encabezado h1 {

        font-size: 27px;

    }


    .portal-familia__card {

        padding: 18px;

        border-radius: 15px;

    }


    .portal-familia__datos {

        grid-template-columns:
            1fr;

    }


    .portal-familia__resumen {

        grid-template-columns:
            1fr;

    }


    .portal-familia__contacto {

        align-items: stretch;
        flex-direction: column;

    }


    .portal-familia__btn-contacto {

        width: 100%;
        box-sizing: border-box;

    }

}

.portal-familia__contacto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff8f3;
}

.portal-familia__contacto h2 {
    margin-bottom: 6px;
}

.portal-familia__contacto p {
    margin: 0;
    color: #666666;
}

.portal-familia__btn-contacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #d76f2f;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.portal-familia__btn-contacto:hover {
    opacity: 0.92;
}

.portal-familia__pago-pedido {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(187, 105, 66, 0.2);
}

.portal-familia__pago-pedido p:last-child {
    margin-bottom: 0;
}
