/* =========================================
   ESTILOS GENERALES Y LUXURY UI
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: #030305; /* Fondo negro profundísimo */
    color: #e5e7eb;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a { text-decoration: none; }
.studio-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
.section-spacing { margin-top: 150px; margin-bottom: 100px; }

/* Brillos ambientales estilo Vercel/Apple */
.glow-bg { position: fixed; border-radius: 50%; filter: blur(120px); z-index: 0; opacity: 0.4; pointer-events: none; }
.glow-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(139, 92, 246, 0.15); }
.glow-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: rgba(6, 182, 212, 0.1); }

/* Paneles Glassmorphism (El secreto del look premium) */
.glass-panel {
    background-color: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Títulos limpios */
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 42px; font-weight: 800; color: #ffffff; letter-spacing: -1px; margin-bottom: 15px; }
.section-subtitle { color: #9ca3af; font-size: 18px; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero-split { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-top: 200px; min-height: 90vh; }
.hero-content { flex: 1.1; }
.hero-visual { flex: 0.9; display: flex; justify-content: flex-end; perspective: 1000px; }

.tech-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background-color: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 16px; border-radius: 30px; font-size: 13px; color: #d1d5db; margin-bottom: 30px;
}
.pulse-dot { width: 8px; height: 8px; background-color: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; }

.hero-content h1 { font-size: 58px; font-weight: 800; line-height: 1.1; color: #ffffff; margin-bottom: 25px; letter-spacing: -1.5px; }
.hero-content p { color: #9ca3af; font-size: 18px; margin-bottom: 40px; max-width: 90%; }

.hero-actions { display: flex; gap: 20px; align-items: center; }
.btn-primary { background-color: #ffffff; color: #000; padding: 14px 32px; border-radius: 8px; font-weight: 600; transition: all 0.2s; border: 1px solid transparent; }
.btn-primary:hover { background-color: #030305; color: #ffffff; border-color: #ffffff; }
.btn-secondary { color: #9ca3af; font-weight: 500; transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-secondary:hover { color: #ffffff; }

/* Ventana de Código */
.code-window { width: 100%; max-width: 480px; overflow: hidden; transform: rotateY(-5deg) rotateX(5deg); transition: transform 0.5s ease; }
.code-window:hover { transform: rotateY(0) rotateX(0); }
.window-header { background-color: rgba(0,0,0,0.3); padding: 12px 15px; display: flex; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background-color: #ff5f56; } .dot.yellow { background-color: #ffbd2e; } .dot.green { background-color: #27c93f; }
.window-body { padding: 30px; font-family: 'JetBrains Mono', monospace; font-size: 14px; line-height: 1.8; color: #a1a1aa; }
.c-purple { color: #c678dd; } .c-blue { color: #61afef; } .c-green { color: #98c379; }

.bg-lexshub { 
    background-image: url('../img/lexshub.png'); 
}
.bg-nitecraft { 
    background-image: url('../img/nitecraft.png'); 
}

/* =========================================
   NUEVA SECCIÓN FILOSOFÍA (Adiós Bento)
   ========================================= */
.premium-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { padding: 40px 30px; transition: transform 0.3s, border-color 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.4); }
.highlight-card { border-color: rgba(255, 255, 255, 0.15); background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(20,20,22,0.6) 100%); }

.feature-icon-wrapper { width: 50px; height: 50px; background-color: rgba(255,255,255,0.05); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 20px; color: #ffffff; margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.1); }
.highlight-card .feature-icon-wrapper { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.3); }

.feature-card h3 { font-size: 22px; color: #ffffff; margin-bottom: 15px; font-weight: 600; }
.feature-card p { color: #9ca3af; font-size: 15px; }

/* =========================================
   PROYECTOS - AJUSTE DE TAMAÑO Y ESTILO
   ========================================= */
.project-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px)); /* Más compacto */
    gap: 30px; 
    justify-content: center;
}

.project-card { 
    display: block; 
    background: rgba(20, 20, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden; 
    transition: all 0.3s ease;
}

.project-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Reducimos la altura para que no sea un bloque gigante */
.project-img { 
    height: 200px; 
    background-size: cover; 
    background-position: center top; /* Asegura que se vea la parte superior */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

/* Efecto "Ventana" sobre la imagen */
.project-img::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.project-info { padding: 20px; }
.project-info h4 { color: #ffffff; font-size: 18px; margin-bottom: 4px; }
.project-info p { color: #9ca3af; font-size: 13px; font-family: 'JetBrains Mono', monospace; }

/* =========================================
   TARIFAS
   ========================================= */
.pricing-modern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.price-tier { padding: 40px; display: flex; flex-direction: column; position: relative; transition: transform 0.3s; }
.price-tier:hover { transform: translateY(-5px); }

.featured-tier { border-color: rgba(139, 92, 246, 0.4); transform: scale(1.03); z-index: 2; box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1); }
.featured-tier:hover { transform: scale(1.05); }
.tier-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background-color: #8b5cf6; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; letter-spacing: 1px; }

.tier-top { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 25px; margin-bottom: 25px; }
.tier-top h3 { font-size: 20px; font-weight: 500; color: #d1d5db; }
.tier-price { font-size: 48px; font-weight: 800; color: #ffffff; margin: 15px 0; }
.tier-top p { font-size: 14px; color: #9ca3af; }

.tier-features { flex-grow: 1; list-style: none; margin-bottom: 30px; }
.tier-features li { margin-bottom: 16px; font-size: 14px; color: #d1d5db; display: flex; align-items: center; gap: 12px; }
.tier-features li i { color: #10b981; font-size: 15px; } /* Verde para ticks */
.tier-features li.disabled { color: #4b5563; }
.tier-features li.disabled i { color: #374151; } /* Gris para X */

.maintenance { background-color: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; font-size: 13px; color: #ffffff; text-align: center; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.02); }
.maintenance span { color: #9ca3af; font-size: 11px; }

.btn-tier { display: block; text-align: center; background-color: rgba(255,255,255,0.05); color: #ffffff; padding: 12px; border-radius: 8px; font-weight: 600; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.1); }
.btn-tier:hover { background-color: #ffffff; color: #000000; }
.btn-featured { background-color: #8b5cf6; color: #ffffff; border: none; }
.btn-featured:hover { background-color: #7c3aed; color: #ffffff; }

/* Estilos para el nuevo bloque de mantenimiento */
.maintenance-box {
    background-color: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    line-height: 1.4;
}

.maintenance-box strong {
    color: #ffffff;
    font-size: 16px;
}

.small-text {
    color: #9ca3af;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Ajuste del botón de precio */
.btn-tier {
    display: block;
    text-align: center;
    background-color: rgba(255,255,255,0.05);
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-tier:hover {
    background-color: #ffffff;
    color: #000000;
}

/* =========================================
   FOOTER (Nueva Caja Elegante)
   ========================================= */
.studio-footer { padding: 40px 20px; position: relative; z-index: 10; }
.footer-cta-box { max-width: 900px; margin: 0 auto 60px; padding: 60px; text-align: center; background: linear-gradient(135deg, rgba(20,20,22,0.8) 0%, rgba(10,10,12,0.9) 100%); }
.footer-cta-box h2 { font-size: 36px; color: #ffffff; margin-bottom: 15px; font-weight: 800; }
.footer-cta-box p { color: #9ca3af; font-size: 16px; margin-bottom: 30px; }

.footer-legal { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: #6b7280; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #6b7280; font-size: 20px; transition: color 0.2s; }
.footer-links a:hover { color: #ffffff; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-split { flex-direction: column; text-align: center; padding-top: 160px; }
    .hero-visual { display: none; }
    .hero-actions { justify-content: center; }
    .premium-features-grid, .pricing-modern, .project-grid { grid-template-columns: 1fr; }
    .featured-tier { transform: scale(1); }
    .featured-tier:hover { transform: translateY(-5px); }
    .footer-cta-box { padding: 40px 20px; }
    .footer-cta-box h2 { font-size: 28px; }
}