
/* ==============================================================
   CONTENIDO GENERAL
   ============================================================== */

.service-details .service-content {
    min-width: 0;
}

.service-details .service-content p {
    margin-top: 0;
    margin-bottom: 0.85rem;
    line-height: 1.65;
    text-align: justify;
}

.service-details .service-content strong {
    color: var(--heading-color);
}


/* ==============================================================
   INTRODUCCIÓN
   ============================================================== */

.service-details .service-intro {
    margin-bottom: 0;
}

.service-details .service-intro h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    color: var(--heading-color);
    line-height: 1.25;
}

.service-details .service-intro .lead {
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.service-details .service-image {
    margin: 1.25rem 0 1.25rem;
}

.service-details .service-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* ==============================================================
   SECCIONES TÉCNICAS
   ============================================================== */

.service-details .technical-section {
    margin-top: 2rem;
    margin-bottom: 0;
    scroll-margin-top: 100px;
}

.service-details .technical-section + .technical-section {
    margin-top: 2.25rem;
}

.service-details .technical-section h3 {
    display: flex;
    align-items: center;
    gap: 0.1rem;

    margin: 0 0 0.9rem;

    color: var(--heading-color);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.3;
}


/* ==============================================================
   NUMERACIÓN DE SECCIONES
   ============================================================== */

.service-details .technical-section .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;

    margin-right: 0.65rem;

    border-radius: 6px;

    background: color-mix(
        in srgb,
        var(--accent-color),
        transparent 88%
    );

    color: var(--accent-color);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}


/* ==============================================================
   LISTAS TÉCNICAS
   ============================================================== */

.service-details .service-content ul,
.service-details .service-content ol {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.service-details .service-content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.service-details .service-content section ul li::marker,
.service-details .service-content section ol li::marker {
    color: var(--accent-color);
    font-weight: 600;
}


/* ==============================================================
   BLOQUES DE INFORMACIÓN
   ============================================================== */

.service-details .service-content .alert {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;

    border: 1px solid color-mix(
        in srgb,
        var(--accent-color),
        transparent 82%
    ) !important;

    border-left: 4px solid var(--accent-color) !important;
    border-radius: 10px;

    background: color-mix(
        in srgb,
        var(--accent-color),
        var(--background-color) 94%
    ) !important;

    color: var(--default-color);
}

.service-details .service-content .alert h5 {
    margin-bottom: 0.4rem;
    color: var(--heading-color);
    font-size: 1rem;
    font-weight: 600;
}

.service-details .service-content .alert p {
    margin-bottom: 0;
}

.service-details .service-content .alert-light {
    background: color-mix(
        in srgb,
        var(--accent-color),
        var(--surface-color) 94%
    ) !important;

    color: var(--default-color);
}


/* ==============================================================
   SERVICE FEATURES
   ============================================================== */

.service-details .service-content .feature-section {
    margin-top: 2.25rem;
}

.service-details .service-content .service-features {
    margin: 1.25rem 0 0;
    padding: 1.5rem 1.75rem;

    border-radius: 12px;

    background: color-mix(
        in srgb,
        var(--surface-color),
        transparent 15%
    );
}

.service-details .service-content .service-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;

    height: 100%;

    padding: 0;
    background: transparent;
    border: 0;
}

.service-details .service-content .service-features .feature-item i {
    flex-shrink: 0;

    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 0;

    border-radius: 7px;

    background: color-mix(
        in srgb,
        var(--accent-color),
        transparent 88%
    );

    color: var(--accent-color);
    font-size: 1.1rem;
}

.service-details .service-content .service-features .feature-item h5 {
    margin: 0 0 0.35rem;
    color: var(--heading-color);
    font-size: 1rem;
}

.service-details .service-content .service-features .feature-item p {
    margin: 0;
    line-height: 1.55;
}


/* ==============================================================
   PROCESO DE DIAGNÓSTICO
   ============================================================== */

.service-details .service-process {
    margin: 2.25rem 0 0;
}

.service-details .service-process .process-steps {
    margin-top: 1.25rem;
}

.service-details .service-process .process-steps .step-item {
    margin-bottom: 1.75rem;
}

.service-details .service-process .process-steps .step-item:last-child {
    margin-bottom: 0;
}

.service-details .service-process .step-content h5 {
    margin-bottom: 0.35rem;
}

.service-details .service-process .step-content p {
    margin-bottom: 0;
}


/* ==============================================================
   SIDEBAR
   ============================================================== */

.service-details .sidebar {
    min-width: 0;
}

.service-details .sidebar .service-info {
    margin-bottom: 1.5rem;
}

.service-details .sidebar .service-facts li {
    gap: 0.85rem;
}

.service-details .sidebar .service-facts li .fact-label {
    flex-shrink: 0;
}

.service-details .sidebar .service-facts li .fact-value {
    text-align: right;
    overflow-wrap: anywhere;
}


/* ==============================================================
   TESTIMONIO / PRINCIPIO
   ============================================================== */

.service-details .sidebar .service-testimonial {
    margin-bottom: 1.5rem;
}


/* ==============================================================
   ÍNDICE DE CONTENIDOS
   ============================================================== */

.service-details .service-toc {
    position: relative;

    margin: 0 0 1.5rem;
    padding: 1.2rem 1.25rem;

    border: 1px solid color-mix(
        in srgb,
        var(--default-color),
        transparent 88%
    );

    border-radius: 10px;

    background: color-mix(
        in srgb,
        var(--surface-color),
        transparent 12%
    );
}

.service-details .service-toc h4 {
    margin: 0 0 0.85rem;

    color: var(--heading-color);
    font-size: 1.15rem;
    font-weight: 600;
}

.service-details .service-toc .toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-details .service-toc .toc-list li {
    margin: 0;
    padding: 0;
}

.service-details .service-toc .toc-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;

    padding: 0.45rem 0.35rem;

    border-radius: 6px;

    color: var(--default-color);
    text-decoration: none;

    font-size: 0.88rem;
    line-height: 1.4;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.service-details .service-toc .toc-list a > span:first-child {
    flex: 0 0 1.8rem;

    color: var(--accent-color);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.service-details .service-toc .toc-list a > span:last-child {
    flex: 1 1 auto;
}

.service-details .service-toc .toc-list a:hover,
.service-details .service-toc .toc-list a:focus {
    color: var(--accent-color);
    background: color-mix(
        in srgb,
        var(--accent-color),
        transparent 93%
    );
}

.service-details .service-toc .toc-list a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}


/* ==============================================================
   ÍNDICE FIJO EN ESCRITORIO
   ============================================================== */

@media (min-width: 992px) {

    .service-details .service-toc {
        position: sticky;
        top: 100px;
    }
}


/* ==============================================================
   SCROLL SUAVE
   ============================================================== */

html {
    scroll-behavior: smooth;
}


/* ==============================================================
   RESPONSIVE
   ============================================================== */

@media (max-width: 991.98px) {

    .service-details .technical-section {
        margin-top: 1.75rem;
        scroll-margin-top: 90px;
    }

    .service-details .technical-section + .technical-section {
        margin-top: 1.75rem;
    }

    .service-details .technical-section h3 {
        font-size: 1.45rem;
    }

    .service-details .service-features {
        padding: 1.4rem;
    }

    .service-details .service-process {
        margin-top: 1.75rem;
    }

    .service-details .service-toc {
        margin-top: 0;
    }
}


@media (max-width: 767.98px) {

    .service-details .technical-section {
        margin-top: 1.5rem;
        scroll-margin-top: 80px;
    }

    .service-details .technical-section + .technical-section {
        margin-top: 1.5rem;
    }

    .service-details .technical-section h3 {
        font-size: 1.35rem;
    }

    .service-details .technical-section .section-number {
        width: 2rem;
        min-width: 2rem;
        height: 2rem;

        margin-right: 0.5rem;

        font-size: 0.72rem;
    }

    .service-details .service-content p {
        line-height: 1.6;
    }

    .service-details .service-features {
        padding: 1.2rem;
    }

    .service-details .service-process {
        margin-top: 1.5rem;
    }

    .service-details .service-process .process-steps .step-item {
        margin-bottom: 1.5rem;
    }
}


@media (max-width: 575.98px) {

    .service-details .service-toc {
        padding: 1rem;
    }

    .service-details .service-toc .toc-list a {
        font-size: 0.84rem;
    }

    .service-details .service-content .service-features {
        padding: 1rem;
    }

    .service-details .service-content .service-features .feature-item {
        gap: 0.7rem;
    }

    .service-details .service-content .service-features .feature-item i {
        width: 2.15rem;
        min-width: 2.15rem;
        height: 2.15rem;
        font-size: 1rem;
    }
}
