:root {
    --ps-dark: #020617;
    /* Azul profundo */
    --ps-primary: #00d1ff;
    /* Turquesa/Cian */
    --ps-navy: #0f172a;
    /* Azul medianoche */
    --ps-light: #c9cdd1;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: -2px;
    font-size: 1.6rem;
}

/* --- Banner con Malla 3D (Three.js) --- */
#hero-threejs {
    position: relative;
    height: 85vh;
    background-color: var(--ps-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Máscara de profundidad para difuminar bordes */
.depth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.5) 50%, rgba(2, 6, 23, 1) 95%);
    z-index: 2;
    pointer-events: none;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.display-heavy {
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 2rem;
}

.text-turquesa {
    color: var(--ps-primary);
}

/* --- Cards y Secciones --- */
.section-padding {
    padding: 50px 0;
}

.bg-soft {
    background-color: var(--ps-navy);
}

.card-service {
    border: none;
    background: #fff;
    padding: 3rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.card-service:hover {
    transform: translateY(-10px);
    box-shadow: 0px 30px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--ps-primary);
}

.card-service:hover .icon-box {
    background: var(--ps-primary);
    color: #fff;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--ps-primary);
    margin-bottom: 2rem;
    transition: 0.3s;
}

/* --- Metodología Agile Balanceada --- */
.agile-container {
    background: var(--ps-navy);
    color: white;
    border-radius: 50px;
    padding: 5rem;
}

.agile-item {
    border-left: 2px solid var(--ps-primary);
    padding-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.agile-item::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--ps-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--ps-primary);
}

/* --- WhatsApp Fijo --- */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: 0.3s;
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.btn-ps {
    background: var(--ps-primary);
    color: #000;
    font-weight: 900;
    padding: 1.2rem 3rem;
    border-radius: 14px;
    border: none;
    transition: 0.3s;
}

.btn-ps:hover {
    background: #fff;
    transform: translateY(-5px);
}

/* Tamaño para computadoras y tablets grandes */
.subtitulo {
    font-size: 2rem;
    font-weight: 300;
    color: var(--ps-navy);
    /* Usando tus variables de color */
}

/* Ajuste para celulares (pantallas menores a 768px) */
@media (max-width: 768px) {
    .subtitulo {
        font-size: 1.4rem;
        /* Tamaño reducido */
        font-weight: 100;
    }
}

/* --- Client Logos --- */
.client-logo {
    height: 40px;
    /* Fixed height for all logos reduced */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    /* Default: grayscale and slightly transparent */
    transition: all 0.3s ease;
    /* Smooth transition */
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    /* Hover: full color and fully opaque */
    transform: scale(1.05);
    /* Slight scale up on hover */
}