
    /* Contenido de la página */
    .contenido {
      text-align: center;
      padding: 40px;
      background: white;
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      max-width: 500px;
    }

    .contenido h1 {
      color: #333;
      margin-bottom: 15px;
    }

    .contenido p {
      color: #666;
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .contenido button {
      background: #6c63ff;
      color: white;
      border: none;
      padding: 12px 30px;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .contenido button:hover {
      background: #5a52d5;
    }

    /* --- LOADING PANTALLA COMPLETA --- */
    .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6); /* Fondo opaco */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      color: white;
      cursor: pointer; /* Indica que es clickeable */
      transition: opacity 0.5s ease;
      user-select: none;
    }
 

    /* Spinner */
    .spinner {
      width: 70px;
      height: 70px;
      border: 6px solid rgba(255, 255, 255, 0.2);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: girar 0.8s linear infinite;
      margin-bottom: 25px;
    }

    @keyframes girar {
      to {
        transform: rotate(360deg);
      }
    }

    /* Texto del loading */
    .loading-text {
      font-size: 1.8rem;
      font-weight: 300;
      letter-spacing: 3px;
      margin-bottom: 10px;
    }

    .loading-subtext {
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.6);
      font-weight: 300;
    }

    /* Clase para ocultar */
    .loading-oculto {
      opacity: 0;
      pointer-events: none;
    }

    /* Animación de entrada */
    .loading-overlay:not(.loading-oculto) {
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }