* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    touch-action: manipulation;
}

body * {
    user-select: none;
}

input,
textarea,
select {
    user-select: auto !important;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-width: 400px;
    height: auto;
    display: block;
}

.container {
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow-color);
    background-color: var(--card-bg);
    text-align: center;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--glass-border);
}

.container h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--text-color);
}

.container p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--text-color);
}

button {
    margin-top: 15px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background-color: #4facfe;
    background: #F75934;
    color: #ffd200;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 25px;
}

button:hover {
    background-color: #ffd200;
    color: #F75934;
}

#copyMessage {
    margin-top: 10px;
    font-weight: bold;
    color: green;
    font-size: 1rem;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #F75934 0%, #ffd200 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-logo {
    width: 300px;
    height: auto;
}

.preloader-icon {
    width: 120px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.footer {
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    color: var(--footer-text);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    margin-top: 30px;
}

@media (max-width: 600px) {
    body {
        align-items: stretch;
        /* ocupar todo el ancho */
        padding: 10px;
    }

    .logo {
        max-width: 220px;
        margin: 10px auto;
    }

    .container {
        padding: 20px;
        border-radius: 10px;
        box-shadow: none;
        width: 100%;
    }

    .container h1 {
        font-size: 1.4rem;
    }

    .container p {
        font-size: 1rem;
    }

    button {
        font-size: 15px;
        padding: 10px;
    }

    .footer {
        font-size: 11px;
        padding: 10px 5px;
    }
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, #F75934 0%, #FF8E2B 100%);
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(247, 89, 52, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 89, 52, 0.3);
    color: #fff;
}