:root {
    --primario: #ed3237;
    --secundario: blue;
    --negro: #000000;
    --blanco: #ffffff;
    --gris: gray;
    --semiBlanco: #f2f2f2f2;
    --amarillo: rgb(231, 231, 20);
    --verde: green;
    --botonAmarillo: #FFEE8C;
    --botonAzul: #26c6da;
    --letra: rgb(56, 150, 164);

    --backTabla: rgb(245, 220, 133);
    --bordegris: rgb(217, 217, 217);
    --celdaAmarilla: #f5dc85;
}
html{
    box-sizing: border-box;
    font-size: 62.5%; /* 1 rem = 10px */
}
*,*:before,*:after{
    box-sizing: inherit;
}
body{
    /* font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-family: Arial;
    font-size: 1.6rem;
    line-height: 2;
}

/* Globales */
.contenedor {
    width: min( 90%, 120rem);
    margin: 0 auto;
}

h1,h2,h3,h4{
    font-family: sans-serif;
    line-height: 1.2;
}

h1{
    font-size: 4.8rem;
}
h2{
    font-size: 4rem;
}
h3{
    font-size: 3.2rem;
}
h4{
    font-size: 2.8rem;
}
img{
    max-width: 100%;
}
a{
    text-decoration: none;
    color: var(--negro);
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Utilidades */
.no-margin {
    margin: 0;
}
.no-padding {
    padding: 0;
}
.centrar-texto{
    text-align: center;
}
.text-left{
    text-align: left;
}
.margin-top-5{
    margin-top: 5rem;
}
.margin-bottom-5{
    margin-bottom: 5rem;
}

.margin-0-auto{
    margin: 0 auto;
}

.boton{
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    text-align: center;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
}

@media (min-width: 768px) {
    .boton{
        /* Toma el espacion que se requiere pero con margin*/
        display: inline-block;
    }
}

.boton:hover{
    filter: brightness(1.15);
}

.transparentar{
    filter: brightness(2);
}

/* .modal{
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.modal.activo{
    display: flex;
}

.modal-contenido{
    background: var(--blanco);
    padding: 2rem 2rem 6rem 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    /* max-width: 400px;
    max-height: 90vh; 
    overflow-y: auto;
} */

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    
    /* Cambios aquí: en lugar de display: none, usamos opacidad y visibilidad */
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transición del fondo oscuro */
}

.modal.activo {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    background: var(--blanco);
    padding: 2rem 2rem 6rem 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    overflow-y: auto;
    
    /* Efecto de inicio para el contenido (un poco más pequeño y más abajo) */
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease; /* Transición del cuadro blanco */
}

/* Cuando el modal está activo, el contenido vuelve a su posición y tamaño original */
.modal.activo .modal-contenido {
    transform: translateY(0) scale(1);
}

.modal-contenido form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cerrar-modal{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 1rem 0;
}

.cerrar-modal button{
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: var(--primario);
    color: white;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #d9d9d9; 
  border-radius: 50px;       
  padding: 0.5rem 1.5rem;         
  width: 280px;   
}

.search-box input {
  border: none;              
  background: transparent;   
  outline: none;             
  font-size: 14px;
  color: #4b4f56;
  width: 100%;
}

.search-box input::placeholder {
  color: #65676b;
}

.search-icon {
  /* font-size: 16px; */
  /* color: #65676b; */
  cursor: pointer;
  margin-left: 8px;
  width: 2rem;
}

/* Contenedor principal tipo píldora */
.custom-select {
  position: relative;
  display: flex;
  background-color: #f7f3e8;
  border-radius: 50px;
  padding: 0 1.2rem;
  cursor: pointer;
  user-select: none;
  min-width: 160px;
}

/* Estilo de la barra visible */
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Círculo amarillo con borde */
.circle-indicator {
  width: 2.2rem;
  height: 2.2rem;
  background-color: #ffeb3b;
  border: 1.5px solid #333;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Texto de la opción seleccionada */
.select-text {
  color: #b8860b;
  font-size: 1.8rem;
  flex-grow: 1;
}

/* Flecha hacia abajo */
.arrow {
  font-size: 10px;
  color: #b8860b;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Opciones desplegables (ocultas por defecto) */
.select-options {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 10;
}

/* Estilo de cada opción individual */
.select-options .option {
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  transition: background 0.2s;
}

.select-options .option:hover {
  background-color: #f2f2f2;
}

/* Clase para mostrar el menú y girar la flecha */
.custom-select.open .select-options {
  display: block;
}

.custom-select.open .arrow {
  transform: rotate(180deg);
}

/* Header */
.fondo{
    background-color: var(--primario);
}

.menu{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--blanco);
    padding: 3rem 0;
}

.menu a{
    color: var(--blanco);
}

@media (min-width: 768px) {
    .menu {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.logo{
    display: flex;
    gap: 2rem;
}
.logo img{
    width: 100px;
    height: auto;
}

.navegacion{
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .navegacion{
        flex-direction: row;
        gap: 2rem;
    }
}

#btnSalir{
  width: 24rem;
  padding: 0.85rem;
  background-color: var(--botonAmarillo);
  color: var(--negro);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
  text-transform:none;
}

/** main **/
.main{
    width: 100%;
}

.form{

}

.fieldset-cliente,
.fieldset-empresa{
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border: none; */
}

.fieldset-cliente h3,
.fieldset-empresa h3{
    text-align: center;
}

@media (min-width: 768px) {
    .fieldset-cliente h3{
        /* text-align: left; */
    }
}

.form-cliente__grid{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#edad{
    width: 50px;
}

#nacimiento{
    width: 150px;
}

.form-cliente__campo,
.form-empresa__campo{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    /* justify-content: space-between; */
    gap: 2rem;
}

.form-cliente__campo input{
    /* max-width: 50%; */
}

@media (min-width: 768px) {
    .form-cliente__campo,
    .form-empresa__campo{
        display: flex;
        flex-direction: row;
        text-align: left;
        /* justify-content: space-between; */
        gap: 2rem;
    }

    .form-cliente__label,
    .form-empresa__label{
        text-align: right;
    }
}

.form-cliente__campo label,
.form-empresa__campo label{
    min-width: 15rem;
}

/* Lista */
.lista{

}
.lista__tabla{
    width: auto;
    margin: 0 auto;
}
.lista__th,
.lista__td{
    padding: 1rem 1.5rem;
    border: 1px solid var(--negro);
    text-align: left;
}
.lista__th{
    background-color: var(--negro);
    color: var(--blanco);
}
.lista__clientes tr:nth-child(odd){
    background-color: var(--semiBlanco);
}
.lista__clientes tr:nth-child(even){

}

.seleccionar{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.seleccionar a{
    padding: 1rem 1rem;
}

.lista__botones{
    display: flex;
    justify-content: center;
}

.busqueda{
    text-align: center;
}

.fieldset-telefono{
    
}
.fieldset__cliente{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}


.lista-telefono{
    display: none;
}

.lista__diagnostico.ver{
    background-color: var(--amarillo);
    margin: 0 auto;
}

.lista__diagnostico.editar{
    background-color: var(--primario);
    margin: 0 auto;
}

.lista__diagnostico.bdiagnostico{
    background-color: var(--verde);
    margin: 0 auto;
}


@media (min-width: 768px) {
  .lista-diagnostico > button{
        display: block;
        margin: 2rem auto 0 auto;
    }
}

/** Diagnostico **/
.diagnostico{
    display: none;
}

.fieldset__diagnostico{
    display: grid;
    grid-template-columns: repeat(2,1fr);
}

.form-diagnostico__ojo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.form-diagnostico__campo{
    width: 20rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
}
.texto-ojo{
    grid-column: 1/4;
}
.form-diagnostico__campo input{
   min-width: 5rem;
   text-align: center;
}
.form-diagnostico__boton{
    width: 20rem;
    margin: 5rem auto 0 auto;
    grid-column: 1/3;
}

.form-diagnostico__campo--recomendacion{
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 1/3;
}

.form-diagnostico__campo--recomendacion textarea{
    width: 50%;
    height: 5rem;
}

/* enfermedad*/
.form-cliente__enfermedad{
    display: grid;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: 1 / 3;
}

.form-cliente__checkbox{
    display: inline-flex;
    flex-direction: row-reverse;
}

.botonesEditar{
    display: flex;
    flex-direction: column;
    align-items: center;
}


/** Datos Cliente**/
.datos{
    display: none;
}

.editar-datos{
    background-color: var(--botonAmarillo);
}

.guardar-datos{
    background-color: var(--botonAzul);
}

/** Empresas **/
.logo-inicio{
    display: flex;
    flex-direction: column;
    align-items: left;
}

.logo-empresa{
    width: 200px;
}

.texto-empresa{
    font-size: 2.4rem;
    font-weight: 700;
    font-style: normal;
    color: var(--letra);
    font-kerning: normal;
    text-decoration-line: none;
    text-decoration-thickness: initial;
    text-decoration-style: initial;
    margin-top: 1rem;
}
.seleccion-clientes{
    display: flex;

    gap: 3rem;
}


.lista__tabla-empresa{
    border-collapse: collapse;
}

.lista__tabla-empresa{
    width: 100%;
    margin: 0 auto;
}
.lista__th-empresa,
.lista__td-empresa{
    padding: 1.5rem 1.5rem;
    border: 2px solid var(--bordegris);
    text-align: left;
}
.lista__th-empresa{
    background-color: var(--celdaAmarilla);
    color: var(--negro);
}
.lista__clientes-empresa tr:nth-child(odd){
    background-color: var(--blanco);
}

.lista__tabla-empresa img{
    display: inline-block;
    width: 3.2rem;
}

.boton-mas{
    display: flex;
    align-items: center;
    justify-content: center;
}

.boton-mas:hover{
    cursor: pointer;
}

/* footer */