/* ====== HERO SECTION ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e6f0ff 100%);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--gray-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====== SERVICIOS SECTION ====== */
.services {
    position: relative;
    overflow: hidden;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 45px 35px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 25px 60px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.2);
}

.service-icon {
    font-size: 3.2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.service-icon:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 160, 233, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.service-card h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.6rem;
}

.service-desc {
    color: var(--gray-color);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* ====== POR QUÉ SHANGHÁI SECTION ====== */
.why-shanghai {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
}

.shanghai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.shanghai-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.shanghai-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    mix-blend-mode: overlay;
}

.shanghai-image:hover:before {
    opacity: 0.1;
}

.shanghai-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.shanghai-image:hover img {
    transform: scale(1.1);
}

.shanghai-benefits {
    list-style: none;
}

.shanghai-benefits li {
    margin-bottom: 35px;
    padding-left: 50px;
    position: relative;
}

.shanghai-benefits i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 160, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 160, 233, 0.2);
}

.shanghai-benefits h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* ====== PROCESO SECTION ====== */
.process {
    position: relative;
    overflow: hidden;
    background: white;
}

.process-container {
    position: relative;
    margin-top: 70px;
}

.process-line {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 102, 204, 0.1);
    z-index: 1;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.process-step {
    text-align: center;
    position: relative;
    flex: 1;
    padding: 0 15px;
}

.step-number {
    width: 120px;
    height: 120px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.1);
    transition: var(--transition);
    border: 5px solid white;
}

.step-number.active {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(10deg);
    animation: pulse-glow 2s ease-in-out infinite;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ====== CONOCIMIENTO SECTION ====== */
.knowledge {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.article-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.2);
}

.article-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    mix-blend-mode: overlay;
}

.article-card:hover .article-image:before {
    opacity: 0.2;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 30px;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article-content a {
    color: var(--dark-color);
    font-weight: 700;
}

.article-content a:hover {
    color: var(--secondary-color);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 102, 204, 0.05);
}

/* ====== SOBRE NOSOTROS SECTION ====== */
.about {
    position: relative;
    overflow: hidden;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 35px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.stat-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.stat-item:hover:before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 102, 204, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 15px;
    display: block;
}

.stat-label {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ====== CONTACTO SECTION ====== */
.contact {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    font-size: 1.5rem;
    min-width: 30px;
}

.contact-info div {
    color: var(--gray-color);
}

.contact-info h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.wechat-qr {
    margin-top: 20px;
    text-align: center;
}

.wechat-qr img {
    max-width: 180px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 102, 204, 0.2);
    background: white;
    padding: 10px;
    box-shadow: var(--box-shadow);
}

.wechat-qr p {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--gray-color);
}

/* ====== RESPONSIVE ESPECÍFICA PARA INDEX ====== */
@media (max-width: 1200px) {
    .services-grid, .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shanghai-content, .about-content, .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .process-step {
        flex: 0 0 calc(50% - 40px);
        margin-bottom: 60px;
    }
    
    .process-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-grid, .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex: 0 0 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .service-card, .article-content {
        padding: 35px 25px;
    }
}