/* ==========================================================================
   CRISTCAM — Servicios
   Encabezado con accesos · servicios en filas alternas · guía comparativa ·
   incluido + especificaciones · CTA. Prefijo propio: sx-
   ========================================================================== */

body {
    background: var(--surface);
    color: var(--fg);
}

/* ------------------------------------------------------------ Encabezado */
.sx-hero {
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + clamp(36px, 5vw, 64px)) 0 0;
    background: var(--surface);
}

.sx-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 24px clamp(32px, 6vw, 80px);
}

.sx-hero__title {
    color: var(--ink);
    font: 700 clamp(2.1rem, 1.4rem + 2.2vw, 3.3rem)/1.06 var(--font-display);
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.sx-hero__lead {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Accesos a cada servicio */
.sx-jump {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(40px, 5vw, 56px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.sx-jump__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 20px 0;
    color: var(--ink);
    font: 600 1rem/1.3 var(--font-display);
    text-decoration: none;
    transition: color 0.2s;
}

.sx-jump__item + .sx-jump__item {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.sx-jump__item i {
    color: var(--muted);
    font-size: 13px;
    transition: transform 0.3s var(--ease), color 0.2s;
}

.sx-jump__item:hover {
    color: var(--primary);
}

.sx-jump__item:hover i {
    color: var(--primary);
    transform: translateY(3px);
}

/* ------------------------------------------------------------- Servicios */
.sx-services {
    padding: var(--section-y) 0;
}

.sx-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.sx-service + .sx-service {
    margin-top: clamp(64px, 8vw, 112px);
}

.sx-service--reverse .sx-service__media {
    order: 2;
}

.sx-service__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.sx-service__title {
    color: var(--ink);
    font: 700 clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem)/1.1 var(--font-display);
    letter-spacing: -0.03em;
}

.sx-service__body p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.sx-service__btn {
    margin-top: 26px;
}

/* ----------------------------------------------------------- Guía rápida */
.sx-guide {
    padding: var(--section-y) 0;
    background: var(--surface-soft);
}

.sx-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.sx-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 14.5px;
}

.sx-table th,
.sx-table td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.sx-table tbody tr:last-child th,
.sx-table tbody tr:last-child td {
    border-bottom: 0;
}

.sx-table thead th {
    color: var(--ink);
    font: 700 1rem/1.3 var(--font-display);
    letter-spacing: -0.015em;
    background: var(--surface);
}

.sx-table tbody th {
    width: 22%;
    color: var(--muted);
    font-weight: 500;
}

.sx-table td {
    color: var(--fg);
}

.sx-table tbody tr:hover td,
.sx-table tbody tr:hover th {
    background: #fbfbfc;
}

/* ------------------------------------------------ Incluido + specs */
.sx-included {
    padding: var(--section-y) 0;
}

.sx-included__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
}

.sx-included__text {
    max-width: 540px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.sx-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 10px;
    border-top: 4px solid var(--primary);
    background: var(--ink);
    color: #fff;
}

.sx-specs > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    padding: 28px;
    border-color: rgba(255, 255, 255, 0.1);
    border-style: solid;
    border-width: 0;
}

.sx-specs > div:nth-child(odd) {
    border-right-width: 1px;
}

.sx-specs > div:nth-child(-n + 2) {
    border-bottom-width: 1px;
}

.sx-specs dt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
}

.sx-specs dd {
    font: 700 clamp(2rem, 1.6rem + 1.2vw, 2.7rem)/1 var(--font-display);
    letter-spacing: -0.04em;
}

.sx-specs small {
    color: var(--primary);
    font-size: 0.5em;
    letter-spacing: 0;
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 900px) {
    .sx-hero__grid,
    .sx-service,
    .sx-included__grid {
        grid-template-columns: 1fr;
    }

    .sx-service--reverse .sx-service__media {
        order: 0;
    }

    .sx-jump {
        grid-template-columns: 1fr;
    }

    .sx-jump__item,
    .sx-jump__item + .sx-jump__item {
        padding: 16px 0;
        border-left: 0;
    }

    .sx-jump__item + .sx-jump__item {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .sx-specs dd {
        font-size: 1.8rem;
    }
}
