/* ==========================================
   Ecoclasifica UdeA - Modern Landing Page Styles
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #6ee7b7;
    --accent-emerald: #047857;
    --accent-lime: #84cc16;
    
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --card-bg-light: rgba(255, 255, 255, 0.85);
    --card-bg-dark: rgba(15, 23, 42, 0.75);
    
    --glass-border: rgba(16, 185, 129, 0.25);
    --glass-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.15);
    
    --text-primary: #0f172a;
    --text-muted: #475569;
    --text-light: #f8fafc;
    
    --bin-green: #10b981;
    --bin-white: #e2e8f0;
    --bin-black: #1e293b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: #f0fdf4;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Mesh Gradient Background Layer */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(132, 204, 22, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(5, 150, 105, 0.08) 0%, transparent 50%);
    animation: meshPulse 12s ease-in-out infinite alternate;
}

@keyframes meshPulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.05) translate(-10px, 15px); }
    100% { transform: scale(1) translate(10px, -10px); }
}

/* Floating Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 35px rgba(16, 185, 129, 0.8); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    padding: 90px 0 70px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: var(--accent-emerald);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
    animation: floatSlow 4s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #064e3b;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #84cc16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 580px;
}

/* Glassmorphism Info Box */
.glass-info-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.glass-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #10b981, #84cc16);
}

.glass-info-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
}

.glass-info-card a {
    color: var(--primary-green-dark);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.glass-info-card a:hover {
    color: var(--accent-lime);
    border-color: var(--accent-lime);
}

/* CTA Buttons */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-eco-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-eco-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

.btn-eco-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-emerald);
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 50px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.btn-eco-secondary:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

/* Hero Image Wrapper & Floating Badges */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    width: 100%;
    max-width: 520px;
    border-radius: 28px;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.25);
    transition: transform 0.5s ease;
    object-fit: cover;
}

.hero-image-wrapper:hover .hero-main-img {
    transform: scale(1.02);
}

/* Floating overlay badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #064e3b;
    font-size: 0.92rem;
    z-index: 10;
}

.floating-badge-1 {
    top: -15px;
    left: -20px;
    animation: floatSlow 5s ease-in-out infinite;
}

.floating-badge-2 {
    bottom: 25px;
    right: -20px;
    animation: floatReverse 6s ease-in-out infinite;
}

.floating-badge-3 {
    bottom: -20px;
    left: 20px;
    animation: floatSlow 7s ease-in-out infinite 1s;
}

.badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ==========================================
   STATS BAR SECTION
   ========================================== */
.stats-bar-section {
    margin: -30px auto 50px auto;
    position: relative;
    z-index: 10;
}

.stats-card-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.08);
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ==========================================
   GAME LOGIC & ARCHETYPES SECTION
   ========================================== */
.section-title-wrap {
    text-align: center;
    margin-bottom: 55px;
}

.section-subtitle-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-green-dark);
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #064e3b;
    letter-spacing: -0.5px;
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 24px;
    padding: 32px 26px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
}

.feature-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 22px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Archetype Cards Grid */
.archetype-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    height: 100%;
}

.archetype-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.archetype-avatar {
    font-size: 3rem;
    margin-bottom: 12px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.archetype-card:hover .archetype-avatar {
    transform: scale(1.2);
}

.archetype-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #064e3b;
    margin-bottom: 4px;
}

.archetype-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    background: #d1fae5;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.archetype-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   BIN CATEGORIES (RESOLUCION 2184) SECTION
   ========================================== */
.bin-section {
    padding: 80px 0;
    position: relative;
}

.bin-card {
    border-radius: 28px;
    padding: 32px 28px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    flex-column;
    justify-content: space-between;
}

.bin-card-green {
    background: linear-gradient(145deg, #059669 0%, #10b981 100%);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.25);
}

.bin-card-white {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    color: #0f172a;
    border: 2px solid #cbd5e1;
    box-shadow: 0 15px 35px rgba(148, 163, 184, 0.2);
}

.bin-card-black {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3);
}

.bin-card:hover {
    transform: translateY(-10px);
}

.bin-card-green:hover {
    box-shadow: 0 25px 45px rgba(5, 150, 105, 0.4);
}

.bin-card-white:hover {
    box-shadow: 0 25px 45px rgba(148, 163, 184, 0.35);
    border-color: #10b981;
}

.bin-card-black:hover {
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.5);
}

.bin-badge {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
}

.bin-card-green .bin-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.bin-card-white .bin-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.bin-card-black .bin-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.bin-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.bin-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.9;
}

.bin-img-container {
    text-align: center;
    padding-top: 10px;
}

.bin-img {
    max-height: 170px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.2));
}

.bin-card:hover .bin-img {
    transform: scale(1.1) translateY(-6px);
}

/* ==========================================
   EXPERIENCES BANNER
   ========================================== */
.experiences-banner {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
    border-radius: 32px;
    padding: 55px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(6, 78, 59, 0.3);
    margin: 60px 0;
}

.experiences-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.banner-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.banner-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 650px;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================
   FOOTER
   ========================================== */
.footer-modern {
    background: #09121d;
    color: #94a3b8;
    padding: 50px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #84cc16;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }
    .hero-lead {
        margin: 0 auto 30px auto;
    }
    .cta-group {
        justify-content: center;
    }
    .hero-image-wrapper {
        margin-top: 45px;
    }
    .floating-badge-1 { top: -10px; left: 0; }
    .floating-badge-2 { bottom: 10px; right: 0; }
    .floating-badge-3 { display: none; }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .experiences-banner {
        padding: 35px 20px;
    }
    .banner-title {
        font-size: 1.7rem;
    }
}