/* ===================================
   Sistemas Page - Elegant & Modern Design
   =================================== */

/* Hero Section */
.sistemas-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.animated-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(16, 206, 188, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 206, 188, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.sphere-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #10cebc, transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #1ee5d1, transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.sphere-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #0da89a, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.sistemas-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.sistemas-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 206, 188, 0.1);
    border: 1px solid rgba(16, 206, 188, 0.3);
    border-radius: 50px;
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.sistemas-hero .hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    color: var(--text-primary);
}

.title-gradient {
    display: block;
    background: linear-gradient(135deg, #10cebc 0%, #1ee5d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sistemas-hero .hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(16, 206, 188, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(16, 206, 188, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10cebc, #1ee5d1);
    border-radius: 12px;
    font-size: 1.5rem;
    color: #0f0f0f;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Navigation Pills */
.navigation-pills {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 4rem;
}

.pills-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill:hover {
    background: rgba(16, 206, 188, 0.1);
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.pill.active {
    background: linear-gradient(135deg, #10cebc, #1ee5d1);
    border-color: transparent;
    color: #0f0f0f;
    font-weight: 600;
}

.pill i {
    font-size: 1.1rem;
}

/* Systems Content */
.sistemas-content {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.sistema-category {
    margin-bottom: 6rem;
    opacity: 1;
    transition: all 0.5s ease;
}

.sistema-category.hidden {
    display: none;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 206, 188, 0.2), rgba(30, 229, 209, 0.2));
    z-index: 0;
}

.category-icon i {
    position: relative;
    z-index: 1;
}

.salud-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #ef4444;
}

.educacion-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    color: #3b82f6;
}

.judicial-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.1));
    color: #a855f7;
}

.administracion-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
    color: #f97316;
}

.category-info {
    flex: 1;
}

.category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.system-card {
    position: relative;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 206, 188, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.system-card:hover::before {
    opacity: 1;
}

.system-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 60px rgba(16, 206, 188, 0.15);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 206, 188, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.system-card:hover .card-glow {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 206, 188, 0.2), rgba(30, 229, 209, 0.2));
    border-radius: 16px;
    font-size: 1.75rem;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.system-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #10cebc, #1ee5d1);
    color: #0f0f0f;
}

.card-badge {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #10cebc, #1ee5d1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f0f0f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-features {
    list-style: none;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-features li i {
    color: var(--primary-red);
    font-size: 0.85rem;
}

.card-footer {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.btn-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-card.btn-primary {
    background: linear-gradient(135deg, #10cebc, #1ee5d1);
    color: #0f0f0f;
}

.btn-card.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 206, 188, 0.3);
}

.btn-card.btn-secondary {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-card.btn-secondary:hover {
    background: rgba(38, 38, 38, 0.8);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(16, 206, 188, 0.05), rgba(30, 229, 209, 0.05));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10cebc, #1ee5d1);
    border-radius: 20px;
    font-size: 2.5rem;
    color: #0f0f0f;
    margin: 0 auto 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta.btn-primary {
    background: linear-gradient(135deg, #10cebc, #1ee5d1);
    color: #0f0f0f;
}

.btn-cta.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 206, 188, 0.3);
}

.btn-cta.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.btn-cta.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
    background: #20BA5A;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .systems-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .category-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .sistemas-hero {
        min-height: 80vh;
    }
    
    .sistemas-hero .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .navigation-pills {
        top: 70px;
        padding: 1rem 0;
    }
    
    .pills-wrapper {
        gap: 0.5rem;
    }
    
    .pill {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sistemas-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .sistemas-hero .hero-description {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 0.95rem;
    }
    
    .system-card {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
}

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

.sistema-category {
    animation: fadeInUp 0.6s ease-out;
}

.system-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.system-card:nth-child(1) { animation-delay: 0.1s; }
.system-card:nth-child(2) { animation-delay: 0.2s; }
.system-card:nth-child(3) { animation-delay: 0.3s; }
.system-card:nth-child(4) { animation-delay: 0.4s; }
.system-card:nth-child(5) { animation-delay: 0.5s; }
.system-card:nth-child(6) { animation-delay: 0.6s; }
