/* ========================================
   FONCIT - ESTILOS PROFESIONALES DARK TECH
   Basado en Bootstrap 5 + Personalización Avanzada
   ======================================== */

:root {
    --bs-body-bg: #0b1326;       /* Fondo principal oscuro */
    --bs-body-color: #dae2fd;    /* Texto claro azulado */
    --foncit-neon: #e9791e;      /* anaranjado principal (como Anihta) */
    --foncit-cyan: #06b6d4;      /* Azul Cyan secundario */
    --foncit-dark: #171f33;      /* Color de tarjetas/superficies */
    --foncit-surface: #222a3d;   /* Superficies elevadas */
    --font-headline: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-headline);
    letter-spacing: -0.02em;
}

a { text-decoration: none; transition: all 0.3s ease; }

/* Utilidades de Color */
.text-neon { color: var(--foncit-neon) !important; }
.text-cyan { color: var(--foncit-cyan) !important; }
.bg-neon { background-color: var(--foncit-neon) !important; }

/* Botones Neón */
.btn-neon {
    background-color: var(--foncit-neon);
    color: #092100;
    font-weight: 700;
    border: none;
    box-shadow: 0 0 15px rgba(154, 231, 80, 0.2);
    transition: all 0.3s ease;
}

.btn-neon:hover {
    background-color: #8ad640;
    box-shadow: 0 0 25px rgba(154, 231, 80, 0.5);
    color: #092100;
    transform: translateY(-2px);
}

.btn-outline-neon {
    border: 1px solid var(--foncit-neon);
    color: var(--foncit-neon);
    font-weight: 600;
}

.btn-outline-neon:hover {
    background-color: var(--foncit-neon);
    color: #092100;
}

/* Navbar Personalizado - Color Exacto del Fondo */
.navbar {
    background-color: #0b1326 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    padding: 1rem 0;
}

.navbar .nav-link {
    color: #94a3b8 !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar .nav-link:hover, 
.navbar .nav-link.active {
    color: var(--foncit-neon) !important;
}

/* Dropdown de Idiomas */
.dropdown-menu-dark-tech {
    background-color: var(--foncit-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 200px;
}

.dropdown-item-tech {
    color: var(--bs-body-color);
    transition: all 0.2s ease;
}

.dropdown-item-tech:hover {
    background-color: rgba(154, 231, 80, 0.1);
    color: var(--foncit-neon);
}

/* Hero Section - Fondo Blueprint Tech (CSS Puro) */
.hero-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #0b1326;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

.hero-overlay-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        radial-gradient(circle at 70% 50%, transparent 0%, #0b1326 100%),
        linear-gradient(90deg, #0b1326 0%, rgba(11, 19, 38, 0.8) 50%, transparent 100%);
}

.hero-content-z {
    position: relative;
    z-index: 2;
}

/* Badge Hero */
.badge-hero {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 50rem;
    background-color: rgba(154, 231, 80, 0.15);
    border: 1px solid var(--foncit-neon);
    color: var(--foncit-neon);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Título Hero */
.display-4 {
    font-size: 3.2rem;
    line-height: 1.1;
}

/* Texto Lead Hero - Mejorado */
.lead-hero {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

/* Animación Flotante Teléfono */
@keyframes float-phone-hero {
    0% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
    100% { transform: translateY(0px) rotate(-5deg); }
}

.floating-iphone-png {
    animation: float-phone-hero 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    max-width: 100%;
    height: auto;
    max-height: 520px;
    transform: rotate(-5deg);
    position: relative;
    z-index: 2;
}

/* Secciones Generales */
section {
    position: relative;
    z-index: 1;
}

/* Tarjetas de Soluciones */
.tech-card {
    background-color: var(--foncit-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--foncit-neon);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.bg-cyan-subtle { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }
.bg-green-subtle { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.bg-purple-subtle { background: rgba(168, 85, 247, 0.1); color: #c084fc; }

/* Code Block Styling */
.code-window {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

pre {
    margin: 0;
    padding: 1.5rem;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* Syntax Highlighting Mockup */
.k { color: #c084fc; } /* Keys */
.s { color: #4ade80; } /* Strings */
.n { color: #facc15; } /* Numbers */
.b { color: #60a5fa; } /* Booleans */

/* Forms */
.form-control-dark {
    background-color: var(--foncit-surface);
    border: 1px solid #334155;
    color: white;
    padding: 0.75rem 1rem;
}

.form-control-dark:focus {
    background-color: var(--foncit-surface);
    border-color: var(--foncit-neon);
    box-shadow: 0 0 0 0.25rem rgba(154, 231, 80, 0.25);
    color: white;
}

/* Footer */
footer {
    background-color: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-link {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--foncit-neon);
}

/* Utilities */
.hover-scale:hover {
    transform: scale(1.02);
}

.ls-1 {
    letter-spacing: 1px;
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.animate-fade-left {
    animation: fadeLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

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

@keyframes fadeLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* Scroll Smooth */
html {
    scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .floating-iphone-png {
        max-height: 50px !important;
        margin-right: 0 !important;
        transform: rotate(0deg) !important;
    }
    
    .hero-overlay-vignette {
        background: linear-gradient(180deg, #0b1326 0%, rgba(11, 19, 38, 0.9) 100%);
    }
    
    .lead-hero {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .pe-lg-4 {
        padding-right: 1rem !important;
    }
    
    .ps-lg-0 {
        padding-left: 0 !important;
    }
}

/* ========================================
   FOOTER - ESTILOS COMPLETOS
   ======================================== */

.site-footer {
    background-color: #0b1326 !important; /* Mismo color que el Navbar */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4rem;
    padding-bottom: 2rem;
    color: #94a3b8;
}

/* Logo del Footer */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    max-height: 40px; /* Tamaño controlado, sin rotación ni márgenes raros */
    width: auto;
}

.brand-text {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-headline);
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 300px;
}

/* Títulos de columnas */
.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-headline);
}

/* Enlaces del Footer */
.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--foncit-neon); /* Efecto neón al pasar el mouse */
}

/* Parte inferior (Copyright y Redes) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-text {
    color: #64748b;
}

.social-link {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--foncit-neon);
    transform: translateY(-2px);
}