@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
    --background-color: #121212;
    --text-color: #ffffff;
    --secondary-text-color: #c0c0c0;
    --border-color-grid: #333333;
    --timer-box-bg: rgba(0, 0, 0, 0.2);
    --timer-box-border: rgba(255, 255, 255, 0.1);
    --cookie-banner-bg: rgba(10, 10, 20, 0.85);
    --cookie-text-color: #e0e0e0;
    --btn-cookie-accept-bg: #00c3ff;
    --btn-cookie-accept-text: #02001e;
    --btn-cookie-reject-bg: #555;
    --btn-cookie-reject-text: #fff;
    
    --progress-gradient: linear-gradient(90deg, #00c3ff, #e100ff);
    --progress-track-bg: rgba(0, 0, 0, 0.4);
    --goal-title-color: #a0a0a0;
    --goal-percentage-color: #00c3ff;
    --footer-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
    --background-color: #f0f2f5;
    --text-color: #222222;
    --secondary-text-color: #555555;
    --border-color-grid: #cccccc;
    --timer-box-bg: rgba(255, 255, 255, 0.7);
    --timer-box-border: rgba(0, 0, 0, 0.1);
    --cookie-banner-bg: rgba(255, 255, 255, 0.95);
    --cookie-text-color: #333;
    --btn-cookie-accept-bg: #4CAF50;
    --btn-cookie-accept-text: #fff;
    --btn-cookie-reject-bg: #f44336;
    --btn-cookie-reject-text: #fff;

    --progress-track-bg: rgba(0, 0, 0, 0.1);
    --goal-title-color: #666;
    --goal-percentage-color: #00c3ff;
    --footer-bg: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: 
        linear-gradient(to right, var(--border-color-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    animation: fadeInContent 1.5s ease-out;
    width: 100%;
}

.logo {
    max-width: 250px;
    margin-bottom: 1.5rem;
    animation: float 4s ease-in-out infinite;
    height: auto;
}

.main-title {
    font-size: 3.5rem; 
    font-weight: 900; 
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-color);
}

.gradient-text {
    background: linear-gradient(90deg, #00c3ff, #e100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

main p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-title {
    font-size: 1rem;
    color: #00c3ff;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 800px;
}

.timer-box {
    background: var(--timer-box-bg);
    border: 1px solid var(--timer-box-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 90px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    flex: 1;
    max-width: 150px;
}

.timer-box span { display: block; }

.timer-box span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.timer-box .label {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.btn-discord {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: #5865F2;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.5);
}

/* --- FOOTER MODERNO --- */
.footer-modern {
    width: 100%;
    max-width: 800px;
    margin-top: 4rem;
    padding: 2rem 1rem;
    border-top: 1px solid var(--timer-box-border);
    background: var(--footer-bg);
    border-radius: 20px 20px 0 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-logo span {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.footer-copy {
    font-size: 0.85rem !important;
    margin-bottom: 5px !important;
    opacity: 0.8;
}

.footer-tag {
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--goal-percentage-color) !important;
}

/* --- FIN FOOTER --- */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--timer-box-bg);
    border: 1px solid var(--timer-box-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.goal-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.goal-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--goal-title-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-percentage {
    font-size: 1rem;
    font-weight: 700;
    color: var(--goal-percentage-color);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background-color: var(--progress-track-bg);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--progress-gradient);
    border-radius: 10px;
    transition: width 1.5s ease-out;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .footer-modern { margin-top: 2rem; }
}

@media (max-width: 480px) {
    .main-title { font-size: 1.8rem; }
    #countdown {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.container-404 {
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.main-404 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #e100ff, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    line-height: 1;
    animation: pulse 2s infinite alternate;
}

.main-404 .main-title {
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.main-404 p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    max-width: 500px;
    color: var(--secondary-text-color);
}

.btn-home {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: #00c3ff;
    color: #02001e;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 195, 255, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 768px) {
    .error-code { font-size: 6rem; }
    .main-404 .main-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .error-code { font-size: 4.5rem; }
    .main-404 .main-title { font-size: 1.5rem; }
    .main-404 p { font-size: 0.95rem; }
    .btn-home { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
}