﻿html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Evita el desplazamiento horizontal */
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

* {
    box-sizing: border-box;
}

.container {
    width: 100%;
    padding: 0;
    margin: 0;
}

btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btnUees {
    border-color: #810C33;
    background-color: white;
    color: #810C33;
    border-collapse: separate;
    border-spacing: 10px;
    padding: 10px 30px;
}

.btnMg.btnUees.btn-sm.a:hover {
    background-color: #810C33;
    color: #FFF;
    border-color: #810C33;
}

.btnMg.btnUees.btn-sm.b:hover {
    background-color: #810C33;
    color: #FFF;
    border-color: #810C33;
}

.btnMg.btnUees.btn-sm.c:hover {
    background-color: #810C33;
    color: #FFF;
    border-color: #810C33;
}

.btnMg.btnUees.btn-sm.d:hover {
    background-color: #810C33;
    color: #FFF;
    border-color: #810C33;
}

.btnMg.btnUees.btn-sm.e:hover {
    background-color: #810C33;
    color: #FFF;
    border-color: #810C33;
}

.panel-heading-custom {
    background: #FFFFFF;
    color: #810c33;
    border-color: #810c33;
}

.panel-heading-custom-dark {
    background: #810c33;
    color: #FFFFFF;
    border-color: #810c33;
}

.botones-ventana-registro td {
    padding-right: 2px; /* Aumenta el espacio dentro de las celdas */
}

.containerInicio button {
    font-family: sans-serif;
    font-size: 14px;
}

.Registro {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    /*font-family: sans-serif;*/
    /*background: linear-gradient(#141e30, #243b55);*/
    background: linear-gradient(#161931, #110822);
}

.login-box {
    position: absolute;
    top: 50%;
    left: 38%;
    width: 400px;
    padding: 40px;
    /*transform: translate(-50%, -50%);*/
    background: #D3D3D3;
    box-sizing: border-box;
    box-shadow: 0 15px 25px #A4A4A4;
    border-radius: 10px;
    margin-top: 15%;
}

    /* Estilo aplicado al login */
    .login-box h2 {
        margin: 0 0 25px;
        padding: 0;
        color: #333333;
        text-align: center;
    }

    .login-box .user-box {
        position: relative;
    }

        .login-box .user-box input {
            width: 100%;
            padding: 10px 0;
            font-size: 16px;
            color: #fff;
            margin-bottom: 30px;
            border: none;
            border-bottom: 1px solid #fff;
            outline: none;
        }

        .login-box .user-box label {
            position: absolute;
            top: 0;
            left: 0;
            padding: 10px 0;
            font-size: 16px;
            color: #fff;
            pointer-events: none;
            transition: .5s;
        }

        .login-box .user-box input:focus ~ label,
        .login-box .user-box input:valid ~ label {
            top: -20px;
            left: 0;
            color: #0A6099;
            font-size: 12px;
        }

    .login-box a {
        position: relative;
        display: inline-block;
        padding: 10px 20px;
        color: #0A6099;
        font-size: 16px;
        text-decoration: none;
        text-transform: uppercase;
        overflow: hidden;
        transition: .5s;
        margin-top: 40px;
        letter-spacing: 4px;
    }

        .login-box a:hover {
            background: #0A6099;
            color: #fff;
            border-radius: 5px;
            box-shadow: 0 0 5px #6A9FC1, 0 0 25px #6A9FC1, 0 0 50px #6A9FC1, 0 0 100px #6A9FC1;
        }

        .login-box a span {
            position: absolute;
            display: block;
        }

            .login-box a span:nth-child(1) {
                top: 0;
                left: -100%;
                width: 100%;
                height: 2px;
                background: linear-gradient(90deg, transparent, #0A6099);
                animation: btn-anim1 3s linear infinite;
            }

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }

    50%, 100% {
        left: 100%;
    }
}

.login-box a span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #0A6099);
    animation: btn-anim2 3s linear infinite;
    animation-delay: .75s;
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }

    50%, 100% {
        top: 100%;
    }
}

.login-box a span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #0A6099);
    animation: btn-anim3 3s linear infinite;
    animation-delay: 1.5s;
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }

    50%, 100% {
        right: 100%;
    }
}

.login-box a span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #0A6099);
    animation: btn-anim4 3s linear infinite;
    animation-delay: 2.25s;
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }

    50%, 100% {
        bottom: 100%;
    }
}



/* Estilos aplicados a los contenedores de containerInicio */
.containerInicio {
    margin-top: 7%;
    margin-left: 20%;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 500px;
    gap: 10px;
}

    .containerInicio > div {
        flex: 0 0 120px;
        border-radius: 0.5rem;
        transition: 0.5s ease-in-out;
        cursor: pointer;
        box-shadow: 1px 5px 15px #1e0e3e;
        position: relative;
        overflow: hidden;
    }

        .containerInicio > div:nth-of-type(1) {
            background: url("https://img.freepik.com/foto-gratis/mujer-trabajando-laborator_23-2148824178.jpg") no-repeat 50% / cover;
        }

        .containerInicio > div:nth-of-type(2) {
            background: url("https://img.freepik.com/foto-gratis/smiley-doctor-paciente-chateando-plano-medio_23-2149351660.jpg?t") no-repeat 50% / cover;
        }

        .containerInicio > div:nth-of-type(3) {
            background: url("https://as2.ftcdn.net/v2/jpg/01/03/96/83/1000_F_103968342_Urog6r6ZiF56uxTCTo9pgPjyU6EV3lXO.jpg") no-repeat 50% / cover;
        }

        /*.containerInicio > div:nth-of-type(4) {
            background: url("https://images.stockcake.com/public/d/f/0/df091d98-3038-42ab-845d-aa666f044730_large/pharmacy-consultation-moment-stockcake.jpg") no-repeat 50% / cover;
        }*/

        .containerInicio > div:nth-of-type(4) {
            background: url("https://img.freepik.com/foto-gratis/farmaceutico-femenino-escaneando-medicina-mostrador_23-2150359119.jpg") no-repeat 50% / cover;
        }

        .containerInicio > div:nth-of-type(5) {
            background: url("https://img.freepik.com/foto-gratis/primer-plano-mano-medico-sexo-masculino-que-lee-informe-medico-portapapeles_23-2148129566.jpg") no-repeat 50% / cover;
        }

        .containerInicio > div:nth-of-type(6) {
            background: url("https://img.freepik.com/foto-gratis/botellas-calculadora-estetoscopio-medicina-sobre-fondo-blanco_1387-473.jpg") no-repeat 50% / cover;
        }




        .containerInicio > div .content {
            font-size: 1.5rem;
            color: #fff;
            display: flex;
            align-items: center;
            padding: 15px;
            opacity: 0;
            flex-direction: column;
            height: 100%;
            justify-content: flex-end;
            background: rgb(2, 2, 46);
            background: linear-gradient(0deg, rgba(2, 2, 46, 0.676) 0%, rgba(255, 255, 255, 0) 100%);
            transform: translateY(100%);
            transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
            visibility: hidden;
        }

            .containerInicio > div .content span {
                display: block;
                margin-top: 5px;
                font-size: 1.2rem;
            }

        .containerInicio > div:hover {
            flex: 0 0 250px;
            box-shadow: 1px 3px 15px #4C4674;
            transform: translateY(-30px);
        }

            .containerInicio > div:hover .content {
                opacity: 1;
                transform: translateY(0%);
                visibility: visible;
            }

.rombo {
    position: relative;
    width: 250px;
    height: 60px;
    background-color: #921C3E;
    color: white;
    text-align: center;
    line-height: 100px;
    /*font-weight: bold;*/
    margin: 50px;
    margin-top: 2%;
    margin-left: -1%;
    margin-bottom: 0px;
    /*CENTRAR EL BOTON DE VOLVER*/
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rombo::after {
        content: '';
        position: absolute;
        top: 0;
        right: -40px;
        width: 0;
        height: 0;
        border-top: 30px solid transparent;
        border-bottom: 30px solid transparent;
        border-left: 40px solid #921C3E;
    }

.rombo-btn {
    width: 100%;
    height: 100%;
    font-weight: normal;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-size: 20px;
}

.rombo:hover {
    background-color: #810C33;
}

    .rombo:hover::after {
        border-left-color: #810C33;
    }

.rombo-btn:hover {
    cursor: pointer;
}

/* CÓDIGO RELACIONADO CON DESPLEGABLE DE LA
    PESTAÑA DE OPCIONES GENERACIÓN
    (USABLE PARA NUEVOS DESPLEGABLES) */
summary {
    user-select: none;
    border: 4px solid transparent;
    outline: none;
}

    summary:focus {
        border-color: none;
    }

summary {
    padding: 1rem;
    display: block;
    background: linear-gradient(45deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
    color: #0A6099;
    padding-left: 2.2rem;
    position: relative;
    cursor: pointer;
}

details {
    max-width: 500px;
    /*box-sizing: border-box;*/
    margin-top: 5px;
    background: white;
}

    details summary::-webkit-details-marker {
        display: none;
    }

    details[open] > summary:before {
        transform: rotate(90deg);
    }

summary:before {
    user-select: none;
    content: '';
    border-width: .4rem;
    border-style: solid;
    border-color: transparent transparent transparent #8F1337;
    position: absolute;
    top: 1.3rem;
    left: 1rem;
    transform: rotate(0);
    transform-origin: .2rem 50%;
    transition: .25s transform ease;
}

.content {
    border-top: none;
    padding: 10px;
    border: 2px solid #C8DCE9;
    border-top: none;
}

p {
    margin: 0;
    padding-bottom: 10px;
}

    p:last-child {
        padding: 0;
    }

img {
    max-width: 100%;
}

body {
    font-family: "Poppins", sans-serif;
}

/* Estilos aplicados a los contenedores de Signos Vitales */
.FieldSignos {
    margin: 0;
    padding: 0;
    border: 0;
}

.datosSignos {
    display: block;
    width: 100%;
    height: 3em;
    padding: 16px 8px;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    background: rgba(255, 255, 255, 0.97);
    color: #212121;
    outline: 0;
    appearance: none;
    transition: all 0.2s ease-in-out;
}

.form-css-label {
    max-width: 100%;
    display: flex;
    align-content: stretch;
    flex-wrap: wrap;
    justify-content: flex-start;
}

    .form-css-label fieldset {
        width: max-content;
        height: max-content;
        position: relative;
    }

        .form-css-label fieldset:first-child input {
            border-radius: 4px 4px 0 0;
            height: 70px;
        }

        .form-css-label fieldset:last-child input {
            border-radius: 0 0 4px 4px;
            box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
        }

        .form-css-label fieldset + fieldset {
            border-top: 1px solid #ddd;
        }

    .form-css-label label {
        white-space: nowrap;
        position: absolute;
        top: 15px;
        left: 8px;
        color: #909090;
        transform: translate3d(0, 0, 0);
        transition: all 0.2s ease-in-out;
    }


/*---------------CONSULTA 002-------------*/
.contentII {
    /*background-image: radial-gradient(50% 0, rgba(209, 209, 209, 0.00), rgba(200, 200, 200, 1.00));*/
    /*height: 700px;
    max-height: 700px;
    overflow-y: auto;
    width: 100%;
    position: absolute;
    overflow: auto;*/
    margin-bottom: 40px;
}

footer {
    width: 100%;
    height: 30px;
    top: 100px;
    position: relative;
    text-align: center;
    color: #797979;
}

ul.container {
    top: 0px;
    margin: 0 auto;
    width: 90%;
    position: relative;
    padding: 0;
    background: #fbfbfb;
    border: 1px solid #7d7d7d;
    border-bottom: 0;
    list-style: none;
    z-index: 10;
    display: block;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.formularioInformacionConsulta {
    width: 100%;
}

ul.container:after, ul.container:before {
    content: '';
    width: 96%;
    height: 96%;
    position: absolute;
    left: 2%;
    z-index: -1;
    bottom: -4px;
    background: #f2f2f2;
    border: 1px solid #a1a1a1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.13);
}

ul.container:before {
    width: 92%;
    bottom: -8px;
    left: 4%;
    background: #f2f2f2;
    border: 1px solid #b9b9b9;
}

.textarea#txtDescripcionCIE:hover {
    border: 1px solid #b9b9b9; /* Mantiene el borde original */
}

ul.container li {
    background: #fbfbfb;
}

.container li label[class^="titulo"] {
    display: block;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    z-index: 50;
    line-height: 26px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
    background-color: #8F1337;
    user-select: none;
    transition: background-color .17s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(0, 0, 0, 0.1);
}

ul.container li:first-child, ul.container li:first-child label, ul.container li:first-child label:before {
    border-radius: 2px 2px 0 0;
}

ul.container li input.desplegableChekeable {
    display: none;
}

ul.container li label.tituloSeccionesConsulta:hover {
    background-color: #691830;
}

.container li input:checked ~ article {
    height: auto;
    /*max-height: 800px;*/
}

ul.container li article {
    height: 0;
    overflow: hidden;
    display: block;
    transition: max-height 2s ease-out;
}

    ul.container li article p {
        padding: 10px;
        margin: 4px 13px;
        font-family: Helvetica;
        word-wrap: break-word;
        color: #444;
        font-size: 13px;
        line-height: 23px;
    }

    ul.container li article a {
        text-decoration: none;
        color: #6f2a31;
    }

ul.container li:last-child article {
    border-bottom: 1px solid #7d7d7d;
}

ul.container li article iframe {
    border: 1px solid #7d7d7d;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}


/* // Animation on <label> */
.form-css-label input {
    &[data-empty="false"], &:valid, &:focus;

{
    padding: 22px 8px 10px;
}

&:focus {
    outline: 0;
    background: rgba(255, 255, 255, 1);
}

    &[data-empty="false"] + label,
    &:valid + label,
    &:focus + label {
        color: #1A6B9F;
        font-weight: 700;
        font-size: 12px;
        transform: translate3d(0, -10px, 0);
    }

}

.form-js-label input {
    &[data-empty="false"], &:focus;

{
    padding: 22px 8px 10px;
}

&:focus {
    outline: 0;
    background: rgba(255, 255, 255, 1);
}

    &[data-empty="false"] + label,
    &:focus + label {
        color: #5856D6;
        font-weight: 700;
        font-size: 12px;
        transform: translate3d(0, -10px, 0);
    }

}

/* Common Style */
*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

.section {
    width: 80%;
    min-width: 320px;
    /*margin: 100px auto;*/
    text-align: center;
    text-shadow: -1px -1px rgba(0, 0, 0, 0.1);
    color: #fff;
    h2;

{
    margin: 0 0 .5em;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
}

p {
    margin: 0 0 1em;
}

div {
    /*max-width: 320px;*/
    margin: 0 auto 20px;
}

}

/* Animations */
@keyframes fade-bounce {
    0% {
        transform: perspective(800px) translateY(-10px) translateZ(-40px) rotateX(-90deg);
        opacity: 0;
    }

    40% {
        transform: perspective(800px) translateZ(0px) rotateX(10deg);
    }

    70% {
        transform: perspective(800px) translateZ(0px) rotateX(-5deg);
    }

    100% {
        transform: perspective(800px) translateZ(0px) rotateX(0deg);
        opacity: 1;
    }
}

.anim-art li input:checked ~ article p {
    transform-origin: top;
    animation: fade-bounce .7s ease normal;
}

.anim-label-4 li label {
    transform-style: preserve-3d;
    transform-origin: top;
}

.tituloSeccionesConsulta:before {
    content: attr(title);
    line-height: 45px;
    text-indent: 10px;
    position: absolute;
    height: 100%;
    width: 100%;
    color: white;
    left: 0;
    top: 20px;
    background-color: #533764;
    transform: translateZ(-23px) rotateX(-90deg);
}

.formulario-texto {
    height: 100%;
}


/*Estilos para que se centren los labels verticalmente aaaaaaaaaaaa*/
.LabelCentrado {
    display: flex;
    width: auto;
    align-items: center; /* Centra verticalmente el contenido */
    justify-content: center; /* Opcional: centra horizontalmente el contenido */
    height: 20px; /* Asegúrate de que la celda tenga altura */
    padding: 0 0 0 15px;
}

.ContenidoDiagnosticoBusquedaCentrado {
    padding: 0 0 0 15px;
}


/* Estilo predeterminado del TextBox */
.SinBorde {
    border: 1px solid #b9b9b9; /* Borde predeterminado */
    outline: none; /* Elimina el borde de enfoque predeterminado */
    padding: 4px; /* Ajusta el espaciado interno */
    border-radius: 4px; /* Bordes redondeados */
    box-shadow: none; /* Elimina la sombra del borde en enfoque */
}

    /* Estilo cuando el TextBox está en enfoque */
    .SinBorde:focus {
        border: 1px solid #b9b9b9; /* Mantiene el mismo borde al estar enfocado */
        box-shadow: none; /* Elimina la sombra del borde en enfoque */
    }


.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegúrate de que esté en la parte superior */
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
}




/*Estilos De Quirofanos Agendados*/
.AgendamientosQuirofano {
    border-collapse: collapse;
    width: 100%;
}

.panel-body .ContenedorAgendamientosQuirofano th {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

.panel-body .ContenedorAgendamientosQuirofano td {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

.SeccionIntercalada {
    background-color: #F8FBFC;
}

.panel-body .ContenedorAgendamientosQuirofano th {
    background-color: #f2f2f2;
}

.panel-body .ContenedorAgendamientosQuirofano {
    text-align: center;
}



.PanelPruebaPruebas div {
    padding: 2px;
}

/*Estilo del el texto de presentacion*/
.contenedorInicial {
    top: 55px;
}

.contenedorBody {
    background: rgb(16, 7, 33);
}

.textoInicial {
    margin-top: 150px;
    text-align: center;
    vertical-align: central;
}

    .textoInicial h1 {
        font-family: Arial, sans-serif;
        font-size: 50px;
        line-height: 1.2;
        font-weight: normal;
    }

.textoLink {
    color: rgb(133, 87, 184);
}

.textoInicial p.botones-limpiar-imprimir {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    font-weight: normal;
}


/* Estilos usados para los checks y sus contenedores*/
.container-check-all {
    width: auto;
    /*display: flex;*/
    top: 0px;
    padding: 15px 15px 50px 38px;
    border: 2px solid #FFFFFF;
}

.nombre-grupo {
    width: auto;
    max-width: 100%;
    margin: auto;
    flex: 0 0 auto;
    border-radius: 10px 10px 0 0;
    text-align: center;
    align-items: center;
    background-color: rgb(68, 134, 177);
    display: flex;
}

    .nombre-grupo p {
        white-space: nowrap;
        padding: 12px;
        font-size: 12px;
        /*border-radius: 10px 10px 0 0;*/
        color: white;
        background-color: transparent;
    }

.group-Container {
    top: 0;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 0px;
    border-radius: 10px 10px 0 0;
    background-color: rgb(223, 223, 223);
}

.check-seccion-interna {
    display: flex;
}

.check-item {
    display: flex;
    width: auto;
    right: auto;
    top: 0px;
    padding: 5px 10px 5px 10px;
    background-color: rgb(223, 223, 223);
}

.seccion-izquierda {
    width: 100%;
}

.seccion {
    width: 100%;
    display: inline-block;
}

.check-horizontal {
    width: 100%;
    display: inline-block;
}

.check-item label {
    margin-left: 10px;
    display: flex;
    white-space: normal;
    font-size: 0.7em;
    font-family: Arial;
    text-transform: uppercase;
}

.radio-tipo-muestra {
    display: flex;
    margin-left: 50px;
    margin-right: 50px;
}

.contenedor-radio-tipo-muestra {
    text-align: center;
}

.radio-checks-recibe-anticuagolantes {
    display: flex;
    margin-left: 180px;
    margin-right: 180px;
}

.contenedor-radio-checks-recibe-anticuagolantes {
    text-align: center;
}

.cuadroNumeroDeCama {
    padding: 0px 10px 0px 0px;
}

.DivHcu {
    padding: 0px 10px 0px 0px;
}

.dynamic-width {
    width: max-content;
    border: none;
    background-color: transparent; /* Opcional, si quieres que sea más limpio */
}

.form-css-label input {
    height: 70px;
}

.contentII section {
    width: 100%;
    max-width: 100%;
}

.contentII form-css-label {
    max-width: 100%;
}

    .contentII form-css-label fieldset + fieldset {
        border-top: 1px solid #ddd;
    }

article {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.5s ease-in-out !important;
}

input[type="checkbox"]:checked + label + article {
    max-height: max-content !important; /* Ajusta esto a la altura máxima de tu contenido */
}

.desplegableChekeable {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(0, 0, 0, 0.1);
}

/*INTERROGATORIO MEDICO*/
.contenedor-interrogatorio {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
}

    .contenedor-interrogatorio > div {
        flex: 1;
        min-width: 300px; /* Se asegura que cada sección tenga un tamaño mínimo */
    }

.contenedorAlergias {
    flex: 1; /* Asegura que ocupe todo el espacio restante */
    width: 100%;
    margin-left: 20px;
}

.contenedor-interrogatorio label {
    font-size: 14px; /* Ajusta el tamaño de fuente para que todo quepa */
}

.contenedor-interrogatorio div div {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaciado entre checkbox y texto */
}

.custom-checkbox {
    width: 20px; /* Tamaño del checkbox */
    height: 20px;
    cursor: pointer;
    vertical-align: middle; /* Alinea el checkbox verticalmente con el texto */
    position: relative; /* Para asegurar el ajuste fino */
    margin: 0 0 5px 0 !important;
}

label {
    font-size: 16px; /* Asegura que el texto esté alineado con el checkbox */
    vertical-align: middle; /* Ajusta alineación */
}

/*ESTILOS GENERALES DE LA TABLA*/
.contenedor-tabla {
    overflow-x: auto;
    margin-top: 20px;
}

.tabla-responsiva {
    width: 100%;
    border-collapse: collapse;
}

    .tabla-responsiva th, .tabla-responsiva td {
        padding: 10px;
        text-align: center;
        border: 1px solid #ddd;
    }

.titulo {
    text-align: center;
    font-size: 18px;
    background-color: #f2f2f2;
}

/* Estilos para las celdas de los combo-box */
.combo-box {
    width: 100%;
    padding: 5px;
    font-size: 14px;
}

.input {
    width: 100%;
    padding: 5px;
    font-size: 14px;
}

/* Responsividad */
@media (max-width: 768px) {
    .tabla-responsiva {
        font-size: 12px;
    }

        .tabla-responsiva th, .tabla-responsiva td {
            padding: 8px;
        }

    .combo-box, .input {
        font-size: 12px;
    }
}

/*Estilo del fondo del modal*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/*Estilo del contenido del modal*/
.modal-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

    /*Botones dentro del modal*/
    .modal-content .btn {
        margin: 5px;
    }

/* Estilo del GridView */
.GridHistorial {
    width: 70%;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

    .GridHistorial th {
        background-color: #810c33;
        color: white;
        padding: 10px;
        text-align: left;
        border: 1px solid #ddd;
    }

    .GridHistorial td {
        padding: 10px;
        border: 1px solid #ddd;
    }

    .GridHistorial tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .GridHistorial tr:hover {
        background-color: #f1f1f1;
    }

.btn-abrir {
    background-color: #2196F3;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
}

    .btn-abrir:hover {
        background-color: #0b7dda;
    }

.GridHistorial tbody {
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco semitransparente */
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
}

.oculto {
    display: none;
}

/* Estilos personalizados para el DropDownList de temperatura */
.temperatura-dropdown {
    color: gray;
    padding: 5px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    width: 100%;
    appearance: none; /* Elimina el estilo por defecto del sistema */
}

    /* Estilos al enfocar el DropDownList */
    .temperatura-dropdown:focus {
        border-color: #555; /* Gris oscuro */
        outline: none;
        box-shadow: 0 0 5px rgba(255, 87, 51, 0.5);
    }

/*Botones para selecionar reportes de consulta a domicilio*/
.contenedor-botones-DocConsulta {
    display: flex;
    justify-content: center;
    vertical-align: central;
    gap: 15px;
    flex-wrap: wrap;
}

.panel-body-DocConsulta {
    display: flex;
    justify-content: center;
    align-items: center; /* 🔹 Centra verticalmente */
    min-height: 60vh; /* 🔹 Ajusta para que no se monte con la cabecera */
}

.contenedor-botones-DocConsulta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 90px;
    flex-wrap: wrap;
    width: 100%;
}

.snip1573 {
    background-color: #000;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    margin: 10px;
    max-width: 350px;
    min-width: 250px;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 15px;
    transform: scale(1.3);
    box-shadow: 0px 0px 15px 5px rgba(161, 194, 216, 0.4); /* 🔹 Degradado azul en el borde */
}

    .snip1573 img {
        width: 100%;
        display: block;
        border-radius: 15px;
    }

    .snip1573 figcaption {
        top: 50%;
        left: 50%;
        position: absolute;
        z-index: 2;
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
        box-shadow: none; /* 🔹 Elimina cualquier sombra */
        background-color: transparent !important; /* 🔹 Hace que el fondo sea completamente transparente */
    }

    .snip1573 h3 {
        background-color: #8F1337;
        border: 2px solid #8F1337;
        color: #fff;
        font-size: 1em;
        font-weight: 600;
        letter-spacing: 1px;
        margin: 0;
        padding: 5px 10px;
        text-transform: uppercase;
        border-radius: 10px;
    }

    .snip1573:hover > img {
        opacity: 0.5;
    }

    .snip1573:hover figcaption {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }


.contenidoInicio {
    flex: 1 1 500px;
    max-width: 680px;
}

.scrollMensajesDeInteres {
    overflow: visible;
}

.ContenedorAntecedentesPersonales {
    flex: 0 0 300px;
    position: sticky;
    top: 140px;
    z-index: 50;
}

    .ContenedorAntecedentesPersonales details {
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,.12);
    }

.containerInicio {
    display: flex;
    gap: 1.2rem;
    perspective: 1200px;
}

    .containerInicio > div:hover .content {
        transform: translateZ(60px) rotateY(0deg) scale(1.08);
    }


/* ----------  RESPONSIVE  ---------- */
@media (max-width: 991px) {
    .zona-servicios {
        flex-direction: column;
        align-items: center;
    }

    .contenidoInicio {
        max-width: 95vw;
        margin-top: 5%;
    }

    .containerInicio {
        justify-content: center;
    }

    .ContenedorAntecedentesPersonales {
        position: static;
        margin-top: 2rem;
    }
}

/*Hacer transparente un div*/
.transparente {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75)) !important;
}

/*Estilo de signos vitales*/
.sv-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 6px 16px rgba(16,24,40,.08);
}

.sv-title {
    font-weight: 700;
    letter-spacing: .08em;
    color: #1A6B9F;
    margin: 0 0 10px;
}

.sv-label {
    font-weight: 600;
    color: #475467;
    margin-top: 8px;
    font-size: 14px;
}

.sv-row {
    margin-bottom: 8px;
}

/* ====== H.C.U. fila 20% 20% 60% ====== */
.sv-inline-flex {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.sv-20 {
    flex: 0 0 20%;
    max-width: 20%;
}

.sv-60 {
    max-width: 60%;
}
/* inputs de HCU (sin max-width) */
.sv-input-hcu {
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
    padding: 2px 6px;
    min-width: 0;
}

/* ====== Inputs pequeños para signos ====== */
.sv-input-sm {
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
    padding: 2px 6px;
    max-width: 150px;
    display: inline-block;
}

.sv-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.slash {
    font-weight: 700;
    color: #475467;
}

/* Botones compactos */
.btn-slim {
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    border: 0;
    transition: all .2s;
}

.btn-slim-primary {
    background: #1A6B9F;
    color: #fff;
}

.btn-slim-ghost {
    background: #F2F4F7;
    color: #101828;
}

.btn-slim-danger {
    background: #E11D48;
    color: #fff;
}

.btn-slim:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Responsive */
@media(max-width:1000px) {
    .sv-input-sm {
        height: 44px;
        font-size: 22px;
        max-width: 100%;
    }

    .sv-input-hcu {
        height: 44px;
        font-size: 22px;
    }

    .sv-label {
        font-size: 22px;
    }

    .btn-slim {
        font-size: 22px;
        padding: 12px 20px;
    }
    /* en móvil, HCU apila 100% cada uno */
    .sv-20, .sv-60 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/*CODIGO CSS DEL CONSTANTES BALANCE*/
/* Ámbito local para variables: evita contaminar :root */
.CB-scope {
  --cols:21;
  --rows:58;
  --cell-h:22px;
  --scale-w:110px;
  --sep-color:#a5a5d6;
  --grid-v:#c9c9c9;
  --grid-h:#efefef;
  --mint:#d8ffd8;
  --sky:#dff7f9;
}

/* Si quieres un equivalente local a .col-sm-10 (sin tocar Bootstrap) */
.CB-col-sm-10 { width: 100%; }

.CB-hoja-vitales {
  background: #f5f7ff;
  border: 1px solid #cfcfe8;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.CB-titulo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .3px;
  margin-bottom: 8px;
}

.CB-cv-wrapper {
  display: grid;
  grid-template-columns: var(--scale-w) 1fr;
  border-top: 2px solid var(--sep-color);
}

/* izquierda (regla) */
.CB-cv-scale {
  background: var(--sky);
  border-right: 2px solid var(--sep-color);
  position: relative;
  padding: 6px;
  font-size: 12px;
}

.CB-cv-scale .CB-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 700;
}

.CB-cv-scale .CB-labels {
  position: relative;
  height: calc(var(--rows)*var(--cell-h));
  border-top: 1px solid #9ed6df;
  border-bottom: 1px solid #9ed6df;
}

.CB-cv-scale .CB-mark {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  line-height: 1;
  transform: translateY(-50%);
  color: #1b1b1b;
}

/* derecha (grid + overlay) */
.CB-cv-right {
  position: relative;
  overflow-x: auto;
  background: #fff;
}

.CB-cv-head {
  display: grid;
  grid-template-columns: repeat(var(--cols),1fr);
  background: var(--mint);
  border-bottom: 2px solid var(--sep-color);
}

.CB-cv-head div {
  text-align: center;
  padding: 6px 0;
  font-weight: 700;
  letter-spacing: .2px;
  border-right: 1px solid #b7e6b7;
}

.CB-cv-head div.CB-grp {
  border-left: 2px solid var(--sep-color);
}

.CB-cv-grid {
  position: relative;
  z-index: 1; /* grid (inputs) debajo del canvas */
  display: grid;
  grid-template-columns: repeat(var(--cols),1fr);
  grid-template-rows: repeat(var(--rows),var(--cell-h));
  border-left: 2px solid var(--sep-color);
  border-right: 2px solid var(--sep-color);
  background: #fff;
}

.CB-cv-cell {
  border-right: 1px dotted var(--grid-v);
  border-bottom: 1px solid var(--grid-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.CB-cv-cell.CB-grp {
  border-left: 2px solid var(--sep-color);
}

/* inputs bloqueados pero visibles */
.CB-mini {
  width: 95%;
  max-width: 100%;
  height: 20px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  outline: none;
  opacity: .9;
  pointer-events: none;
}

.CB-dash-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed #333;
  opacity: .7;
  pointer-events: none;
  z-index: 2; /* línea 37° debajo de las líneas de datos */
}

/* canvas overlay para las líneas (siempre arriba) */
#CB-cvOverlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5; /* encima de números y 37° */
}

.CB-acciones {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.CB-acciones button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #6b6bb8;
  color: #fff;
  cursor: pointer;
}

.CB-acciones .CB-secondary {
  background: #a0a0c8;
}

.CB-fechas button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #6b6bb8;
  color: #fff;
  cursor: pointer;
}

.CB-top-bar{
    margin-bottom: 2px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 15px;
    margin-top: 10px;
}

/* Título de cada sección */
.CB-section-title {
    background: #d6d3f5;
    font-weight: bold;
    padding: 4px;
    margin-top: 12px;
    border: 1px solid #666;
}

/* Tablas con columnas por día */
.CB-grid-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 12px;
}

.CB-grid-table th,
.CB-grid-table td {
    border: 1px solid #666;
    padding: 6px;
    text-align: center;
    vertical-align: middle;
}

/* Columna izquierda fija (nombres de datos) */
/* Solo aplica a la primera columna del cuerpo */
.CB-grid-table tbody td:first-child {
    text-align: left;
    font-weight: bold;
    background: #eaf0ff;
    width: 120px;
    text-align:center;
}

/* Cada horario (Mañana/Tarde/Noche) ocupa el mismo % */
.CB-grid-table th:not(:first-child),
.CB-grid-table td:not(:first-child) {
    width: calc((100% - 200px) / 21); /* 21 columnas de horario */
}



/* Quita la regla para th */
.CB-grid-table th:first-child {
    text-align: center;
    background: #d6d3f5; /* color distinto para cabecera */
    font-weight: bold;
    width: auto;
}


/* Aplica a todas tus tablas de constantes */
.CB-grid-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 12px;

    /* Fondo semitransparente */
    background: rgba(255, 255, 255, 0.4);

    /* Borde suave */
    border: 1px solid rgba(255, 255, 255, 0.2);

    /* Bordes redondeados */
    border-radius: 8px;

    /* Sombra ligera */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    /* Blur al contenido detrás */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* Safari */
}

.CB-section {
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.CB-section-title {
    background: #d6d3f5;
    font-weight: bold;
    padding: 4px 8px;
    margin-bottom: 6px;
    border-radius: 6px 6px 0 0;
}

.CB-section-body {
    overflow-x: auto; /* por si la tabla es muy ancha */
}

.CB-table-paciente {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
}

.CB-table-paciente td {
    border: 1px solid #666;
    padding: 6px;
    vertical-align: middle;
}

.CB-table-paciente tr:first-child td {
    background: #d8fdd8;
    font-weight: bold;
}




/* Copia de containerInicio pero con otro nombre */
.containerOpciones {
    margin-top: 7%;
    margin-left: 20%;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 500px;
    gap: 10px;
}

.containerOpciones > div {
    flex: 0 0 120px;
    border-radius: 0.5rem;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    box-shadow: 1px 5px 15px #1e0e3e;
    position: relative;
    overflow: hidden;
}

/* Fotos distintas para esta pantalla */
.containerOpciones > div:nth-of-type(1) {
    background: url("https://i.pinimg.com/736x/2f/55/8d/2f558d20c1b11cdc6edc887c48e76257.jpg") no-repeat 50% / cover;
}
.containerOpciones > div:nth-of-type(2) {
    background: url("https://i.pinimg.com/736x/46/d2/04/46d2040309430c6182b4461f4d02bccd.jpg") no-repeat 50% / cover;
}
.containerOpciones > div:nth-of-type(3) {
    background: url("foto-nueva3.jpg") no-repeat 50% / cover;
}
.containerOpciones > div:nth-of-type(4) {
    background: url("foto-nueva4.jpg") no-repeat 50% / cover;
}
.containerOpciones > div:nth-of-type(5) {
    background: url("foto-nueva5.jpg") no-repeat 50% / cover;
}
.containerOpciones > div:nth-of-type(6) {
    background: url("foto-nueva6.jpg") no-repeat 50% / cover;
}

/* Animaciones de hover igual que containerInicio */
.containerOpciones > div:hover {
    flex: 0 0 250px;
    box-shadow: 1px 3px 15px #4C4674;
    transform: translateY(-30px);
}

.containerOpciones > div .content {
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 15px;
    opacity: 0;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(2, 2, 46, 0.676) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translateY(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
    visibility: hidden;
}

.containerOpciones > div:hover .content {
    opacity: 1;
    transform: translateY(0%);
    visibility: visible;
}


/* Hace verdes ambas filas de cabeceras */
.CB-table-paciente tr:nth-child(1) td,
.CB-table-paciente tr:nth-child(3) td {
    background: #d6f5d6; /* verde clarito */
    font-weight: bold;
    text-align: center;
    padding: 6px;
}

/* Igualar altura de todas las filas */
.CB-table-paciente td {
    height: 35px;   /* ajusta a tu gusto */
    vertical-align: middle;
}


/* Aplica a todas las tablas con clase CB-grid-table */
.CB-grid-table {
    table-layout: fixed;   /* 🔹 fija ancho de columnas */
    width: 100%;           /* 🔹 reparte proporcionalmente */
    border-collapse: collapse;
}

/* Aplica a todas las celdas MENOS la primera de cada fila */
.CB-grid-table th:not(:first-child),
.CB-grid-table td:not(:first-child) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80px;   /* ajusta según necesites */
}

.CB-grid-table th:first-child,
.CB-grid-table td:first-child {
    width: 120px;        /* 🔹 ajusta al tamaño que necesites */
    white-space: normal; /* 🔹 permite varias líneas si es largo */
    overflow: visible;   /* 🔹 que no corte texto */
    text-overflow: clip; /* 🔹 sin puntos suspensivos */
}







