:root {
    --bg-dark: #0a0a0b;
    --card-dark: #141417;
    --orange-neon: #ffa200;
    --text-white: #ffffff;
    --text-gray: #a0a0a5;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    margin: 0;
}

/* BARRA DE NAVEGACIÓN SUPERIOR */
.editor-top-nav {
    background: rgba(20, 20, 23, 0.5);
    backdrop-filter: blur(10px);
}

.btn-back-editor {
    color: var(--text-gray);
    transition: all 0.3s ease;
    padding: 5px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.btn-back-editor:hover {
    color: var(--orange-neon);
    background: rgba(255, 162, 0, 0.08);
}

.btn-back-editor:hover i {
    transform: translateX(-4px);
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.editor-card {
    background: var(--card-dark);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6);
    max-width: 1300px !important;
    width: 100%;
}

.bg-preview {
    background: #000;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.canvas-wrapper {
    background-color: #080808;
    background-image: radial-gradient(rgba(255, 162, 0, 0.1) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    border-radius: 24px;
    border: 1px solid #222;
    width: 100%;
    max-width: 650px;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
}

.section-title {
    color: var(--text-white) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* BOTONES DE OPCIÓN (DIMENSIONES Y ACABADOS) */
.btn-option {
    background: #1c1c21;
    border: 1px solid #2d2d35;
    border-radius: 16px;
    color: var(--text-gray);
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 115px;
    padding: 15px 5px !important;
    text-align: center;
}

.btn-option.active {
    background: rgba(255, 162, 0, 0.15) !important;
    border-color: var(--orange-neon) !important;
    color: var(--text-white) !important;
}

.text-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 8px 0;
    line-height: 1.2;
}

.price-tag {
    display: inline-block;
    color: var(--orange-neon);
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 10px;
    border-radius: 5px;
    margin-top: auto;
}

.btn-option i {
    color: var(--text-gray);
    line-height: 1;
    height: 30px;
    display: flex;
    align-items: center;
}

.btn-option.active i {
    color: var(--orange-neon);
}

/* ESTADO BLOQUEADO */
.btn-option:disabled {
    opacity: 0.4 !important;
    filter: grayscale(1) blur(0.4px);
    background: #15151a !important;
    border: 1px dashed #333 !important;
    cursor: not-allowed;
}

.btn-option:disabled::after {
    content: "\F471";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.7rem;
    color: var(--orange-neon);
}

/* PANEL DE PEDIDO */
.order-panel {
    background: rgba(28, 28, 33, 0.8);
    border: 1px solid rgba(255, 162, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
}

.label-qty {
    display: block;
    color: var(--text-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-amount {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--orange-neon);
    text-shadow: 0 0 15px rgba(255, 162, 0, 0.2);
}

/* CONTENEDOR Y BOTONES DE CANTIDAD PERSONALIZADOS */
.qty-input-container {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2px;
    transition: border-color 0.3s ease;
}

.qty-input-container:focus-within {
    border-color: var(--orange-neon);
    box-shadow: 0 0 8px rgba(255, 162, 0, 0.2);
}

.input-qty-modern {
    margin-top: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--orange-neon);
    font-weight: 900;
    font-size: 1.4rem;
    outline: none !important;
    padding: 8px 0;
    width: 40px !important;
}

/* Ocultar las flechas nativas feas del navegador */
.input-qty-modern::-webkit-outer-spin-button,
.input-qty-modern::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-qty-modern {
    -moz-appearance: textfield;
}

/* Botones de las flechas personalizados */
.qty-btn {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(255, 162, 0, 0.15);
    color: var(--orange-neon);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-btn i {
    font-size: 0.85rem;
    font-weight: bold;
}

/* BOTONES DE ACCIONES ADICIONALES */
.btn-orange-action {
    background: var(--orange-neon);
    color: #000;
    font-weight: 900;
    padding: 18px;
    border-radius: 18px;
    border: none;
    transition: 0.3s;
}

.btn-orange-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 162, 0, 0.3);
}

.btn-ready-modern {
    background: #28a745;
    color: white;
    border-radius: 14px;
    padding: 12px;
    border: none;
    font-weight: 600;
}

/* ACABADOS */
.dot { width: 28px; height: 28px; border-radius: 50%; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.1); }
.mate { background: #444; }
.brillante { background: #fff; box-shadow: 0 0 10px #fff; }
.holo { background: linear-gradient(45deg, #00d4ff, #ff00ea); }
.glitter { background: radial-gradient(circle, #fff 1px, transparent 1px), #777; background-size: 4px 4px; }

.qty-notice-box {
    color: #ffd27f;
    background: rgba(255, 210, 127, 0.08);
    padding: 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    border-left: 4px solid var(--orange-neon);
}

.btn-dark-modern { background: #1c1c21; color: white; border: 1px solid #333; padding: 12px; border-radius: 14px; }
.btn-outline-modern { border: 1px solid #333; color: white; padding: 12px 20px; border-radius: 14px; }

.text-orange { color: var(--orange-neon); }
.bg-orange-glow { background: var(--orange-neon); color: black; font-weight: 800; font-size: 0.7rem; padding: 4px 10px; }

@media (max-width: 992px) {
    .bg-preview { border-right: none; border-bottom: 1px solid #222; }
}