/* Variables de Estilo */
:root {
    --primary-color: #5B4EFC; /* Morado/Azul para botones y highlights */
    --secondary-color: #2e2e42; /* Fondo principal oscuro (Web3/Cripto) */
    --accent-color: #00F0FF; /* Color de acento brillante */
    --text-light: #f4f4f4;
    --text-dark: #1a1a1a;
    --card-bg: #3c3c5c;
    --footer-bg: #1f1f38;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 10px;
}

/* Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #bbb;
    margin-bottom: 50px;
    font-weight: 300;
}

/* --- Botones --- */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #4A3AEC;
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.large-btn {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* --- Navbar (Menú) --- */
.navbar {
    background-color: rgba(46, 46, 66, 0.9); /* Ligeramente transparente */
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: var(--shadow-light);
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    padding: 8px 10px;
    font-weight: 600;
    transition: color 0.3s;
}

/* Dropdown/Submenú */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: var(--shadow-light);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    left: 0;
    top: 100%; /* Aparece justo debajo del elemento padre */
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 10px 15px;
    display: block;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

/* --- Sección Bienvenida (Hero) --- */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 120px;
    text-align: left;
}

.hero-content {
    max-width: 550px;
}

.welcome-tag {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.hero-section h1 {
    font-size: 3.5em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tech-doc {
    display: block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9em;
}

.tech-doc:hover {
    text-decoration: underline;
}

/* Gráfico Simulado */
.hero-graphic {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 80%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 50px rgba(91, 78, 252, 0.5);
}

.imp-token-icon {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--text-light);
    border: 3px solid var(--accent-color);
    padding: 10px 15px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(0, 240, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* --- Sección Estadísticas --- */
.stats-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--footer-bg);
    padding: 40px 5%;
    border-radius: var(--border-radius);
    margin: 50px auto;
}

.stat-card {
    text-align: center;
}

.stat-card h2 {
    font-size: 2.8em;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-card p {
    color: #aaa;
    font-weight: 300;
}

/* --- Sección Ecosistema (Tarjetas) --- */
.ecosystem-section {
    text-align: center;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ecosystem-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: left;
    transition: transform 0.3s, background-color 0.3s;
    border: 1px solid transparent;
}

.ecosystem-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: #45456b;
}

.card-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.ecosystem-card h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.ecosystem-card p {
    font-size: 0.9em;
    color: #bbb;
}

/* --- Sección Socios --- */
.partners-section {
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.partner-card {
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 200px;
}

.partner-icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.partner-card h3 {
    margin-bottom: 5px;
    color: var(--text-light);
}

.partner-card p {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 600;
}


/* --- Sección FAQ (Acordeón) --- */
.faq-section {
    background-color: var(--footer-bg);
    border-radius: var(--border-radius);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #444;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5em;
    transition: transform 0.3s;
}

.faq-toggle:checked + .faq-question::after {
    content: '-';
    transform: rotate(360deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #ccc;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 300px; /* Suficiente para el contenido */
    padding: 10px 20px 20px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    border-top: 5px solid var(--primary-color);
    padding: 60px 5% 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand, .footer-links, .footer-social {
    min-width: 200px;
}

.footer-brand h3 {
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #ccc;
    font-size: 0.9em;
}

.footer-links h4, .footer-social h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a, .footer-social a {
    display: block;
    font-weight: 400;
    font-size: 0.95em;
}

.footer-social a {
    margin-bottom: 8px;
}

.footer-social .fab {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8em;
    color: #888;
}

/* --- Banner de Cookies --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--text-light);
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.5s ease-in-out;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9em;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

#accept-cookies:hover {
    background-color: #4A3AEC;
}

/* --- Media Queries (Responsividad) --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-graphic {
        width: 250px;
        height: 250px;
    }

    .stats-section {
        flex-direction: column;
        gap: 30px;
    }

    .footer-container {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    /* Menú Móvil */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Ajustar a la altura del navbar */
        left: 0;
        width: 100%;
        background-color: var(--footer-bg);
        padding: 20px 0;
        border-top: 1px solid #444;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #333;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown-content {
        position: static; /* Despliegue en línea en móvil */
        width: 100%;
        background-color: #333;
        padding-left: 20px;
        border-radius: 0;
    }
    
    /* Botón Conectar Wallet */
    .nav-links li:last-child {
        margin-top: 15px;
    }
    
    .navbar .btn-primary {
        width: 80%;
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2em;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .large-btn {
        width: 100%;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner button {
        width: 100%;
    }
}

/* --- Estilos para la Sección de Inversiones (Nuevos) --- */

/* Contenedor de estadísticas dentro de la tarjeta */
.investment-stats {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #1a1a2e; /* Fondo más oscuro para el bloque de datos */
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #3c3c5c;
    font-size: 0.9em;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .label {
    color: var(--text-muted);
    font-weight: 400;
}

.stat-row .value {
    color: var(--text-light);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Clases de colores para resultados financieros */
.profit {
    color: #4CAF50 !important; /* Verde */
}

.loss {
    color: #F44336 !important; /* Rojo */
}

/* Sobrescribir el estilo de la tarjeta para hacerlo más financiero */
.investment-card .nft-title {
    color: var(--text-light); /* Título en blanco/luz */
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.investment-card .nft-title .fas {
    color: var(--primary-color);
    margin-right: 10px;
}

.investment-card:hover {
    border-color: #ff9800; /* Borde naranja al pasar el ratón */
}