/* ===== ESTILOS GENERALES PARA AMBAS SECCIONES ===== */
:root {
    --primary-color: #4a6cf7;
    --primary-dark: #3a5ce5;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-1: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgb(0, 98, 255) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.section-header {
    margin-bottom: 3rem;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECCIÓN COMERCIAL ===== */
.services-commercial {
    padding: 100px 0;
    background-color: #ffffff;
}

.services-tabs {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 20px;
    gap: 10px;
    justify-content: center;
}

.tab-btn {
    background: white;
    border: none;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tab-btn:not(.active) .tab-icon {
    background: var(--gradient-1);
    color: white;
}

.tabs-content {
    padding: 40px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tab-content:hover .image-placeholder {
    transform: scale(1.05);
}

.content-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.content-text p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.service-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
}

.service-features i {
    color: #2ee956c0;
    font-size: 1.2rem;
} 

/* ===== TABS NAV MOBILE GRID ===== */
@media (max-width: 768px) {
    .tabs-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .tab-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 6px;
        aspect-ratio: 1 / 1; /* cuadrado */
    }

    .tab-btn span {
        display: none; /* chau texto */
    }

    .tab-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}



/* ===== SECCIÓN TÉCNICA ===== */
.services-technical {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea0d 0%, #764ba20d 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(to right, #f8f9fa, #fff);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: rgb(255, 255, 255);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-hosting {
    background: var(--gradient-1);
}

.service-domain {
    background: var(--gradient-1);
}

.service-ssl {
    background: var(--gradient-1);
}

.service-backup {
    background: var(--gradient-1);
}

.service-email {
    background: var(--gradient-1);
}

.service-maintenance {
    background: var(--gradient-1);
}

.service-disweb {
    background: var(--gradient-1);
}

.service-ecom {
    background: var(--gradient-1);
}

.service-optim {
    background: var(--gradient-1);
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.card-body {
    padding: 0 30px;
    flex-grow: 1;
}

.card-body p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--dark-color);
    position: relative;
    padding-left: 25px;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.features-list li:last-child {
    border-bottom: none;
}

.card-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
    margin-top: auto;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 6rem;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        justify-content: center;
        padding: 12px 20px;
    }
    
    .tabs-content {
        padding: 30px 20px;
    }
    
    .content-text h3 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-commercial,
    .services-technical {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tab-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 20px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Animación al scroll */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}