/* =========================================
   ColumnSectionNetifly · Dolor Section Styles
   Prefijo: csn- para evitar conflictos WP
   ========================================= */

.csn-section {

    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}

/* ---- HEADER ---- */
.csn-header {
    padding: 40px 0px;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}

.csn-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;
}

.csn-label::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--blue);
    flex-shrink: 0;
}

.csn-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;
}

.csn-title span {
    color: var(--blue);
}

/* ---- GRID ---- */
.csn-grid {
    display: grid;
    box-sizing: border-box;
}

/* Columnas automáticas según cantidad de items */
.csn-cols-1 { grid-template-columns: 1fr; }
.csn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.csn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.csn-cols-4 { grid-template-columns: repeat(4, 1fr); }
.csn-cols-5 { grid-template-columns: repeat(5, 1fr); }
.csn-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ---- ITEM ---- */
.csn-item {
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    box-sizing: border-box;
}

.csn-item:last-child {
    border-right: none;
}

.csn-icon {
    font-family: var(--mont);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.csn-item-title {
    font-family: var(--mont);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.2;
}

.csn-item-body {
    font-family: var(--mont);
    font-size: 13px;
    font-weight: 400;
    color: var(--soft);
    line-height: 1.8;
    margin: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .csn-cols-3,
    .csn-cols-4,
    .csn-cols-5,
    .csn-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .csn-header {
        padding: 32px 24px 24px;
    }

    .csn-item {
        padding: 24px 20px;
    }

    /* Quitar borde derecho a los items del lado derecho de la cuadrícula */
    .csn-cols-2 .csn-item:nth-child(2n),
    .csn-cols-3 .csn-item:nth-child(2n),
    .csn-cols-4 .csn-item:nth-child(2n),
    .csn-cols-5 .csn-item:nth-child(2n),
    .csn-cols-6 .csn-item:nth-child(2n) {
        border-right: none;
    }

    /* Añadir borde inferior entre filas */
    .csn-item {
        border-bottom: 1px solid var(--line);
    }

    .csn-grid .csn-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .csn-cols-2,
    .csn-cols-3,
    .csn-cols-4,
    .csn-cols-5,
    .csn-cols-6 {
        grid-template-columns: 1fr;
    }

    .csn-item {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .csn-item:last-child {
        border-bottom: none;
    }
}
