/* Root *********************************************/
:root {
    --dark-blue: #15006f;
    --main-blue: #2A177D;
    --midnight-blue: #120062;
    --white: #fff;
    --black: #1f1f1f;
    --gray-text: #ccc;    

    --bg-light: #F0F2F5;
}
:root {
    --default-border-radius: 8px;
    --default-box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-blue);
}

/* Main Content *************************************/
.main-content {
    padding: 1.5rem;
}

.content-container {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 1.3rem;
}


/* Profile ******************************************/
.profile-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
}

.profile-photo-placeholder {
    width: 100px;
    height: 100px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;    
    text-align: center;
    font-size: 0.8rem;
}

.profile-card-sm { /* Version small usada en perfil */
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
}


.profile-photo-placeholder-sm { /* Version small usada en perfil */
    width: 55px;
    height: 55px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    font-size: 0.8rem;
}

.profile-info {
    flex-grow: 1;    
}

.profile-info h5 {
    font-weight: 700;
    margin-bottom: 0px;
}

.contact-info {
    margin-left: auto;
    text-align: right;

    /* Estilos por defecto (pantallas grandes) */
    border-left: 1px solid #ddd;
    padding-left: 1rem;
}

.container-custom {
    /* width: 100%; */
    width: 97%;
    padding-right: var(--bs-gutter-x, 0.40rem);
    padding-left: var(--bs-gutter-x, 0.40rem);
    margin-right: auto;
    margin-left: auto;
}


/* Media Card Principal */
/* @media (min-width: 576px)  { .container-custom { max-width: 540px;  } }
@media (min-width: 768px)  { .container-custom { max-width: 720px;  } }
@media (min-width: 992px)  { .container-custom { max-width: 960px;  } }
@media (min-width: 1200px) { .container-custom { max-width: 1140px; } }
@media (min-width: 1400px) { .container-custom { max-width: 1348px; } } */


@media (max-width: 768px) {
    .col-person-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* para pantallas pequeñas (menos de 768px) */
@media (max-width: 768px) {
    .contact-info {
        border-left: none; /* quitar el borde izquierdo */
        border-top: 1px solid #ddd;
        padding-left: 0;   /* ajustar */
        padding-top: 1rem;
    }
}

/* Card *********************************/
.card-custom {
    background-color: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.card-custom:hover{
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.card-custom-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}

.card-custom-description {
    font-size: 0.875rem;
    color: #6c757d;
}

.card-custom-icon {
    font-size: 1.7rem;
    color: #ec7030;
    margin-bottom: 0.5rem;
}


/* Otro **********************************************/
.text-decoration-none{
    text-decoration: none;
}


/* Buttons *******************************************/
.btn-primary {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-primary:hover {
    background-color: var(--main-blue);
    border-color: var(--main-blue);
}

.btn-secondary {
    background-color: #d8dffe;
    color: #7988a0;
    font-weight: bolder;
    border: none;
}
.btn-secondary:hover{
    background-color: #f1f5f9;    
    color: #7988a0;
    border: none;
}

.btn-outline-primary {
    color: var(--dark-blue);
    background-color: none;
    border-color: var(--dark-blue);
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}


/* Table *********************************************/
.table-rounded {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-title {    
    font-weight:450;
    font-size: 1.1rem;
    margin: 5px 0px 20px 0px;
}

.space-left-1 {
    padding-left: 1rem !important;
}


/* Box ***********************************************/
.box{
    /* position: relative; */
    border-radius: var(--default-border-radius);
    background: #ffffff;    
    margin-bottom: 20px;
    width: 100%;
    box-shadow: var(--default-box-shadow);
}

.box-header {
    color: #444;
    display: block;
    /* padding: 10px; */
    padding: 1.25rem;
    /* position: relative; */
}

.with-border{
    border-bottom: 1px solid #f4f4f4;
}

.box-title {
    display: inline-block;
    font-size: 1rem;
    margin: 0;
    line-height: 1;
}

.box-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    /* padding: 10px; */
    padding: 1.25rem;
}

/* Size Text ****************************************/
.text-xs { font-size: 0.75rem; }   /* ~12px */
.text-sm { font-size: 0.875rem; }  /* ~14px */
.text-md { font-size: 1rem; }      /* ~16px */
.text-lg { font-size: 1.125rem; }  /* ~18px */
.text-xl { font-size: 1.25rem; }   /* ~20px */
.text-2xl { font-size: 1.5rem; }   /* ~24px */
.text-3xl { font-size: 1.875rem; } /* ~30px */


/* Manejo de vista tablas / cards *******************/

/* Por defecto mostramos la tabla y ocultamos las cards */
#view_default {
    display: block;
}
/* #view_mobile {
    display: none;
} */

/* Cuando la pantalla es menor a 768px (ejemplo), mostramos las cards */
/* @media (max-width: 768px) {
    #view_default {
        display: none;
    }
    #view_mobile {
        display: block;
    }
} */

.profile-btn {
    color: var(--white);
    padding: 0px 0px 0px 20px;
    background: transparent;    
    border: none;
}

.profile-btn:hover {
    transform: scale(1.1);
    transition: all 0.5s ease;
}