/* Componentes adicionales para CL Soluciones Web */

/* Estilos para los tabs en la sección de productos */
.product-tabs {
    margin: 30px 0;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para iconos sociales en el header */
.social-nav-links {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.social-nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-nav-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .social-nav-links {
        margin: 15px 0 0 0;
    }
    
    .social-nav-links a {
        width: 40px;
        height: 40px;
        margin: 0 5px;
    }
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Estilos para las animaciones al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para el formulario de contacto */
.error-message {
    color: var(--danger-color);
    margin-top: 5px;
    font-size: 0.85rem;
}

.error-input {
    border: 1px solid var(--danger-color) !important;
}

.success-message {
    padding: 20px;
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    border-radius: 4px;
    text-align: center;
}

.success-message h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

/* Hover effects para las tarjetas de servicio */
.card:hover .card-img img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Estilos para el about-content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .product-tabs .tab-buttons {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-button {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
}