/* Variables CSS para diseño moderno */
:root {
    --bg-color: #0b0204;
    --text-primary: #ffffff;
    --text-secondary: #a39598;
    --accent-color: #f43f5e;
    --accent-glow: rgba(244, 63, 94, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Fondo de Estrellas --- */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Detrás de todo el contenido */
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at bottom, #1b0710 0%, #0a0205 100%);
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 8px #fff, 0 0 15px rgba(244, 63, 94, 0.5); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* Navegación Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Sección Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 140px; /* Aumentado para evitar colisión con el navbar al centrar verticalmente */
    margin-bottom: 2rem;
}

/* Badge del Host */
.host-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
    text-decoration: none;
    transition: all 0.3s ease;
}

.host-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.host-badge strong {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

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

/* Texto brillante (Glow Text) */
.glow-text {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    animation: float 6s ease-in-out infinite;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.8;
}

/* Botones Hero */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botón interactivo principal */
.cta-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px var(--accent-glow);
    background: #ff4a6b;
}

/* Botón secundario */
.secondary-button {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Promo NatublockHost Rediseño Estético */
.host-promo-card {
    margin-top: 4rem;
    margin-bottom: 2rem;
    background: rgba(20, 5, 10, 0.6);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    text-decoration: none;
    max-width: 850px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeInDown 1s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

.host-promo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 63, 94, 0.2);
}

.host-promo-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.host-promo-card:hover::before {
    opacity: 1;
}

.promo-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.promo-host-img {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.host-promo-card:hover .promo-host-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(244, 63, 94, 0.5));
}

.promo-right {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(244, 63, 94, 0.2);
    padding-left: 2.5rem;
    flex-grow: 1;
}

.promo-header-top {
    margin-bottom: 0.3rem;
}

.promo-sponsored {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-color);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.promo-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.promo-title .highlight {
    color: var(--accent-color);
}

.promo-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 0.4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.promo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.promo-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-icon-wrapper {
    color: var(--accent-color);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, transparent 100%);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 18px;
    height: 18px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.feature-text span {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

@media (max-width: 800px) {
    .host-promo-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        max-width: 100%;
    }
    .promo-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(244, 63, 94, 0.2);
        padding-top: 1.5rem;
        align-items: center;
        text-align: center;
    }
    .promo-features {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .promo-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    color: #94a3b8;
    font-size: 1.1rem;
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: auto;
    font-weight: 400;
}

.site-footer p {
    margin: 0;
    margin-bottom: 0.6rem;
}

.site-footer .footer-creator {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Removido burbuja decorativa para favorecer lectura */

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Responsivo */
@media (max-width: 768px) {
    .glow-text {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
}

/* --- Sección Proyectos (Work) --- */
.work-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Filtros */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Grid de Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(20, 5, 10, 0.6);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.5);
}

.project-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-img-real {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: rgba(20, 5, 10, 0.8);
    border-bottom: 1px solid rgba(244, 63, 94, 0.2);
}

/* Fondos temporales para cada categoría */
.plugin-bg { background: linear-gradient(135deg, #4c0519 0%, #881337 100%); }
.setup-bg { background: linear-gradient(135deg, #831843 0%, #be185d 100%); }
.config-bg { background: linear-gradient(135deg, #7c2d12 0%, #b45309 100%); }
.build-bg { background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%); }

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Documentación Layout */
.doc-layout {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.doc-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: rgba(20, 5, 10, 0.6);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-sidebar a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.doc-sidebar a:hover, .doc-sidebar a.active {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-color);
}

.doc-content-area {
    flex-grow: 1;
    min-width: 0;
}

.doc-section-block {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.doc-section-block h2 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

pre {
    background: rgba(10, 2, 5, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    color: #e2e8f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Responsividad Documentación */
@media (max-width: 768px) {
    .doc-layout {
        flex-direction: column;
    }
    .doc-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
}

.project-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Sistema de Idiomas (Language System) */
body.lang-es [data-lang="en"] { display: none !important; }
body.lang-en [data-lang="es"] { display: none !important; }

.lang-selector-custom {
    margin-left: 1rem;
    position: relative;
    user-select: none;
    cursor: pointer;
}

.lang-current {
    background: rgba(20, 5, 10, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-current:hover {
    border-color: var(--accent-color);
}

.lang-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(20, 5, 10, 0.95);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 6px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 100px;
    z-index: 100;
}

.lang-selector-custom.active .lang-dropdown {
    display: flex;
}

.lang-option {
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: rgba(244, 63, 94, 0.2);
}
