/*
 # ########*###########################
 Autor: José Luis Rodriguez
 Mail: jrodriguez@bincodex.com
 Web: https://bincodex.com
 Fecha: 2026-06-15 14:30:30
 Archivo: dsp.css
 Codificación: UTF-8
 Editado en: Kate 25.04.3
 ####################################
 */


body {
	font-size: 14px; /* Un poco más grande para legibilidad moderna */
/* 	color: #fff; */
	/*! background: #272727; */
	border: 0px solid blue;
}

#main_sys {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border: 0px solid red;
	width: 100%;
	height: 100%;
}


#dsp-reg{
	border: 1px solid silver;
	width: 300px;
	height: 200px;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
}


#dsp-call {
	border: 1px solid silver;
	width: 99%;
	height: calc(100vh - 25px);
	background: #4b4b4b;
	position: relative;
}

video {
	border-radius: 8px;
	margin: 10px;
	background: #262626;
	border: 1px solid silver;
}


#videoLocal {
	position: absolute;
	bottom: 50px;
	right: 50px;
	z-index: 1;
	max-width: 250px !important;
	max-height: 150px !important;
}


#videoRemoto {
	position: absolute;
	top: 50px;
	left: 0px;
	width: 97%;
	height: calc( 100vh - 200px );
}


#exe_call{
	position: absolute;
	bottom: 12px;
	left: 20px;

}

#cls_call, #close_modal {
	position: absolute;
	bottom: 20px;
	left: 20px;

}


#debug {
	width: 350px;
	height: 20px;
	padding: 10px 10px 2px 9px;
	background: rgba(0,0,0,0.5);
	color: #00ff00;
	overflow-y: scroll;
	font-size: 12px;
	z-index: 2;
	position: absolute;
	top: 10px;
	right: 0px;
	border-radius: 7px 0px 0px 0px;
	line-height: 1.5;
}


#table_data {
	width: 350px;
	height: 60px;
	background: rgba(0,0,0,0.5);
	color: #ffffff;
	font-size: 12px;
	z-index: 2;
	position: fixed;
	top: 82px;
	right: 1px;
	border: 0px;
/* 	display: none; */
}

#debug_stream {
	width: 350px;
	width: 350px;
	height: 20px;
	padding: 10px 10px 2px 9px;
	background: rgba(0,0,0,0.5);
	color: #00ff00;
	overflow-y: scroll;
	font-size: 12px;
	z-index: 2;
	position: absolute;
	top: 30px;
	right: 0px;
	border-radius: 0px 0px 0px 7px;
	line-height: 1.5;
}

#debug_cxp {
	width: 50px;
	height: 20px;
	padding: 10px 10px 2px 9px;
	background: rgba(0,0,0,0.5);
	color: #00ff00;
	overflow-y: scroll;
	font-size: 12px;
	z-index: 2;
	position: absolute;
	bottom: 32px;
	right: 0px;
	border-radius: 7px 0px 0px 0px;
	line-height: 1.5;
}

#debug_cxm {
	width: 50px;
	height: 20px;
	padding: 10px 10px 2px 9px;
	background: rgba(0,0,0,0.5);
	color: #00ff00;
	overflow-y: scroll;
	font-size: 12px;
	z-index: 2;
	position: absolute;
	bottom: 12px;
	right: 0px;
	border-radius: 0px 0px 0px 7px;
	line-height: 1.5;
}


#video_wait{
	color: #fff;
	position: absolute;
	top: 100px;
	left: 100px;
	z-index: 3;
}


#publicidad {
	width: 50%;
	height: 87px;
/* 	padding: 10px 10px 2px 9px; */
	background: rgba(0,0,0,0.5);
	color: #00ff00;
	overflow-y: scroll;
	font-size: 12px;
	z-index: 2;
	position: absolute;
	bottom: 12px;
	right: 20%;
	border-radius: 7px 7px 7px 7px;
	line-height: 1.5;
}



 .banner-container {
    /*width: 728px;
    height: 90px;
    margin: 50px auto;
    overflow: hidden;
    position: relative;*/
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Estilos para cada imagen */
.slide-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.slide-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.slide-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.slide-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

/* Indicadores */
.indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    display: none;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Botones de navegación */
.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s;
    display: none;
}

.btn-nav:hover {
    background: rgba(255,255,255,0.6);
}

.btn-prev { left: 10px; }
.btn-next { right: 10px; }





#formulario-historia{
	width: 40%;
	background: #fff;
	height: 100%;
	padding: 20px;
}


.container {
	display: flex;
	font-size: 0.4em !important;
	gap: 20px;
	flex-direction: column;
	height: 100vh;
	overflow: auto;
	padding: 20px;
}

  h1 {
            text-align: center;
            font-size: 28px;
            color: #1a237e;
            border-bottom: 4px solid #0d47a1;
            padding-bottom: 15px;
            margin-bottom: 30px;
            letter-spacing: 1px;
        }

        .subtitle {
            text-align: center;
            font-size: 14px;
            color: #555;
            margin-top: -20px;
            margin-bottom: 25px;
            font-style: italic;
        }

        /* ===== GRID GENERAL ===== */
        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 18px 30px;
        }
        .grid-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 18px 30px;
        }
        .grid-4 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 18px 30px;
        }
        .grid-5 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
            gap: 18px 20px;
        }

        .full-width {
            grid-column: 1 / -1;
        }

        /* ===== CAMPOS ===== */
        .field {
            display: flex;
            flex-direction: column;
        }

        .field label {
            font-weight: 600;
            font-size: 13px;
            color: #1a237e;
            margin-bottom: 4px;
            letter-spacing: 0.3px;
        }

        .field label .required {
            color: #d32f2f;
            margin-left: 2px;
        }

        .field input,
        .field select,
        .field textarea {
            padding: 10px 12px;
            border: 1.5px solid #cfd8dc;
            border-radius: 6px;
            font-size: 14px;
            font-family: inherit;
            background: #fafafa;
            transition: border-color 0.2s, box-shadow 0.2s;
            width: 100%;
        }

        .field input:focus,
        .field select:focus,
        .field textarea:focus {
            border-color: #0d47a1;
            outline: none;
            box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
            background: #ffffff;
        }

        .field textarea {
            resize: vertical;
            min-height: 70px;
        }

        .field textarea.large {
            min-height: 110px;
        }

        /* ===== SECCIONES CON BORDE ===== */
        .section-box {
            border: 2px solid #e3e8ee;
            border-radius: 10px;
            padding: 20px 22px;
            margin-top: 25px;
            background: #fafcff;
        }

        .section-box .section-title {
            font-size: 18px;
            font-weight: 700;
            color: #0d47a1;
            margin-bottom: 16px;
            border-left: 5px solid #0d47a1;
            padding-left: 14px;
        }

        .section-box .section-subtitle {
            font-size: 15px;
            font-weight: 600;
            color: #1a237e;
            margin: 14px 0 8px 0;
        }

        /* ===== ANAMNESIS ===== */
        .anamnesis-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px 35px;
        }

        .anamnesis-grid .full-width {
            grid-column: 1 / -1;
        }

        /* ===== REVISIÓN POR SISTEMAS ===== */
        .sistemas-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 16px 30px;
        }

        /* ===== BOTONES ===== */
        .btn-group {
            display: flex;
            gap: 16px;
            justify-content: center;
            margin-top: 35px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 14px 42px;
            font-size: 16px;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.25s;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background: #0d47a1;
            color: #fff;
        }
        .btn-primary:hover {
            background: #0a3a87;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(13, 71, 161, 0.3);
        }

        .btn-secondary {
            background: #e3e8ee;
            color: #1a237e;
        }
        .btn-secondary:hover {
            background: #cfd8dc;
            transform: translateY(-2px);
        }

        .btn-success {
            background: #1b5e20;
            color: #fff;
        }
        .btn-success:hover {
            background: #145218;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(27, 94, 32, 0.3);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 992px) {
            .grid-2,
            .grid-3,
            .grid-4,
            .grid-5 {
                grid-template-columns: 1fr 1fr;
            }
            .sistemas-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 600px) {
            .container {
                padding: 18px 12px;
            }
            .grid-2,
            .grid-3,
            .grid-4,
            .grid-5 {
                grid-template-columns: 1fr;
            }
            .anamnesis-grid {
                grid-template-columns: 1fr;
            }
            .sistemas-grid {
                grid-template-columns: 1fr;
            }
            .btn {
                width: 100%;
                padding: 14px;
            }
            .btn-group {
                flex-direction: column;
            }
        }







@media (max-width: 1580px) {

	#publicidad {
		right: 30%;
	}

}


@media (max-width: 1310px) {

	#publicidad {
		right: 27%;
	}

}

@media (max-width: 1170px) {

	#publicidad {
		right: 30%;
		width: 45%;
	}

}

@media (max-width: 1045px) {

	#publicidad {
		right: 32%;
		width: 40%;
	}

}


@media (max-width: 970px) {

	#publicidad {
		right: 36%;
		width: 35%;
	}

}



@media (max-width: 885px) {

	#publicidad {
		right: 38%;
		width: 30%;
	}

}


@media (max-width: 830px) {

	#publicidad {
		right: 41%;
		width: 25%;
	}

}


@media (max-width: 777px) {

	#publicidad {
		right: 44%;
		width: 20%;
	}

}


@media (max-width: 730px) {

	#publicidad {
		right: 70px;
		width: 100px;
		height: 40px;
	}

}


@media (max-width: 540px) {

	.logo-app {
		width: 150px !important;
	}

}


@media (max-width: 510px) {

	.logo-app {
		width: 120px !important;
	}

}


@media (max-width: 480px) {

	.logo-app {
		width: 100px !important;
		height: 50px !important;
	}

}

@media (max-width: 460px) {

	.logo-app {
		width: 80px !important;
		height: 47px !important;
	}

}
