/* =========================================
   NumberSectionNetifly · Stats Section Styles
   Prefijo: nsn- para evitar conflictos WP
   ========================================= */

.nsn-section {

     background: var(--bg2);
padding: 0 !important;
      
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  margin-top: 40px;
  margin-bottom: 40px;
}
.nsn-container{
 display: grid;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}

/* Columnas automáticas */
.nsn-cols-1 { grid-template-columns: repeat(1, 1fr); }
.nsn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nsn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nsn-cols-4 { grid-template-columns: repeat(4, 1fr); }
.nsn-cols-5 { grid-template-columns: repeat(5, 1fr); }
.nsn-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ---- ITEM ---- */
.nsn-item {
    padding: 36px 32px;
    border-right: 1px solid var(--line);
    background: var(--bg2);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nsn-item:last-child {
    border-right: none;
}

/* ---- BIG NUMBER ---- */
.nsn-big {
    font-family: var(--mont);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    color: var(--blue);
    line-height: 1;
    letter-spacing: -2px;
}

/* ---- LABEL ---- */
.nsn-label {
    font-family: var(--mont);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--soft);
    line-height: 1.4;
    max-width: 160px;
    text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .nsn-cols-4,
    .nsn-cols-5,
    .nsn-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Bordes en grid 2 columnas */
    .nsn-cols-4 .nsn-item:nth-child(2n),
    .nsn-cols-5 .nsn-item:nth-child(2n),
    .nsn-cols-6 .nsn-item:nth-child(2n) {
        border-right: none;
    }

    .nsn-item {
        border-bottom: 1px solid var(--line);
    }

    .nsn-section .nsn-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .nsn-cols-2,
    .nsn-cols-3,
    .nsn-cols-4,
    .nsn-cols-5,
    .nsn-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nsn-item {
        padding: 28px 20px;
    }

    .nsn-cols-2 .nsn-item:nth-child(2n),
    .nsn-cols-3 .nsn-item:nth-child(2n),
    .nsn-cols-4 .nsn-item:nth-child(2n),
    .nsn-cols-5 .nsn-item:nth-child(2n),
    .nsn-cols-6 .nsn-item:nth-child(2n) {
        border-right: none;
    }
}
