
body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 12px 15px;
}

@media screen and (max-width: 500px) {
    body {
    padding: 7px 10px;
}
}

.container {
    width: 80%;
    margin: 0 auto;
}

form {
    margin-bottom: 15px;
    line-height: 1.8;
}

@media screen and (min-width: 500px) {
.formulario {
    padding: 0 0 0 20%;
}
}

input, select, textarea {
    margin-left: 5px;
    margin-bottom: 5px;
    padding-left: 4px;
    width: 231px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

input[type="checkbox"], input[type="radio"], input[type="submit"] {
    width: auto;
}
input[type="number"], input[type="date"] {width: 150px;}

table {
    border-collapse: collapse;
}

th {
    background-color: #175ebb;
    color: white;
    padding: 5px 7px;
    }
    
th a {color: #fff;}

td {
    padding: 3px 7px;
}

th, tr, td {
  border: solid 1px #e0e0e0;
}

.tabla2 {
    width: 100%;
    max-width: 400px;
}

.tabla2 tr {
    border: 0;
    border-bottom: 1px solid #ddd;
}
.tabla2 td {
    border: 0;
    padding-left: 10px;
}


/* Filas y Columnas */

.fila {
    display: flex;
}
@media screen and (max-width: 800px) {
.fila {
    display: block;
} }

.columna {
    flex: 1; /* Crecen para llenar el contenedor */
}

    .col {flex-basis: auto;}
    .col-10 {flex-basis: 10%; padding: 0 10px;}
    .col-20 {flex-basis: 20%; padding: 0 10px;}
    .col-25 {flex-basis: 25%; padding: 0 10px;}
    .col-30 {flex-basis: 30%; padding: 0 10px;}
    .col-40 {flex-basis: 40%; padding: 0 10px;}
    .col-45 {flex-basis: 45%; padding: 0 10px;}
    .col-50 {flex-basis: 50%; padding: 0 10px;}
    .col-60 {flex-basis: 60%; padding: 0 10px;}
    .col-70 {flex-basis: 70%; padding: 0 10px;}


.vista-datos {
    font-size: 15px;
    }
    
.centrar-pag {
    display: flex;
    align-items: center;
    justify-content: center;
}
    
.centrar-popup {
    padding-left: 10px;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 500px) {
    input[type="url"], textarea {
    width: 90%;
    }
}

.texto-largo {
    max-width: 300px;
    white-space: nowrap; /* Evitar que el texto se divida en varias líneas */
    overflow: hidden; /* Ocultar el texto que se desborda */
    text-overflow: ellipsis;
}

h1 {font-size: 25px; line-height: 1.05;}
h2 {font-size: 22px; line-height: 1.05;}
h3 {font-size: 19px; line-height: 1.05;}
h4 {font-size: 17px; line-height: 1.1;}
h5 {font-size: 15px; line-height: 1.1;}

@media screen and (max-width: 780px) {
    .texto-celular {
        p, span, li, table, div, form, input, textarea { font-size: 12px !important; line-height: 1.2 !important;}
        h1 {font-size: 23px !important; line-height: 1 !important;}
        h2 {font-size: 18px !important; line-height: 1 !important;}
        h3 {font-size: 15px !important; line-height: 1 !important;}
        h4 {font-size: 13px !important; line-height: 1 !important;}
    }
}


td a {line-height: 1.4;}

/* Estilos para filas*/

tr:nth-child(even) {
    background-color: #f2f2f2; /* Color de fondo para filas pares */
}
tr:nth-child(odd) {
    background-color: #ffffff; /* Color de fondo para filas impares */
}

.sombra-tabla tr:nth-child(even) {
    background-color: #f2f2f2; /* Color de fondo para filas pares */
}
.sombra-tabla tr:nth-child(odd) {
    background-color: #ffffff; /* Color de fondo para filas impares */
}

    
a {
    font-weight: 600;
    text-decoration: none;
    color: #1063a7;
}

.ocultar {display: none;}

.izquierda {float: left;}
.derecha {float: right;}

.marco {
    padding: 5px 15px;
    border: 2px solid #000;
}

.mostrar-imprimir {display: none;}
    
@media print {
    .ocultar-imprimir {
        display: none;
    }
    .mostrar-imprimir {
        display: inline-block;
    }
}

title {background: rgb(0 0 0 / 85%); color: #fff;}


/* Modo oscuro */
body {
    transition: background-color 1s, color 1s;
}
.boton-oscuro {
    background: none;
    border: none;
    line-height: 1;
    color: #7f7f7f;
}
.modo-oscuro {
    body, div, td {
    background: #1b2832;
    color: #e0e0e0;
    }
}
.modo-oscuro .main-header {background: #000;}
.modo-oscuro a {color: #9cdbf1}
.modo-oscuro {
    .nav-link, .nav-link:hover, i {
        color: #fff !important;
    }
}

#close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ef4545;
    color: white;
    border: none;
    border-radius: 5px;
    width: 27px;
    height: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}


/* Modal */

.modal-dialog {
    max-width: 500px;
}
.modal-header {
    padding: 10px 10px 6px 15px;
}
.modal-header button {
    padding: 0;
    background-color: transparent;
    border: 0;
    padding: 5px 10px!important;
    margin-top: -3px !important;
}
.modal-header .close {
    font-size: 25px;
    line-height: 1;
    color: #fff;
    text-shadow: none;
    opacity: 1;
    background: #ea5765;
    margin: -10px !important;
}
.modal-title {
    line-height: 1.1;
    font-weight: 600;
    font-size: 17px;
    flex: auto;
}
.modal-body {
    padding: 15px 10px 15px 15px;
    font-size: 14px;
}
.modal-body input, .modal-body select, .modal-body textarea {
    font-size: 14px;
    line-height: 1.5;
}
.modal-body textarea, .modal-body input[type="url"]{
    width: 95%;
}
.modal-body label {margin-bottom: 7px;}
.modal-body input[type="submit"], .modal-body button[type="submit"] {
    background: #0c7bbf;
    color: #fff;
    border: none;
    padding: 7px 17px;
    border-radius: 5px;
    margin: 12px 0 0 0;
    font-size: 15px;
}
.modal-footer {
    padding: 3px;
}
.modal-footer .btn-secondary {
    color: #fff;
    background-color: #ea5765;
    border-color: transparent;
    font-size: 15px;
}

@media screen and (max-width: 1200px) {
.scroll-h {
    width: 100%;
    overflow-x: auto;
}
.scroll-v {
    width: 100%;
    overflow-y: auto;  
}
}

.paginacion {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
}
.paginacion a {
    display: block;
    margin: 0 5px;
    padding: 0px 5px;
    text-decoration: none;
    color: #007bff;
    background-color: #f8f9fa;
    border: 1px solid #dddddd;
    border-radius: 0px;
    transition: background-color 0.3s, color 0.3s;
}
.paginacion a:hover {
    background-color: #e2e6ea;
    color: #0056b3;
}
.paginacion a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
    pointer-events: none;
}


/* Botones */

.b-simple {
    border: 1px solid black;
    padding: 2px 8px;
    margin: 3px 10px;
    text-decoration: none;
    color: black;
    font-weight: 500;
    line-height: 1.9;
}
.b-simple:hover {
    text-decoration: none;
    color: inherit;
}

.boton {
  display: inline-block;
  margin: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 3px 15px;
  transition: background-color 0.3s ease;
  border-radius: 20px;
  border: none;
  line-height: 2;
}

.boton img {
  vertical-align: middle;
  margin-right: 10px;
}
.boton:hover {color: white; text-decoration: none;}

@media screen and (max-width: 800px) {
   .boton {
    font-size: 14px;
    padding: 2px 12px;
    margin: 10px;
} }

.b1 {
  background-color: #236ed0;
}
.b1:hover {
  background-color: #9c40bc;
}
.b2 {
  background-color: red;
}
.b2:hover {
  background-color: #ff0080;
}
.b3 {
  background-color: #1ec370;
}
.b3:hover {
  background-color: #19ba9f;
}
.bw {
  background-color: #25D366;
}
.bw:hover {
  background-color: #128C7E;
}
