/* HEADER & GENERAL */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    /* Optional texture */
    opacity: 0.05;
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.service-detail {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    animation: fadeIn 0.8s ease-out;
}

.service-detail h2 {
    color: var(--primary-color);
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.service-detail h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.service-detail>p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
}

/* INTRO SECTION */
.intro-section {
    margin-bottom: 4rem;
}

.intro-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
}

.intro-section p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
}

/* PILLAR SECTION */
.pillar-section {
    margin: 4rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
}

.pillar-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
}

.pillar-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* FEATURE LIST */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 700px;
    display: grid;
    gap: 1rem;
}

.feature-list li {
    background: white;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    position: relative;
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
}

.feature-list li:hover {
    transform: translateX(8px);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TRAINING GRID & CARDS */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.training-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.training-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

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

.training-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.training-card p {
    color: #718096;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.stat-item svg {
    color: var(--secondary-color);
    opacity: 0.8;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-link::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--secondary-light);
    text-decoration: none;
}

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

/* MODALITIES */
.modalities-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    padding: 0;
}

.modalities-list li {
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modalities-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* CTA BUTTONS */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
    border: none;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
}

.cta-button.secondary {
    background: #e2e8f0;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: #cbd5e0;
    border-color: #cbd5e0;
    color: #2d3748;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* BENEFITS SECTION */
.benefits-section {
    margin: 5rem 0;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

/* QUESTIONS GRID */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.question-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.question-number {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.question-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.question-card p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* METHODOLOGY SECTION */
.methodology-section {
    margin: 5rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
}

.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.step-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    width: 2px;
    height: calc(100% + 2rem);
    background: linear-gradient(180deg, var(--secondary-color) 0%, transparent 100%);
}

.step-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 68, 102, 0.3);
    z-index: 1;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-content p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* DELIVERABLES SECTION */
.deliverables-section {
    margin: 5rem 0;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.deliverable-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.deliverable-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.deliverable-item svg {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.deliverable-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.deliverable-item p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* STATS SECTION */
.stats-section {
    margin: 5rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    text-align: center;
}

.stats-section h2 {
    color: white;
    margin-bottom: 3rem;
}

.stats-section h2::after {
    background: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .training-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modalities-list {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .modalities-list li {
        justify-content: center;
    }

    .cta-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        text-align: center;
    }

    .questions-grid {
        grid-template-columns: 1fr;
    }

    .methodology-steps {
        gap: 3rem;
    }

    .step-item {
        flex-direction: column;
        gap: 1rem;
    }

    .step-item:not(:last-child)::after {
        display: none;
    }

    .deliverables-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .pillar-section {
        padding: 2rem 1rem;
        margin: 3rem 0;
    }

    .feature-list li {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 0.95rem;
    }

    .feature-list li::before {
        left: 0.75rem;
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}

/* SERVICES FILTER - Mismos estilos que consultoria */
.services-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
}

.filter-btn svg {
    color: #94a3b8;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn:hover svg {
    color: var(--primary-color);
}

.filter-btn span {
    display: inline-block;
}

.filter-btn.active {
    background: transparent;
    border-bottom-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: none;
    transform: none;
}

.filter-btn.active svg {
    color: var(--secondary-color);
}

.filter-btn.active::after {
    display: none;
}

.filter-count {
    background: rgba(44, 82, 130, 0.1);
    color: #64748b;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.filter-btn.active .filter-count {
    background: var(--secondary-color);
    color: #fff;
}

.training-card.hidden {
    display: none !important;
}

.section-title.hidden {
    display: none !important;
}

.service-detail h2:first-of-type {
    margin-bottom: 2rem;
    margin-top: 0;
}