:root {
    --bg-color: #050608;
    --card-bg: rgba(18, 16, 32, 0.95); 
    --primary-purple: #b042ff;
    --purple-glow: rgba(176, 66, 255, 0.5);
    --neon-green: #00e676;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --font-main: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top center, #2e1065 0%, #0f172a 50%, #050608 100%);
    color: var(--text-main);
    min-height: 100vh;
    touch-action: manipulation;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

/* HEADER SUPERIOR */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(176, 66, 255, 0.6);
    box-shadow: 0 0 20px rgba(176, 66, 255, 0.25);
    margin-bottom: 25px;
}

.logo-container { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-purple); box-shadow: 0 0 10px var(--purple-glow); }
.brand-name { font-size: 1.2rem; font-weight: 700; color: #d8b4fe; text-shadow: 0 0 10px var(--purple-glow); }
.brand-name .lite { font-weight: 300; color: #fff; }

.header-right { display: flex; align-items: center; gap: 10px; }

.lang-selector {
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(176, 66, 255, 0.5);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}
.lang-selector:hover { border-color: var(--neon-green); }

.btn-connect {
    background: var(--neon-green);
    border: none;
    color: #050608;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
    transition: 0.3s;
}
.btn-connect:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 230, 118, 0.7); }

.view-section { display: none; animation: fadeIn 0.4s ease-in-out; }
.view-section.active { display: block; }

/* HOME HERO Y TARJETAS UNIFORMES Y MÁS GRANDES */
.welcome-hero { text-align: center; margin-bottom: 30px; }
.hero-banner {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(176, 66, 255, 0.5);
    box-shadow: 0 0 15px rgba(176, 66, 255, 0.2);
    margin-bottom: 15px;
}
.welcome-hero h1 { font-size: 1.8rem; color: #d8b4fe; margin-bottom: 5px; text-shadow: 0 0 12px var(--purple-glow); }
.welcome-hero p { color: var(--text-muted); font-size: 0.9rem; }

.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* TARJETAS AMPLIADAS CON FONDO MORADO/AZUL DEGRADADO PROFESIONAL */
.hub-card {
    background: linear-gradient(135deg, rgba(20, 16, 40, 0.95), rgba(30, 41, 59, 0.9));
    border: 2px solid var(--primary-purple);
    border-radius: 25px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
}
.hub-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-green);
    box-shadow: 0 12px 35px rgba(0, 230, 118, 0.35);
}

/* CONTENEDOR RECTANGULAR HORIZONTAL UNIFORME */
.card-img-banner {
    width: 100%;
    height: 140px;
    margin: 0 auto 20px auto;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--primary-purple);
    box-shadow: 0 0 15px var(--purple-glow);
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-custom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.hub-card:hover .card-custom-img {
    transform: scale(1.05);
}

.hub-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.hub-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }
.card-link-text { font-size: 0.9rem; color: var(--neon-green); font-weight: 700; }

/* ENLACES RÁPIDOS INFERIORES */
.ecosystem-footer-links {
    background: var(--card-bg);
    border: 1.5px solid rgba(176, 66, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin-bottom: 25px;
}
.ecosystem-footer-links h4 { font-size: 0.95rem; color: #d8b4fe; margin-bottom: 15px; }
.footer-links-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.eco-link-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 1.5px solid rgba(176, 66, 255, 0.3);
    transition: 0.3s;
}
.eco-link-btn:hover {
    color: #fff;
    background: rgba(176, 66, 255, 0.3);
    border-color: var(--neon-green);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

/* CREADOR DE TOKENS */
.creator-header-banner { text-align: center; margin-bottom: 20px; }
.top-creator-img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(176, 66, 255, 0.5); box-shadow: 0 0 15px rgba(176, 66, 255, 0.2); margin-bottom: 10px; }
.creator-header-banner h2 { font-size: 1.5rem; color: #d8b4fe; text-shadow: 0 0 12px var(--purple-glow); }
.creator-header-banner p { font-size: 0.85rem; color: var(--text-muted); }

.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(176, 66, 255, 0.6);
    box-shadow: 0 10px 35px rgba(176, 66, 255, 0.2);
    border-radius: 25px;
    padding: 25px;
    max-width: 600px;
    margin: 0 auto;
}

.input-group { margin-bottom: 15px; }
.input-group label { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 5px; font-weight: 600; }

.dual-inputs { display: flex; gap: 10px; }
.text-input {
    width: 100%;
    background: rgba(0,0,0,0.6);
    border: 1.5px solid rgba(176, 66, 255, 0.4);
    border-radius: 12px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}
.text-input:focus { border-color: var(--neon-green); box-shadow: 0 0 12px rgba(0, 230, 118, 0.4); }
.text-input.short { max-width: 100px; text-align: center; font-weight: bold; color: #d8b4fe; }
.text-input.center { text-align: center; font-weight: bold; }

.supply-buttons { display: flex; gap: 10px; margin-bottom: 8px; }
.supply-btn {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1.5px solid rgba(176, 66, 255, 0.4);
    color: var(--text-muted);
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.supply-btn.active, .supply-btn:hover {
    background: var(--primary-purple);
    color: #fff;
    border-color: var(--primary-purple);
    box-shadow: 0 0 12px var(--purple-glow);
}

.tip-box-green {
    margin-top: 8px;
    background: rgba(0, 230, 118, 0.08);
    border: 1.5px dashed rgba(0, 230, 118, 0.5);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #a7f3d0;
    line-height: 1.4;
}
.tip-box-green strong { color: var(--neon-green); }
.tip-box-green a { color: var(--neon-green); text-decoration: underline; }

.section-divider { border: 0; height: 1.5px; background: rgba(176, 66, 255, 0.3); margin: 20px 0; }
.card-header-sub h3 { font-size: 1.1rem; color: #d8b4fe; }
.card-header-sub p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }

.token-selector {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid rgba(176, 66, 255, 0.5);
}
.token-selector img { height: 34px; width: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--primary-purple); box-shadow: 0 0 8px var(--purple-glow); }
.token-selector input {
    background: transparent; border: none; color: #fff; font-size: 1.3rem; font-weight: 600; text-align: right; flex-grow: 1; outline: none; width: 100%;
}
.token-symbol { font-size: 1rem; font-weight: 600; color: #d8b4fe; }
.balance-text { display: block; text-align: right; color: var(--text-muted); font-size: 0.75rem; margin-top: 5px; }

.action-buttons { display: flex; gap: 12px; margin-top: 20px; }
.btn-action {
    flex: 1; padding: 12px; border: none; border-radius: 12px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: 0.3s;
}
.btn-action.secondary { background: #1a1b26; color: #ccc; border: 1.5px solid rgba(176,66,255,0.4); }
.btn-action.secondary:hover { background: #252636; }
.btn-action.supply { background: var(--neon-green); color: #050608; font-weight: 700; box-shadow: 0 0 15px rgba(0, 230, 118, 0.4); }
.btn-action.supply:hover { box-shadow: 0 0 25px rgba(0, 230, 118, 0.7); transform: translateY(-1px); }

.lp-info-box { text-align: center; margin-top: 15px; }
.text-glow { color: var(--neon-green); font-weight: bold; }

footer { text-align: center; margin-top: auto; padding: 20px; color: #64748b; font-size: 0.75rem; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    header { padding: 10px 15px; }
    .footer-links-grid { flex-direction: column; gap: 8px; }
}
