
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #eec49c 0%, #a2514b 25%, #5a0606 50%, #990707ad 75%, #852507 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            padding: 20px;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }
        .main-content {
            display: grid;
            grid-template-columns: auto auto;
            width: 100%;
            column-gap: 30px;
            width: 100%;
            justify-content: center;
        }
        /* Estilos para el contenedor del logo */
        .logo {
            background-color: white; 
            /* Centra la imagen dentro del header */
            text-align: center; 
            padding: 10px 0;
        }
        .logo img {
            /* El tamaño máximo que la imagen puede alcanzar es su ancho original */
            max-width: 100%;
            /* Asegura que la altura se ajuste proporcionalmente al ancho */
            height: auto; 
            /* Establece un ancho máximo razonable para que el logo no sea gigante en pantallas grandes */
            width: 400px; 
            display: block; /* Elimina espacio inferior innecesario */
            margin: 0 auto; /* Centra la imagen horizontalmente */
        }
        .container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 30px;
            padding: 50px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            text-align: center;
            max-width: 600px;
            width: 100%;
            backdrop-filter: blur(10px);
        }

        h1 {
            font-size: 3.5em;
            color: #2c3e50;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
            animation: fadeInDown 1s ease;
        }

        .motivational {
            font-size: 1.3em;
            color: #34495e;
            margin-bottom: 40px;
            font-style: italic;
            line-height: 1.6;
            animation: fadeInUp 1s ease 0.3s both;
        }

        #qrContainer {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 30px auto;
            padding: 30px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            animation: zoomIn 0.8s ease 0.6s both;
        }

        #qrcode {
            padding: 20px;
            background: white;
        }

        .info {
            margin-top: 30px;
            padding: 20px;
            background: rgba(52, 152, 219, 0.1);
            border-radius: 15px;
            animation: fadeIn 1s ease 0.9s both;
        }

        .counter {
            font-size: 1.1em;
            color: #2c3e50;
            margin-top: 10px;
        }

        .counter span {
            font-weight: bold;
            color: #3498db;
            font-size: 1.3em;
        }

        /* Página Not Found */
        .not-found {
            display: none;
            animation: shake 0.5s;
        }

        .not-found h1 {
            font-size: 4em;
            color: #e74c3c;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
        }

        .not-found p {
            font-size: 1.5em;
            color: #34495e;
            margin-top: 20px;
        }

        /* Animaciones */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes zoomIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        /* Configuración */
        .config-panel {
            background: white;
            padding: 20px;
            border-radius: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            width: 90%;
            max-width: 600px;
        }

        .config-panel h3 {
            margin-bottom: 15px;
            color: #2c3e50;
        }

        .config-panel input, .config-panel textarea {
            width: 100%;
            padding: 8px;
            margin: 5px 0;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: monospace;
        }

        .config-panel button {
            width: 100%;
            padding: 10px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            margin-top: 10px;
            transition: background 0.3s;
        }

        .config-panel button:hover {
            background: #2980b9;
        }

        .toggle-config {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5em;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
        }

        .toggle-config:hover {
            transform: scale(1.1);
            background: #2980b9;
        }

        @media (max-width: 768px) {
            h1 { font-size: 2.5em; }
            .container { padding: 30px; }
            .config-panel { 
                left: 20px; 
                right: 20px; 
                max-width: none; 
            }
        }

        .login-panel {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 30px;
            padding: 50px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            text-align: center;
            max-width: 600px;
            width: 100%;
            backdrop-filter: blur(10px);
        }
        .login-panel input {
            width: 80%;
            padding: 10px;
            margin-top: 20px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1em;
        }
        .login-panel button {
            width: 50%;
            padding: 10px;
            background: #ba34db;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            margin-top: 20px;
        }
        .login-panel button:hover {
            background: #9b27b0;
        }

        .logout-button {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 10px 15px;
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        .logout-button:hover {
            background: #c0392b;
        }

        .toast-success {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(20, 175, 20, 0.8);
            color: white;
            padding: 15px 25px;
            border-radius: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
            z-index: 1000;
        }
        .toast-success.show {
            opacity: 1;
            pointer-events: auto;
        }

        .toast-error {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 50, 50, 0.8);
            color: white;
            padding: 15px 25px;
            border-radius: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
            z-index: 1000;
        }
        .toast-error.show {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-content {
            background: white;
            padding: 20px;
            border-radius: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            max-width: 500px;
            width: 90%;
            text-align: center;
            position: fixed;
        }
        .modal-body h2 {
            margin-bottom: 20px;
            color: #2c3e50;
        }
        .modal-body button {
            padding: 10px 20px;
            margin: 10px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            color: white;
            background: #9b27b0;
        }
        .modal-body button:hover {
            background: #ba34db;
        }
