*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #fafafa;
  color: #222;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

.logo {
  text-align: center;
  margin: 70px auto 10px auto;
}

.logo img {
  width: 130px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: default;
}

.container {
  flex: 1 0 auto;
  display: flex;
  flex-wrap: nowrap;
  padding: 20px 5%;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  min-height: 600px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.left, .right {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  flex: 1 1 400px;
  max-width: 500px;
  min-width: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.step {
  opacity: 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  transform: translateY(0);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  color: #111;
  user-select: none;
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 15px 20px;
  min-width: 0;
  overflow-wrap: break-word;
}

legend {
  font-weight: 700;
  padding: 0 8px;
  color: #222;
}

/* Estilos para los labels de sucursal */
fieldset:first-of-type label {
  display: block;
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
}

/* Estilos mejorados para la sección de horarios */
fieldset:has(#timeSlots) {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fef6 100%);
  border: 2px solid #28a745;
  box-shadow: 0 4px 16px rgba(40,167,69,0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

fieldset:has(#timeSlots):hover {
  box-shadow: 0 6px 24px rgba(40,167,69,0.25);
  border-color: #20c997;
}

fieldset:has(#timeSlots)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #20c997, #0ca678);
  box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

fieldset:has(#timeSlots) legend {
  color: #28a745;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.service-group {
  margin-bottom: 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  padding: 8px 10px;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #222;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-header:hover, .service-header:focus {
  background-color: #eaeaea;
  color: #333;
  outline: none;
}

.arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
  margin-left: 8px;
  color: #666;
  user-select: none;
}

.arrow.rotate {
  transform: rotate(180deg);
  color: #111;
}

.service-options {
  display: none;
  margin-top: 10px;
  padding-left: 15px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.service-options label {
  display: block;
  margin-bottom: 10px;
  padding-left: 30px; /* para ocultar input radio */
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: #444;
  transition: color 0.2s ease;
  user-select: none;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.service-options label:hover, .service-options label:focus {
  color: #000;
  outline: none;
}

/* Ocultar input radio original y estilizar círculo */
.service-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  margin: 0;
  z-index: 2;
}

/* Círculo personalizado */
.service-options label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #888;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  z-index: 1;
  background-color: #fff;
}

/* Cuando el radio está checked */
.service-options input[type="radio"]:checked + label::before {
  background-color: #222;
  border-color: #222;
}

input[type="date"],
textarea,
input[type="text"],
input[type="tel"] {
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 100%;
  font-size: 15px;
  transition: border-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
  user-select: text;
}

input[type="date"]:focus,
textarea:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: #333;
  outline: 2px solid #555;
}

/* Estilos mejorados para el calendario nativo */
input[type="date"] {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-weight: 500;
  color: #495057;
  position: relative;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="date"]:hover {
  border-color: #007bff;
  box-shadow: 0 6px 20px rgba(0,123,255,0.2);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e7f1ff 0%, #f0f8ff 100%);
}

input[type="date"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.3), 0 6px 20px rgba(0,123,255,0.2);
  outline: none;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e7f1ff 0%, #f0f8ff 100%);
}

/* Estilo para el icono del calendario - Mejorado */
input[type="date"]::-webkit-calendar-picker-indicator {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23007bff' stroke='%23007bff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
  background-size: 24px 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  padding-right: 8px;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0,123,255,0.3));
}

/* Estilos para Mozilla Firefox */
input[type="date"]::-moz-calendar-picker {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}
/* Contenedor del campo de fecha con estilo mejorado */
fieldset:has(input[type="date"]) {
  background: linear-gradient(135deg, #e7f1ff 0%, #f0f8ff 100%);
  border: 2px solid #007bff;
  box-shadow: 0 4px 16px rgba(0,123,255,0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

fieldset:has(input[type="date"]):hover {
  box-shadow: 0 6px 24px rgba(0,123,255,0.25);
  border-color: #0056b3;
}

fieldset:has(input[type="date"])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #0056b3, #004085);
  box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

fieldset:has(input[type="date"]) legend {
  color: #007bff;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

button {
  background-color: #222;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  margin: 15px 8px 0 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 600;
  user-select: none;
  min-width: 120px;
  touch-action: manipulation;
}

button:hover, button:focus {
  background-color: #555;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  outline: none;
}

button:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}

#timeSlots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

#timeSlots button {
  margin: 0;
  padding: 16px 12px;
  border-radius: 14px;
  border: 2px solid #dfe4e8;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #495057;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  touch-action: manipulation;
}

#timeSlots button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.6s ease;
}

#timeSlots button:hover::before {
  left: 100%;
}

#timeSlots button:hover, #timeSlots button:focus {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  border-color: #007bff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,123,255,0.4);
  outline: none;
}

#timeSlots button.selected {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  border-color: #28a745;
  box-shadow: 0 8px 24px rgba(40,167,69,0.5);
  transform: translateY(-4px);
  font-size: 16px;
}

#timeSlots button.selected::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.boton-eliminar-container {
  text-align: center;
  margin-top: 20px;
}

.boton-eliminar {
  background-color: #c0392b; /* rojo suave tipo alerta */
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 160px;
}

.boton-eliminar:hover,
.boton-eliminar:focus {
  background-color: #a93226;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  outline: none;
}

.summary p {
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.4;
  user-select: none;
  color: #333;
}

/* Corrección barberos */
.barber-list label {
  display: block;
  margin: 10px 0;
  cursor: pointer;
  font-weight: 600;
  color: #444;
  padding-left: 30px;
  position: relative;
  transition: color 0.25s ease;
  user-select: none;
}

.barber-list label:hover, .barber-list label:focus {
  color: #000;
  outline: none;
}

.barber-list label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #888;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  background-color: #fff;
  z-index: 1;
}

input[name="barbero"] {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  left: 0;
  top: 12px;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

input[name="barbero"]:checked + label::before {
  background-color: #222;
  border-color: #222;
}

#dateError, #clientError {
  font-weight: 600;
  margin-top: 6px;
  color: #e53935;
  user-select: none;
}

#clientError {
  margin-bottom: 10px;
  display: none;
}

/* Mensajes inline */
.alert-message {
  background-color: #ffdddd;
  border-left: 5px solid #e53935;
  padding: 10px 15px;
  margin: 10px 0 15px 0;
  border-radius: 6px;
  font-weight: 600;
  color: #b71c1c;
  user-select: none;
}
.footer {
  background-color: #111;   /* Negro o el color de tu footer */
  padding: 15px 0;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-note {
  font-size: 12px;
  color: #aaa;   /* Gris claro para que resalte sobre negro */
  margin-top: 10px;
  font-style: italic;
}



.icon-box {
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.icon-box:hover, .icon-box:focus {
  transform: scale(1.3);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  outline: none;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 1024px) {
  .container {
    gap: 24px;
    padding: 20px 4%;
  }

  .left, .right {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    min-height: auto;
    padding: 16px 4%;
  }

  .left, .right {
    max-width: 100%;
    flex: none;
    margin-bottom: 24px;
  }

  .right {
    order: 2;
  }

  .left {
    order: 1;
  }

  .right {
    align-self: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .navbar-links {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-links li a {
    font-size: 14px;
  }

  .logo {
    margin: 90px auto 10px auto;
  }

  .logo img {
    width: 110px;
  }

  .container {
    flex-direction: column;
    min-height: auto;
    padding: 16px 4%;
  }
  .left, .right {
    max-width: 100%;
    flex: none;
    position: relative;
    margin-bottom: 30px;
    min-height: 300px;
  }
  .left {
    overflow: visible;
  }
  .step {
    position: absolute;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    width: 100%;
    left: 0;
    right: 0;
  }
  .step.active {
    position: relative;
    min-height: 200px;
  }

  /* Mejorar espacio en móvil */
  #timeSlots {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  #timeSlots button {
    padding: 12px 14px;
    font-size: 13px;
  }
  
  /* Ajustar campos de fecha en móvil */
  input[type="date"] {
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  button {
    min-width: auto;
    padding: 12px 20px;
    font-size: 14px;
  }
  /* Mensaje de error para servicios */
  #serviciosError {
    color: #e53935;
    font-weight: 600;
    margin-top: 8px;
    display: none;
    user-select: none;
  }

  .payment-section {
    margin: 1.5rem auto;
    padding: 1.2rem;
    font-size: 14px;
  }

  .cita-botones {
    flex-direction: column;
  }

  .btn-cancelar,
  .btn-agendar-nueva {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 20px;
  }

  fieldset {
    padding: 12px 14px;
  }

  .left, .right {
    padding: 20px 16px;
  }

  .service-options label {
    font-size: 14px;
    padding-right: 4px;
  }

  .service-header {
    font-size: 16px;
  }

  #timeSlots {
    grid-template-columns: repeat(1, 1fr);
  }

  .summary p {
    font-size: 14px;
  }

  .footer-content {
    gap: 12px;
  }

  button {
    min-width: min-content;
    padding: 12px 16px;
  }
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #111;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 36px;
  font-size: 18px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
  transform: scale(1.1);
}

/* Cuando se activa */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Navbar minimalista */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  padding: 15px 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.navbar-links li a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: 300;
  font-size: 16px;
  transition: color 0.3s ease;
}

.navbar-links li a:hover {
  color: #f4c542;
}

.payment-section {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.8rem;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 16px;
  margin: 2rem auto;
  max-width: 600px;
}

.comprobante-box {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-section input[type="file"] {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fafafa;
}

.instrucciones-cita {
  text-align: center;
  font-size: 14px;
  color: #000; /* Texto en negro */
  margin-top: 20px;
}

.instrucciones-cita ol {
  list-style: decimal;
  padding-left: 20px;
  text-align: left;
  display: inline-block;
}

.frase-barberia {
  font-style: italic;
  margin: 10px 0;
  color: #555; /* Gris oscuro para contraste suave */
}

.whatsapp-link svg {
  transition: transform 0.3s ease;
}

.whatsapp-link:hover svg,
.whatsapp-link svg:hover {
  transform: scale(1.1);
}

/* Estilos para el campo de notas */
textarea {
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 100%;
  font-size: 15px;
  transition: border-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
  min-height: 80px;
  user-select: text;
}

textarea:focus {
  border-color: #333;
  outline: 2px solid #555;
}

/* Indicador de disponibilidad - Mejorado */
.disponibilidad-indicador {
  margin-top: 12px;
  padding: 14px 18px;
  background-color: #e8f5e9;
  border-left: 5px solid #28a745;
  border-radius: 8px;
  font-weight: 600;
  color: #2e7d32;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(40,167,69,0.15);
  transition: all 0.3s ease;
  animation: slideDown 0.4s ease;
}

.disponibilidad-indicador p {
  margin: 0;
  display: flex;
  align-items: center;
}

.disponibilidad-indicador p::before {
  content: '✓';
  margin-right: 8px;
  font-size: 18px;
}

.disponibilidad-indicador.lleno {
  background-color: #fff3cd;
  border-left-color: #ffc107;
  color: #856404;
}

.disponibilidad-indicador.lleno p::before {
  content: '✕';
  margin-right: 8px;
  font-size: 18px;
  color: #dc3545;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Historial de citas */
.citas-historial {
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.no-citas {
  text-align: center;
  color: #999;
  padding: 30px 10px;
  font-style: italic;
}

.cita-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.cita-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.cita-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cita-fecha {
  font-weight: 700;
  color: #222;
  font-size: 16px;
}

.cita-estado {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.cita-estado.proxima {
  background-color: #d1ecf1;
  color: #0c5460;
}

.cita-estado.pasada {
  background-color: #f8d7da;
  color: #721c24;
}

.cita-detalles {
  margin: 10px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.cita-detalles strong {
  color: #222;
}

.cita-botones {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-cancelar {
  flex: 1;
  padding: 8px 12px;
  background-color: #c0392b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
}

.btn-cancelar:hover {
  background-color: #a93226;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-cancelar:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-agendar-nueva {
  width: 100%;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-agendar-nueva:hover {
  background-color: #20c997;
  box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

/* Animaciones mejoradas para transiciones entre pasos */
.step {
  opacity: 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  transform: translateX(0);
}

.step.active.prev-animation {
  transform: translateX(-30px);
}

/* ========================
   Estilos Flatpickr Minimalista
   ======================== */

/* Contenedor principal del calendario */
.flatpickr-calendar {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border: 1px solid #e8e8e8;
  font-family: 'Poppins', sans-serif;
  animation: calendarSlideIn 0.25s ease;
}

@keyframes calendarSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Encabezado del calendario */
.flatpickr-months {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 12px 12px 0 0;
  padding: 14px 16px;
}

.flatpickr-month {
  color: #222;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
}

/* Año */
.numInputWrapper {
  background: transparent;
  border-radius: 4px;
}

.numInputWrapper input {
  color: #222;
  font-weight: 500;
  font-size: 14px;
}

/* Botones de navegación */
.flatpickr-prev-month,
.flatpickr-next-month {
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  fill: #666;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: #f5f5f5;
  color: #007bff;
  fill: #007bff;
}

/* Fila de días de la semana */
.flatpickr-weekdays {
  background: transparent;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.flatpickr-weekday {
  color: #999;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Días */
.flatpickr-days {
  padding: 6px;
}

.flatpickr-day {
  color: #666;
  font-weight: 400;
  border-radius: 6px;
  transition: all 0.15s ease;
  height: 36px;
  line-height: 36px;
  font-size: 13px;
}

.flatpickr-day:hover {
  background: #f5f5f5;
  color: #222;
}

/* Día seleccionado */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #007bff;
  border-color: #007bff;
  color: white;
  font-weight: 500;
  box-shadow: none;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #0056b3;
  border-color: #0056b3;
}

/* Día actual */
.flatpickr-day.today {
  border: 1px solid #007bff;
  color: #007bff;
  font-weight: 500;
  border-radius: 6px;
}

.flatpickr-day.today.selected {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

/* Días deshabilitados */
.flatpickr-day.disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #ddd;
  background-color: transparent;
  cursor: not-allowed;
}

.flatpickr-day.disabled:hover {
  background: transparent;
  cursor: not-allowed;
}

/* Selector de rango */
.flatpickr-day.inRange {
  background: #f5f5f5;
  color: #007bff;
}

/* Input de Flatpickr */
input#date {
  background: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  color: #555 !important;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px 12px !important;
  font-size: 14px;
}

input#date:hover {
  border-color: #007bff !important;
  box-shadow: 0 2px 8px rgba(0,123,255,0.08) !important;
}

input#date:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1) !important;
  outline: none !important;
}

/* Animación de carga */
.flatpickr-calendar.open {
  animation: calendarSlideIn 0.25s ease;
}
