﻿/* ═══════════════════════════════════════════════════════
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ═══════════════════════════════════════════════════════ */
   
:root {
    --skillcore-primary: #10B981;
    --skillcore-primary-dark: #059669;
    --skillcore-primary-light: #34D399;
    --skillcore-blue: #1e3a8a;
    --skillcore-blue-dark: #0f172a;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f4f7fb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.skillcore-logo {
    height: 60px;
    width: auto;
    transition: transform 0.2s;
}

    .skillcore-logo:hover {
        transform: scale(1.05);
    }

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: var(--skillcore-primary) !important;
    }

/* ═══════════════════════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════════════════════ */
.btn-skillcore {
    background: var(--skillcore-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-skillcore:hover {
        background: var(--skillcore-primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: white;
    }

.btn-outline-skillcore {
    background: transparent;
    border: 2px solid var(--skillcore-primary);
    color: var(--skillcore-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-outline-skillcore:hover {
        background: var(--skillcore-primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero-section {
    background: linear-gradient(135deg, var(--skillcore-blue-dark) 0%, var(--skillcore-blue) 100%);
    padding: 100px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
        background-size: 40px 40px;
        opacity: 0.5;
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--skillcore-primary);
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.text-skillcore {
    color: var(--skillcore-primary-light);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--skillcore-primary-light);
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.dashboard-screenshot {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

    .floating-card i {
        font-size: 24px;
    }

.fc-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.fc-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -8%;
    animation-delay: 1s;
}

.card-3 {
    top: 40%;
    right: -12%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ═══════════════════════════════════════════════════════
   SECCIONES
   ═══════════════════════════════════════════════════════ */
.features-section,
.benefits-section,
.pricing-section,
.demo-section {
    padding: 80px 0;
}

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

.section-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--skillcore-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   FEATURE CARDS - Corregido
   ═══════════════════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    position: relative;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    /* CRÍTICO: Evitar superposición */
    isolation: isolate;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--skillcore-primary);
    z-index: 10;
}

.feature-card.featured {
    border: 2px solid var(--skillcore-primary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--skillcore-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1; /* Dentro del contexto de la tarjeta */
}

/* Asegurar que las secciones no interfieran */
.features-section {
    padding: 80px 0;
    position: relative;
    background: white; /* Fondo sólido */
    z-index: 1;
}

/* Evitar que hero interfiera */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    z-index: 0; /* Menor que features */
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
    z-index: 3; /* Dentro del hero, no sobre features */
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        display: none; /* Ocultar en móvil para evitar problemas */
    }
}
/* ═══════════════════════════════════════════════════════
   BENEFITS SECTION
   ═══════════════════════════════════════════════════════ */
.benefits-section {
    background: white;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 20px;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--skillcore-primary) 0%, var(--skillcore-primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.benefit-content p {
    color: var(--text-muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   PRICING SECTION
   ═══════════════════════════════════════════════════════ */
.pricing-section {
    background: var(--bg-light);
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

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

    .pricing-card.featured {
        border-color: var(--skillcore-primary);
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, white 100%);
    }

.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

    .plan-header h3 {
        font-size: 28px;
        font-weight: 800;
        color: var(--text-dark);
        margin-bottom: 8px;
    }

    .plan-header p {
        color: var(--text-muted);
        margin: 0;
    }

.plan-price {
    text-align: center;
    margin-bottom: 32px;
}

.currency {
    font-size: 24px;
    color: var(--text-muted);
    vertical-align: top;
}

.amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--skillcore-primary);
    line-height: 1;
}

.period {
    font-size: 18px;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

    .plan-features li {
        padding: 12px 0;
        color: var(--text-dark);
        border-bottom: 1px solid var(--border-color);
    }

        .plan-features li:last-child {
            border-bottom: none;
        }

    .plan-features i {
        margin-right: 12px;
        width: 20px;
    }

    .plan-features .fa-check {
        color: var(--skillcore-primary);
    }

    .plan-features .fa-times {
        color: var(--text-light);
    }

    .plan-features li.disabled {
        color: var(--text-light);
    }

/* ═══════════════════════════════════════════════════════
   DEMO SECTION
   ═══════════════════════════════════════════════════════ */
.demo-tabs .nav-pills {
    background: white;
    padding: 8px;
    border-radius: 12px;
    display: inline-flex;
}

.demo-tabs .nav-link {
    color: var(--text-muted);
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

    .demo-tabs .nav-link:hover {
        background: var(--bg-light);
    }

    .demo-tabs .nav-link.active {
        background: var(--skillcore-primary);
        color: white;
    }

.demo-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 8px;
}

.demo-screenshot {
    border-radius: 12px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, var(--skillcore-blue-dark) 0%, var(--skillcore-blue) 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
        background-size: 40px 40px;
    }

.cta-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

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

.btn-light {
    background: white;
    color: var(--skillcore-blue);
    font-weight: 600;
}

    .btn-light:hover {
        background: var(--skillcore-primary);
        color: white;
    }

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
}

    .btn-outline-light:hover {
        background: white;
        color: var(--skillcore-blue);
    }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    background: white;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

    .social-links a {
        width: 40px;
        height: 40px;
        background: var(--bg-light);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        transition: all 0.3s;
    }

        .social-links a:hover {
            background: var(--skillcore-primary);
            color: white;
            transform: translateY(-2px);
        }

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: var(--skillcore-primary);
        }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    .floating-card {
        display: none;
    }

    .hero-section {
        padding: 60px 0 40px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

        .hero-buttons .btn {
            width: 100%;
        }

    .hero-stats {
        gap: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 32px;
    }

    .demo-tabs .nav-pills {
        flex-direction: column;
        width: 100%;
    }
}
