@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ============================================
   RESET Y CONFIGURACIÓN BASE
============================================ */
html {
  box-sizing: border-box;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0px;
  padding: 0px;
  font-family: "Montserrat", sans-serif !important;
}

/* ============================================
   HEADER
============================================ */
header {
  background-color: #0c231e;
}

header .container {
  display: grid;
  max-width: 1200px;
  margin: auto;
  width: 90%;
  padding: 15px;
  grid-template-columns: 1fr auto;
  height: 65px;
}

.logo {
  height: 30px;
}

.right {
  display: flex;
  color: white;
  gap: 10px;
  align-items: center;
}

.right svg {
  height: 30px;
}

/* ============================================
   SECTION PRINCIPAL
============================================ */
section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

section .img {
  background-image: url("../img/home.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: calc(100vh - 65px);
  display: flex;
  justify-content: center;
  align-items: center;
}

section .img img {
  width: 300px;
}

section form {
  height: calc(100vh - 65px);
  padding: 0 2%;
  overflow: auto;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-form {
  margin: auto;
  width: 90%;
  max-width: 700px;
  background: white;
  padding: 50px 30px;
  border-radius: 0;
  box-shadow: none;
  border: none;
  overflow-y: auto;
}

/* Contenedor interno para centrar contenido en desktop */
.container-form > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.container-form > .title {
  text-align: center;
}

.pt-2 .js-collapse {
  display: none;
}

section form img {
  width: 150px;
}

/* ============================================
   TÍTULOS Y TIPOGRAFÍA
============================================ */
.title {
  margin-top: 30px;
  font-size: 18px;
  color: #404041;
  font-weight: 600;
  margin-bottom: 15px;
}

.title-1 {
  font-weight: 500;
  margin-bottom: 20px;
  color: #404041;
}

/* ============================================
   FORMULARIOS Y CAMPOS
============================================ */
.tipo-de-cita {
  margin-top: 30px;
}

.hr {
  margin-top: 30px;
  width: 100%;
  height: 1px;
  background-color: rgba(103, 102, 102, 0.192);
}

select,
input {
  width: 100%;
  height: 55px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
  text-indent: 10px;
  color: rgb(65, 65, 65);
  transition: all 0.2s ease;
}

select:focus, 
input:focus {
  border-color: #0c231e;
  box-shadow: 0 0 0 3px rgba(12, 35, 30, 0.1);
  transform: translateY(-1px);
}

/* Select personalizado con flecha */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230c231e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 45px;
}

.persona input {
  margin-top: 15px;
}

.curpPersona {
  text-transform: uppercase;
}

/* ============================================
   BOTONES
============================================ */
button {
  width: 100%;
  height: 55px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  background-color: #0c231e;
  border: solid 2px #0c231e;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.1s ease, opacity 0.1s ease, box-shadow 0.1s ease;
  min-height: 48px;
}

button:hover {
  background-color: #0c231e;
  color: white;
  border-color: #0c231e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(12, 35, 30, 0.2);
}

button:active {
  background-color: #0c231e;
  color: white;
  border-color: #0c231e;
  transform: scale(0.98);
  opacity: 0.9;
  box-shadow: none;
}

button:focus {
  background-color: #0c231e;
  color: white;
  border-color: #0c231e;
  outline: none;
}

/* ============================================
   LOADER / SPINNER
============================================ */
.container-loader {
  position: fixed;
  top: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: #0c231e;
  z-index: 999;
}

.loader {
  --loader-size: 50px;
  --loader-border-size: 4px;
  --loader-border-color: white;
  width: var(--loader-size);
  height: var(--loader-size);
  border: var(--loader-border-size) solid var(--loader-border-color);
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  background-color: transparent;
  border-radius: 50%;
  position: relative;
  animation: rotateX 1s infinite linear;
}

.loader::before {
  content: "";
  border: var(--loader-border-size) solid var(--loader-border-color);
  border-top-color: transparent;
  border-left-color: transparent;
  border-bottom-color: transparent;
  background-color: transparent;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  animation: rotateX 0.5s infinite linear reverse;
}

@keyframes rotateX {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}

/* ============================================
   DIRECCIÓN Y MAPAS
============================================ */
.direction {
  text-align: center;
  box-shadow: 0px 0px 10px rgb(209, 209, 209);
  margin-bottom: 20px;
  margin-top: 25px;
}

.title_direccion {
  background: linear-gradient(135deg, #0c231e 0%, #1a3a32 100%);
  height: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: center;
  color: white;
  align-items: center;
  padding: 15px 20px;
  letter-spacing: 0.3px;
  border-radius: 8px 8px 0 0;
}

#content-direction {
  background: white;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#content-direction p {
  margin: 0;
  padding: 0 0 12px 0;
  color: #404041;
  line-height: 1.7;
  font-size: 0.95em;
}

#content-direction strong {
  color: #0c231e;
  font-weight: 600;
  font-size: 1em;
}

#content-direction a {
  color: #0c231e;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#content-direction a:hover {
  color: #1a3a32;
  text-decoration: underline;
}

.map-container {
  margin-top: 15px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(12, 35, 30, 0.15);
  background: #f5f5f5;
}

.map-container iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ============================================
   CONTENEDOR DE PAGO
============================================ */
.container_pay {
  background-color: rgba(0, 0, 0, 0.713);
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0px;
  padding-top: 100px;
  overflow: auto;
}

.container_pay .inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.container_pay .input label {
  font-size: 14px;
}

.input {
  display: grid;
  gap: 5px;
  margin-top: 15px;
}

.container_pay form {
  border-radius: 5px;
  background-color: white;
  padding: 30px;
  max-width: 450px;
  width: 95%;
  margin: auto;
}

/* ============================================
   INFORMACIÓN BRIEF
============================================ */
.info-brief {
  margin-top: 35px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.info-content {
  padding: 25px;
  text-align: center;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
}

.info-content h3 {
  color: #0c231e;
  font-size: 1.15em;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.3px;
}

.info-content p {
  color: #495057;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0;
}

.info-note {
  background: #0c231e;
  color: white;
  padding: 14px 25px;
  text-align: center;
  font-size: 0.88em;
  font-weight: 500;
  letter-spacing: 0.2px;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
}

/* ============================================
   ESTILOS PARA CALENDARIO (NUEVO)
============================================ */

/* Fechas no disponibles en calendario */
.no_disponible {
  background-color: #dc3545 !important;
  color: white !important;
  border: solid 1px #dc3545 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: none;
}

/* Día seleccionado por el usuario */
.dia-seleccionado {
  background-color: #0c231e !important;
  color: white !important;
  border: solid 2px #0c231e !important;
  font-weight: 600;
}

/* Día de hoy */
.dia-hoy {
  background-color: #0d6efd !important;
  color: white !important;
  border: solid 2px #0a58ca !important;
  font-weight: 600;
}

/* Leyenda del calendario */
.info_dia {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: 15px 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow-x: auto;
}

.info_dia > div {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.85em;
  color: #404041;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.info_dia .color {
  height: 20px;
  width: 20px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  flex-shrink: 0;
}

/* Colores específicos para cada tipo de día en la leyenda */
.color-hoy {
  background-color: #0d6efd !important;
  border-color: #0a58ca !important;
}

.color-no-disponible {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

.color-seleccionado {
  background-color: #0c231e !important;
  border-color: #0c231e !important;
}

/* Información de oficina seleccionada */
.oficina-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #0c231e;
}

.oficina-info p {
  margin: 5px 0;
  color: #404041;
  line-height: 1.6;
}

.oficina-info strong {
  color: #0c231e;
  font-weight: 600;
}

/* Contenedor del calendario */
.calendar-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Estilos del calendario Bootstrap */
.bs-calendar {
  width: 100% !important;
  max-width: 450px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bs-calendar .day {
  cursor: pointer;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #dee2e6;
  transition: transform 0.1s ease, opacity 0.1s ease;
  min-height: 48px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  touch-action: manipulation;
}

.bs-calendar .day:hover:not(.no_disponible):not(.disabled) {
  background-color: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.bs-calendar .day:active:not(.no_disponible):not(.disabled) {
  transform: scale(0.95);
  opacity: 0.8;
  box-shadow: none;
}

.bs-calendar .day.disabled {
  color: #adb5bd;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

.bs-calendar .calendar-header {
  background: linear-gradient(135deg, #0c231e 0%, #1a3a32 100%);
  color: white;
  padding: 18px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bs-calendar .calendar-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.bs-calendar .calendar-header button {
  background: transparent;
  border: 1px solid white;
  color: white;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 6px;
  transition: transform 0.1s ease, opacity 0.1s ease;
  touch-action: manipulation;
}

.bs-calendar .calendar-header button:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bs-calendar .calendar-header button:active {
  background: transparent;
  color: white;
  border-color: white;
  transform: scale(0.95);
  opacity: 0.8;
  box-shadow: none;
}

.bs-calendar .calendar-header button:focus {
  background: transparent;
  color: white;
  border-color: white;
  outline: none;
}

/* Días de la semana */
.bs-calendar .weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.bs-calendar .weekday {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #6c757d;
}

/* Grid de días */
.bs-calendar .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* Horario select mejorado */
#horaturno {
  font-size: 16px;
  padding: 14px 12px;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  background-color: white;
  min-height: 50px;
  touch-action: manipulation;
}

#horaturno:focus {
  border-color: #0c231e;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(12, 35, 30, 0.15);
}

/* ============================================
   PÁGINA DE CONFIRMACIÓN (NUEVO)
============================================ */
.confirmation-card {
  background: linear-gradient(135deg, #0c231e 0%, #1a3a32 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.confirmation-card h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.detail-row {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
}

.detail-label {
  font-weight: 600;
  color: #a8dadc;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 1.1em;
  color: white;
  line-height: 1.6;
}

.folio {
  background: #4CAF50;
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
  font-size: 1.2em;
  font-weight: bold;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  font-size: 40px;
}

.warning-box {
  background: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

.warning-box strong {
  color: #856404;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #0c231e;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.1s ease, opacity 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
  background: #0c231e;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(12, 35, 30, 0.2);
}

.btn-primary:active {
  background: #0c231e;
  color: white;
  transform: scale(0.98);
  opacity: 0.9;
  box-shadow: none;
}

.btn-primary:focus {
  background: #0c231e;
  color: white;
  outline: none;
}

.btn-secondary {
  background: white;
  color: #0c231e;
  padding: 15px 30px;
  border: 2px solid #0c231e;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.1s ease, opacity 0.1s ease, box-shadow 0.1s ease;
}

.btn-secondary:hover {
  background: white;
  color: #0c231e;
  border-color: #0c231e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(12, 35, 30, 0.15);
}

.btn-secondary:active {
  background: white;
  color: #0c231e;
  border-color: #0c231e;
  transform: scale(0.98);
  opacity: 0.9;
  box-shadow: none;
}

.btn-secondary:focus {
  background: white;
  color: #0c231e;
  border-color: #0c231e;
  outline: none;
}

/* ============================================
   OPTIMIZACIONES TÁCTILES Y MÓVIL
============================================ */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

select, button, input {
  touch-action: manipulation;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Prevenir zoom en iOS */
@supports (-webkit-touch-callout: none) {
  select, input, button {
    font-size: 16px !important;
  }
}

/* ============================================
   RESPONSIVE - TABLETS
============================================ */
/* Optimización para escritorio grande */
@media only screen and (min-width: 1200px) {
  .container-form {
    max-width: 850px;
    width: 92%;
  }
  
  section form {
    padding: 0 1.5%;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .info-content {
    padding: 22px;
  }
  
  .info-content h3 {
    font-size: 1.1em;
  }
  
  .bs-calendar {
    max-width: 450px;
  }
}

/* ============================================
   RESPONSIVE - MÓVILES
============================================ */
@media (max-width: 900px) {
  section {
    grid-template-columns: 1fr;
  }
  
  section .img {
    display: none;
  }
  
  section form {
    background: #f5f5f5;
    padding: 40px 15px;
    align-items: flex-start;
    padding-top: 40px;
  }
  
  .container-form {
    width: 92%;
    max-width: 500px;
    margin: auto;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    background: white;
  }
  
  .container-form > * {
    max-width: 100%;
  }
  
  .map-container iframe {
    height: 250px;
  }
  
  .title_direccion {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  
  #content-direction {
    padding: 18px !important;
  }
  
  #content-direction p {
    font-size: 0.9em;
  }
  
  .info-brief {
    margin-top: 30px;
    border-radius: 8px;
  }

  .info-content {
    padding: 20px 15px;
  }

  .info-content h3 {
    font-size: 1.05em;
  }

  .info-content p {
    font-size: 0.88em;
  }

  .info-note {
    padding: 12px 15px;
    font-size: 0.85em;
  }
  
  /* Optimizar altura de botón en móvil */
  button {
    min-height: 50px;
  }
  
  /* Optimizar selects en móvil */
  select, input {
    min-height: 50px;
  }
  
  /* Calendario en móvil */
  .bs-calendar {
    max-width: 100%;
    border-radius: 12px;
  }
  
  .bs-calendar .day {
    min-height: 52px;
    min-width: 48px;
    padding: 14px 8px;
    font-size: 16px;
    font-weight: 600;
  }
  
  .bs-calendar .calendar-header {
    padding: 20px 15px;
  }
  
  .bs-calendar .calendar-header h2 {
    font-size: 19px;
  }
  
  .bs-calendar .calendar-header button {
    min-width: 48px;
    min-height: 48px;
    font-size: 18px;
  }
  
  .bs-calendar .weekday {
    font-size: 15px;
    padding: 14px 8px;
  }
  
  #horaturno {
    min-height: 54px;
    padding: 16px 14px;
    font-size: 17px;
  }
  
  .oficina-info {
    padding: 18px;
    font-size: 15px;
  }
  
  .info_dia {
    font-size: 13px;
    gap: 8px;
    padding: 14px 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
  }
  
  .info_dia > div {
    font-size: 0.8em;
    gap: 5px;
    flex-shrink: 0;
  }
  
  .info_dia .color {
    height: 22px;
    width: 22px;
    flex-shrink: 0;
  }
  
  /* Colores específicos para cada leyenda */
  .color-hoy {
    background-color: #0d6efd !important;
    border-color: #0a58ca !important;
  }
  
  .color-no-disponible {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
  }
  
  .color-seleccionado {
    background-color: #0c231e !important;
    border-color: #0c231e !important;
  }
  
  /* Confirmación en móvil */
  .confirmation-card {
    padding: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============================================
   RESPONSIVE - MÓVILES PEQUEÑOS
============================================ */
@media only screen and (max-width: 480px) {
  section form {
    padding: 30px 12px;
    padding-top: 30px;
  }
  
  .container-form {
    width: 94%;
    padding: 30px 22px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }
  
  .map-container iframe {
    height: 220px;
  }
  
  #content-direction {
    padding: 15px !important;
  }
  
  #content-direction p {
    font-size: 0.85em;
  }
  
  .info-content {
    padding: 18px 12px;
  }

  .info-content h3 {
    font-size: 1em;
  }

  .info-content p {
    font-size: 0.85em;
    line-height: 1.5;
  }
  
  .bs-calendar .day {
    min-height: 50px;
    min-width: 46px;
    padding: 12px 6px;
    font-size: 15px;
    font-weight: 600;
  }
  
  .bs-calendar .calendar-header {
    padding: 18px 12px;
  }
  
  .bs-calendar .calendar-header h2 {
    font-size: 17px;
  }
  
  .bs-calendar .calendar-header button {
    min-width: 46px;
    min-height: 46px;
    font-size: 17px;
  }
  
  .bs-calendar .weekday {
    font-size: 14px;
    padding: 12px 6px;
  }
  
  #horaturno {
    min-height: 52px;
    padding: 15px 12px;
    font-size: 16px;
  }
  
  .info_dia {
    font-size: 12px;
    gap: 6px;
    padding: 12px 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
  }
  
  .info_dia > div {
    font-size: 0.75em;
    gap: 4px;
    flex-shrink: 0;
  }
  
  .info_dia .color {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
  }
  
  .oficina-info {
    padding: 16px;
    font-size: 14px;
  }
  
  .confirmation-card h2 {
    font-size: 1.5em;
  }
}

/* ============================================
   RESPONSIVE - MODO LANDSCAPE MÓVIL
============================================ */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  section form {
    padding: 25px 15px;
    padding-top: 25px;
  }
  
  .container-form {
    padding: 25px 28px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }
  
  .map-container iframe {
    height: 200px;
  }
  
  .title_direccion {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  
  .info-brief {
    margin-top: 20px;
  }

  .info-content {
    padding: 15px;
  }

  .info-content h3 {
    font-size: 1em;
    margin-bottom: 8px;
  }

  .info-content p {
    font-size: 0.85em;
  }

  .info-note {
    padding: 10px 15px;
  }
  
  .bs-calendar .day {
    min-height: 48px;
    min-width: 44px;
    padding: 10px 6px;
    font-size: 15px;
  }
  
  .bs-calendar .calendar-header {
    padding: 16px 12px;
  }
  
  .bs-calendar .calendar-header button {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ============================================
   TOUCH TARGETS PARA ANDROID
============================================ */
@media (hover: none) and (pointer: coarse) {
  button {
    min-height: 52px;
    font-size: 16px !important;
  }

  select, input {
    min-height: 52px;
    font-size: 16px !important;
  }
  
  .bs-calendar .day {
    min-height: 52px;
    min-width: 48px;
    font-size: 16px;
    padding: 14px 8px;
  }
  
  .bs-calendar .calendar-header button {
    min-height: 48px;
    min-width: 48px;
    font-size: 18px;
  }
  
  #horaturno {
    min-height: 54px;
    font-size: 17px;
  }
}

/* ============================================
   ACCESIBILIDAD - REDUCIR ANIMACIONES
============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   IMPRESIÓN
============================================ */
@media print {
  header,
  .info-brief,
  button,
  .action-buttons {
    display: none !important;
  }

  body {
    background: white;
  }

  .formulario,
  .confirmation-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  * {
    color: black !important;
    background: white !important;
  }
  
  .detail-row {
    border: 1px solid #ddd !important;
  }
}