/* =========================================
   ServiceSectionNetifly · Servicios Section Styles
   Prefijo: ssn- para evitar conflictos WP
   ========================================= */

.ssn-section {

    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}

/* ---- HEADER ---- */
.ssn-header {
    padding: 40px 0px;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}

.ssn-label {
    font-family: var(--mont);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ssn-label::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--blue);
    flex-shrink: 0;
}

.ssn-title {
    font-family: var(--mont);
    font-size: clamp(22px, 2.8vw, 38px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    color: var(--text);
    margin: 0;
}

.ssn-title span {
    color: var(--blue);
}

/* ---- GRID ---- */
.ssn-grid {
    display: grid;
    box-sizing: border-box;
}

.ssn-cols-1 { grid-template-columns: 1fr; }
.ssn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ssn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ssn-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ssn-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ssn-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ---- SERVICIO ---- */
.ssn-servicio {
    padding: 28px;
    border-right: 1px solid var(--line);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.ssn-servicio:last-child {
    border-right: none;
}

.ssn-num {
    font-family: var(--mont);
    font-size: 34px;
    font-weight: 900;
    color: var(--blue);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.ssn-title-item {
    font-family: var(--mont);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--text);
}

.ssn-body {
    font-family: var(--mont);
    font-size: 13px;
    font-weight: 400;
    color: var(--soft);
    line-height: 1.75;
    margin-bottom: 14px;
    flex-grow: 1;
}

.ssn-link {
    font-family: var(--mont);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    text-decoration: none;
    margin-top: auto;
}

.ssn-link::after {
    content: ' →';
}

.ssn-link:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .ssn-cols-3,
    .ssn-cols-4,
    .ssn-cols-5,
    .ssn-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ssn-header {
        padding: 28px 24px 20px;
    }

    .ssn-servicio {
        padding: 24px 20px;
    }

    /* Bordes: quitar derecho en columna par, añadir inferior entre filas */
    .ssn-cols-2 .ssn-servicio:nth-child(2n),
    .ssn-cols-3 .ssn-servicio:nth-child(2n),
    .ssn-cols-4 .ssn-servicio:nth-child(2n),
    .ssn-cols-5 .ssn-servicio:nth-child(2n),
    .ssn-cols-6 .ssn-servicio:nth-child(2n) {
        border-right: none;
    }

    .ssn-servicio {
        border-bottom: 1px solid var(--line);
    }

    .ssn-grid .ssn-servicio:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .ssn-cols-2,
    .ssn-cols-3,
    .ssn-cols-4,
    .ssn-cols-5,
    .ssn-cols-6 {
        grid-template-columns: 1fr;
    }

    .ssn-servicio {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .ssn-servicio:last-child {
        border-bottom: none;
    }
}
