/*.hidden{
    display: none;
}

.message{
    width: 100px;
    height: 200px;
    background-color: rgb(120, 182, 233);
} */  
 /* Fondo oscuro semi-transparente */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Oculto por defecto */
.hidden {
    display: none;
}

/* Caja del mensaje */
.message-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    width: 320px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease forwards;
}

/* Animación de aparición */
@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ícono */
.icon-error {
    font-size: 48px;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}

/* Animación del ícono */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Título */
.message-box h2 {
    margin: 10px 0 5px;
    color: #d32f2f;
    font-size: 22px;
    font-weight: 600;
}

/* Texto */
.message-box p {
    color: #333;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Botón */
.btn-ok {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-ok:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}
/* ==========================================================
   MODAL DE BIENVENIDA (ESTILO CORPORATIVO PROFESIONAL)
   ========================================================== */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 20, 58, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.hidden {
  display: none !important;
}

.welcome-box {
  background: #fff;
  border-radius: 18px;
  padding: 40px 35px;
  width: 360px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: fadeInScale 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.welcome-box::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at center, rgba(0, 85, 255, 0.08), transparent 60%);
  z-index: 0;
}

.icon-success {
  background: linear-gradient(135deg, #0052cc, #007bff);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 85, 255, 0.4);
  position: relative;
  z-index: 1;
}

.icon-success span {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 3px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-top: -6px;
}

.welcome-box h2 {
  color: #0c1e55;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  z-index: 1;
  position: relative;
}

.welcome-box p {
  color: #555;
  font-size: 15.5px;
  margin-bottom: 28px;
  line-height: 1.5;
  z-index: 1;
  position: relative;
}

.btn-ok {
  background: linear-gradient(90deg, #0052cc, #007bff);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 85, 255, 0.35);
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.btn-ok:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #0042b3, #0066ff);
  box-shadow: 0 8px 25px rgba(0, 85, 255, 0.5);
}

/* Animaciones */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
