/* Estilos generales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            overflow-x: hidden;
            color: white;
            min-height: 100vh;
            position: relative;
        }
        
        .background-image {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('/imagen/imagenfondo.jpg');
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            background-attachment: fixed;
            background-color: #000;
            z-index: -3;
            filter: brightness(0.7);
        }
        
        /* Efecto de fuego mejorado */
        .fire-container {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30%;
            z-index: -2;
            overflow: hidden;
        }

        .fire {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(0deg, rgba(255,80,0,0.8) 0%, rgba(255,80,0,0) 70%);
            animation: fireAnimation 3s ease-in-out infinite alternate;
        }

        /* Chispas de fuego */
        .spark {
            position: absolute;
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background-color: #ff6600;
            box-shadow: 0 0 5px 2px #ff6600;
            animation: sparkAnimation linear infinite;
        }

        @keyframes sparkAnimation {
            0% {
                transform: translateY(0) translateX(0);
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) translateX(var(--spark-x));
                opacity: 0;
            }
        }

        @keyframes fireAnimation {
            0%, 100% { 
                height: 30%; 
                opacity: 0.8; 
                background: linear-gradient(0deg, rgba(255,80,0,0.8) 0%, rgba(255,80,0,0) 70%);
            }
            25% {
                background: linear-gradient(0deg, rgba(255,120,0,0.9) 0%, rgba(255,80,0,0) 70%);
            }
            50% { 
                height: 40%; 
                opacity: 1; 
                background: linear-gradient(0deg, rgba(255,60,0,0.9) 0%, rgba(255,80,0,0) 70%);
            }
            75% {
                background: linear-gradient(0deg, rgba(255,100,0,0.9) 0%, rgba(255,80,0,0) 70%);
            }
        }

        /* Efecto de lluvia mejorado */
        .rain {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }

        .drop {
            position: absolute;
            width: 1px;
            background: linear-gradient(transparent, rgba(100, 150, 255, 0.6));
            animation: rain linear infinite;
            transform: translateY(-100%);
        }

        .drop::before {
            content: '';
            position: absolute;
            width: 2px;
            height: 5px;
            background: rgba(255, 255, 255, 0.8);
            top: 0;
            left: 0;
            border-radius: 0 0 50% 50%;
        }

        @keyframes rain {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(100vh); }
        }

        /* Contenido principal */
        .content {
            text-align: center;
            z-index: 1;
            padding: 20px;
            max-width: 800px;
            background-color: rgba(0, 0, 0, 0.6);
            border-radius: 15px;
            box-shadow: 0 0 40px rgba(106, 0, 255, 0.3);
            animation: fadeIn 2s ease-out;
            border: 1px solid rgba(106, 0, 255, 0.3);
            backdrop-filter: blur(5px);
            position: relative;
            transition: transform 0.5s ease;
            margin: 20px auto;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px) rotateX(20deg); }
            to { opacity: 1; transform: translateY(0) rotateX(0); }
        }

        .title {
            font-size: 2.5rem;
            margin: 0;
            color: #fff;
            font-family: 'Cinzel Decorative', serif;
            letter-spacing: 3px;
            text-shadow: 0 0 20px #6a00ff, 0 0 40px #6a00ff;
            position: relative;
            margin-bottom: 10px;
        }

        .subtitle {
            font-size: 1.5rem;
            margin-bottom: 30px;
            color: #ccc;
            letter-spacing: 2px;
            text-shadow: 0 0 10px #6a00ff;
        }

        .buttons-container {
            display: flex;
            justify-content: center;
            width: 100%;
            position: relative;
        }

        .buttons {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin: 30px 0;
            position: relative;
            z-index: 2;
            width: 100%;
        }

        .btn {
            padding: 15px;
            background: linear-gradient(135deg, rgba(106, 0, 255, 0.3), rgba(50, 0, 120, 0.5));
            color: #fff;
            border: 1px solid #6a00ff;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.4s ease;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3), inset 0 0 10px rgba(106, 0, 255, 0.3);
            position: relative;
            overflow: hidden;
            letter-spacing: 1px;
            font-weight: bold;
            text-shadow: 0 0 10px #6a00ff;
            min-width: auto;
        }

        .btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 30px rgba(106, 0, 255, 0.5), inset 0 0 20px rgba(106, 0, 255, 0.5);
            background: linear-gradient(135deg, rgba(106, 0, 255, 0.5), rgba(50, 0, 120, 0.7));
        }

        .btn::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                to bottom right,
                transparent 45%,
                rgba(106, 0, 255, 0.3) 50%,
                transparent 55%
            );
            transform: rotate(30deg);
            animation: btnShine 4s infinite;
        }

        @keyframes btnShine {
            0% { transform: translateX(-100%) rotate(30deg); }
            100% { transform: translateX(100%) rotate(30deg); }
        }

        /* WhatsApp flotante */
        .whatsapp {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 100;
            transition: all 0.3s ease;
        }

        .whatsapp img {
            width: 60px;
            cursor: pointer;
            filter: drop-shadow(0 0 15px rgba(0,230,118,0.9));
            animation: pulse 2s infinite, float 3s ease-in-out infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .whatsapp:hover img {
            filter: drop-shadow(0 0 20px rgba(0,230,118,1));
            animation: pulse 1s infinite, float 2s ease-in-out infinite;
        }

        /* Estilos para el sobre - Posición superior izquierda */
        .envelope-wrapper {
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 1000;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 120px;
            height: 80px;
        }

        .envelope-wrapper:hover {
            transform: scale(1.1) rotate(-5deg);
            filter: drop-shadow(0 0 15px rgba(106, 0, 255, 0.8));
        }

        .envelope {
            width: 100%;
            height: 100%;
            position: relative;
            z-index: 5;
        }

        .front {
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #041c6b, #031b6b);
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(3, 24, 119, 0.9);
            z-index: 3;
            transition: all 0.5s ease;
            transform-origin: bottom;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 10px;
            box-sizing: border-box;
        }

        .envelope-text {
            color: white;
            font-weight: bold;
            font-size: 0.8rem;
            text-shadow: 0 0 5px rgba(0,0,0,0.5);
            letter-spacing: 1px;
            animation: pulseText 2s infinite;
        }

        @keyframes pulseText {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .envelope-wrapper:hover .front {
            transform: rotateX(180deg);
        }

        .letter {
            position: absolute;
            width: 90%;
            height: 90%;
            background: #fff;
            border-radius: 5px;
            top: 0;
            left: 5%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #0c1e81;
            font-size: 1.4rem;
            transition: all 0.5s ease;
            z-index: 2;
            box-shadow: 0 0 15px rgba(0,0,0,0.3);
            padding: 8px;
            box-sizing: border-box;
        }

        .letter-text {
            font-size: 0.7rem;
            margin-top: 5px;
            color: #333;
            font-weight: bold;
            text-align: center;
        }

        .envelope-wrapper:hover .letter {
            transform: translateY(-20px);
            z-index: 4;
            box-shadow: 0 0 25px rgba(6, 17, 121, 0.5);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.5s ease-out;
        }

        .modal-content {
            position: relative;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            background-color: rgba(0, 0, 0, 0.9);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 0 40px rgba(11, 25, 145, 0.5);
            border: 1px solid rgba(38, 18, 148, 0.5);
            animation: slideDown 0.5s ease-out;
            margin: 20px;
        }

        .close-modal {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            color: #fff;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .close-modal:hover {
            color: #131188;
            transform: scale(1.2);
        }

        @keyframes slideDown {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        /* Estilos del contador mágico */
        .magic-counter {
            position: fixed;
            top: 15px;
            right: 15px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: all 0.5s ease;
            filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.7));
        }

        .magic-counter:hover {
            filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.9));
        }

        .crystal-ball {
            position: relative;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, 
                rgba(255, 255, 255, 0.8) 0%, 
                rgba(138, 43, 226, 0.4) 60%, 
                rgba(75, 0, 130, 0.8) 100%);
            box-shadow: 
                inset 0 0 20px rgba(255, 255, 255, 0.5),
                0 0 30px rgba(138, 43, 226, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        .inner-glow {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 40%, 
                rgba(255, 255, 255, 0.9) 0%, 
                transparent 70%);
            animation: pulse 4s infinite alternate;
        }

        @keyframes pulse {
            0% { opacity: 0.3; transform: scale(0.95); }
            100% { opacity: 0.7; transform: scale(1.05); }
        }

        .magic-number {
            font-family: 'Times New Roman', serif;
            font-size: 18px;
            font-weight: bold;
            color: white;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
            z-index: 2;
            transition: all 0.3s ease;
        }

        .counter-label {
            margin-top: 5px;
            font-family: 'Courier New', monospace;
            font-size: 9px;
            color: #d8bfd8;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 0 5px rgba(216, 191, 216, 0.7);
        }

        /* Efectos mágicos */
        .sparkles {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            pointer-events: none;
        }

        .sparkle {
            position: absolute;
            width: 2px;
            height: 2px;
            background-color: white;
            border-radius: 50%;
            filter: blur(1px);
            animation: sparkle-flicker 2s infinite;
        }

        @keyframes sparkle-flicker {
            0%, 100% { opacity: 0; transform: scale(0); }
            50% { opacity: 1; transform: scale(1); }
        }

        .smoke {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: radial-gradient(circle, transparent 50%, rgba(138, 43, 226, 0.1) 100%);
            animation: smoke-rotate 20s linear infinite;
        }

        @keyframes smoke-rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .magic-effects {
            position: absolute;
            width: 90px;
            height: 90px;
            pointer-events: none;
        }

        .rune-circle {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 1px dashed rgba(216, 191, 216, 0.5);
            border-radius: 50%;
            animation: rune-rotate 60s linear infinite;
        }

        @keyframes rune-rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .floating-runes {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .rune {
            position: absolute;
            font-family: 'Times New Roman', serif;
            font-size: 10px;
            color: rgba(216, 191, 216, 0.8);
            animation: float-rune 10s infinite ease-in-out;
        }

        @keyframes float-rune {
            0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
            25% { transform: translate(5px, -3px) rotate(5deg); opacity: 1; }
            50% { transform: translate(-3px, 5px) rotate(-5deg); opacity: 0.5; }
            75% { transform: translate(3px, 3px) rotate(3deg); opacity: 0.9; }
        }

        /* Portal mágico */
        .magic-portal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        .portal-content {
            position: relative;
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            max-width: 500px;
            width: 90%;
            border: 2px solid #8a2be2;
            box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
            overflow: hidden;
        }

        .portal-content::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, 
                rgba(138, 43, 226, 0.1) 0%, 
                transparent 70%);
            animation: portal-glow 6s linear infinite;
        }

        @keyframes portal-glow {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .close-portal {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 20px;
            color: #d8bfd8;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .close-portal:hover {
            color: white;
            transform: scale(1.2);
        }

        #portal-title {
            color: #9370db;
            margin-bottom: 15px;
            font-size: 22px;
            text-shadow: 0 0 10px rgba(147, 112, 219, 0.7);
            font-family: 'Times New Roman', serif;
        }

        .portal-message {
            color: #e6e6fa;
            font-size: 16px;
            margin-bottom: 20px;
            line-height: 1.5;
            font-family: 'Courier New', monospace;
        }

        .portal-animation {
            height: 150px;
            width: 100%;
            position: relative;
            margin-bottom: 15px;
            overflow: hidden;
        }

        .spell-button {
            background: linear-gradient(to right, #8a2be2, #9400d3);
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Courier New', monospace;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
            position: relative;
            z-index: 10000;
        }

        .spell-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 20px rgba(138, 43, 226, 0.9);
        }

        .spell-button:active {
            transform: translateY(1px);
        }

        /* Animaciones de portal */
        .magic-particle {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            transform: translate(-50%, -50%);
        }

        .spell-circle {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            pointer-events: none;
        }

        @keyframes spell-pulse {
            from { transform: scale(1); opacity: 0.7; }
            to { transform: scale(1.2); opacity: 0.3; }
        }
        
        /* Asegura que el botón sea clickeable */
        .spell-button {
            position: relative;
            z-index: 100;
            cursor: pointer;
            pointer-events: auto !important;
        }

        /* Crédito de diseño - Estilo creativo */
        .design-credit {
            position: fixed;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            text-align: center;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            text-shadow: 0 0 5px rgba(106, 0, 255, 0.7);
            transition: all 0.5s ease;
            padding: 8px 15px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 20px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(106, 0, 255, 0.3);
            animation: float 4s ease-in-out infinite;
        }

        .design-credit:hover {
            color: white;
            background: rgba(106, 0, 255, 0.3);
            box-shadow: 0 0 15px rgba(106, 0, 255, 0.5);
            transform: translateX(-50%) scale(1.05);
        }

        .design-credit a {
            color: #d8bfd8;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .design-credit a:hover {
            color: white;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }

        /* Media queries para responsividad */
        @media (min-width: 768px) {
            .title {
                font-size: 3.5rem;
            }
            
            .subtitle {
                font-size: 2rem;
            }
            
            .buttons {
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }
            
            .btn {
                padding: 18px 25px;
                font-size: 1.1rem;
            }
            
            .content {
                padding: 30px;
            }
            
            .modal-content {
                padding: 30px;
            }
            
            .envelope-wrapper {
                width: 150px;
                height: 100px;
            }
            
            .envelope-text {
                font-size: 1rem;
            }
            
            .letter-text {
                font-size: 0.8rem;
            }
            
            .magic-counter {
                top: 20px;
                right: 20px;
            }
            
            .crystal-ball {
                width: 70px;
                height: 70px;
            }
            
            .magic-number {
                font-size: 20px;
            }
            
            .counter-label {
                font-size: 10px;
            }
            
            .design-credit {
                font-size: 14px;
                padding: 10px 20px;
            }
        }

        @media (min-width: 1024px) {
            .title {
                font-size: 4.5rem;
            }
            
            .subtitle {
                font-size: 2.2rem;
            }
            
            .buttons {
                gap: 30px;
                margin: 50px 0;
            }
            
            .btn {
                padding: 20px 35px;
                font-size: 1.3rem;
                min-width: 180px;
            }
            
            .content {
                padding: 40px;
            }
            
            .envelope-wrapper {
                width: 180px;
                height: 120px;
                top: 20px;
                left: 20px;
            }
            
            .envelope-text {
                font-size: 1.1rem;
            }
            
            .letter {
                font-size: 1.8rem;
            }
            
            .letter-text {
                font-size: 0.9rem;
                margin-top: 10px;
            }
            
            .magic-counter {
                top: 20px;
                right: 20px;
            }
            
            .crystal-ball {
                width: 80px;
                height: 80px;
            }
            
            .magic-number {
                font-size: 24px;
            }
            
            .counter-label {
                font-size: 12px;
                margin-top: 8px;
            }
        }

        /* Para pantallas muy pequeñas */
        @media (max-width: 360px) {
            .title {
                font-size: 2rem;
            }
            
            .subtitle {
                font-size: 1.2rem;
            }
            
            .btn {
                padding: 12px;
                font-size: 0.9rem;
            }
            
            .envelope-wrapper {
                width: 100px;
                height: 70px;
            }
            
            .envelope-text {
                font-size: 0.7rem;
            }
            
            .letter {
                font-size: 1.2rem;
            }
            
            .letter-text {
                font-size: 0.6rem;
            }
            
            .magic-counter {
                top: 10px;
                right: 10px;
            }
            
            .crystal-ball {
                width: 50px;
                height: 50px;
            }
            
            .magic-number {
                font-size: 16px;
            }
            
            .counter-label {
                font-size: 8px;
            }
            
            .whatsapp img {
                width: 50px;
            }
        }

        /* Estilos para el crédito mejorado y más llamativo */
        .design-credit {
            position: fixed;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            font-family: 'Cinzel', serif;
            font-size: 18px;
            color: #fff;
            text-shadow: 0 0 10px rgba(106, 0, 255, 0.8), 0 0 20px rgba(106, 0, 255, 0.6);
            padding: 15px 30px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 30px;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(106, 0, 255, 0.5);
            box-shadow: 0 0 25px rgba(106, 0, 255, 0.4);
            animation: float 6s ease-in-out infinite, glow 3s alternate infinite;
            transition: all 0.5s ease;
            cursor: pointer;
        }

        .design-credit:hover {
            background: rgba(106, 0, 255, 0.3);
            box-shadow: 0 0 30px rgba(106, 0, 255, 0.7);
            transform: translateX(-50%) scale(1.08);
            color: #fff;
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px rgba(106, 0, 255, 0.8);
        }

        .design-credit-text {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: bold;
            letter-spacing: 1px;
        }

        .design-credit a {
            color: #e6e6fa;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
            position: relative;
            background: linear-gradient(90deg, #8a2be2, #9370db, #e6e6fa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
        }

        .design-credit a:hover {
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
        }

        .design-credit a::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #8a2be2, #9370db, #e6e6fa);
            transition: width 0.3s ease;
            box-shadow: 0 0 8px rgba(138, 43, 226, 0.7);
        }

        .design-credit a:hover::after {
            width: 100%;
        }

        /* Icono mágico giratorio */
        .magic-icon {
            font-size: 22px;
            animation: spin 8s linear infinite, pulse 2s ease-in-out infinite;
            color: #9370db;
            text-shadow: 0 0 10px rgba(147, 112, 219, 0.7);
        }

        /* Efectos de partículas */
        .credit-particles {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(147, 112, 219, 0.8);
            border-radius: 50%;
            animation: particle-float 10s linear infinite;
            box-shadow: 0 0 6px rgba(147, 112, 219, 0.8);
        }

        /* Animaciones */
        @keyframes float {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-8px); }
        }

        @keyframes glow {
            0% { box-shadow: 0 0 20px rgba(106, 0, 255, 0.4); }
            100% { box-shadow: 0 0 30px rgba(106, 0, 255, 0.7); }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        @keyframes particle-float {
            0% {
                transform: translate(0, 0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            100% {
                transform: translate(var(--x), var(--y));
                opacity: 0;
            }
        }

        /* Responsive para móviles */
        @media (max-width: 768px) {
            .design-credit {
                font-size: 16px;
                padding: 12px 20px;
                bottom: 20px;
                border-radius: 25px;
            }
            
            .magic-icon {
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            .design-credit {
                font-size: 14px;
                padding: 10px 16px;
                bottom: 15px;
            }
            
            .design-credit-text {
                flex-direction: column;
                gap: 5px;
            }
            
            .magic-icon {
                font-size: 18px;
            }
        }

        /* Estilos del contador mágico - Versión azul oscuro */
        .magic-counter {
            filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.7));
        }

        .magic-counter:hover {
            filter: drop-shadow(0 0 15px rgba(30, 144, 255, 0.9));
        }

        .crystal-ball {
            background: radial-gradient(circle at 30% 30%, 
                rgba(173, 216, 230, 0.8) 0%, 
                rgba(70, 130, 180, 0.4) 60%, 
                rgba(0, 74, 173, 0.8) 100%);
            box-shadow: 
                inset 0 0 20px rgba(173, 216, 230, 0.5),
                0 0 30px rgba(30, 144, 255, 0.7);
        }

        .inner-glow {
            background: radial-gradient(circle at 40% 40%, 
                rgba(173, 216, 230, 0.9) 0%, 
                transparent 70%);
        }

        .magic-number {
            text-shadow: 0 0 5px rgba(173, 216, 230, 0.8);
        }

        .counter-label {
            color: #b0c4de;
            text-shadow: 0 0 5px rgba(176, 196, 222, 0.7);
        }

        /* Runas y efectos en azul */
        .rune {
            color: rgba(100, 149, 237, 0.8);
            text-shadow: 0 0 3px rgba(70, 130, 180, 0.8);
        }

        /* Portal mágico en azul */
        .portal-content {
            background: linear-gradient(135deg, #0a1929, #1a365d);
            border: 2px solid #1e3a8a;
            box-shadow: 0 0 30px rgba(30, 144, 255, 0.6);
        }

        #portal-title {
            color: #6495ed;
            text-shadow: 0 0 10px rgba(100, 149, 237, 0.7);
        }

        .spell-button {
            background: linear-gradient(to right, #1e3a8a, #3b82f6);
            box-shadow: 0 0 15px rgba(30, 144, 255, 0.7);
        }

        .spell-button:hover {
            box-shadow: 0 0 20px rgba(30, 144, 255, 0.9);
        }