/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.6);
    --primary: #f59e0b; /* Amber/Gold */
    --primary-hover: #d97706;
    --secondary: #10b981; /* Soft Green */
    --accent-orange: #ea580c;
    
    /* Text */
    --text-main: #f9fafb;
    --text-muted: #a1a1aa;
    
    /* Effects */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 1rem;
    --container-max: 1100px;
}

/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Classes */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.w-100 {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Glass Cards */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   LAYOUTS
   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 1rem 4rem;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(to right, var(--primary), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-cano-image {
    width: 100%;
    max-width: 480px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    animation: float-slow 8s infinite ease-in-out alternate;
}

.floating-coin {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 5%;
    right: 5%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.3));
    animation: float-fast 4s infinite ease-in-out alternate;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    left: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
}

@keyframes float-slow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@keyframes float-fast {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-15px) scale(1.05); }
}

/* ==========================================================================
   HISTORIA
   ========================================================================== */
.lead-text {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.text-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.section-illustration {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.section-illustration:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   QUE ES
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-icon {
    color: var(--secondary);
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   CANO MOMENTS / GALLERY
   ========================================================================== */
.story-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.story-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
}

.story-card p {
    color: var(--text-main);
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   APOYAR
   ========================================================================== */
.disclaimer-alert {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid var(--secondary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    text-align: left;
    margin-top: 1.5rem;
}

.disclaimer-alert i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.disclaimer-alert span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tier-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-tier {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
    position: relative;
}

.featured-tier::before {
    content: "Impacto Directo";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
}

.tier-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.tier-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.bronze { color: #cd7f32; }
.silver { color: #c0c0c0; }
.gold { color: #ffd700; }

.tier-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* ==========================================================================
   USO DE FONDOS
   ========================================================================== */
.funds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.fund-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
}

.fund-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.8;
}

.fund-card h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

/* ==========================================================================
   FORMULARIO / COMUNIDAD
   ========================================================================== */
.custom-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.comunidad-image {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    font-size: 1rem;
    font-weight: 600;
}

.social-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

/* ==========================================================================
   ROADMAP
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 0 30px 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    left: 13px;
    top: 30px;
    z-index: 1;
    transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.timeline-item.active .timeline-content {
    border-color: rgba(245, 158, 11, 0.2);
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.roadmap-image {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.roadmap-text h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.timeline-item.active .roadmap-text h3 {
    color: var(--primary);
}

.roadmap-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   TRANSPARENCIA
   ========================================================================== */
.transparencia-box {
    max-width: 700px;
    margin: 0 auto;
}

.transparencia-header {
    text-align: center;
    margin-bottom: 2rem;
}

.transparencia-header p {
    color: var(--text-muted);
}

.transparencia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.trans-stat {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 10px;
}

.trans-stat h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

.stat-value.highlight {
    color: var(--primary);
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent-orange));
    transition: width 1s ease;
}

.wallet-publica {
    margin-bottom: 1.2rem;
}

.wallet-publica p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.wallet-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.5);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-top: 0.3rem;
}

.wallet-box code {
    color: var(--secondary);
    word-break: break-all;
    font-size: 0.85rem;
    font-family: monospace;
}

.risk-notice {
    display: flex;
    gap: 0.8rem;
    background: rgba(234, 88, 12, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-orange);
    margin-top: 2rem;
    align-items: flex-start;
}

.risk-notice i {
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.risk-notice p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-main);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .hero-layout, .split-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .image-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .transparencia-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .roadmap-image {
        width: 100%;
        height: 140px;
    }
}
