html {
    scroll-behavior: smooth;
}

.custom-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.custom-select-wrapper,
.custom-input-wrapper {
    position: relative;
    flex: 1 1 250px;
    min-width: 200px;
}

.custom-select-wrapper {
      position: relative;
    flex: 1 1 250px; /* Mínimo 250px, luego crece */
    min-width: 200px;
}	

.custom-select-wrapper select {
    all: unset;
    appearance: none;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 10px 40px 10px 15px;
    font-size: 16px;
    width: 100%;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
}

.custom-select-wrapper select:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

.custom-select-wrapper::after {
    content: "▼";
    font-size: 14px;
    color: #007bff;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(45%);
    pointer-events: none;
    line-height: 1;
}

/* Para evitar que el caret nativo se muestre en algunos navegadores */
select::-ms-expand {
  display: none ;
}

/* Estilo del INPUT */
.custom-input-wrapper input {
    all: unset;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    width: 100%;
    color: #333;
    box-sizing: border-box;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  /* Animación del loader (círculo girando) */
  .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: girar 1s linear infinite;
  }
  
  @keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Estilos generales */
.alerta {
    position: fixed;
    top: 120px;
    right: 200px;
    padding: 15px 20px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
  }
  
  /* Tipos de alerta */
  .alerta.exito {
    background-color: #d4edda;
    color: #155724;
    border-left: 6px solid #28a745;
  }
  
  .alerta.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 6px solid #dc3545;
  }
  
  .alerta.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 6px solid #17a2b8;
  }
  
  .alerta.advertencia {
    background-color: #fff3cd;
    color: #856404;
    border-left: 6px solid #ffc107;
  }
  
  /* Botón de cerrar */
  .cerrar-alerta {
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
  }
  
  /* Ocultar la alerta */
  .oculto {
    display: none;
  }
  