/* Fonts & Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #1e222b;
    --bg-darker: #15181f;
    --text-main: #ffffff;
    --text-muted: #a0a5b5;
    --accent-red: #cf0f1a;
    --accent-red-hover: #a50c15;
    --bg-card: rgba(30, 34, 43, 0.45);
    --border-card: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   HEADER COMPONENT
   ========================================================================== */
.main-header {
    background-color: var(--bg-darker);
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-card);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: auto;  /* Keeps the original proportions of your image */
    display: block;
    transition: transform 0.2s ease;
}

/* Optional: Adds a tiny hover effect when players mouse over the logo */
.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links .active {
    color: var(--text-main);
}

.nav-links .active {
    border-bottom: 2px solid var(--accent-blue-hover);
    padding-bottom: 4px;
}

/* ==========================================================================
   HERO / BANNER COMPONENT
   ========================================================================== */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 550px;
    background: linear-gradient(rgba(21, 24, 31, 0.5), rgba(21, 24, 31, 0.95)), 
                url('hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #cf0f1a;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--bg-darker);
}

/* Status Cards Widget */
.hero-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 320px;
}

.status-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-card);
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-icon-box {
    width: 40px;
    height: 40px;
    background-color: var(--accent-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.status-info h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-count span {
    color: #2ecc71;
    font-weight: 700;
}


/* ==========================================================================
   TWO-COLUMN DISCORD COMPONENT
   ========================================================================== */
.discord-section {
    padding: 80px 10%;
    background-color: var(--bg-dark);
}

.discord-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Left Side: Text Content --- */
.discord-text-content {
    flex: 1;
    max-width: 550px;
}

.section-badge {
    color: var(--accent-blue);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-list li {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Right Side: Discord Card --- */
.discord-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), var(--bg-card));
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 101, 242, 0.6);
}

.discord-icon {
    background-color: #5865F2;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-icon svg {
    fill: #ffffff;
    width: 45px;
}

.discord-text h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.discord-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-discord {
    background-color: #5865F2;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-discord:hover {
    background-color: #4752C4;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    color: #ffffff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .discord-layout {
        flex-direction: column;
        text-align: center;
    }
    .feature-list {
        align-items: center;
    }
    .discord-card {
        max-width: 100%;
    }
}

/* ==========================================================================
   TOAST NOTIFICATION (POPUP)
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Changed this from 'left' to 'right' */
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-left: 4px solid #2ecc71; /* Kept on the left for better text reading flow */
    color: var(--text-main);
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    
    /* Animation setup: hidden below the screen by default */
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}
/* When this class is added, it slides up and fades in */
.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.toast-text p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ABOUT / FEATURES SECTION
   ========================================================================== */
.about-section {
    padding: 80px 10%;
    background-color: var(--bg-darker); /* Alternating background color */
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   DONATE SECTION (TWO-COLUMN)
   ========================================================================== */
.donate-section {
    padding: 80px 10%;
    background-color: var(--bg-dark);
}

.donate-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Left Side: Donate Card --- */
.donate-card-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.donate-box {
    background: linear-gradient(135deg, rgba(235, 69, 158, 0.1), var(--bg-card));
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(235, 69, 158, 0.3);
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.donate-box:hover {
    transform: translateY(-5px);
    border-color: rgba(235, 69, 158, 0.6);
}

.btn-donate {
    background-color: #eb459e;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-donate:hover {
    background-color: #d13d8c;
    box-shadow: 0 5px 20px rgba(235, 69, 158, 0.4);
}

/* --- Right Side: Text Content --- */
.donate-text-content {
    flex: 1;
    max-width: 550px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .donate-layout {
        /* On mobile, puts the text on top and the card on the bottom */
        flex-direction: column-reverse; 
        text-align: center;
    }
}

/* --- Donators List --- */
.donators-container {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    text-align: center;
    border-top: 1px solid var(--border-card);
    padding-top: 40px;
}

.donators-title {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.donators-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.donator-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-darker);
    padding: 8px 20px 8px 8px;
    border-radius: 50px; /* Diseño redondeado */
    border: 1px solid rgba(235, 69, 158, 0.2); /* Borde con un ligero tono rosa */
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.donator-card:hover {
    transform: translateY(-3px);
    border-color: rgba(235, 69, 158, 0.6);
}

.donator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.2);
}

.donator-name {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   MODAL DE DONACIÓN (TRANSFERENCIA CHILE)
   ========================================================================== */
.donate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.donate-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-darker);
    border: 1px solid rgba(235, 69, 158, 0.3);
    padding: 35px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.donate-modal.show .modal-content {
    transform: translateY(0);
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: #eb459e;
}

/* Detalles de la cuenta */
.transfer-details-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.transfer-item {
    margin-bottom: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

.transfer-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.transfer-item strong {
    color: #eb459e;
}

.transfer-item span {
    color: var(--text-main);
    float: right;
}

/* Espacio opcional para QR de MACH / Bci */
.qr-container {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

.qr-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}


/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.main-footer {
    background-color: var(--bg-darker);
    padding: 60px 10% 20px;
    border-top: 1px solid var(--border-card);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links-group {
    min-width: 150px;
}

.footer-links-group h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: #3498db; /* Azul tipo Minecraft/Discord */
    transform: translateX(3px); /* Pequeño efecto de movimiento al pasar el mouse */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom p span {
    color: #eb459e; /* Corazón rosado */
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
}

/* ==========================================================================
   📱 ADAPTACIÓN PARA CELULARES (MOBILE RESPONSIVENESS)
   ========================================================================== */

/* Bloquear el scroll horizontal indeseado */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ==========================================================================
   📱 ADAPTACIÓN PARA CELULARES (MOBILE RESPONSIVENESS)
   ========================================================================== */

/* Bloquear el scroll horizontal indeseado */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@media (max-width: 768px) {
    
    /* --- Arreglo del Header (Menú) --- */
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    /* --- Arreglo del Banner Principal --- */
    .hero-section {
        height: auto; 
        padding: 120px 5% 60px 5%; 
    }

    /* LA MAGIA QUE FALTABA: Apilar todo en columna */
    .hero-container {
        flex-direction: column; 
        gap: 40px; 
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem; 
        line-height: 1.1;
        word-wrap: break-word;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* --- Arreglo de los Notifiers (Widgets) --- */
    .hero-widgets {
        min-width: 100%; 
        width: 100%;
        align-items: center; 
    }

    .status-card {
        width: 100%; 
        max-width: 350px; 
    }
}