
    /* ================================================================
   CONTENEDOR
   ================================================================ */
    .nexoia-sudoku4 {
        width: 100%;
        max-width: 650px;
        margin: 20px auto;
        font-family:
            Arial,
            Helvetica,
            sans-serif;
        color: #212529;
    }
    /* ================================================================
   TARJETA
   ================================================================ */
    .nexoia-sudoku4-card {
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 18px;
        overflow: hidden;
        box-shadow:
            0 8px 30px rgba(0, 0, 0, .10);
    }
    /* ================================================================
   CABECERA
   ================================================================ */
    .nexoia-sudoku4-header {
        background:
            linear-gradient(135deg,
                #6f42c1,
                #4c2889);
        color: #fff;
        text-align: center;
        padding: 25px;
    }
    .nexoia-sudoku4-header h2 {
        margin: 0 0 8px;
        font-size: 28px;
    }
    .nexoia-sudoku4-header p {
        margin: 0;
        opacity: .9;
    }
    /* ================================================================
   CONTENIDO
   ================================================================ */
    .nexoia-sudoku4-content {
        padding: 25px;
    }
    /* ================================================================
   CONTROLES
   ================================================================ */
    .nexoia-sudoku4-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }
    .nexoia-sudoku4-select {
        padding: 10px 14px;
        border:
            1px solid #ced4da;
        border-radius: 8px;
        background: #fff;
        font-size: 14px;
    }
    .nexoia-sudoku4-button {
        border: 0;
        border-radius: 8px;
        padding: 10px 16px;
        background: #6f42c1;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: .2s;
    }
    .nexoia-sudoku4-button:hover {
        background: #59339d;
        transform:
            translateY(-1px);
    }
    /* ================================================================
   INFORMACIÓN
   ================================================================ */
    .nexoia-sudoku4-info {
        display: grid;
        grid-template-columns:
            repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    .nexoia-sudoku4-info-box {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 10px;
        text-align: center;
    }
    .nexoia-sudoku4-info-label {
        display: block;
        color: #6c757d;
        font-size: 12px;
    }
    .nexoia-sudoku4-info-value {
        display: block;
        margin-top: 3px;
        font-size: 21px;
        font-weight: bold;
    }
    /* ================================================================
   ESTADO
   ================================================================ */
    .nexoia-sudoku4-status {
        text-align: center;
        min-height: 27px;
        margin-bottom: 15px;
        font-size: 17px;
        font-weight: 600;
    }
    /* ================================================================
   TABLERO
   ================================================================ */
    .nexoia-sudoku4-board {
        width: min(90vw, 420px);
        aspect-ratio: 1 / 1;
        margin:
            0 auto 22px;
        display: grid;
        grid-template-columns:
            repeat(4, 1fr);
        grid-template-rows:
            repeat(4, 1fr);
        border:
            4px solid #212529;
        border-radius: 8px;
        overflow: hidden;
        background: #212529;
    }
    /* ================================================================
   CELDAS
   ================================================================ */
    .nexoia-sudoku4-cell {
        position: relative;
        border: 1px solid #adb5bd;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size:
            clamp(30px,
                9vw,
                55px);
        font-weight: 700;
        cursor: pointer;
        color: #6f42c1;
        padding: 0;
        outline: none;
    }
    /* Separación de bloques 2x2 */
    .nexoia-sudoku4-cell:nth-child(2),
    .nexoia-sudoku4-cell:nth-child(6),
    .nexoia-sudoku4-cell:nth-child(10),
    .nexoia-sudoku4-cell:nth-child(14) {
        border-right:
            3px solid #212529;
    }
    .nexoia-sudoku4-cell:nth-child(5),
    .nexoia-sudoku4-cell:nth-child(6),
    .nexoia-sudoku4-cell:nth-child(7),
    .nexoia-sudoku4-cell:nth-child(8) {
        border-bottom:
            3px solid #212529;
    }
    /* ================================================================
   CELDAS FIJAS
   ================================================================ */
    .nexoia-sudoku4-cell.fija {
        background: #e9ecef;
        color: #212529;
        cursor: default;
    }
    /* ================================================================
   CELDAS SELECCIONADAS
   ================================================================ */
    .nexoia-sudoku4-cell.seleccionada {
        background: #e0cffc;
    }
    /* ================================================================
   CELDAS RELACIONADAS
   ================================================================ */
    .nexoia-sudoku4-cell.relacionada {
        background: #f3effb;
    }
    /* ================================================================
   ERROR
   ================================================================ */
    .nexoia-sudoku4-cell.error {
        background: #f8d7da;
        color: #dc3545;
    }
    /* ================================================================
   CORRECTA
   ================================================================ */
    .nexoia-sudoku4-cell.correcta {
        background: #d1e7dd;
        color: #198754;
    }
    /* ================================================================
   NÚMEROS
   ================================================================ */
    .nexoia-sudoku4-numeros {
        display: grid;
        grid-template-columns:
            repeat(4, 1fr);
        gap: 10px;
        max-width: 420px;
        margin: 0 auto 20px;
    }
    .nexoia-sudoku4-numero {
        aspect-ratio: 1 / 1;
        border: 0;
        border-radius: 10px;
        background: #f1f3f5;
        color: #212529;
        font-size: 24px;
        font-weight: 700;
        cursor: pointer;
        transition: .15s;
    }
    .nexoia-sudoku4-numero:hover {
        background: #e0cffc;
    }
    .nexoia-sudoku4-numero:active {
        transform:
            scale(.94);
    }
    /* ================================================================
   ACCIONES
   ================================================================ */
    .nexoia-sudoku4-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }
    .nexoia-sudoku4-secondary {
        background: #6c757d;
    }
    .nexoia-sudoku4-secondary:hover {
        background: #565e64;
    }
    /* ================================================================
   RESULTADO
   ================================================================ */
    .nexoia-sudoku4-result {
        display: none;
        text-align: center;
        padding: 18px;
        background: #f8f9fa;
        border-radius: 12px;
        margin-top: 15px;
    }
    .nexoia-sudoku4-result-icon {
        font-size: 48px;
    }
    .nexoia-sudoku4-result h3 {
        margin:
            8px 0 15px;
        font-size: 24px;
    }
    /* ================================================================
   AYUDA
   ================================================================ */
    .nexoia-sudoku4-help {
        text-align: center;
        color: #6c757d;
        font-size: 13px;
        line-height: 1.5;
    }
    /* ================================================================
   MÓVIL
   ================================================================ */
    @media(max-width:600px) {
        .nexoia-sudoku4-content {
            padding: 15px;
        }
        .nexoia-sudoku4-controls {
            flex-direction: column;
        }
        .nexoia-sudoku4-select,
        .nexoia-sudoku4-button {
            width: 100%;
        }
    }
