/**
 * ========================================================================
 * ARCHIVO: modales.css
 * PROYECTO: MOTELWEB.VIP
 * VERSIÓN: 1.4.0
 * FECHA DE PRODUCCIÓN: 2026-09-15
 * DESCRIPCIÓN: Estilos de todos los modales de administración.
 * ========================================================================
 */

/* ============================================================
   MODAL: Diseño de Colores (modal_diseno_colores.php)
   ============================================================ */

.switch-custom {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch-custom input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-custom {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: 0.4s;
    border-radius: 24px;
}

.slider-custom:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider-custom {
    background-color: #D4AF37;
}

input:checked+.slider-custom:before {
    transform: translateX(26px);
}

/* ============================================================
   MODAL: Info Básica (modal_info_basico.php)
   ============================================================ */

.nxs-form-group {
    margin-bottom: 20px;
}

.nxs-label {
    display: block;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.nxs-input,
.nxs-select {
    width: 100%;
    padding: 2px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

.nxs-input:focus,
.nxs-select:focus {
    outline: none;
    border-color: #D4AF37;
}

textarea.nxs-input {
    resize: vertical;
    min-height: 80px;
}

.nxs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

@media (max-width: 600px) {
    .nxs-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MODAL: Info Habitación (modal_info_habitacion.php)
   ============================================================ */

.nxs-hab-group {
    margin-bottom: 15px;
}

.nxs-hab-label {
    display: block;
    color: #bbb;
    font-size: 0.80rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.nxs-hab-input,
.nxs-hab-select {
    width: 100%;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.nxs-hab-input:focus,
.nxs-hab-select:focus {
    border-color: #D4AF37;
}

.nxs-grid-hab {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #0a0a0a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #222;
    margin-bottom: 15px;
    align-items: center;
}

/* Quill editor en tema oscuro */
.ql-toolbar.ql-snow {
    border: 1px solid #333;
    background: #1a1a1a;
    border-radius: 6px 6px 0 0;
}

.ql-container.ql-snow {
    border: 1px solid #333;
    background: #1a1a1a;
    border-radius: 0 0 6px 6px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    min-height: 120px;
}

.ql-snow .ql-stroke {
    stroke: #bbb;
}

.ql-snow .ql-fill {
    fill: #bbb;
}

.ql-snow .ql-picker {
    color: #bbb;
}

/* Switch de estado (habilitada / inhabilitada) */
#hab-estado:checked+.nxs-slider {
    background-color: #2ecc71;
}

.nxs-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

#hab-estado:checked+.nxs-slider:before {
    transform: translateX(22px);
}

/* ============================================================
   MODAL: Medios de Pago (modal_info_medios_pago.php)
   ============================================================ */

.nxs-checkbox-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
}

.nxs-checkbox-label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    transition: border-color 0.3s;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.nxs-checkbox-label:hover {
    border-color: #D4AF37;
}

.nxs-checkbox-input {
    margin-right: 12px !important;
    margin-bottom: 0 !important;
    width: 18px;
    height: 18px;
    accent-color: #D4AF37;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .nxs-checkbox-grid {
        grid-template-columns: 1fr !important;
    }
}

.nxs-checkbox-label span {
    color: #fff !important;
}

/* ============================================================
   MODAL: Admisión / Gay Friendly (modal_info_admision.php)
   ============================================================ */

.adm-section-title {
    color: #D4AF37;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-left: 3px solid #D4AF37;
    padding-left: 10px;
}

.adm-check-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.adm-label-check {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    cursor: pointer;
    transition: 0.3s;
    color: #fff;
}

.adm-label-check:hover {
    border-color: #555;
}

.adm-label-check input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #D4AF37;
}

.adm-input-group {
    margin-bottom: 20px;
}

.adm-input-group label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.adm-input {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    outline: none;
}

.adm-input:focus {
    border-color: #D4AF37;
}

.adm-input:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================================
   MODAL: Servicios del Motel (modal_info_servicios.php)
   ============================================================ */

.nxs-srv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.nxs-srv-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #fff;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.nxs-srv-label:hover {
    border-color: #D4AF37;
}

.nxs-srv-input {
    margin-top: 3px;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #D4AF37;
    cursor: pointer;
    flex-shrink: 0;
}

.nxs-srv-text {
    display: flex;
    flex-direction: column;
}

.nxs-srv-title {
    font-size: 1rem;
    font-weight: bold;
}

.nxs-srv-desc {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .nxs-srv-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MODAL: Horarios (modal_info_horario.php)
   ============================================================ */

.nxs-form-group {
    margin-bottom: 15px;
}

.nxs-label {
    display: block;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.nxs-select {
    width: 100%;
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    transition: border-color 0.3s;
}

.nxs-select:focus {
    outline: none;
    border-color: #D4AF37;
}

.nxs-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .nxs-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nxs-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MODAL: Decoración del Motel (modal_info_deco.php)
   ============================================================ */

.nxs-deco-group {
    margin-bottom: 20px;
}

.nxs-deco-label {
    display: block;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.nxs-deco-input,
.nxs-deco-textarea {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.nxs-deco-input:focus,
.nxs-deco-textarea:focus {
    border-color: #D4AF37;
}

.nxs-deco-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================================
   MODAL: Cropper (modal_cropper.php)
   ============================================================ */

.nxs-cropper-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100002;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nxs-cropper-container {
    background: #111;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.nxs-cropper-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nxs-cropper-title {
    color: #D4AF37;
    margin: 0;
    font-weight: 900;
}

.nxs-cropper-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
}

.nxs-cropper-body {
    padding: 20px;
    text-align: center;
}

.nxs-cropper-textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    resize: none;
    min-height: 60px;
    outline: none;
    margin-bottom: 15px;
    padding: 10px;
}

.nxs-cropper-file-input {
    display: none;
}

.nxs-cropper-btn-elegir {
    background: #222;
    border: 2px dashed #D4AF37;
    color: #D4AF37;
    padding: 30px;
    width: 100%;
    border-radius: 8px;
}

.nxs-cropper-canvas {
    display: none;
    max-height: 50vh;
    margin-top: 15px;
}

.nxs-cropper-canvas img {
    max-width: 100%;
    display: block;
}

.nxs-cropper-footer {
    padding: 15px 20px;
    border-top: 1px solid #333;
    background: #0a0a0a;
    text-align: right;
}

.nxs-cropper-btn-cancelar {
    color: #888;
}

.nxs-cropper-btn-guardar {
    background: #2ecc71;
    color: #000;
    font-weight: bold;
    display: none;
}

/* ============================================================
   MODAL: Login Admin (modal_log_admin.php)
   ============================================================ */

.nxs-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.nxs-login-container {
    background: linear-gradient(145deg, #111111 0%, #0a0a0a 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.nxs-login-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.nxs-login-logo {
    text-align: center;
}

.nxs-login-logo img {
    /* Sin estilos extra, la imagen se ajusta sola */
}

.nxs-login-title-wrap {
    margin: 20px auto;
}

.nxs-login-title {
    color: #db8b00;
    margin-bottom: 5px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nxs-login-subtitle {
    color: #fff;
    margin-bottom: 20px;
    text-shadow: none;
    font-size: 1.1rem;
    font-weight: normal;
}

.nxs-login-msg {
    font-weight: bold;
    font-size: 11pt;
    margin-bottom: 15px;
    min-height: 25px;
}

.nxs-login-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
}

.nxs-login-password-wrap {
    position: relative;
    margin-bottom: 25px;
}

.nxs-login-password {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
}

.nxs-login-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 1.2rem;
}

.nxs-login-submit {
    width: 100%;
    padding: 12px;
    background: #db8b00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

/* ============================================================
   MODAL: Galería (modal_gallery.php)
   ============================================================ */

/* === GALERÍA === */
.gallery-item {
    position: relative;
    height: max-content;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #222;
    cursor: grab;
    border: 2px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

.gallery-item:hover {
    border-color: #D4AF37;
}

.gallery-item:active {
    cursor: grabbing;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === BOTÓN BORRAR === */
.btn-del-media {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.btn-del-media:hover {
    background: rgb(220, 53, 69);
    transform: scale(1.1);
}

/* === BADGE DECO === */
.badge-deco-status {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #D4AF37;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 20px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
}

.badge-deco-status:hover {
    background: #D4AF37;
    color: #000;
    transform: scale(1.05);
}

/* === BADGE NUEVO === */
.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #2ecc71;
    color: #000;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 4px;
    z-index: 10;
    animation: pulse-green 1s ease-out;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === SWITCH DE SUBIDA (decoración) === */
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #D4AF37;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* ============================================================
   MODAL: Registro de Motel (modal_registro.php)
   ============================================================ */

.nxs-reg-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.nxs-reg-container {
    background: #1a1a1a;
    width: 90%;
    margin: 40px auto;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    border: 1px solid #D4AF37;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nxs-reg-header {
    background: #000;
    padding: 1rem;
    border-bottom: 1px solid #D4AF37;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nxs-reg-header h3 {
    color: #D4AF37;
    margin: 0;
}

.nxs-reg-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.nxs-reg-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.nxs-reg-body .form-group {
    margin-bottom: 1rem;
}

.nxs-reg-body .form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.nxs-reg-body .form-group input,
.nxs-reg-body .form-group select {
    width: 100%;
    padding: 0.6rem;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
}

.nxs-reg-body .form-group input.error,
.nxs-reg-body .form-group select.error {
    border-color: #ff4444;
}

.nxs-reg-body .error-message {
    color: #ff4444;
    font-size: 0.75rem;
    display: none;
    margin-top: 0.2rem;
}

.nxs-reg-body .row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.nxs-reg-body .row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.nxs-reg-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.nxs-reg-stepper .step {
    flex: 1;
    text-align: center;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
}

.nxs-reg-stepper .step.active {
    color: #D4AF37;
    border-bottom: 2px solid #D4AF37;
}

.nxs-reg-stepper .step.completed {
    color: #D4AF37;
}

.nxs-reg-form-step {
    display: none;
}

.nxs-reg-form-step.active-step {
    display: block;
}

.nxs-reg-btn-gold {
    background: #D4AF37;
    color: #000;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

.nxs-reg-btn-outline-gold {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

.nxs-reg-step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}

.nxs-reg-otro-input-container {
    margin-top: 0.5rem;
}

.nxs-reg-otro-input-container input {
    width: 100%;
    padding: 0.5rem;
    background: #222;
    border: 1px solid #D4AF37;
    color: #fff;
    border-radius: 8px;
}

.nxs-reg-checkbox-group {
    margin: 1rem 0;
}

.nxs-reg-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    cursor: pointer;
}

.nxs-reg-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: #D4AF37;
    animation: nxs-reg-spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes nxs-reg-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .nxs-reg-body .row {
        flex-direction: column;
        gap: 0;
    }

    .nxs-reg-step-buttons {
        flex-direction: column;
    }
}

/* ============================================================
   MODAL: Diseño unificado (modal_diseno.php)
   ============================================================ */

.nxs-diseno-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.nxs-diseno-container {
    background: #111;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.nxs-diseno-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    background: #0a0a0a;
    padding: 0 20px;
}

.nxs-diseno-tabs {
    display: flex;
    gap: 5px;
}

.nxs-diseno-tab {
    background: none;
    border: none;
    color: #888;
    padding: 18px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nxs-diseno-tab:hover {
    color: #fff;
}

.nxs-diseno-tab.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

.nxs-diseno-tab i {
    margin-right: 8px;
}

.nxs-diseno-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.nxs-diseno-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.nxs-diseno-panel {
    display: none;
}

.nxs-diseno-panel.active {
    display: block;
}

.nxs-diseno-section-title {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* === Panel Plantilla === */
.nxs-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.nxs-template-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.nxs-template-card:hover {
    border-color: #555;
}

.nxs-template-card.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
}

.nxs-template-card.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 12px;
    color: #D4AF37;
    font-size: 0.95rem;
}

.nxs-template-card-name {
    color: #fff;
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.nxs-template-card-desc {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* === Panel Colores === */
.nxs-colores-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
}

.nxs-colores-lista {
    border-right: 1px solid #222;
    padding-right: 25px;
}

.item-color {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.item-color:hover {
    background: #161616;
}

.item-color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.item-color span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
}

.nxs-colores-editor {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.nxs-colores-empty {
    color: #666;
    font-size: 1rem;
}

.nxs-colores-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    display: block;
}

.nxs-colores-controls {
    display: none;
}

.nxs-colores-controls h3 {
    color: #fff;
    margin-bottom: 25px;
}

.nxs-colores-controls #master-picker {
    width: 120px;
    height: 120px;
    border: none;
    background: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.nxs-hex-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.nxs-hex-wrap #hex-valor {
    width: 150px;
    text-align: center;
    background: #222;
    border: 1px solid #444;
    color: #D4AF37;
    font-family: monospace;
    font-size: 1.4rem;
    border-radius: 8px;
    padding: 10px;
}

.nxs-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.nxs-switch-row span {
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
}

/* === Footer === */
.nxs-diseno-footer {
    padding: 15px 25px;
    border-top: 1px solid #333;
    background: #0a0a0a;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.nxs-btn-cancel {
    padding: 12px 25px;
    border-radius: 8px;
    border: 1px solid #555;
    background: #222;
    color: #ccc;
    cursor: pointer;
    font-weight: bold;
}

.nxs-btn-save {
    padding: 12px 30px;
    border-radius: 8px;
    background: #D4AF37;
    color: #000;
    font-weight: 900;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .nxs-colores-layout {
        grid-template-columns: 1fr;
    }

    .nxs-colores-lista {
        border-right: none;
        border-bottom: 1px solid #222;
        padding-right: 0;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .nxs-template-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PANEL LAYOUT (dentro de modal_diseno.php)
   ============================================================ */

.nxs-layout-module {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #222;
}

.nxs-layout-module:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nxs-layout-option {
    margin-bottom: 20px;
}

.nxs-layout-option:last-child {
    margin-bottom: 0;
}

.nxs-layout-option-label {
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.nxs-layout-option-desc {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.nxs-layout-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nxs-layout-radio-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: #ccc;
    user-select: none;
}

.nxs-layout-radio-item:hover {
    border-color: #555;
}

.nxs-layout-radio-item.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.08);
    color: #fff;
}

.nxs-layout-radio-item input {
    margin: 0;
    accent-color: #D4AF37;
    cursor: pointer;
}

/* ============================================================
   LAYOUT — Selector de color
   ============================================================ */

.nxs-layout-color-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nxs-layout-color-wrap input[type="color"] {
    width: 60px;
    height: 45px;
    border: 2px solid #333;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 2px;
    margin: 0;
}

.nxs-layout-color-wrap input[type="color"]:hover {
    border-color: #555;
    margin: 0;
}

.nxs-layout-color-wrap input[type="text"] {
    width: 120px;
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #D4AF37;
    font-family: monospace;
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.nxs-layout-btn-reset {
    padding: 10px 18px;
    background: #222;
    border: 1px solid #444;
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.2s;
}

.nxs-layout-btn-reset:hover {
    background: #333;
    color: #fff;
    border-color: #666;
}

/* ============================================================
   LAYOUT — Galería: vista previa de opciones
   ============================================================ */

/* Nota: esta sección es opcional. Solo mejora la visualización
   del panel cuando hay muchos radios. */

/* ============================================================
   LAYOUT — Selector de color con alpha
   ============================================================ */

.nxs-layout-alpha-select {
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.nxs-layout-alpha-select:focus {
    border-color: #D4AF37;
}

.nxs-layout-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}