/* Components */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.header.scrolled {
    background-color: var(--light);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
}

/* Logo Styles - MÁS GRANDE */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px; /* Logo más grande */
    width: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.header.scrolled .logo-img {
    height: 80px; /* Un poco más pequeño al hacer scroll */
}

.logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* Navbar con logo a la izquierda y menú a la derecha */
.navbar {
    display: flex;
    justify-content: space-between; /* Logo a la izquierda, menú a la derecha */
    align-items: center;
    padding: 0;
}

/* Contenedor del menú a la derecha */
.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 35px; /* Más espacio entre elementos del menú */
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.05rem;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px; /* Línea más gruesa */
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Efecto de botón para el menú activo */
.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
    background: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
    background: none;
    border: none;
    padding: 5px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Botón de CTA en el header */
.header-cta {
    margin-left: 40px;
}

.header-cta .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(249, 137, 39, 0.3);
}

.header-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(249, 137, 39, 0.4);
}

/* Resto de componentes se mantienen igual... */
.card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
    overflow: hidden;
}

.card-img img {
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 137, 39, 0.2);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent2);
    color: var(--light);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Responsive Components */
@media (max-width: 992px) {
    .header-cta {
        display: none; /* Ocultar CTA en tablets */
    }
    
    .nav-links li {
        margin-left: 25px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-right {
        width: auto;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
        transition: left 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        margin-left: 0;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-links a::after {
        display: none; /* Ocultar línea animada en móvil */
    }
    
    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .header.scrolled .logo-img {
        height: 50px;
    }
    
    /* Overlay para el menú móvil */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 50px;
    }
    
    .header.scrolled .logo-img {
        height: 45px;
    }
}