/* ot_crear.css - Estilos completos y actualizados */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Variables alineadas con reporte.css */
:root {
  --color-primary: #3498db;
  --color-primary-dark: #2980b9;
  --color-secondary: #2c3e50;
  --color-success: #27ae60;
  --color-warning: #f39c12;
  --color-danger: #e74c3c;
  --color-light: #f8f9fa;
  --color-border: #dee2e6;
  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f6f9;
  color: #333;
}

/* Encabezado */
.module-header {
  background: white;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-primary);
}

.module-title {
  font-size: 20px;
  color: var(--color-secondary);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Wizard Steps */
.wizard-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 20px;
}

.steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  padding: 0 10px;
}

.steps-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 20%;
}

.step-circle {
  width: 32px;
  height: 32px;
  background: #e9ecef;
  color: #6c757d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.step-item.active .step-circle {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.step-item.completed .step-circle {
  background: var(--color-success);
  color: white;
}

.step-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.step-item.active .step-label {
  color: var(--color-primary);
  font-weight: 700;
}

/* Form Sections */
.form-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step 1: Placa Search */
.search-container {
  max-width: 500px;
  margin: 0 auto 30px;
  position: relative;
}

.input-group {
  display: flex;
  gap: 10px;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  display: none;
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.suggestion-item:hover {
  background-color: #f8f9fa;
  color: var(--color-primary);
}

/* Info Cards */
.info-card {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-secondary);
}

.info-row {
  display: flex;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.info-label {
  font-weight: 600;
  width: 140px;
  color: #555;
}

.info-value {
  color: #333;
  font-weight: 500;
}

/* Step 2: Calendar */
.calendar-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.cal-day-header {
  text-align: center;
  font-weight: bold;
  color: #777;
  font-size: 14px;
  padding-bottom: 5px;
}

.cal-day {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  min-height: 80px;
  padding: 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.cal-day:hover:not(.disabled) {
  border-color: var(--color-primary);
  background-color: #f0f7ff;
}

.cal-day.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.cal-day.disabled {
  background-color: #f1f1f1;
  color: #ccc;
  cursor: not-allowed;
}

.appt-badge {
  font-size: 10px;
  background: var(--color-warning);
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  display: block;
  margin-top: 2px;
  text-align: center;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.time-slot {
  padding: 8px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
}

.time-slot.selected {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

/* Step 3: Servicios */
.service-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: flex-end;
}

.form-group {
  flex: 1;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
}

.services-list {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--color-border);
}

.service-item:last-child {
  border-bottom: none;
}

.remove-btn {
  color: var(--color-danger);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 16px;
}

/* Step 4: Ubicación */
.location-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.radio-card {
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 15px;
  cursor: pointer;
  width: 150px;
  text-align: center;
  transition: all 0.2s;
}

.radio-card.selected {
  border-color: var(--color-primary);
  background-color: #f0f7ff;
}

.radio-card input {
  display: none;
}

.radio-card i {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--color-secondary);
}

#map-container {
  height: 300px;
  width: 100%;
  background-color: #e9ecef;
  border-radius: var(--border-radius);
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

/* Buttons */
.btn-container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-primary:disabled { background: #bdc3c7; cursor: not-allowed; }

.btn-secondary { background: #95a5a6; color: white; }
.btn-secondary:hover { background: #7f8c8d; }

.btn-success { background: var(--color-success); color: white; }
.btn-success:hover { background: #219150; }

/* Loading */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.spinner {
  width: 40px; height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }



/* Estilo para el ítem seleccionado por teclado */
.suggestion-item.selected {
  background-color: var(--color-primary);
  color: white;
  font-weight: 500;
}

/* Asegurar que el calendario muestre el badge correctamente */
.cal-day {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ... (Estilos previos) ... */

/* PASO 2: Layout de dos columnas para evitar scroll */
.calendar-step-container {
  display: flex;
  gap: 20px;
  height: 500px; /* Altura fija para mantener consistencia */
}

/* Columna Izquierda: Calendario */
.calendar-left-col {
  flex: 3; /* 60% aprox */
  display: flex;
  flex-direction: column;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  background: #f8f9fa;
  padding: 12px;
  border-radius: var(--border-radius);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  flex: 1; /* Ocupar espacio restante */
}

.cal-day {
  min-height: auto; /* Quitar altura fija grande */
  height: 100%;     /* Llenar el grid */
  padding: 4px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Indicador visual simple en el día */
.day-dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-warning);
  border-radius: 50%;
}

/* Columna Derecha: Horarios */
.slots-right-col {
  flex: 2; /* 40% aprox */
  border-left: 1px solid var(--color-border);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  position: relative; /* Para posicionar el tooltip */
}

.slots-header {
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
  text-align: center;
  font-size: 15px;
}

.slots-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas de horas */
  gap: 8px;
  overflow-y: auto;
  padding-right: 5px;
  align-content: start;
}

.time-btn {
  padding: 6px 2px;
  font-size: 13px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.time-btn:hover:not(.occupied):not(.disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.time-btn.selected {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.time-btn.occupied {
  background: #ffeeba;
  color: #856404;
  border-color: #ffeeba;
  font-weight: bold;
}

/* TOOLTIP / GLOBO DE INFORMACIÓN */
.appt-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  padding: 15px;
  z-index: 100;
  border: 1px solid #eee;
  display: none; /* Oculto por defecto */
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.appt-tooltip h6 {
  margin: 0 0 10px 0;
  color: var(--color-primary);
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  font-size: 16px;
}

.tooltip-row {
  display: flex;
  font-size: 13px;
  margin-bottom: 5px;
}

.tooltip-label {
  font-weight: 600;
  width: 80px;
  color: #666;
}

.close-tooltip {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  color: #999;
  font-size: 18px;
}

@keyframes popIn {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
  .calendar-step-container {
    flex-direction: column;
    height: auto;
  }
  .slots-right-col {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 20px;
  }
}

/* ... (Estilos previos) ... */

/* Actualización para el Tooltip con múltiples citas */
.tooltip-scroll-area {
  max-height: 250px; /* Altura máxima antes de hacer scroll */
  overflow-y: auto;
  padding-right: 5px;
}

/* Estilo para cada tarjeta de cita dentro del globo */
.appt-item-detail {
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
}

.appt-item-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.appt-item-detail:first-child {
  padding-top: 0;
}

.appt-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.ot-badge {
  background-color: var(--color-secondary);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

/* Personalizar scrollbar del tooltip */
.tooltip-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.tooltip-scroll-area::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
.tooltip-scroll-area::-webkit-scrollbar-thumb {
  background: #ccc; 
  border-radius: 5px;
}



/* PASO 3: NUEVOS ESTILOS */

/* Tarjetas de Selección de Modo */
.mode-selection-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
}

.mode-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    border-color: #bdc3c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mode-card.active {
    border-color: var(--color-primary);
    background-color: #f0f7ff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.mode-card i {
    font-size: 40px;
    color: #95a5a6;
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s;
}

.mode-card.active i {
    color: var(--color-primary);
}

.mode-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
}

.mode-desc {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Área de Controles Dinámicos */
.dynamic-controls-area {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

/* Banner de Cabecera Activa */
.active-header-banner {
    background: var(--color-secondary);
    color: white;
    padding: 10px 15px;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-label {
    opacity: 0.8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.header-value {
    font-weight: 700;
    font-size: 15px;
}

/* Grilla de Servicios (2 Columnas) */
.services-grid-container {
    background: white;
    border: 1px solid #dee2e6;
    border-top: none; /* Porque tiene el banner arriba */
    border-radius: 0 0 6px 6px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columnas */
    gap: 10px;
}

/* Ítem de servicio limpio */
.service-card-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    transition: background 0.2s;
}

.service-card-item:hover {
    background: #fff;
    border-color: #ced4da;
}

.service-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .mode-selection-container {
        flex-direction: column;
        align-items: center;
    }
    .mode-card {
        width: 100%;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }
    .mode-card i {
        margin-bottom: 0;
        font-size: 30px;
    }
    .services-grid {
        grid-template-columns: 1fr; /* 1 Columna en móvil */
    }
}



/* Ajuste para la grilla y el texto cortado */
.service-card-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    transition: background 0.2s;
    /* Asegura que no desborde */
    overflow: hidden; 
    max-width: 100%;
}

.service-content-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden; /* Necesario para el ellipsis */
    flex: 1; /* Ocupa todo el espacio menos el botón */
    margin-right: 10px;
}

.service-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: #333;
}

/* Estilo para items bloqueados (Paquete) */
.lock-icon {
    color: #bdc3c7;
    font-size: 12px;
    cursor: help;
    padding: 5px;
}

/* Input de descripción en mayúsculas */
#servicioDescInput {
    text-transform: uppercase;
}




/* PASO 4: DISEÑO MODERNO DE DIRECCIONES */

/* Contenedor de Opciones (Radio Buttons estilizados) */
.delivery-mode-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.delivery-radio-label {
    position: relative;
    cursor: pointer;
}

.delivery-radio-label input {
    display: none;
}

.delivery-radio-card {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-radio-label input:checked + .delivery-radio-card {
    border-color: var(--color-primary);
    background-color: #e3f2fd;
    color: var(--color-primary-dark);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

/* Grid de Formularios (Recojo vs Entrega) */
.address-forms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Cuando hay dos columnas (Ambos) en pantallas grandes */
@media (min-width: 992px) {
    .address-forms-grid.dual-mode {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tarjeta de Dirección */
.address-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.address-card:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.address-card-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-card-header.pickup { border-left: 4px solid var(--color-warning); }
.address-card-header.delivery { border-left: 4px solid var(--color-success); }

.address-card-body {
    padding: 20px;
}

/* Botón de Copiar Dirección */
.copy-address-btn {
    font-size: 12px;
    background: #e9ecef;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto; /* Empujar a la derecha */
    color: #555;
    transition: all 0.2s;
}

.copy-address-btn:hover {
    background: #dde2e6;
    color: #000;
}

/* Mapa */
.map-wrapper {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

#map-container {
    height: 350px;
    width: 100%;
    z-index: 1;
}

.map-overlay-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 80%;
}



/* PASO 4: MEJORAS VISUALES */

/* Corrección de layout de tarjeta */
.address-card-body {
    padding: 20px;
    /* Asegura que los inputs no toquen los bordes */
    box-sizing: border-box; 
}

/* Fila dividida (Calle 70% - Número 30%) */
.address-split-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-street {
    flex: 3; /* 75% */
}

.input-number {
    flex: 1; /* 25% */
}

/* Inputs mejorados */
.form-control {
    width: 100%;
    box-sizing: border-box; /* Vital para que el padding no rompa el ancho */
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px; /* Bordes boleados */
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

/* Ajuste de textarea de notas */
.notes-area {
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    background-color: #fafafa;
}

/* Leyenda del mapa */
.map-legend {
    display: flex;
    gap: 15px;
    font-size: 12px;
    margin-top: 5px;
    justify-content: center;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.dot-p { width: 10px; height: 10px; background: #3498db; border-radius: 50%; }
.dot-d { width: 10px; height: 10px; background: #27ae60; border-radius: 50%; }

#map-container {
    height: 350px;
    width: 100%;
    border-radius: 8px; /* Redondear bordes del mapa de Google */
}

/* Estilos para estado de documentos */
.doc-status {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.doc-ok {
    color: #27ae60;
    background-color: #e8f8f5;
    border: 1px solid #27ae60;
}

.doc-expired {
    color: #c0392b;
    background-color: #fadbd8;
    border: 1px solid #c0392b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.info-value.expired-text {
    color: #c0392b !important;
    font-weight: 700;
    text-decoration: underline;
}

/* Botón de actualizar documento */
.btn-update-doc {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: transform 0.2s;
    padding: 0;
}

.btn-update-doc:hover {
    color: #2980b9;
    transform: scale(1.1);
}

/* Animación de rotación para cuando se está consultando */
.rotating {
    animation: spin 1s linear infinite;
    color: #f39c12;
    pointer-events: none;
}

@keyframes spin { 100% { transform: rotate(360deg); } }


/* Ajuste tamaño exacto para placa (7 caracteres) */
#placaInput {
    width: 140px !important; /* Ancho fijo para ~7 caracteres */
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex: none; /* Evita que flexbox lo estire */
}

/* Alineación para los datos del cliente */
.client-address-block {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
    border-top: 1px dashed #eee;
    padding-top: 4px;
}

/* 1. Centrar el buscador de placa */
.input-group {
    display: flex;
    gap: 10px;
    justify-content: center; /* Centrado horizontal */
}

/* Alineación superior para filas con contenido multilinea */
.info-row {
    align-items: flex-start; /* Alinea etiqueta y valor arriba */
}

/* Contenedor de dirección de 2 pisos */
.address-container {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

/* Piso 1: Dirección (Mismo formato que info-value) */
.addr-line-1 {
    font-weight: 500;
    color: #333;
}

/* Piso 2: Ubigeo  */
.addr-line-2 {
    font-weight: 500;
    color: #333;
}




/* Día Feriado */
.cal-day.holiday {
    background-color: #ffebee;
    color: #c0392b;
    border-color: #e57373;
}

.cal-day.holiday .day-number {
    color: #c0392b;
    font-weight: bold;
}

/* Bloque Horario Agotado/Pasado */
.time-btn.disabled {
    background-color: #f1f1f1;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
    text-decoration: line-through;
}

/* Bloque Lleno */
.time-btn.full {
    background-color: #ffe0b2; /* Naranja suave */
    color: #e67e22;
    border-color: #ffcc80;
    cursor: not-allowed;
}


/* Estilos Calendario Actualizados */

.cal-day {
    position: relative;
    overflow: hidden; /* Para que el número grande no se salga */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 50px; /* Altura mínima para que quepa el número */
}

/* Día Feriado (Solo color, sin texto) */
.cal-day.holiday {
    background-color: #ffcdd2; /* Rojo suave */
    border-color: #ef5350;
}

.cal-day.holiday .day-number {
    color: #b71c1c; /* Rojo oscuro */
    font-weight: 900;
}

/* Número de Citas (Estilo Grande de Fondo) */
.big-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem; /* Muy grande */
    font-weight: 900;
    color: rgba(0, 0, 0, 0.08); /* Casi transparente (marca de agua) */
    pointer-events: none; /* No interfiere con el click */
    z-index: 0;
    line-height: 1;
}

/* Asegurar que el número del día esté encima */
.day-number {
    z-index: 1;
    position: relative;
    font-size: 14px;
    font-weight: bold;
}


/* =========================================
   PASO 5: RESUMEN Y CONFIRMACIÓN
   ========================================= */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 15px;
}

.summary-header i {
    color: var(--color-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.sum-label { color: #7f8c8d; font-weight: 500; }
.sum-value { color: #2c3e50; font-weight: 600; text-align: right; }

/* Lista de servicios en resumen */
.sum-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sum-service-item {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 12px;
    border-left: 3px solid var(--color-success);
}

/* Sección de Notificaciones */
.notification-section {
    background: #eef2f7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #dce4ec;
}

.notify-toggle-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.notify-input {
    flex: 1;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px;
    font-size: 14px;
    color: #555;
}

.notify-input:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

/* Switch Slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--color-success); }
input:checked + .slider:before { transform: translateX(20px); }

/* PASO 5: RESUMEN REDISEÑADO */

.summary-container-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Tarjetas base */
.resumen-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    height: 100%;
}

.resumen-header {
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filas de datos */
.res-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
}
.res-label { color: #666; font-weight: 500; }
.res-val { color: #333; font-weight: 600; text-align: right; }

/* Caja Servicios (Ancho completo abajo) */
.services-full-width {
    grid-column: 1 / -1; /* Ocupa las 3 columnas */
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 15px;
}

.services-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cabecera-badge {
    background: var(--color-secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
}

.items-grid-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.item-resumen {
    background: white;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Delivery Detallado */
.delivery-detail-box {
    margin-top: 10px;
    font-size: 12px;
    background: #f0f7ff;
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
}
.del-section { margin-bottom: 8px; }
.del-title { font-weight: 700; color: var(--color-secondary); display: block; margin-bottom: 2px; }

/* Responsive */
@media (max-width: 768px) {
    .summary-container-grid {
        grid-template-columns: 1fr;
    }
}

/* Regla 6: Cabecera alineada a la izquierda y grande */
.services-header-left {
    text-align: left;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.cabecera-badge-lg {
    background: var(--color-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

.no-items-msg {
    color: #999;
    font-size: 12px;
    font-style: italic;
    padding: 5px;
}

/* Regla 3: Día Lleno */
.cal-day.full-day {
    background-color: #fce4ec; /* Rosado */
    color: #c2185b;
    cursor: not-allowed;
    opacity: 0.7;
}
.cal-day.full-day .day-number {
    text-decoration: line-through;
}

/* PUNTO 1: Día Lleno (Naranja y Clickable) */
.cal-day.full-day {
    background-color: #ffe0b2; /* Naranja suave */
    color: #e65100;
    cursor: pointer; /* Permitir click */
    border-color: #ffb74d;
}

.cal-day.full-day .day-number {
    font-weight: bold;
    color: #e65100;
}

/* PUNTO 2: Validación Visual */
.input-error {
    border: 1px solid #e74c3c !important;
    background-color: #fdf2f2 !important;
    animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* PUNTO 6: Ajuste para múltiples correos/celulares */
.notify-input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.notify-help {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
    font-style: italic;
}

/* =========================================
   NUEVOS ESTILOS PARA TIPOS AVANZADOS (FORMS)
   ========================================= */

/* Escala Lineal */
.scale-container { display: flex; align-items: flex-end; justify-content: center; gap: 15px; margin-top: 15px; }
.scale-label { font-size: 12px; color: #555; text-align: center; max-width: 100px; }
.scale-options { display: flex; gap: 15px; }
.scale-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scale-item span { font-size: 14px; font-weight: bold; color: #333; }

/* Cuadrículas (Grids) */
.grid-setup-container { display: flex; gap: 30px; margin-top: 15px; }
.grid-col { flex: 1; border: 1px solid #eee; padding: 15px; border-radius: 8px; background: #fdfdfd; }
.grid-col h5 { margin-top: 0; color: #555; margin-bottom: 10px; }

/* Tabla Renderizada en Recepción */
.form-grid-table { width: 100%; border-collapse: collapse; margin-top: 10px; background: white; }
.form-grid-table th { font-weight: 500; color: #555; padding: 10px; text-align: center; border-bottom: 2px solid #eee; }
.form-grid-table td { padding: 12px 10px; border-bottom: 1px solid #eee; text-align: center; }
.form-grid-table td:first-child { text-align: left; font-weight: 500; color: #333; width: 40%; }
.form-grid-table tr:hover { background-color: #f8f9fa; }

