:root {
    --bg-light: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.9);
    --accent-orange: #ff6b00;
    /* Vibrant Orange */
    --accent-blue: #0077b6;
    --text-primary: #1a1b20;
    --text-secondary: #4a4b50;
    --glass-border: rgba(0, 0, 0, 0.08);
    --neon-shadow: 0 15px 35px rgba(255, 107, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Particles/Background effect */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(118, 185, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.2rem 5%;
    /* Padding reducido para maximizar logo */
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    min-height: 80px;
    /* Altura mínima consistente */
}

header nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

header nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
}

header nav a i {
    width: 18px;
    height: 18px;
}

header nav a:not(.github-link):hover {
    background: rgba(255, 107, 0, 0.05);
    color: var(--accent-orange);
}

header nav a.active {
    color: var(--accent-orange);
    background: rgba(255, 107, 0, 0.05);
}

.github-link {
    background: var(--text-primary);
    color: white !important;
    border-radius: 10px;
    margin-left: 10px;
}

.github-link:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hamburguer Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--text-primary);
    z-index: 1001;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        gap: 1.5rem;
        padding: 2rem;
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        font-size: 1.4rem;
        width: 100%;
        justify-content: center;
        padding: 15px;
        gap: 15px;
    }

    header nav a i {
        width: 24px;
        height: 24px;
    }

    .github-link {
        margin-left: 0;
        margin-top: 1rem;
        width: 80%;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-img {
    height: 75px;
    /* Logo más alto */
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    color: #e65100;
    /* Naranja oscuro corporativo */
    text-transform: uppercase;
    letter-spacing: 0.2px;
    opacity: 1;
    /* Aumentada la opacidad para mayor nitidez */
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), var(--bg-light)),
        url('edificio-simarro.webp') center/cover no-repeat;
    position: relative;
    margin-bottom: 50px;
    max-width: none;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.badge-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.badge {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.badge.active {
    color: var(--accent-orange);
    border-color: rgba(255, 107, 0, 0.3);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out;
}

h1 span {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    min-height: 3.2em;
    /* Prevents layout shift during typing */
    animation: fadeInUp 1.2s ease-out;
}

/* Sections */
section {
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    color: var(--text-primary);
}

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

.hardware-section {
    background: #fdfdfd;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Cards Layout */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.glass-card {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.card-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-orange);
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Hardware Specs Section */
.hardware-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .hardware-grid {
        grid-template-columns: 1fr;
    }
}

.spec-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 1.2rem;
    background: #fbfbfc;
    border-radius: 18px;
    border: 1px solid #efeff2;
    transition: var(--transition);
}

.spec-item:hover {
    background: white;
    border-color: var(--accent-orange);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.spec-icon {
    color: var(--accent-orange);
}

.spec-text h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.spec-text p {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* Contributions */
#contribuir .glass-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
    border: 2px solid white;
}

/* Footer */
footer {
    padding: 100px 5% 50px;
    text-align: center;
    background: white;
    border-top: 1px solid var(--glass-border);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text-primary);
    color: white;
    padding: 18px 36px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.cta-button:hover {
    transform: scale(1.05);
    background: black;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Scroll Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-orange);
    z-index: 1001;
    width: 0%;
}