* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
//  width: 100%;
//  height: 100vh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
    width: 80%; 
  justify-content: center;
}


/* principal */
.reserva-de-citas {
  background-color: #ffffff;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 90%;
  min-height: 100vh;
}

.reserva-de-citas .text-wrapper-2 {
  position: absolute;
  width: 100%;
  max-width: 312px;
  top: 170px;
  left: 0;
  font-family: "Space Grotesk", Helvetica;
  font-weight: bold;
  color: #7d7776;
  font-size: 19px;
  text-align: justify;
  letter-spacing: 0;
  line-height: normal;
}

.reserva-de-citas .logo {
  display: flex;
  width: 200px;
  height: 60px;
  align-items: center;
  gap: 12px;
  padding: 0px 0px 0px 25px;
  position: absolute;
  top: 53px;
  left: 23px;
  z-index: 10;
}

.reserva-de-citas .feban-logo {
  position: relative;
  object-fit: cover;
  height: auto;
  width: 280px;
  height: 80px;
  right: 0;
  left: 10px;
}

.reserva-de-citas .overlap {
  position: absolute;
  width: calc(100% - 30px);
  max-width: 891px;
  height: auto;
  min-height: 625px;
  top: 50px; //cambia posicion rectangulo
  left: 15px;
}

.reserva-de-citas .overlap-6 {
  position: absolute;
  width: 344px;
  height: 80px;
  top: 66px;
  left: 0;
}

.reserva-de-citas .text {
  position: absolute;
  width: 329px;
  top: 1px;
  left: 0;
  font-family: "Space Grotesk", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: 30px;
  letter-spacing: 0;
  line-height: 28px;
}

.reserva-de-citas .frame {
  display: flex;
  flex-direction: column;
  width: 344px;
  align-items: flex-start;
  gap: 30px;
  position: absolute;
  top: 0;
  left: 0;
}

.reserva-de-citas .bienvenido-a-la {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Flexo-Regular", Helvetica;
  font-weight: 400;
  color: transparent;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 40px;
}

.reserva-de-citas .text-wrapper-15 {
  color: #000000;
  font-size: 28px;
  font-weight: bold;
}

.reserva-de-citas .text-wrapper-16 {
  color: #002da0;
  text-align: justify;
  letter-spacing: 0;
  line-height: normal;
  font-weight: bold;
}

.reserva-de-citas .image-removebg {
  position: absolute;
  width: 100%;
  max-width: 350px;
  height: auto;
  top: 229px;
  left: 0;
  object-fit: cover;
}

.reserva-de-citas .overlap {
  position: absolute;
  width: 100%;
  height: auto;
  min-height: 625px;
  right: 0;
  left: 60px;
}

.reserva-de-citas .rectangle {
  position: absolute;
  width: 100%;
  max-width: 525px;/*505*/
  height: auto;
  min-height: 650px;/*711px*/
  top: 0;
  right: 0;
  background-color: #ffffff;
  border-radius: 30px;
  padding: 20px;
  box-sizing: border-box;
}

.reserva-de-citas .footer {
  position: absolute;
  width: 100%;
  height: auto;
  min-height: 93px;
  bottom: -50px;
  left: 0;
  background-color: #1b599b;
  padding: 20px 15px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.reserva-de-citas .telefono {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.reserva-de-citas .email {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.reserva-de-citas .direccion {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.reserva-de-citas .boxicons-solid {
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reserva-de-citas .union,
.reserva-de-citas .union-2,
.reserva-de-citas .img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.reserva-de-citas .text-wrapper,
.reserva-de-citas .p {
  font-family: "Space Grotesk", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
}

.reserva-de-citas .text-wrapper-titulo {
  position: absolute;
  width: 100%;
  max-width: 256px;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", Helvetica;
  font-weight: 500;
  color: #002da0;
  font-size: 24px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.reserva-de-citas .secuencia {
  position: absolute;
  width: 100%;
  max-width: 278px;
  height: 50px;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.reserva-de-citas .text-wrapper-5 {
  position: absolute;
  width: 100%;
  max-width: 450px;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", Helvetica;
  font-weight: 500;
  color: #002da0;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: normal;
  padding: 0 20px;
}

.reserva-de-citas .tipo-de-documento {
  position: absolute;
  width: 100%;
  max-width: 460px;
  height: 48px;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
}

.reserva-de-citas .DNI-wrapper {
  width: 30%;
  min-width: 100px;
  height: 48px;
  border-radius: 8px 0px 0px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 16px;
  background-color: #ffffff;
  border: 1px solid #c2c7ce;
  box-sizing: border-box;
}

.reserva-de-citas .group-4 {
  width: 70%;
  height: 48px;
  position: relative;
}

.reserva-de-citas .DNI_wra {
  width: 100%;
  height: 36px;
  border: 0px;
  background: transparent;
  font-size: 14px;
  color: #7b7c7d;
}

.reserva-de-citas .field-2 {
  width: 100%;
  height: 48px;
  border-radius: 0px 8px 8px 0px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 16px;
  background-color: #ffffff;
  border: 1px solid #c2c7ce;
  border-left: none;
  box-sizing: border-box;
}

.reserva-de-citas .group {
  width: 100%;
  max-width: 220px;
  top: 270px;
  left: 25%;
  transform: translateX(-50%);
  position: absolute;
  height: 48px;
}

.reserva-de-citas .group-2 {
  width: 100%;
  max-width: 220px;
  top: 270px;
  left: 75%;
  transform: translateX(-50%);
  position: absolute;
  height: 48px;
}

.reserva-de-citas .text-wrapper-4 {
  position: absolute;
  width: 100%;
  max-width: 450px;
  top: 330px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", Helvetica;
  font-weight: 500;
  color: #d82d13;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  padding: 8px 20px;
  background-color: rgba(216, 45, 19, 0.1);
  border-radius: 8px;
}

.reserva-de-citas .field-wrapper {
  width: 100%;
  max-width: 220px;
  top: 380px;
  left: 25%;
  transform: translateX(-50%);
  position: absolute;
  height: 48px;
}

.reserva-de-citas .group-3 {
  position: absolute;
  width: 100%;
  max-width: 220px;
  height: 48px;
  top: 380px;
  left: 75%;
  transform: translateX(-50%);
}

.reserva-de-citas .field {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0px 16px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #c2c7ce;
  box-sizing: border-box;
  font-size: 14px;
  font-family: "Inter", Helvetica;
  color: #333;
}

.reserva-de-citas .field:disabled,
.reserva-de-citas input:disabled {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
  cursor: not-allowed;
}

.reserva-de-citas .boton-siguiente {
  position: absolute;
  width: 100%;
  max-width: 200px;
  height: 48px;
  top: 460px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Manual*/
.reserva-de-citas .text-wrapper-12 {
  position: absolute;
  width: 100%;
  max-width: 399px;
  top: 530px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", Helvetica;
  font-weight: 400;
  color: #0066cc;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.reserva-de-citas .text-wrapper-12 a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.reserva-de-citas .text-wrapper-12 a:hover {
  text-decoration: underline;
}

/* CAMPOS PASO 2 */
.reserva-de-citas .group_2 {
  width: 100%;
  max-width: 216px;
  top: 180px;
  left: 25%;
  transform: translateX(-50%);
  position: absolute;
  height: 48px;
}

.reserva-de-citas .group_2-2 {
  width: 100%;
  max-width: 216px;
  top: 180px;
  left: 75%;
  transform: translateX(-50%);
  position: absolute;
  height: 48px;
}

.reserva-de-citas .group_3 {
  width: 100%;
  max-width: 216px;
  top: 240px;
  left: 25%;
  transform: translateX(-50%);
  position: absolute;
  height: 48px;
}

.reserva-de-citas .group_3-2 {
  width: 100%;
  max-width: 216px;
  top: 240px;
  left: 75%;
  transform: translateX(-50%);
  position: absolute;
  height: 48px;
}

.reserva-de-citas .group_4 {
  width: 100%;
  max-width: 516px;
  top: 180px;/*300*/
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
}

/* Botones paso 2 y 3 */
.reserva-de-citas .boton_siguiente_2 {
  position: absolute;
  width: calc(100% - 40px);
  max-width: 460px;
  height: 50px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center; /*cambie*/
  gap: 0;
  align-items: center;
  padding: 0 20px;
}

/* Botones individuales */
.reserva-de-citas .boton_siguiente_2 .btn {
  width: 240px;
  max-width: 220px;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
}

.reserva-de-citas .boton_siguiente_2 .btn-prev {
  order: 1;
}

.reserva-de-citas .boton_siguiente_2 .btn:not(.btn-prev) {
  order: 2;
}

.reserva-de-citas .group_final {
  width: 100%;
  max-width: 416px;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  height: auto;
}

.btn {
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #00478f;
  color: white;
}

.btn-primary:hover {
  background-color: #003670;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

/* Input oculto para vuser */
input[type="text"][style*="visibility:hidden"] {
  position: absolute;
  left: -9999px;
  visibility: hidden !important;
}


/* TABLETS */


input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  border: 1px solid #c2c7ce;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
}



/* CSS comboboxes con flecha */

select.field {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: white;
  cursor: pointer;
  position: relative;
}

select.field {
  background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.select-arrow {
  position: relative;
}

.select-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #666;
  pointer-events: none;
}

select.field:focus {
  border-color: #002da0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 45, 160, 0.2);
}

select.field:hover {
  border-color: #002da0;
}


.reserva-de-citas .div {
  background-color: #28a7454d;
  width: 100%;
  max-width: 1100px;/*1024*/
  height: 740px;
  position: relative;
  top: 23px;
  margin: 0 15px;
  overflow: hidden;
}

.reserva-de-citas .footer {
  position: absolute;
  width: 100%;
  height: 93px;
  bottom: 0;
  left: 0;
  background-color: #1b599b;
  padding: 15px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.cell {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group_4 .cell {
  margin-bottom: 3px;
  font-size: 13px;
}

.cell:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.cell.selected {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0,86,179,0.4);
}

@media (max-width: 768px) {
    .cell {
        font-size: 12px;
        min-height: 32px;
    }
}

/* TABLETS */
@media (max-width: 768px) {
  .reserva-de-citas .div {
    margin: 0 10px;
    top: 10px;
  }
  
  .reserva-de-citas .logo {
    width: 120px;
    height: 40px;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
    padding: 0;
    justify-content: center;
  }
  
  .reserva-de-citas .feban-logo {
    width: 150px;
    height: 45px;
    left: 0;
    right: 0;
  }
  
  .reserva-de-citas .rectangle {
    position: relative;
    width: 100%;
    max-width: none;
    margin-top: 20px;
    padding: 20px 15px;
    border-radius: 20px;
    padding-top: 50px;
  }
  
  .reserva-de-citas .text-wrapper-2,
  .reserva-de-citas .image-removebg,
  .reserva-de-citas .overlap-6 {
    display: none;
  }
  
  .reserva-de-citas .overlap {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
  }
  
  .reserva-de-citas .overlap-group {
    position: relative;
  }
  
  .reserva-de-citas .tipo-de-documento,
  .reserva-de-citas .group,
  .reserva-de-citas .group-2,
  .reserva-de-citas .group-3,
  .reserva-de-citas .field-wrapper,
  .reserva-de-citas .group_2,
  .reserva-de-citas .group_2-2,
  .reserva-de-citas .group_3,
  .reserva-de-citas .group_3-2,
  .reserva-de-citas .group_4,
  .reserva-de-citas .group_final {
    position: relative;
    width: 100%;
    max-width: none;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
  }
  
  .reserva-de-citas .text-wrapper-titulo,
  .reserva-de-citas .text-wrapper-5,
  .reserva-de-citas .text-wrapper-4,
  .reserva-de-citas .text-wrapper-12 {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
    width: 100%;
    max-width: none;
  }
  
  .reserva-de-citas .secuencia {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin: 20px auto;
  }
  
  .reserva-de-citas .boton-siguiente,
  .reserva-de-citas .boton_siguiente_2 {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
  }
  
  input[type="date"] {
    font-size: 16px;
    min-height: 44px;
  }
  
  .reserva-de-citas .footer {
    position: relative;
    bottom: auto;
    margin-top: 30px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .reserva-de-citas .telefono,
  .reserva-de-citas .email,
  .reserva-de-citas .direccion {
    justify-content: center;
    width: 100%;
  }

  .reserva-de-citas .boton_siguiente_2 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 0px;
    padding: 0 15px;
  }
  
  .reserva-de-citas .boton_siguiente_2 .btn {
    width: 45%;
    max-width: 180px;
    padding: 12px 16px;
    font-size: 15px;
    text-align: center;
  }
  
  .reserva-de-citas .boton_siguiente_2 .btn-prev {
    order: 1;
  }
  
  .reserva-de-citas .boton_siguiente_2 .btn:not(.btn-prev) {
    order: 2;
  }
  .group_4 .col-md-2 {
    max-width: 14%;
    flex: 0 0 14%;
  }
  .group_4 {
    left: -15px;
    width: calc(100% + 30px);
  }

  .group_4 #listhoras {
      margin-top: 10px;
      margin-left: -28px !important;
  }

  .group_4 .col-4 {
      max-width: 24%;
      flex: 0 0 24%;
  }

  .group_4 .px-2 {
      padding-left: 2px !important;
      padding-right: 2px !important;
  }
}


/* MÓVILES - UNA SOLA REGLA CONSOLIDADA */
@media (max-width: 480px) {
  .reserva-de-citas .div {
    height: calc(100vh - 10px);
    top: 5px;
    margin: 0 5px;
    display: flex;
    flex-direction: column;
  }
  
  .reserva-de-citas .logo {
    width: 120px;
    height: 35px;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
    padding: 0;
    justify-content: center;
  }

  .reserva-de-citas .feban-logo {
    width: 140px;
    height: 40px;
    left: 0;
    right: 0;
  }
  
  .reserva-de-citas .overlap {
    flex: 1;
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 120px;
  }
  
  .reserva-de-citas .rectangle {
    padding: 15px 10px;
    border-radius: 15px;
    padding-top: 50px;
  }
  
  .reserva-de-citas .text-wrapper-titulo {
    font-size: 20px;
  }

  .reserva-de-citas .text-wrapper-5 {
    font-size: 14px;
  }
  
  .reserva-de-citas .secuencia {
    transform: scale(0.8);
  }
  
  .reserva-de-citas .tipo-de-documento {
    flex-direction: column;
    height: auto;
  }

  .reserva-de-citas .DNI-wrapper {
    width: 100%;
    border-radius: 8px 8px 0 0;
    margin-bottom: 5px;
  }

  .reserva-de-citas .group-4 {
    width: 100%;
  }

  .reserva-de-citas .field-2 {
    border-radius: 0 0 8px 8px;
    border-top: none;
    border-left: 1px solid #c2c7ce;
  }
  
  .reserva-de-citas .boton_siguiente_2 {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
  
  .reserva-de-citas .footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    padding: 8px 12px;
    background-color: #1b599b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  
  .reserva-de-citas .telefono,
  .reserva-de-citas .email,
  .reserva-de-citas .direccion {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin: 0;
    padding: 2px 0;
  }
  
  .reserva-de-citas .footer .text-wrapper,
  .reserva-de-citas .footer .p {
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    white-space: normal;
  }
  
  .reserva-de-citas .boxicons-solid {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  
  .reserva-de-citas .footer p[align="center"] {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.8;
  }

  .reserva-de-citas .boton_siguiente_2 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    padding: 0 10px;
  }
  
  .reserva-de-citas .boton_siguiente_2 .btn {
    width: 48%;
    max-width: 240px;
    padding: 12px 8px;
    font-size: 14px;
    text-align: center;
  }
  
  .reserva-de-citas .boton_siguiente_2 .btn-prev {
    order: 1;
  }
  
  .reserva-de-citas .boton_siguiente_2 .btn:not(.btn-prev) {
    order: 2;
  }
  .group_4 {
    left: -10px;
    width: calc(100% + 20px);
}

.group_4 #listhoras {
    margin-top: 10px;
    margin-left: 25px !important;
}

.group_4 .col-4 {
    max-width: 23.5%;
    flex: 0 0 23.5%;
}

.group_4 .px-2 {
    padding-left: 1.5px !important;
    padding-right: 1.5px !important;
}

.group_4 .cell {
    font-size: 12px;
    min-height: 30px;
}
}

@media (max-width: 320px) {
  .reserva-de-citas .logo {
    width: 100px;
    height: 30px;
    top: 10px;
  }

  .reserva-de-citas .feban-logo {
    width: 120px;
    height: 35px;
  }

  .reserva-de-citas .boton_siguiente_2 {
    gap: 10px;
    padding: 0 5px;
  }
  
  .reserva-de-citas .boton_siguiente_2 .btn {
    width: 47%;
    max-width: 120px;
    padding: 10px 4px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .reserva-de-citas .div {
    height: 100vh;
    top: 0;
    margin: 0 3px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .reserva-de-citas .overlap {
    flex: 1;
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    padding-bottom: 20px;
  }
  
  .reserva-de-citas .footer {
    display: none;
  }
  
  .reserva-de-citas .boton_siguiente_2 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
  }
  
  .reserva-de-citas .boton-siguiente {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 20px auto;
    width: 100%;
    max-width: 200px;
  }
  
  .reserva-de-citas .tipo-de-documento {
    position: relative;
    width: 100%;
    max-width: none;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
    height: auto;
  }
  
  .reserva-de-citas .group,
  .reserva-de-citas .group-2 {
    position: relative;
    width: 100%;
    max-width: none;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
  }
  
  .reserva-de-citas .group-3,
  .reserva-de-citas .field-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
  }
  
  .reserva-de-citas .group_2,
  .reserva-de-citas .group_2-2 {
    position: relative;
    width: 100%;
    max-width: none;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
  }
  
  .reserva-de-citas .group_3,
  .reserva-de-citas .group_3-2 {
    position: relative;
    width: 100%;
    max-width: none;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
  }
  
  .reserva-de-citas .group_4,
  .reserva-de-citas .group_final {
    position: relative;
    width: 100%;
    max-width: none;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
  }
  
  .reserva-de-citas .text-wrapper-titulo,
  .reserva-de-citas .text-wrapper-5,
  .reserva-de-citas .text-wrapper-4,
  .reserva-de-citas .text-wrapper-12 {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 15px;
    width: 100%;
    max-width: none;
  }

  .reserva-de-citas .rectangle {
    padding: 10px 5px;
    padding-top: 50px;
  }
  
  .reserva-de-citas .field,
  .reserva-de-citas .field-2 {
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
  
  .btn {
    padding: 10px;
    font-size: 14px;
  }
}

.group_final {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.space-row {
  height: 35px;
  border-bottom: 1px solid #e9ecef;
}

.space-row:last-child {
  border-bottom: none;
}

.thh {
  color: #002da0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border: none;
  text-align: left;
  vertical-align: middle;
}

.width-30 {
  width: 35%;
  min-width: 100px;
}

.tdd {
  padding: 6px 10px;
  font-size: 13px;
  color: #000000;
  background-color: #ffffff;
  border: none;
  vertical-align: middle;
  font-weight: 400;
}

.tdd select {
  width: 100%;
  padding: 4px 8px; /* Padding reducido */
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 12px; /* Más pequeño */
  background-color: #ffffff;
  color: #495057;
}

/* Responsive tablet */
@media (max-width: 768px) {
  .space-row {
    height: 32px;
  }
  
  .thh {
    font-size: 10px;
    padding: 5px 8px;
  }
  
  .tdd {
    padding: 5px 8px;
    font-size: 12px;
  }
  
  .tdd select {
    font-size: 11px;
    padding: 3px 6px;
  }
}

/* Responsive móvil */
@media (max-width: 480px) {
  .space-row {
    height: 30px;
  }
  
  .thh {
    font-size: 9px;
    padding: 4px 6px;
  }
  
  .tdd {
    padding: 4px 6px;
    font-size: 11px;
  }
  
  .tdd select {
    font-size: 10px;
    padding: 2px 4px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.5);
}

/* Modal transición */
.modal-dialog {
  position: relative;
  width: auto;
  margin: 0;
  max-width: 600px;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 0.3rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.5);
}

.modal-header {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  color: #002da0;
}

.modal-body {
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  text-align: right;
}

.close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s ease;
}

.close:hover {
  color: #000;
}

@media (min-width: 769px) {
  .group_4 .col-md-2 {
      max-width: 14%; /* Para que entren 7 por fila */
      flex: 0 0 14%;
  }
}

.documento-input-container {
  position: relative;
  display: flex;
  width: 100%;
  align-items: stretch;
}

.documento-input-container .field-2 {
  flex: 1;
  border-radius: 8px 0 0 8px;
  border-right: none;
  margin: 0;
}

.btn-buscar-documento {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .btn-buscar-documento {
      min-width: 40px;
      font-size: 13px;
      padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .btn-buscar-documento {
      min-width: 60px;
      font-size: 13px;
      padding: 0 8px;
  }
}
