/* Modules / Especialidades - Shared Styles */

/* ============================================
   HERO - Modules Index Page
   ============================================ */
.modules-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modules-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/logo-mark-light.png') no-repeat center center;
    background-size: 400px;
    opacity: 0.1;
}

.modules-hero .container {
    position: relative;
    z-index: 1;
}

.modules-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.modules-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.modules-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modules-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modules-hero .breadcrumb a:hover {
    color: white;
}

/* ============================================
   MODULES GRID - Specialty Cards
   ============================================ */
.modules-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.module-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.module-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-card-icon .material-symbols-outlined {
    font-size: 28px;
    color: white;
}

.module-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.module-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.module-card-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.module-card:hover .module-card-arrow {
    gap: 0.75rem;
}

.module-card-arrow .material-symbols-outlined {
    font-size: 18px;
}

/* ============================================
   SPECIALTY PAGE - Hero
   ============================================ */
.specialty-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.specialty-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/logo-mark-light.png') no-repeat center center;
    background-size: 400px;
    opacity: 0.1;
}

.specialty-hero .container {
    position: relative;
    z-index: 1;
}

.specialty-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.specialty-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.specialty-hero .breadcrumb a:hover {
    color: white;
}

.specialty-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.specialty-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   SPECIALTY PAGE - Overview Section
   ============================================ */
.specialty-overview {
    padding: 80px 0;
    background-color: white;
}

.specialty-overview .section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.specialty-overview p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   SPECIALTY PAGE - Features Grid
   ============================================ */
.specialty-features {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.specialty-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.specialty-feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.specialty-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.specialty-feature-icon .material-symbols-outlined {
    font-size: 28px;
    color: white;
}

.specialty-feature-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.specialty-feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SPECIALTY PAGE - Workflow Section
   ============================================ */
.specialty-workflow {
    padding: 80px 0;
    background-color: white;
}

.workflow-steps {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workflow-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.workflow-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.workflow-step-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.workflow-step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA Section (Shared)
   ============================================ */
.modules-cta {
    background: var(--primary);
    padding: 60px 0;
    text-align: center;
}

.modules-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modules-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.modules-cta .btn {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.modules-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .modules-hero,
    .specialty-hero {
        padding: 100px 0 60px;
    }

    .modules-hero h1,
    .specialty-hero h1 {
        font-size: 2rem;
    }

    .modules-section,
    .specialty-overview,
    .specialty-features,
    .specialty-workflow {
        padding: 50px 0;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .specialty-features-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        gap: 1rem;
    }

    .workflow-step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }
}
