:root {
    /* PALETA TECH / DARK MODE */
    --bg-dark: #0B1120;       /* Fondo principal muy oscuro */
    --bg-card: #151e32;       /* Fondo de tarjetas */
    --primary: #06b6d4;       /* Cyan Neón (Tecnología) */
    --primary-hover: #22d3ee; 
    --accent: #6366f1;        /* Azul Índigo Eléctrico */
    --text-main: #f8fafc;     /* Blanco humo */
    --text-muted: #94a3b8;    /* Gris azulado */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- UTILIDADES TECH --- */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-tech {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4); /* Resplandor Cyan */
    color: white;
}

.btn-outline-tech {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-outline-tech:hover {
    background: rgba(6, 182, 212, 0.1);
    color: white;
    border-color: var(--primary-hover);
}

/* --- NAVBAR --- */
.navbar {
    background-color: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px; 
}
.navbar-brand i {
    color: var(--primary); 
    font-size: 1.5rem;
}
.navbar-brand span { color: var(--primary); }

/* --- HERO SECTION --- */
.hero-section {
    padding: 160px 0 120px;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Para que el contenido esté sobre el fondo de partículas */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Detrás del contenido del hero */
    background-color: var(--bg-dark);
    background-image: linear-gradient(to bottom, rgba(11, 17, 32, 0.85), rgba(11, 17, 32, 0.95));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin-top: -3rem;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

/* --- CARDS & SERVICES --- */
.card-tech {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}
.card-tech:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* --- PROCESO --- */
.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    position: absolute;
    top: 0;
    right: 20px;
}
.process-card {
    position: relative;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border-left: 3px solid var(--primary);
}

/* --- PORTFOLIO IMAGES --- */
.portfolio-img {
    height: 250px;
    object-fit: cover; /* Esto evita que la imagen se deforme */
    border-radius: 12px 12px 0 0;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.4s ease; /* Añadida transición de transform */
    width: 100%;
}
.card-tech.p-0:hover .portfolio-img { 
    opacity: 1; 
    transform: scale(1.05); /* Efecto de zoom sutil en hover */
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background-color: #080c17;
}

/* --- BOTÓN WHATSAPP --- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.8);
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.btn-whatsapp {
    animation: pulse-green 2s infinite;
}


/* --- ANIMACIONES DE SCROLL --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
