/* Importación de Fuente */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ================================== */
/* ===    Variables Globales      === */
/* ================================== */
:root {
    --accent-rgb: 255, 77, 109;
    --accent: rgb(var(--accent-rgb));

    /* Variables de Tema Oscuro (Base) */
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --text: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.05);

    --gradient-1: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #ffffff 30%) 100%);
    --gradient-2: linear-gradient(135deg, #6a11cb, #2575fc);

    --gradient-bg: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.1) 0%, transparent 50%);
}

.light-theme {
    --primary: #ffffff;
    --secondary: #f5f7fa;
    --text: #333333;
    --text-secondary: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(0, 0, 0, 0.03);

    --gradient-bg: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
}

/* ================================== */
/* ===      Estilos Base          === */
/* ================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================== */
/* ===         Header             === */
/* ================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.light-theme header {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid var(--border);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.light-theme header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: inline-block;
    line-height: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.5));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.animated-logo {
    animation: logoPulse 4s infinite ease-in-out;
}

@keyframes logoPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 15px var(--accent)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.5)); }
}


/* Navegación Principal */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    padding-left: 0;
}

.nav-links li {
     margin: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Controles Derecha (Tema, Color, Botón) */
.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.theme-controls {
    display: flex;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    line-height: 1;
}

.theme-toggle:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.theme-toggle:first-of-type {
    border-right: 1px solid var(--border);
}

/* Paleta de Colores */
.color-palette {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    visibility: hidden;
    transition: all 0.2s ease-out;
}

.color-palette.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.5);
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.color-swatch:hover {
    transform: scale(1.15);
    border-color: #fff;
}

/* ================================== */
/* ===       Botones              === */
/* ================================== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: color-mix(in srgb, var(--accent) 90%, #000000 10%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: rgba(var(--accent-rgb), 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.1);
}

/* ================================== */
/* ===     Contenido Principal    === */
/* ================================== */
main {
    display: block;
}

/* Sección Hero */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
    transition: background 0.3s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite alternate;
    transition: background 0.3s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Secciones Generales */
section {
    padding: 100px 0;
}

.features {
    background: var(--secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Tarjetas (Features y Products) */
.features-grid, .products-grid {
    display: grid;
    gap: 30px;
}
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.products-grid {
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.feature-card, .product-card {
    background: var(--card-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.light-theme .feature-card, .light-theme .product-card {
    border: 1px solid var(--border);
}
.feature-card {
    padding: 40px 30px;
    text-align: center;
}
.product-card {
     display: flex;
    flex-direction: column;
}

.feature-card::before, .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.feature-card::before { background: var(--gradient-2); }
.product-card::before { background: var(--gradient-1); }

.feature-card:hover::before, .product-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover, .product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 0 15px rgba(var(--accent-rgb), 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-1);
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.feature-card p {
    color: var(--text-secondary);
    text-align: center;
}

/* Contenido Tarjeta Producto */
.product-header {
    padding: 30px;
    background: rgba(var(--accent-rgb), 0.05);
    text-align: center;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.light-theme .product-header {
    border-bottom: 1px solid var(--border);
}
.product-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.product-header p {
    color: var(--text-secondary);
}

.product-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}
.product-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
     margin: 0;
}
.light-theme .product-features li {
    border-bottom: 1px solid var(--border);
}
.product-features li:hover {
    transform: translateX(5px);
    color: var(--accent);
}
.product-features li:last-child {
    border-bottom: none;
}
.product-features li:before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.product-body .btn {
    width: 100%;
    text-align: center;
}

/* Sección CTA */
.cta {
    background: var(--secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
    transition: background 0.3s ease;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Iconos SVG en Títulos */
.section-title h2,
.feature-card h3,
.cta h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}
.title-icon {
    width: 1em;
    height: 1em;
    fill: var(--accent);
    transition: fill 0.3s ease, transform 0.3s ease;
}
.section-title h2:hover .title-icon,
.feature-card:hover .title-icon {
    transform: scale(1.1) rotate(5deg);
}
.feature-card .title-icon {
    width: 0.9em;
    height: 0.9em;
}

/* ================================== */
/* ===         Footer             === */
/* ================================== */
footer {
    background-color: var(--primary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
}

.light-theme footer {
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent);
    transition: color 0.3s ease;
}

.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.3));
    transition: filter 0.3s ease;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

.light-theme .footer-bottom {
    border-top: 1px solid var(--border);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Iconos Sociales SVG */
.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 22px;
    height: 22px;
    fill: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover svg {
    fill: var(--accent);
    transform: translateY(-3px);
}

/* ================================== */
/* ===        Animaciones         === */
/* ================================== */
/* Fade In (Aplicado via JS con .visible) */
/* Keyframes definidos directamente en el JS inyectado */
.fade-in {
    opacity: 0; /* Estado inicial */
}

/* Delays aplicados via JS */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Otras animaciones */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textShine {
    0% { background-size: 100%; }
    100% { background-size: 200%; }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Fondo de Partículas */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 15s infinite linear;
    transform: translateY(100vh) translateX(var(--x-start)) scale(var(--scale));
    transition: background-color 0.3s ease;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(var(--x-start)) scale(var(--scale));
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--x-end)) scale(var(--scale));
        opacity: 0;
    }
}

/* =================================================================== */
/* ===         Estilos 404, Documentación, Páginas Estáticas       === */
/* =================================================================== */

/* --- Estilos Página 404 --- */
.body-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.error-container {
    text-align: center;
    z-index: 10;
    padding: 20px;
}
.error-container .error-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.4));
}
.error-container h1 {
    font-size: 10rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite alternate;
}
.error-404-pulse {
    animation: pulse 2.5s infinite ease-in-out, textShine 3s ease-in-out infinite alternate;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}
.error-container p {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
}
.error-container span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
    line-height: 1.6;
    display: block;
}

/* --- Estilos Página Documentación --- */
.docs-container {
    display: flex;
    gap: 40px;
    padding-top: 140px;
    padding-bottom: 80px;
}

/* Sidebar Documentación */
.docs-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 140px;
    height: calc(100vh - 180px);
    overflow-y: auto;
}
.docs-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}
.docs-sidebar nav ul {
    list-style: none;
    padding-left: 0;
}
.docs-sidebar nav ul li {
    margin-bottom: 5px;
}
.docs-sidebar nav a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.docs-sidebar nav a:hover {
    background: var(--card-bg);
    color: var(--text);
}
.docs-sidebar nav a.active {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-weight: 600;
}
.docs-sidebar .sub-menu {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 15px;
    border-left: 1px solid var(--border);
}
.docs-sidebar .sub-menu a {
    font-size: 0.9rem;
    padding: 6px 10px;
}

/* Contenido Documentación */
.docs-content {
    flex: 1;
    min-width: 0;
}
.docs-section {
    display: none;
    /* animation: fadeIn 0.5s ease; */ /* Animación ya controlada por JS */
    border-bottom: 1px solid var(--border);
    padding-bottom: 40px;
    margin-bottom: 40px;
}
.docs-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.docs-section.active {
    display: block;
}
.docs-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.docs-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent);
}
.docs-content p,
.docs-content li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}
.docs-content ul,
.docs-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

/* Bloques de Código en Documentación */
.code-block-wrapper {
    position: relative;
    margin: 25px 0;
}
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 15px;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}
.light-theme .code-header {
    background: rgba(0, 0, 0, 0.05);
}
.language-tag {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
}
.copy-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}
.copy-btn.copied {
    color: #7bdcb5;
    transform: scale(1.1);
}
.docs-content code:not(pre code) {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    color: var(--accent);
    word-break: break-word;
}
.docs-content pre {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    padding: 20px;
    overflow-x: auto;
    margin-top: 0;
}
.docs-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre;
}

/* --- Estilos para Páginas Estáticas (Legal, Compañía, Descargas) --- */
.static-page-container {
    padding-top: 140px;
    padding-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.static-page-container h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}
.static-page-container .page-subtitle,
.static-page-container .last-updated {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}
.static-page-container .last-updated {
     font-size: 0.9rem;
     margin-top: -30px;
}
.static-page-container section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}
.static-page-container section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.static-page-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent);
}
.static-page-container p,
.static-page-container li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}
.static-page-container ul,
.static-page-container ol {
    margin-left: 20px;
    padding-left: 0;
}
.static-page-container a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.static-page-container a:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.static-page-container pre {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 20px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- Estilos Página Descargas --- */
.download-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.download-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}
.download-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}
.light-theme .download-card {
     box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.download-card:hover:not(.disabled) {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: rgba(var(--accent-rgb), 0.2);
}
.download-card.disabled {
    opacity: 0.6;
    filter: grayscale(50%);
}
.download-icon {
    flex-shrink: 0;
    font-size: 3rem;
    color: var(--accent);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 12px;
}
.download-info {
    flex-grow: 1;
}
.download-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.download-info .version-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}
.download-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.download-button-container {
    flex-shrink: 0;
    text-align: center;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    margin-bottom: 10px;
}
.download-btn:disabled {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}
.download-btn:disabled:hover {
     background-color: var(--secondary);
}
.download-btn:disabled::before {
    display: none;
}
.docs-link-inline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}
.docs-link-inline:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* --- Estilos Página Contacto --- */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: rgba(var(--accent-rgb), 0.2);
}
.contact-card .icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}
.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
}
.contact-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.contact-card .contact-link {
    display: inline-block;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.contact-card .contact-link:hover {
    background: var(--accent);
    color: white;
    text-decoration: none;
    opacity: 1;
}

/* --- Estilos Página CEO (willfrydev.html) --- */
.ceo-profile {
    text-align: center;
}
.ceo-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
    padding: 5px;
    background-color: var(--secondary);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.ceo-title {
    margin-top: -35px !important;
    margin-bottom: 35px !important;
}

/* Widget Discord Status */
.discord-status-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 25px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 250px;
    transition: all 0.3s ease;
}
.discord-status-widget.loading {
    opacity: 0.6;
}
.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}
.status-text {
    flex-grow: 1;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.3;
}
.status-text strong {
    color: var(--text);
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Colores de estado Discord */
.discord-status-widget[data-status="online"] .status-dot { background-color: #3ba55d; }
.discord-status-widget[data-status="idle"] .status-dot { background-color: #faa61a; }
.discord-status-widget[data-status="dnd"] .status-dot { background-color: #ed4245; }
.discord-status-widget[data-status="offline"] .status-dot { background-color: #747f8d; }
.discord-status-widget.loading .status-dot { background-color: #747f8d; }

/* Enlaces sociales CEO */
.ceo-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.social-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.social-icon-link svg {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
    transition: all 0.3s ease;
}
.social-icon-link:hover {
    color: var(--accent);
}
.social-icon-link:hover svg {
    fill: var(--accent);
    transform: scale(1.1);
}

.ceo-bio {
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}
.ceo-bio h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* ================================== */
/* ===    Media Queries (Responsive) === */
/* ================================== */

@media (max-width: 992px) {
    /* Responsive Documentación (Tablet) */
    .docs-container {
        flex-direction: column;
        padding-top: 120px;
    }
    .docs-sidebar {
        position: static;
        height: auto;
        overflow-y: visible;
        flex-basis: auto;
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
        width: 100%;
    }
    .docs-sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .docs-sidebar nav ul {
        display: contents;
        padding-left: 0;
    }
    .docs-sidebar .sub-menu {
        display: contents;
         border-left: none;
         padding-left: 0;
         margin-left: 0;
    }
    .docs-sidebar nav a {
        background: var(--card-bg);
    }
}

@media (max-width: 768px) {
    /* Responsive General Móvil */
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 14px 20px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    .color-palette {
        right: 15px;
        top: calc(100% + 10px);
    }
    .nav-right-controls {
        gap: 10px;
    }
    /* Iconos de título en móvil */
    .section-title h2,
    .cta h2 {
        flex-wrap: wrap;
        line-height: 1.3;
    }
    /* Padding docs-container móvil */
    .docs-container {
        padding-top: 100px;
    }
    /* Fuente 404 móvil */
    .error-container h1 {
        font-size: 7rem;
    }
    .error-container p {
        font-size: 1.4rem;
    }
     .error-container .error-logo {
        height: 50px;
    }
     .error-container span {
        font-size: 1rem;
    }
    /* Padding Páginas Estáticas móvil */
     .static-page-container {
        padding-top: 100px;
    }
    .static-page-container h1 {
        font-size: 2.2rem;
    }
     .static-page-container h2 {
        font-size: 1.6rem;
    }
    .contact-methods {
        grid-template-columns: 1fr;
    }
     /* Responsive Descargas móvil */
    .download-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }
    .download-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
        margin-bottom: 0;
    }
    .download-info h2 {
        font-size: 1.6rem;
    }
     .download-info .version-info {
        font-size: 0.85rem;
    }
    .download-info p {
        font-size: 0.95rem;
    }
    .download-button-container {
        width: 100%;
    }
    .download-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    /* Responsive CEO móvil */
     .ceo-logo {
        width: 120px;
        height: 120px;
    }
    .ceo-title {
         margin-bottom: 25px !important;
    }
     .discord-status-widget {
        min-width: 220px;
        padding: 12px 15px;
        gap: 8px;
    }
    .discord-avatar {
        width: 35px;
        height: 35px;
    }
    .status-dot {
        width: 10px;
        height: 10px;
    }
    .status-text {
        font-size: 0.9rem;
    }
     .ceo-links {
        gap: 15px;
    }
    .social-icon-link {
        font-size: 0.9rem;
    }
     .social-icon-link svg {
        width: 20px;
        height: 20px;
    }
}