:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Inter',sans-serif; color:var(--text-main); background:var(--bg-light); line-height:1.6; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
.container { max-width:1100px; margin:0 auto; padding:0 20px; }
h1,h2,h3 { font-weight:800; line-height:1.2; }
h1 { font-size:3rem; margin-bottom:20px; }
h1 span { color:var(--primary); }
h2 { font-size:2.2rem; margin-bottom:10px; }
h3 { font-size:1.2rem; margin-bottom:10px; }
p { color:var(--text-muted); margin-bottom:15px; }

/* Navbar */
.navbar { background:var(--bg-white); box-shadow:var(--shadow-sm); position:sticky; top:0; z-index:100; }
.nav-container { display:flex; justify-content:space-between; align-items:center; height:70px; }
.logo { font-size:1.5rem; font-weight:800; color:var(--primary); display:flex; align-items:center; gap:8px; }
.nav-links { display:flex; align-items:center; gap:30px; font-weight:600; }
.nav-links a { transition:color 0.2s; }
.nav-links a:hover { color:var(--primary); }
.nav-links a.active { color:var(--primary); text-decoration:underline; }
.btn-download-nav { background:var(--primary); color:white; padding:8px 16px; border-radius:6px; }
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; }
.hamburger span { width:25px; height:3px; background:var(--text-main); border-radius:3px; }

/* Hero */
.hero { padding:100px 0; background:var(--bg-white); }
.hero-content { display:flex; align-items:center; gap:50px; }
.hero-text { flex:1; }
.hero-buttons { display:flex; gap:15px; margin-top:30px; margin-bottom:20px; flex-wrap:wrap; }
.btn { padding:12px 24px; border-radius:8px; font-weight:600; font-size:1rem; cursor:pointer; transition:all 0.2s; display:inline-flex; align-items:center; gap:8px; border:none; }
.btn-primary { background:var(--primary); color:white; box-shadow:var(--shadow-md); }
.btn-primary:hover { background:var(--primary-hover); transform:translateY(-2px); }
.btn-secondary { background:var(--bg-white); color:var(--text-main); border:1px solid var(--border-color); }
.btn-secondary:hover { background:var(--bg-light); }
.btn-sm { padding:8px 16px; font-size:0.9rem; }
.small-text { font-size:0.9rem; color:#9ca3af; display:flex; align-items:center; gap:8px; margin-top:10px; }

/* App Mockup */
.hero-image { flex:1; display:flex; justify-content:flex-end; }
.app-mockup { max-width:400px; width:100%; background:white; border:1px solid var(--border-color); border-radius:12px; box-shadow:var(--shadow-md); overflow:hidden; }
.mockup-header { background:var(--bg-light); padding:12px 15px; border-bottom:1px solid var(--border-color); display:flex; align-items:center; gap:8px; }
.dot { width:12px; height:12px; border-radius:50%; }
.red { background:#ef4444; } .yellow { background:#f59e0b; } .green { background:#10b981; }
.mockup-title { margin-left:10px; font-size:0.9rem; font-weight:600; color:var(--text-muted); }
.mockup-body { height:200px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#f0fdf4,#dbeafe); }
.mockup-inner-app { display:flex; background:white; border-radius:8px; box-shadow:var(--shadow-sm); width:85%; height:70%; overflow:hidden; }
.mockup-sidebar { width:40px; background:var(--bg-light); display:flex; flex-direction:column; gap:12px; padding:15px 10px; border-right:1px solid var(--border-color); }
.mockup-sidebar-item { width:20px; height:20px; background:#d1d5db; border-radius:5px; }
.mockup-sidebar-item.active { background:var(--primary); }
.mockup-main { flex:1; padding:20px; display:flex; flex-direction:column; gap:12px; }
.mockup-row { display:flex; justify-content:space-between; align-items:center; }
.mockup-label { font-size:0.8rem; color:var(--text-muted); font-weight:600; }
.mockup-value { font-size:1.3rem; font-weight:700; }
.mockup-toggle { width:40px; height:22px; background:var(--primary); border-radius:11px; align-self:flex-end; }
.mockup-status { font-size:0.8rem; color:#10b981; font-weight:600; }

/* Features / General Sections */
.features, .features-page, .docs-page, .faq-page { padding:80px 0; }
.section-heading { text-align:center; margin-bottom:50px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:30px; }
.feature-card { background:var(--bg-white); padding:30px; border-radius:12px; border:1px solid var(--border-color); transition:transform 0.2s; }
.feature-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.icon-box { width:48px; height:48px; background:#dbeafe; color:var(--primary); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.5rem; margin-bottom:20px; }
.cta-center { text-align:center; margin-top:40px; }

/* Docs */
.docs-content { max-width:800px; margin:0 auto; }
.doc-block { background:var(--bg-white); padding:30px; border-radius:12px; margin-bottom:20px; border:1px solid var(--border-color); }
.doc-block h3 { color:var(--primary); display:flex; align-items:center; gap:10px; margin-bottom:15px; }
.doc-block ul, .doc-block ol { margin-left:20px; color:var(--text-muted); margin-bottom:15px; }
.doc-block li { margin-bottom:8px; }
code { background:var(--bg-light); padding:2px 6px; border-radius:4px; border:1px solid var(--border-color); color:#ef4444; font-family:monospace; }

/* FAQ */
.faq-list { max-width:800px; margin:0 auto; }
.faq-item { background:var(--bg-white); border:1px solid var(--border-color); border-radius:12px; margin-bottom:10px; overflow:hidden; }
.faq-question { width:100%; padding:18px 20px; background:none; border:none; font-weight:600; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-size:1rem; color:var(--text-main); }
.faq-question i { transition:transform 0.2s; color:var(--primary); }
.faq-answer { max-height:0; overflow:hidden; transition:max-height 0.3s ease; background:var(--bg-light); }
.faq-answer p { padding:0 20px 15px; margin:0; }
.faq-item.active .faq-question i { transform:rotate(180deg); }
.faq-item.active .faq-answer { max-height:200px; }

/* Donate (si lo necesitás en página aparte, dejalo en index) */
.donate { padding:80px 0; text-align:center; background:var(--bg-white); }
.bmc-button img { height:50px; margin-top:20px; transition:transform 0.2s; }
.bmc-button img:hover { transform:scale(1.05); }

/* Footer */
footer { background:var(--text-main); color:white; padding:40px 0 20px; }
.footer-container { display:flex; flex-direction:column; gap:30px; }
.footer-brand { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.footer-logo { font-size:1.3rem; font-weight:800; }
.footer-links { display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a { color:#9ca3af; transition:color 0.2s; }
.footer-links a:hover { color:white; }
.footer-bottom { border-top:1px solid #374151; padding-top:20px; text-align:center; font-size:0.9rem; color:#9ca3af; }

/* Cookie Banner */
.cookie-banner { position:fixed; bottom:0; left:0; width:100%; background:var(--bg-white); border-top:1px solid var(--border-color); box-shadow:0 -4px 12px rgba(0,0,0,0.1); z-index:9999; display:none; padding:15px 0; }
.cookie-banner.show { display:block; }
.cookie-banner-content { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:15px; }
.cookie-banner-content p { margin:0; flex:1; min-width:200px; }
.cookie-buttons { display:flex; gap:10px; }

/* Back to top */
.back-to-top { position:fixed; bottom:25px; right:25px; background:var(--primary); color:white; width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:none; cursor:pointer; box-shadow:var(--shadow-md); opacity:0; visibility:hidden; transition:all 0.3s; z-index:99; }
.back-to-top.show { opacity:1; visibility:visible; }

/* Legal pages */
.legal-page { padding:60px 20px; max-width:800px; margin:0 auto; }
.legal-page h1 { margin-bottom:30px; }
.legal-page h2 { margin-top:40px; margin-bottom:15px; font-size:1.5rem; }
.legal-page h3 { margin-top:25px; }
.legal-page p,.legal-page li { margin-bottom:12px; color:var(--text-muted); }
.legal-page ul { margin-left:20px; margin-bottom:20px; }

@media (max-width:768px) {
    .hero-content { flex-direction:column; text-align:center; }
    .hero-buttons { justify-content:center; }
    .hero-image { justify-content:center; margin-top:30px; }
    .nav-links { display:none; position:absolute; top:70px; left:0; width:100%; background:white; flex-direction:column; padding:20px; box-shadow:var(--shadow-md); }
    .nav-links.active { display:flex; }
    .hamburger { display:flex; }
    .cookie-banner-content { flex-direction:column; text-align:center; }
    .cookie-buttons { justify-content:center; }
}
/* ... (todo el CSS anterior se mantiene) */

/* Nav download icons */
.nav-downloads {
    display: flex;
    gap: 15px;
    margin-left: 10px;
}
.nav-os-link {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-os-link:hover {
    color: var(--primary);
}

/* Hero buttons para SO */
.hero-buttons .btn {
    min-width: 130px;
    justify-content: center;
}
/* Footer profesional */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.footer-social a:hover {
    background-color: var(--primary);
}

.footer-bottom-bar {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-bar p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}
.footer-logo-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
}
/* Mejor visibilidad de íconos dentro de botones */
.btn i {
    font-size: 1.1em;          /* un poco más grande */
    line-height: 1;
    vertical-align: middle;
    margin-right: 2px;
}

.btn-primary i {
    color: white;              /* asegura blanco puro sobre fondo azul */
}

.btn-secondary i {
    color: var(--text-main);   /* color del texto del botón */
}

/* Ajuste para los botones sociales / descarga del nav */
.nav-os-link i {
    font-size: 1.2rem;
    transition: color 0.2s;
}
/* Íconos en botones: buen tamaño, alineados con el texto */
.btn i,
.btn-primary i,
.btn-secondary i {
    color: inherit !important;
    opacity: 1 !important;
    font-size: 1.3rem !important;
    vertical-align: -0.240em;      /* un poco más abajo que antes */
    margin-right: 6px;
}

.btn-primary {
    color: white !important;
}
.btn-primary i {
    color: white !important;
}

.nav-os-link i {
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 1 !important;
    vertical-align: -0.32em;      /* ligeramente más abajo */
}
.nav-os-link:hover i {
    color: var(--primary);
}

/* ===== ESTILOS PARA LA PÁGINA DE DESCARGA (download.html) ===== */
.download-hero {
    text-align: center;
    padding: 60px 0 30px;
}
.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.os-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.os-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.os-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}
.os-card h3 {
    margin-bottom: 10px;
}
.os-card .file-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.os-card .btn {
    margin-top: 10px;
}
.os-note {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
    .footer-community-buttons {
        margin-top: 20px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .btn-discord {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: #5865F2; /* Color oficial de Discord */
        color: #ffffff;
        text-decoration: none;
        padding: 8px 14px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .btn-discord:hover {
        background-color: #4752C4;
        color: #ffffff;
        transform: translateY(-2px);
    }

    .btn-bmac {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: #FFDD00; /* Color oficial de Buy Me a Coffee */
        color: #000000;
        text-decoration: none;
        padding: 8px 14px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .btn-bmac:hover {
        background-color: #FFC300;
        color: #000000;
        transform: translateY(-2px);
    }