body {
    --main-color: #ef7d00;
    --main-color-dark: #963d0a;
    --secondary-color: #00468e;

    --success-color: #3c763d;
    --success-color-lighter: #d6e9c6;
    --danger-color: #dd4b39;
    --danger-color-lighter: #ebccd1;
    --link-color: #63ade3;

    --white-color: #ffffff;
    --white2-color: #f4f4f4;
    --black-color: #000000;
    --slate-color: #222d32;
    --gray-color: #777777;
}

a {
    color: var(--link-color);
}

.bg-yellow,
.callout.callout-warning,
.alert-warning,
.label-warning,
.modal-warning .modal-body {
    background-color: var(--main-color) !important;
}

.skin-yellow .main-header .logo {
    background-color: var(--main-color);
}

.skin-yellow .main-header .logo:hover {
    background-color: var(--main-color-dark);
}

.skin-yellow .main-header .navbar {
    background-color: var(--main-color);
}

.skin-yellow .main-header .navbar .sidebar-toggle:hover {
    background-color: var(--main-color-dark);
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Roboto", sans-serif !important;
}

a,
button:focus {
    outline: none;
}

.enlace-retroceso span {
    font-size: 11pt;
    margin-bottom: 20px;
}

button.btn.orange {
    background: var(--main-color);
    color: var(--white-color);
    margin-bottom: 20px;
}

.right {
    float: right !important;
}

header.main-header a.logo img {
    height: 40px;
}

/* Agregar afiliado/beneficiarios */

span.validacion-error {
    color: red;
}

#errores {
    display: none;
}

#formBeneficiarios .formulario {
    border: 1px solid var(--main-color);
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    padding: 10px;
}

/* Tablas */

table tbody tr:first-child {
    border-bottom: 5px solid var(--white2-color);
}

table.table th {
    background: var(--main-color);
    color: var(--white-color);
}

.table-bordered {
    border: 2px solid var(--white2-color);
}

.table-bordered th,
.table-bordered td {
    border: 2px solid var(--white2-color) !important;
}

/* botones */

a.icons-prevengo {
    color: var(--black-color);
}

a.icons-prevengo:hover {
    color: var(--main-color);
}

.btn-icons-prevengo {
    background: transparent;
    border: none;
}

i#icon-enable {
    color: green;
}

i#icon-disable {
    color: red;
}

i.icon-enable {
    color: green;
}

i.icon-disable {
    color: red;
}

/* Listado de afiliados */

span#btn-crear-afiliado {
    font-size: 11pt;
}

#campo-busqueda-afiliados {
    margin: 20px 0px;
}

#container-btn-crear-afiliado {
    margin-bottom: 30px;
}

#container-busqueda-bottom .pagination-panel {
    margin-top: 20px;
}

#container-busqueda-top .pagination-panel {
    margin-bottom: 20px;
}

.seccion-busqueda #search-btn {
    background-color: var(--main-color);
    color: var(--white-color);
}

/* Modal de notificación de registro */

#notificacion_registro i {
    color: var(--main-color);
    font-size: 36pt;
    margin-top: 20px;
}

#notificacion_registro p {
    margin-top: 20px;
}

#notificacion_registro span {
    display: block;
    margin-bottom: 5px;
}

#notificacion_registro span#titulo {
    font-size: 12pt;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Interfaz de Login */

body#login {
    background-color: var(--white2-color);
    /* overflow-y: hidden; */
}

#panel-izquierdo-login {
    background-color: rgba(255, 255, 255, 1);
    min-height: 100vh;
    z-index: 9000;
}

#panel-izquierdo-login h1 {
    color: var(--secondary-color);
    font-size: 12pt;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
}

#panel-izquierdo-login form input {
    background: transparent;
    border: 0px;
    border-bottom: 1px solid var(--secondary-color);
    border-radius: 0px;
    box-shadow: none;
}

#panel-izquierdo-login #img-alianzas {
    margin-bottom: 20px;
    padding-top: 100px;
}

#panel-izquierdo-login #boton-login {
    background-color: var(--main-color);
    color: var(--white-color);
    margin-top: 25px;
    padding: 10px 30px;
    width: auto;
}

#panel-derecho-login {
    background-color: rgba(255, 255, 255, 0.8);
    height: 100vh;
    padding: 0 !important;
    position: relative;
}

#panel-derecho-login .img-responsive {
    height: 100%;
    max-width: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
}

/* placeholder */

::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: var(--black-color);
    font-size: 10pt;
}

::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--black-color);
    font-size: 10pt;
}

:-ms-input-placeholder {
    /* IE 10+ */
    color: var(--black-color);
    font-size: 10pt;
}

:-moz-placeholder {
    /* Firefox 18- */
    color: var(--black-color);
    font-size: 10pt;
}

@media (max-width: 991px) {
    #login {
        background: var(--white2-color);
    }

    #panel-derecho-login {
        display: none;
    }
}

/* Aliados */

#formServiciosAlianza .servicio {
    border: 1px solid var(--main-color);
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    padding: 10px;
}

#listadoAlianzas {
    margin-top: 20px;
}

#listadoAlianzas .alianza {
    background: var(--white-color);
    height: 290px;
    margin-bottom: 40px;
    padding: 20px;
}

#listadoAlianzas .alianza div {
    margin-bottom: 15px;
}

#listadoAlianzas .alianza span {
    color: var(--gray-color);
    font-size: 12pt;
}

#listadoAlianzas .alianza span.direccion {
    text-transform: uppercase;
}

#listadoAlianzas .alianza span.nombre {
    color: var(--main-color);
    display: block;
    font-size: 14pt;
}

#listadoAlianzas .alianza span.subtitle {
    display: block;
    font-weight: bold;
}

#form-importacion-servicios {
    margin-top: 20px;
}

#form-importacion-servicios button {
    margin-top: 15px;
}

@media (max-width: 991px) {
    #form-importacion-servicios {
        margin-left: 15px;
    }
}

#detalle_cita h2,
#detalle_cita h4,
#detalle_cita label {
    color: var(--main-color);
}

#detalle_cita hr {
    background: var(--main-color);
    height: 2px;
}

@media (max-width: 991px) {
    #listadoAlianzas .alianza p {
        text-align: center;
    }
}

/* Menú */

.skin-yellow .sidebar a {
    color: var(--white-color) !important;
}

/* Sweet Alert 2 */

.swal2-popup .swal2-title {
    font-size: 24pt !important;
}

.swal2-popup .swal2-content {
    font-size: 14pt !important;
}

.swal2-popup .swal2-styled.swal2-confirm {
    font-size: 12pt !important;
}

@media (max-width: 1199px) {
    #container-busqueda-top {
        margin-top: 80px;
    }
}

@media (max-width: 991px) {
    #container-busqueda-top {
        margin-top: 0px;
    }
}

/* Edición de datos del afiliado */

#formDatosAfiliado #actualizar {
    width: 300px;
}

.nav-tabs>li>a {
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    color: var(--slate-color);
    font-weight: bold;
    text-transform: uppercase;
    background: var(--white2-color);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
    color: var(--white-color);
    font-weight: bold;
    text-transform: uppercase;
    cursor: default;
    background-color: var(--main-color-dark);
    border: 1px solid var(--main-color-dark);
    border-bottom-color: transparent;
}

/* loading effects */

.lds-roller {
    display: none;
    float: none;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 32px 32px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--main-color);
    margin: -3px 0 0 -3px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 50px;
    left: 50px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 54px;
    left: 45px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 57px;
    left: 39px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 58px;
    left: 32px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 57px;
    left: 25px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 54px;
    left: 19px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 50px;
    left: 14px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 45px;
    left: 10px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estadísticas */

@media only screen and (max-width: 991px) {
    #form-filtro-ventas-vendedores .form-group div {
        margin-bottom: 20px;
    }
}

/* =============== Mapa ==================== */
#map {
    height: 300px;
    margin-bottom: 20px;
    width: 100%;
}

.ap-modal {
    z-index: 50;
    position: relative;
}

.ap-modal .modal-bg {
    background-color: rgba(0, 0, 0, 0.6);
    height: 100vh;
    position: fixed;
    width: 100vw;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.ap-modal .modal-content {
    background-color: white;
    border-radius: 0.5rem;
    left: 50%;
    max-height: 98%;
    max-width: 80rem;
    padding: 2rem 4rem;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.ap-modal .modal-btn-close {
    background-color: transparent;
    border: 0;
    padding: 3px;
}

@media (min-width: 768px) {
    .ap-modal .modal-content {
        width: 80%;
    }
}

@media (min-width: 1024px) {
    .ap-modal .modal-content {
        width: 70%;
    }
}

.ap-modal .modal-top {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    margin: 0 0 3rem 0;
    padding: 0;
}

.ap-modal .modal-top .modal-title {
    font-weight: bold;
    font-size: 20px;
    color: var(--main-color);
    margin: 0;
}

.contrato-afiliacion-button {
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 0.5rem;
    color: #1e3a8a;
    display: flex;
    flex-wrap: nowrap;
    font-weight: 500;
    gap: 8px;
    outline: none;
    padding: 10px 20px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.contrato-afiliacion-button:hover {
    background-color: #dbeafe;
}

.contrato-afiliacion-button:focus {
    box-shadow: 0 0 0 4px #dbeafe;
}

.form-group {
    margin-bottom: 15px;
}

.whatsapp-button {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background-color: #1a9f0f;
    border: 2px solid #1a9f0f;
    font-weight: 500;
    border-radius: 9999px;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem 0.5rem 2rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.whatsapp-button:hover {
    color: #1a9f0f;
    background-color: white;
    text-decoration: none;
}

.whatsapp-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.3);
}

.whatsapp-button img {
    height: auto;
    width: 3rem;
}

.form-control::placeholder {
    color: #555555;
    opacity: 1;
}

.form-control::-webkit-input-placeholder {
    color: #555555;
    opacity: 1;
}

.form-control:-moz-placeholder {
    color: #555555;
    opacity: 1;
}

.form-control::-moz-placeholder {
    color: #555555;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: #555555;
    opacity: 1;
}

/* ------------------------------- */

* .hover\:font-bold:hover {
    color: var(--secondary-color);
    font-weight: bold;
}

.block {
    display: block !important;
}

.w-full {
    width: 100%;
}

.inline-block {
    display: inline-block !important;
}

.uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: bold;
}

.cursor-pointer {
    cursor: pointer;
}

.flex {
    display: flex;
}

.flex-row {
    flex-flow: row nowrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.gap-0 {
    gap: 0;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.text-white {
    color: var(--white-color);
}

.whitespace-nowrap {
    white-space: nowrap;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* ------------------------------- */
/* Modales de solicitudes de citas */

.modal-citas-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: 6px;
}

.modal-citas-loading .fa-spinner {
    color: var(--main-color);
}

.float-none {
    float: none;
}

/* -------------------------------- */
/* Modales controlados por Alpine    */
/* -------------------------------- */

/* Bootstrap solo habilita el scroll interno del modal con `.modal-open .modal`;
   los modales migrados a Alpine se muestran agregando la clase `.block`. */
.modal.block {
    overflow-x: hidden;
    overflow-y: auto;
}