/*--------------------------------------------------------------
# Variables Globales
--------------------------------------------------------------*/
:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color: #00a8ff;
    --accent-hover: #0097e6;
    --text-color: #2d3436;
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Logo */
.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Enlaces de navegación */
.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-text {
    position: relative;
    padding-bottom: 5px; /* Ajusta el espacio para la línea */
}

.nav-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover .nav-text::after {
    width: 100%;
}

.nav-number {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Botón de contacto */
.contact-btn {
    background: var(--accent-color);
    color: white !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,168,255,0.3);
}

.contact-btn::after {
    display: none;
}

/* Botón hamburguesa */
.hamburger-lines {
    width: 25px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.navbar-toggler:not(.collapsed) .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-collapse {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: calc(100vh - 70px);
    margin-top: 66px;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    position: relative;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.service-card {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Why Us Section
--------------------------------------------------------------*/
.why-us-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.client-logo {
    filter: grayscale(100%);
    max-width: 150px;
    opacity: 0.7;
    transition: filter 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-form {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
/* Tablets (992px and down) */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }

    .navbar-logo {
        height: 40px;
        max-width: 140px;
    }

    .contact-btn {
        background: transparent;
        color: var(--text-color) !important;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .contact-btn:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
        color: var(--accent-color) !important;
    }
}

/* Móviles (576px and down) */
@media (max-width: 576px) {
    .navbar-logo {
        height: 40px;
        max-width: 120px;
    }
}