@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@700;800&display=swap');

:root {
    --primary: #FF7900;
    --primary-dark: #cc6100;
    --bg-dark: #0f0f0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 121, 0, 0.3);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 121, 0, 0.05);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.category-card h3 {
    margin-bottom: 1rem;
}

/* Stats/Criteria */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

.criteria-item h4 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Timeline */
.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: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary);
    border: 4px solid var(--bg-dark);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }

.timeline-content {
    padding: 1.5rem;
    position: relative;
    border-radius: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0%; }
    .tab-buttons { flex-direction: column; }
    .tab-btn { width: 100%; }
}

/* Tabs */
.tab-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-light);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 121, 0, 0.4);
}

.tab-btn i { margin-right: 0.5rem; }

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tab-content.active { display: block; }

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

/* Bubble Cards (Propuestas selector) */
.bubble-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.bubble-card i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.bubble-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.bubble-card p { color: var(--text-muted); font-size: 0.85rem; }

.bubble-card .bubble-score {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.1);
}

.bubble-card:hover { transform: translateY(-8px); }
.bubble-card:hover i { transform: scale(1.15); }

/* Green */
.bubble-green i { color: #22c55e; }
.bubble-green .bubble-score { color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.bubble-green.active { border-color: #22c55e; background: rgba(34,197,94,0.08); box-shadow: 0 8px 30px rgba(34,197,94,0.25); }

/* Blue */
.bubble-blue i { color: #3b82f6; }
.bubble-blue .bubble-score { color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.bubble-blue.active { border-color: #3b82f6; background: rgba(59,130,246,0.08); box-shadow: 0 8px 30px rgba(59,130,246,0.25); }

/* Purple */
.bubble-purple i { color: #a855f7; }
.bubble-purple .bubble-score { color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.bubble-purple.active { border-color: #a855f7; background: rgba(168,85,247,0.08); box-shadow: 0 8px 30px rgba(168,85,247,0.25); }

/* ========== CONTENT COLOR THEMES ========== */

/* Green theme (Tab 1 - Marketplace) */
.theme-green .category-card i { color: #22c55e; }
.theme-green .category-card:hover { border-color: #22c55e; background: rgba(34,197,94,0.05); }
.theme-green .criteria-item h4 { color: #22c55e; }
.theme-green .underline { background: #22c55e; }
.theme-green .glass[style*="border-left"] { border-left-color: #22c55e !important; }
.theme-green i[style*="color:var(--primary)"] { color: #22c55e !important; }
.theme-green span[style*="color:var(--primary)"] { color: #22c55e !important; }

/* Blue theme (Tab 2 - Copilot) */
.theme-blue .category-card i { color: #3b82f6; }
.theme-blue .category-card:hover { border-color: #3b82f6; background: rgba(59,130,246,0.05); }
.theme-blue .criteria-item h4 { color: #3b82f6; }
.theme-blue .underline { background: #3b82f6; }
.theme-blue .glass[style*="border-left"] { border-left-color: #3b82f6 !important; }
.theme-blue i[style*="color:var(--primary)"] { color: #3b82f6 !important; }
.theme-blue span[style*="color:var(--primary)"] { color: #3b82f6 !important; }

/* Purple theme (Tab 3 - HKP) */
.theme-purple .category-card i { color: #a855f7; }
.theme-purple .category-card:hover { border-color: #a855f7; background: rgba(168,85,247,0.05); }
.theme-purple .criteria-item h4 { color: #a855f7; }
.theme-purple .underline { background: #a855f7; }
.theme-purple .glass[style*="border-left"] { border-left-color: #a855f7 !important; }
.theme-purple .glass[style*="border:1px solid var(--primary)"] { border-color: #a855f7 !important; }
.theme-purple i[style*="color:var(--primary)"] { color: #a855f7 !important; }
.theme-purple span[style*="color:var(--primary)"] { color: #a855f7 !important; }

/* ========== CENTERED GRIDS ========== */
.tab-content .categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tab-content .categories-grid > * {
    flex: 1 1 280px;
    max-width: 350px;
}

.tab-content .criteria-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tab-content .criteria-grid > * {
    flex: 1 1 180px;
    max-width: 250px;
}
