
:root {
    --gradient-primary: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animaciones Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.stats-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a6e 100%);
    padding: 80px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    padding: 40px 24px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-secondary);
    transition: var(--transition-smooth);
}

.stat-item:hover::before {
    width: 60px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    color: var(--color-secondary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-secondary);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Section Headers */
.section-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(18, 29, 104, 0.1), rgba(78, 205, 196, 0.1));
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.categories-section {
    background: var(--color-light);
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.categories-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    background: var(--color-white);
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card-featured {
    background: var(--gradient-primary);
    color: white;
}

.category-card-featured::before {
    display: none;
}

.category-card-featured .category-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

.category-card-featured .category-title,
.category-card-featured .category-desc,
.category-card-featured .category-link {
    color: white;
}

.category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(18, 29, 104, 0.08), rgba(78, 205, 196, 0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.category-icon {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.category-card-featured .category-icon {
    color: white;
}

.category-content {
    position: relative;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.category-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.category-link svg {
    transition: var(--transition-smooth);
}

.category-card:hover .category-link svg {
    transform: translateX(4px);
}

.why-section {
    background: var(--color-white);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-content {
    animation: fadeInLeft 0.8s ease;
}

.why-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.why-description {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 32px;
}

.why-features {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.why-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-feature-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: #4ecdc4;
}

.why-feature-icon svg {
    width: 100%;
    height: 100%;
}

.why-feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.why-feature-text p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.5;
}

.why-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    animation: fadeInRight 0.8s ease;
}

.why-card {
    background: var(--color-light);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.why-card:hover {
    background: var(--color-white);
    border-color: rgba(18, 29, 104, 0.1);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.why-card-1 { animation: fadeInUp 0.6s ease 0.1s backwards; }
.why-card-2 { animation: fadeInUp 0.6s ease 0.2s backwards; }
.why-card-3 { animation: fadeInUp 0.6s ease 0.3s backwards; }
.why-card-4 { animation: fadeInUp 0.6s ease 0.4s backwards; }

.why-card-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 12px;
}

.why-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.5;
}

.clients-section {
    background: var(--color-light);
    padding: 80px 0 60px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.clients-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    width: 180px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

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

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--gradient-primary);
    overflow: hidden;
    z-index: 10;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-buttons .btn svg {
    flex-shrink: 0;
}
/* Botones Mejorados */
.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-white {
    background: white;
    color: var(--color-primary);
    border: none;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .categories-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .why-visual {
        order: -1;
    }
    
    .stats-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px 20px;
    }
    
    .stat-item:nth-child(2),
    .stat-item:nth-child(4) {
        border-right: none;
    }
    
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .categories-showcase {
        grid-template-columns: 1fr;
    }
    
    .why-visual {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .clients-track {
        gap: 40px;
    }
    
    .client-logo {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .category-card {
        padding: 24px;
    }
    
    .why-card {
        padding: 20px;
    }
}
