:root {
            --bg: #0f172a;
            --card: #1e293b;
            --text: #f1f5f9;
            --accent: #3b82f6;
            --success: #10b981;
            --promo: #f59e0b;
            --danger: #ef4444;
            --input-bg: rgba(30, 41, 59, 0.7);
            --radius: 18px;
            --radius-btn: 999px;
            --font-body: 'Inter', system-ui, -apple-system, sans-serif;
            --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
            --page-max: 1240px;
            --border-color: rgba(255,255,255,0.08);
            --card-shadow: 0 10px 30px rgba(0,0,0,0.18);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        body.light {
            --bg: #f8fafc;
            --card: #ffffff;
            --text: #0f172a;
            --accent: #2563eb;
            --input-bg: #f1f5f9;
            --border-color: rgba(15, 23, 42, 0.08);
            --card-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
        }
        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            outline: none;
        }
        body {
            margin: 0;
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--text);
            transition: var(--transition);
            overflow-x: hidden;
            translate: none !important;
        }
        .flex-between { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
        }
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            background: var(--card);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 25px rgba(0,0,0,0.3);
            height: 68px;
        }
        .header-left { display: flex; align-items: center; gap: 12px; }
        .main-logo { height: 48px; width: auto; transition: transform 0.3s; cursor: pointer; }
        .main-logo:hover { transform: scale(1.05); }
        .header-icons { display: flex; gap: 10px; align-items: center; }
        .icon-btn {
            cursor: pointer;
            font-size: 23px;
            padding: 8px;
            border-radius: 50%;
            color: var(--text);
            transition: var(--transition);
            border: none;
            background: transparent;
        }
        .icon-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
        
        .hero {
            height: 420px;
            position: relative;
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            left: 50%;
            transform: translateX(-50%);
            overflow: hidden;
            background-color: #0f172a;
        }
        @media (max-width: 768px) {
            .hero { height: 280px; }
            header { height: 62px; }
        }
        .hero-slide {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            transition: opacity 1.2s ease-in-out;
            opacity: 0;
        }
        .hero-slide.active { opacity: 1; }
        .hero-content {
            position: relative;
            z-index: 2;
            height: 100%;
            background: transparent;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .hero-content h1, .hero-content p { display: none; }

        .cat-scroll {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding: 14px 20px;
            scrollbar-width: none;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            cursor: grab;
        }
        .cat-scroll::-webkit-scrollbar { display: none; }
        .cat-item {
            flex: 0 0 auto;
            padding: 9px 18px;
            border-radius: 20px;
            background: #1e293b;
            font-size: 13.5px;
            cursor: pointer;
            white-space: nowrap;
            color: white;
            transition: 0.2s;
            font-weight: 500;
        }
        .cat-item:hover { background: #334155; }
        .cat-item.active { background: var(--accent); color: white; }
        .search-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px 15px;
            position: relative;
        }
        .search-bar {
            width: 100%;
            padding: 18px 25px;
            font-size: 16px;
            border: none;
            border-radius: 9999px;
            background: var(--input-bg);
            color: var(--text);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        .search-bar:focus { box-shadow: 0 0 0 3px var(--accent); }
        .search-suggestions {
            display: none;
            position: absolute;
            top: 100%;
            left: 20px;
            right: 20px;
            background: var(--card);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            margin-top: 6px;
            max-height: 320px;
            overflow-y: auto;
            z-index: 500;
            box-shadow: 0 10px 30px rgba(0,0,0,0.35);
        }
        .suggestion-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 15px;
            cursor: pointer;
        }
        .suggestion-item:hover { background: rgba(255,255,255,0.06); }
        .suggestion-item img {
            width: 36px; height: 36px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
        }
        .products-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            padding: 20px;
            max-width: 1400px;
            margin: auto;
        }
        @media (min-width: 768px) {
            .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
        }
        .product-card {
            background: var(--card);
            border-radius: var(--radius);
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            cursor: pointer;
        }
        .product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
        .promo-badge {
            position: absolute;
            top: 15px; left: 15px;
            background: var(--promo);
            color: #000;
            font-size: 11px;
            font-weight: 900;
            padding: 6px 14px;
            border-radius: 12px;
            z-index: 5;
        }
        .badge-destacado, .badge-nuevo {
            position: absolute;
            right: 15px;
            font-size: 11px;
            font-weight: 900;
            padding: 6px 14px;
            border-radius: 12px;
            z-index: 5;
        }
        .badge-destacado { top: 15px; background: #f59e0b; color: #000; }
        .badge-nuevo { top: 55px; background: #10b981; color: #fff; }
        .badge-agotado-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 6;
            border-radius: inherit;
        }
        .badge-agotado-overlay span {
            background: var(--danger);
            color: #fff;
            font-weight: 900;
            font-size: 12px;
            letter-spacing: 1px;
            padding: 8px 18px;
            border-radius: 10px;
            transform: rotate(-8deg);
        }
        .img-box {
            background: #fff;
            height: 225px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
            position: relative;
            overflow: hidden;
            position: relative;
        }
        .img-box img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: opacity 0.6s ease-in-out;
        }
        .product-card:hover .img-box img { transform: scale(1.08); }
        .info-box { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
        .prod-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; min-height: 45px; line-height: 1.4; }
        .price-val { font-size: 26px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
        .stock-info {
            font-size: 13px;
            color: var(--success);
            font-weight: 700;
            margin-bottom: 15px;
        }
        .stock-info.stock-bajo { color: var(--promo); animation: pulseBajoStock 1.4s ease-in-out infinite; }
        @keyframes pulseBajoStock { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
        .btn-avisar { background: #475569 !important; }
        .btn-add {
            background: var(--accent);
            color: white;
            border: none;
            padding: 18px;
            border-radius: 16px;
            font-weight: 800;
            width: 100%;
            cursor: pointer;
            transition: var(--transition);
            font-size: 15px;
        }
        .btn-add:hover { filter: brightness(1.1); }

        /* MODAL DETALLE */
        body.modal-open { overflow: hidden; }
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.94);
            display: none;
            justify-content: center;
            align-items: flex-start;
            z-index: 7000;
            padding: 20px;
            overflow-y: auto;
        }
        .modal-contenido {
            display: flex;
            margin: 40px auto;
            max-width: 1100px;
            width: 95%;
            border-radius: 24px;
            overflow: hidden;
            background: var(--card);
            position: relative;
        }
        @media (max-width: 768px) {
            .modal-contenido { flex-direction: column; margin: 20px auto; }
        }
        .detalle-imagenes { flex: 1; padding: 20px; }
        .detalle-info { flex: 1; padding: 20px; }
        .detalle-imagenes img { width: 100%; height: auto; margin-bottom: 10px; border-radius: 10px; }
        .detail-main-img {
            max-width: 100%;
            max-height: 480px;
            object-fit: contain;
            margin-bottom: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            transition: opacity 0.4s ease;
            background: #fff;
        }
        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 32px;
            color: var(--text);
            background: none;
            border: none;
            cursor: pointer;
            z-index: 10000;
            line-height: 1;
        }
        .thumbnails {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
            padding: 10px 0;
        }
        .thumb {
            width: 72px;
            height: 72px;
            border: 3px solid transparent;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s;
            background: #fff;
        }
        .thumb img { width: 100%; height: 100%; object-fit: contain; }
        .thumb.active { border-color: var(--accent); transform: scale(1.08); }
        .detail-title { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
        .detail-price { font-size: 34px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
        .detail-stock {
            font-size: 15px;
            background: rgba(16,185,129,0.15);
            color: var(--success);
            padding: 6px 14px;
            border-radius: 9999px;
            width: fit-content;
            margin-bottom: 25px;
        }
        .detail-qty { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
        .qty-btn {
            width: 48px; height: 48px; border: none; background: var(--accent);
            color: white; border-radius: 14px; cursor: pointer; font-weight: 800; font-size: 24px;
        }
        .detail-btn { margin-bottom: 30px; }
        .detail-sections details {
            margin-bottom: 12px;
            border-radius: 16px;
            overflow: hidden;
            background: rgba(255,255,255,0.03);
        }
        .detail-sections summary {
            padding: 18px 22px;
            font-weight: 700;
            font-size: 17px;
            cursor: pointer;
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .detail-sections summary::-webkit-details-marker { display: none; }
        .detail-sections summary:after { content: "▼"; font-size: 14px; transition: 0.3s; }
        .detail-sections details[open] summary:after { transform: rotate(180deg); }
        .detail-sections .detail-content {
            padding: 0 22px 22px;
            line-height: 1.7;
            font-size: 15.5px;
            color: #e2e8f0;
        }
        
        /* OTROS MODALES Y COMPONENTES */
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.94);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 7000;
            padding: 20px;
            overflow: hidden;
        }
        .modal-content {
            background: var(--card);
            padding: 0;
            border-radius: 24px;
            overflow: hidden;
        }
        .admin-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 25px;
            background: rgba(0,0,0,0.2);
            padding: 6px;
            border-radius: 18px;
            flex-wrap: wrap;
        }
        .tab-btn {
            flex: 1;
            padding: 14px 12px;
            border-radius: 14px;
            background: transparent;
            color: #94a3b8;
            border: none;
            cursor: pointer;
            font-weight: 700;
            font-size: 13px;
            text-align: center;
        }
        .tab-btn.active { background: var(--card); color: var(--accent); }
        .admin-subtabs {
            display: flex;
            gap: 6px;
            margin-bottom: 20px;
            background: rgba(0,0,0,0.15);
            padding: 5px;
            border-radius: 14px;
            flex-wrap: wrap;
        }
        .subtab-btn {
            padding: 10px 16px;
            border-radius: 10px;
            background: transparent;
            color: #94a3b8;
            border: none;
            cursor: pointer;
            font-weight: 700;
            font-size: 12px;
        }
        .subtab-btn.active { background: var(--accent); color: #fff; }
        .admin-form-box {
            background: rgba(255,255,255,0.03);
            padding: 30px;
            border-radius: 30px;
            margin-bottom: 25px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .admin-item {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255,255,255,0.03);
            padding: 18px;
            border-radius: 20px;
            margin-bottom: 12px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .estado-pedido-track {
            display: flex;
            align-items: flex-start;
            width: 100%;
            margin-top: 12px;
        }
        .estado-pedido-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            flex: 0 0 auto;
            width: 72px;
        }
        .estado-pedido-dot {
            width: 30px; height: 30px;
            border-radius: 50%;
            background: rgba(255,255,255,0.08);
            display: flex; align-items: center; justify-content: center;
            font-size: 13px;
            opacity: 0.4;
        }
        .estado-pedido-step.activo .estado-pedido-dot { background: var(--success); opacity: 1; }
        .estado-pedido-label { font-size: 9.5px; text-align: center; opacity: 0.5; font-weight: 700; line-height: 1.25; }
        .estado-pedido-step.activo .estado-pedido-label { opacity: 0.9; }
        .estado-pedido-line {
            flex: 1;
            height: 3px;
            background: rgba(255,255,255,0.08);
            margin-top: 15px;
            border-radius: 2px;
        }
        .estado-pedido-line.activo { background: var(--success); }
        .admin-item-img {
            width: 60px;
            height: 60px;
            object-fit: contain;
            background: #fff;
            border-radius: 14px;
            padding: 6px;
            flex-shrink: 0;
        }
        #toast {
            position: fixed;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--success);
            color: white;
            padding: 14px 26px;
            border-radius: 50px;
            font-weight: 700;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            z-index: 9000;
            display: none;
            align-items: center;
            gap: 10px;
        }
        .drawer {
            position: fixed;
            top: 0;
            width: 90%;
            max-width: 420px;
            height: 100%;
            background: var(--card);
            transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 6000;
            padding: 0;
            display: flex;
            flex-direction: column;
            box-shadow: 0 0 60px rgba(0,0,0,0.8);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }
        #infoDrawer { left: -110%; }
        #infoDrawer.active { left: 0; }
        #cartDrawer { right: -110%; }
        #cartDrawer.active { right: 0; }
        .drawer-header {
            position: sticky;
            top: 0;
            background: var(--card);
            z-index: 10;
            padding: 25px 25px 20px 25px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            z-index: 5500;
        }
        .overlay.active { display: block; }
        .form-group { margin-bottom: 22px; }
        .form-group label {
            display: block;
            font-size: 11px;
            opacity: 0.5;
            margin-bottom: 8px;
            margin-left: 5px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            user-select: none;
        }
        input, select, textarea {
            width: 100%;
            padding: 18px;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.08);
            background: var(--input-bg);
            color: white;
            font-size: 16px;
        }
        input:focus, textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.05); }
        body.no-scroll { overflow: hidden; height: 100vh; }

/* ==================== PLANTILLA: utilidades de configuración ==================== */
/* Oculta el precio/consulta de stock cuando features.stockControl = false en config.js */
body.no-stock .stock-info,
body.no-stock .detail-stock { display: none; }

/* Oculta el campo de variantes en el panel admin cuando features.productVariants = false */
body.no-variants .variantes-field { display: none; }

/* ==================== DISEÑO / LAYOUT (pestaña DISEÑO del panel admin) ==================== */

/* --- Catálogo: columna única --- */
body.catalog-grid1 .products-grid { grid-template-columns: 1fr; }

/* --- Catálogo: lista compacta (modo mayorista/tabla) --- */
body.catalog-list .products-grid { grid-template-columns: 1fr; gap: 10px; max-width: 900px; }
body.catalog-list .product-card { flex-direction: row; align-items: center; }
body.catalog-list .product-card:hover { transform: none; }
body.catalog-list .img-box { width: 90px; height: 90px; min-width: 90px; padding: 8px; }
body.catalog-list .info-box { flex: 1; padding: 12px 16px; }
body.catalog-list .prod-title { font-size: 14px; min-height: 0; margin-bottom: 4px; }
body.catalog-list .price-val { font-size: 18px; margin-bottom: 4px; }
body.catalog-list .stock-info { margin-bottom: 8px; }
body.catalog-list .promo-badge { top: 4px; left: 4px; font-size: 9px; padding: 2px 6px; }
body.catalog-list .btn-add { padding: 10px 16px; font-size: 13px; align-self: flex-start; }

/* --- Header: no sticky (se va con el scroll normal) --- */
body.header-not-sticky header { position: static; }

/* --- Header: estilo flotante moderno vs barra tradicional (default = flotante) --- */
header { margin: 10px; border-radius: 20px; }
body.header-bar header { margin: 0; border-radius: 0; }

/* --- Efecto en las fotos: zoom al pasar el mouse --- */
body.img-effect-zoom .img-box img { transition: transform 0.4s ease; }
body.img-effect-zoom .product-card:hover .img-box img { transform: scale(1.12); }

/* --- Efecto en las fotos: degradé en las esquinas --- */
body.img-effect-gradient .img-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

/* --- Efecto glow/neón en las tarjetas --- */
body.glow-effect .product-card { box-shadow: 0 0 18px rgba(0,0,0,0.15), 0 0 22px var(--accent); }
body.glow-effect .product-card:hover { box-shadow: 0 0 28px var(--accent); }

/* --- Animación: sacudida del ícono del carrito al agregar un producto --- */
@keyframes shakeCartIcon {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-18deg); }
    40% { transform: rotate(14deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(6deg); }
}
.shake-cart { animation: shakeCartIcon 0.45s ease; display: inline-block; }

/* --- Carrito como ventana emergente centrada (modal) en vez de panel lateral --- */
body.cart-style-modal #cartDrawer {
    left: 50%; right: auto; top: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 92%; max-width: 480px; height: auto; max-height: 82vh;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
body.cart-style-modal #cartDrawer.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* --- Ocultar el campo de precio mayorista en el form de producto (modo "solo minorista") --- */
body.precio-mayorista-oculto .precio-mayorista-field { display: none; }

/* ===== Mejoras panel admin / galería / PWA ===== */
.download-links-list { display:flex; flex-direction:column; gap:10px; }
.download-link-row { display:grid; grid-template-columns:minmax(150px, .75fr) minmax(0, 1.4fr) 50px; gap:10px; align-items:center; }
.download-link-row input { min-width:0; }
.download-link-row button { width:50px; height:50px; border:1px solid rgba(239,68,68,.45); background:rgba(239,68,68,.10); color:var(--danger); border-radius:12px; font-size:20px; cursor:pointer; }
.download-link-add-btn { width:auto !important; margin-top:10px; }
.admin-collapsible-grid { display:grid; gap:12px; margin:0 0 22px; }
.admin-section-details { border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.025); border-radius:16px; overflow:hidden; }
.admin-section-details summary { padding:16px 18px; font-weight:800; cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; }
.admin-section-details summary::-webkit-details-marker { display:none; }
.admin-section-details summary::after { content:"▼"; font-size:12px; opacity:.65; transition:transform .2s ease; }
.admin-section-details[open] summary::after { transform:rotate(180deg); }
.admin-section-body { padding:0 14px 14px; }
.admin-section-body textarea { min-height:120px; }
.download-links-detail { display:flex; flex-direction:column; gap:10px; }
.download-link-btn { display:flex; align-items:center; justify-content:center; width:100%; padding:13px 16px; border-radius:12px; background:var(--accent); color:#fff; text-decoration:none; font-weight:800; }
.admin-form-box { padding:24px; }

/* ===== PANEL ADMIN: escritorio y móvil ===== */
#adminModal {
    padding: 16px;
    overflow: hidden;
    align-items: flex-start;
}
#adminModal .modal-content {
    width: min(1180px, 100%);
    max-width: 1180px;
    max-height: calc(100vh - 32px);
    margin: 16px auto !important;
    padding: 30px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
#adminModal .modal-content::-webkit-scrollbar { width: 8px; }
#adminModal .modal-content::-webkit-scrollbar-track { background: transparent; }
#adminModal .modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
#adminModal .modal-content::-webkit-scrollbar-thumb:hover { opacity: 0.8; }
#adminModal .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
#adminModal .tab-btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
}
#adminModal input,
#adminModal select,
#adminModal textarea {
    max-width: 100%;
}
@media (max-width: 900px) {
    #adminModal .tab-btn { flex: 0 0 auto; min-width: 125px; }
}
@media (max-width: 600px) {
    #adminModal { padding: 8px; }
    #adminModal .modal-content {
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 16px);
        margin: 8px auto !important;
        padding: 14px !important;
    }
}

.admin-product-search {
    display:flex; align-items:center; gap:10px; margin:0 0 15px;
}
.admin-product-search input { flex:1; min-width:0; }
.admin-search-count { font-size:12px; opacity:.55; white-space:nowrap; }
.admin-help { opacity:.55; font-size:11px; margin:6px 0 10px; line-height:1.45; user-select: none; }
.image-url-list { display:flex; flex-direction:column; gap:9px; }
.image-url-row { display:flex; align-items:center; gap:8px; }
.image-url-row input { flex:1; min-width:0; }
.image-url-row button {
    width:48px; height:48px; flex:0 0 48px; border:1px solid rgba(239,68,68,.45);
    background:rgba(239,68,68,.10); color:var(--danger); border-radius:12px;
    font-size:21px; cursor:pointer;
}
.image-url-row .image-number { width:28px; flex:0 0 28px; text-align:center; opacity:.45; font-size:12px; font-weight:800; }
.image-add-btn { background:var(--accent); margin-top:10px; width:auto !important; }
.image-host-btn { display:inline-block; margin-top:8px; background:var(--card); color:var(--text); border:1px solid rgba(255,255,255,.1); padding:10px 15px; border-radius:10px; text-decoration:none; font-size:13px; font-weight:800; }
.pwa-install-btn { border-radius:12px !important; font-size:20px !important; }
@media (max-width:600px) {
    .admin-product-search { align-items:stretch; flex-direction:column; }
    .admin-search-count { align-self:flex-end; }
}


/* ==================== ESTILO: CATEGORÍAS CON TARJETAS FOTOGRÁFICAS ==================== */
.cat-grid { display: none; }
.search-container { scroll-margin-top: 90px; }
body.estilo-fotos #catBar, body.estilo-mayorista #catBar { display: none; }
body.estilo-fotos .cat-grid, body.estilo-mayorista .cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px 20px;
}
@media (max-width: 700px) {
    body.estilo-fotos .cat-grid, body.estilo-mayorista .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 8px 14px 16px; }
}
.cat-photo {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1e293b;
    background-image: linear-gradient(135deg, var(--accent), #0f172a);
    background-size: cover;
    background-position: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Capa oscura translúcida: asegura que el texto blanco se lea sobre cualquier foto */
.cat-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.25s ease;
}
.cat-photo:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
.cat-photo:hover::before { background: rgba(0, 0, 0, 0.36); }
.cat-photo span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.25;
    padding: 0 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
@media (max-width: 700px) { .cat-photo span { font-size: 15px; } }
.cat-photo.active { outline: 3px solid var(--accent); outline-offset: -3px; }


/* ==================== DESCUENTO EN LAS TARJETAS DEL CATÁLOGO ==================== */
.price-old-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.price-old { color: #94a3b8; text-decoration: line-through; font-size: 14px; }
.badge-off { color: #ff1f3d; font-weight: 800; font-size: 13px; }

/* ==================== ESTILO: LIQUIDACIÓN Y OFERTAS (CARRUSEL) ==================== */
.of-sec { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.of-sec:empty { display: none; }
.of-head h2 { margin: 6px 0 14px; font-size: 22px; font-weight: 800; color: var(--text); }
.of-wrap { position: relative; }
.of-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 18px;
}
.of-track::-webkit-scrollbar { display: none; }
.of-card {
    flex: 0 0 230px;
    scroll-snap-align: start;
    background: #f1f2f4;
    color: #1f2937;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    text-align: left;
    cursor: pointer;
}
.of-img { height: 170px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.of-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.of-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}
.of-old { color: #9ca3af; text-decoration: line-through; font-size: 13px; margin-top: 8px; }
.of-price-row { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 12px; flex-wrap: wrap; }
.of-price { font-size: 22px; font-weight: 800; color: #111827; }
.of-off { color: #ff1f3d; font-weight: 800; font-size: 14px; }
.of-btn {
    margin-top: auto;
    width: 100%;
    background: #e11d2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.of-btn:hover { background: #c81426; }
.of-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.of-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 2;
    transition: opacity 0.2s;
}
.of-prev { left: -12px; }
.of-next { right: -12px; }
.of-arrow.of-off-arrow { opacity: 0; pointer-events: none; }
.of-sec.of-sin-scroll .of-arrow { display: none; }
@media (max-width: 700px) {
    .of-card { flex-basis: 165px; padding: 10px; }
    .of-img { height: 130px; }
    .of-price { font-size: 19px; }
    .of-arrow { width: 36px; height: 36px; font-size: 17px; }
    .of-prev { left: -6px; }
    .of-next { right: -6px; }
}


/* ==================== ETIQUETA "CANTIDAD MÍNIMA" ==================== */
.card-min {
    display: inline-block;
    align-self: flex-start;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

/* ==================== ESTILO: MENÚ LATERAL DE CATEGORÍAS ==================== */
#sideCats, .orden-bar { display: none; }

body.estilo-lateral #catalogoWrap {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}
body.estilo-lateral #catBar { display: none; }
body.estilo-lateral #sideCats {
    display: block;
    position: sticky;
    top: 90px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px 10px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
.side-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.55;
    padding: 4px 12px 10px;
}
.side-item {
    padding: 11px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 500;
    transition: background 0.2s;
}
.side-item:hover { background: rgba(255, 255, 255, 0.08); }
.side-item.active { background: var(--accent); color: #fff; font-weight: 700; }

/* Barra superior del catálogo: título a la izquierda, orden y filtro a la derecha */
body.estilo-lateral .orden-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 0 14px;
}
.orden-titulo { font-size: 15px; font-weight: 700; opacity: 0.85; }
.orden-ctl { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.orden-ctl select {
    width: auto;
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    cursor: pointer;
}
body.estilo-lateral #catalogoMain .search-container { padding-left: 0; padding-right: 0; }
body.estilo-lateral #catalogoMain .products-grid { padding: 12px 0 24px; }
@media (min-width: 801px) {
    body.estilo-lateral #catalogoMain .products-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
/* En celulares: sin columna lateral; se usan los chips de siempre */
@media (max-width: 800px) {
    body.estilo-lateral #catalogoWrap { display: block; padding: 0; }
    body.estilo-lateral #sideCats { display: none; }
    body.estilo-lateral #catBar { display: flex; }
    body.estilo-lateral .orden-bar { padding: 0 16px 12px; }
    .orden-ctl { margin-left: 0; width: 100%; }
    .orden-ctl select { flex: 1 1 0; min-width: 0; }
}

/* Tarjetas minimalistas */
body.estilo-lateral .product-card {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    text-align: center;
}
body.estilo-lateral .product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
body.estilo-lateral .info-box { padding: 14px; align-items: center; }
body.estilo-lateral .prod-title { text-align: center; font-size: 15px; min-height: 42px; color: #1f2937; }
body.estilo-lateral .price-val { font-size: 22px; color: var(--accent); margin-bottom: 8px; }
body.estilo-lateral .price-old-row { justify-content: center; }
body.estilo-lateral .card-min { align-self: center; }
body.estilo-lateral .stock-info:not(.stock-bajo) { display: none; }
body.estilo-lateral .btn-add { border-radius: 10px; padding: 12px; font-size: 14px; }


/* ==================== ESTILO: PORTAL / MAYORISTA ==================== */
#portalBanners:empty, #portalCtas:empty { display: none; }

/* Grilla de categorías compacta (3 columnas también en celular) */
body.estilo-mayorista .cat-grid.compacto { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-grid.compacto .cat-photo { aspect-ratio: 16 / 9; border-radius: 12px; }
.cat-grid.compacto .cat-photo::before { background: linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.18) 100%); }
.cat-grid.compacto .cat-photo:hover::before { background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%); }
.cat-grid.compacto .cat-photo span { color: var(--cat-texto, var(--accent)); font-size: 15px; padding: 0; }
.cat-grid.compacto.txt-izq .cat-photo { align-items: flex-start; justify-content: flex-start; text-align: left; }
.cat-grid.compacto.txt-izq .cat-photo span { padding: 10px 12px; }
.cat-grid.compacto.txt-centro .cat-photo::before { background: rgba(0, 0, 0, 0.5); }
@media (max-width: 700px) {
    body.estilo-mayorista .cat-grid.compacto { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 10px 14px; }
    .cat-grid.compacto .cat-photo { aspect-ratio: 1 / 1; border-radius: 10px; }
    .cat-grid.compacto .cat-photo span { font-size: 11px; }
    .cat-grid.compacto.txt-izq .cat-photo span { padding: 6px 7px; }
}

/* Banners horizontales del medio */
.portal-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6px 20px 20px;
}
.portal-banner {
    position: relative;
    aspect-ratio: 3 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    background-color: #1e293b;
    background-image: linear-gradient(135deg, var(--accent), #0f172a);
    background-size: cover;
    background-position: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portal-banner.sin-destino, .portal-cta.sin-destino { cursor: default; }
.portal-banner:not(.sin-destino):hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
.pb-titulo {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 28px 20px 14px;
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0));
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
@media (max-width: 700px) {
    .portal-banners { grid-template-columns: 1fr; padding: 4px 14px 16px; }
    .portal-banner { aspect-ratio: 16 / 7; }
    .pb-titulo { font-size: 17px; }
}

/* Accesos directos (CTA) del final */
.portal-ctas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    max-width: 1400px;
    margin: 10px auto 40px;
    padding: 0 20px;
}
.portal-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px 24px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.portal-cta:not(.sin-destino):hover { transform: translateY(-3px); filter: brightness(1.08); }
.portal-cta b { display: block; font-size: 18px; font-weight: 800; }
.portal-cta small { display: block; opacity: 0.85; margin-top: 4px; font-size: 13px; }
.portal-cta span { font-size: 26px; font-weight: 800; flex: none; }
@media (max-width: 700px) { .portal-ctas { padding: 0 14px; } }


/* ==================== ESTILO: E-COMMERCE TECH ==================== */
.hero-cta { display: none; }
#techPagos:empty, #techTabsWrap:empty { display: none; }
body.estilo-tech #catBar { display: none; }

/* Hero grande, con bordes redondeados y botón destacado */
body.estilo-tech .hero {
    width: auto;
    max-width: 1400px;
    height: 460px;
    margin: 14px auto 0;
    left: auto;
    transform: none;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
body.estilo-tech .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
body.estilo-tech .hero-content {
    align-items: flex-start;
    justify-content: center;
    padding: 0 56px;
    gap: 10px;
}
body.estilo-tech .hero-content h1,
body.estilo-tech .hero-content p { display: block; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); max-width: 560px; }
body.estilo-tech .hero-content h1 { font-size: 44px; font-weight: 900; line-height: 1.1; margin: 0; }
body.estilo-tech .hero-content p { font-size: 18px; opacity: 0.92; margin: 0 0 12px; }
body.estilo-tech .hero-content p:empty { display: none; }
body.estilo-tech .hero-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 14px 38px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease;
}
body.estilo-tech .hero-cta:hover { transform: translateY(-2px); filter: brightness(1.12); }
@media (max-width: 900px) {
    body.estilo-tech .hero { margin: 10px 14px 0; height: 300px; border-radius: 18px; }
    body.estilo-tech .hero-content { padding: 0 24px; }
    body.estilo-tech .hero-content h1 { font-size: 26px; }
    body.estilo-tech .hero-content p { font-size: 14px; }
    body.estilo-tech .hero-cta { padding: 12px 28px; font-size: 13px; }
}

/* Módulo de medios de pago, cuotas y promos */
.tech-pagos {
    display: flex;
    gap: 12px;
    max-width: 1400px;
    margin: 16px auto 0;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tech-pagos::-webkit-scrollbar { display: none; }
.tech-pago {
    flex: 1 0 240px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 14px 18px;
}
.tech-pago-ico {
    flex: none;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}
.tech-pago b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.tech-pago small { display: block; margin-top: 2px; font-size: 12.5px; opacity: 0.65; line-height: 1.3; }
@media (max-width: 700px) { .tech-pagos { padding: 0 14px; } .tech-pago { flex-basis: 220px; padding: 12px 14px; } }

/* Pestañas tipo píldora con flechas */
.tech-tabs-sec {
    position: relative;
    max-width: 1400px;
    margin: 18px auto 4px;
    padding: 0 20px;
}
.tech-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
}
.tech-tabs::-webkit-scrollbar { display: none; }
.tech-tab {
    flex: 0 0 auto;
    padding: 10px 22px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tech-tab:hover { background: rgba(255, 255, 255, 0.08); }
.tech-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tech-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #111827;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s;
}
.tech-prev { left: 4px; }
.tech-next { right: 4px; }
.tech-arrow.tech-off { opacity: 0; pointer-events: none; }
.tech-tabs-sec.tech-sin-scroll .tech-arrow { display: none; }
@media (max-width: 700px) {
    .tech-tabs-sec { padding: 0 14px; }
    .tech-arrow { width: 30px; height: 30px; font-size: 19px; }
    .tech-prev { left: 6px; }
    .tech-next { right: 6px; }
}

/* Tarjetas: marca gris arriba, título limpio y precio verde destacado */
.prod-brand { display: none; }
body.estilo-tech .product-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
}
body.estilo-tech .info-box { padding: 16px 18px 18px; }
body.estilo-tech .prod-brand {
    display: block;
    color: #9ca3af;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.estilo-tech .prod-title {
    font-size: 15px;
    font-weight: 600;
    min-height: 42px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.estilo-tech .price-val {
    display: inline-block;
    align-self: flex-start;
    background: var(--success);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}
body.estilo-tech .stock-info:not(.stock-bajo) { display: none; }
body.estilo-tech .btn-add { border-radius: 10px; }

/* ============================================================================
   PERSONALIZACIÓN VISUAL ESTILO TIENDANUBE
   ============================================================================ */
h1, h2, h3, h4, h5, h6, .hero-content h1, .detail-title {
    font-family: var(--font-heading) !important;
    letter-spacing: -0.02em;
}
body.appearance-width-wide .products-grid,
body.appearance-width-wide .turnos-section,
body.appearance-width-wide #catalogoWrap,
body.appearance-width-wide #techPagos,
body.appearance-width-wide #portalCtas {
    max-width: 1460px;
    margin-left: auto;
    margin-right: auto;
}
body.appearance-width-compact .products-grid,
body.appearance-width-compact .turnos-section {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
body.appearance-spacing-compact .turnos-section { margin-top: 12px; margin-bottom: 14px; }
body.appearance-spacing-airy .turnos-section { margin-top: 44px; margin-bottom: 40px; }
body.appearance-spacing-airy .products-grid { gap: 30px; padding-top: 34px; padding-bottom: 40px; }

body.appearance-card-soft .product-card,
body.appearance-card-soft .servicio-card {
    box-shadow: var(--card-shadow);
    border: 1px solid transparent;
}
body.appearance-card-bordered .product-card,
body.appearance-card-bordered .servicio-card {
    box-shadow: none;
    border: 1px solid var(--border-color);
}
body.appearance-card-flat .product-card,
body.appearance-card-flat .servicio-card {
    box-shadow: none;
    border: 1px solid transparent;
}
body.appearance-card-bordered .product-card:hover,
body.appearance-card-soft .product-card:hover {
    transform: translateY(-5px);
}

body.appearance-btn-solid .btn-add,
body.appearance-btn-solid .btn-servicio,
body.appearance-btn-solid .turnos-cta {
    border-radius: 999px;
    box-shadow: none;
}
body.appearance-btn-soft .btn-add,
body.appearance-btn-soft .btn-servicio {
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 14%, transparent) !important;
    color: var(--accent) !important;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
body.appearance-btn-outline .btn-add,
body.appearance-btn-outline .btn-servicio {
    border-radius: 14px;
    background: transparent !important;
    color: var(--accent) !important;
    border: 1.5px solid var(--accent);
    box-shadow: none;
}
body.appearance-btn-outline .btn-add:hover,
body.appearance-btn-soft .btn-add:hover {
    background: var(--accent) !important;
    color: #fff !important;
}

body.appearance-hero-compact .hero { height: 280px; }
body.appearance-hero-tall .hero { height: 540px; }
@media (max-width: 900px) {
    body.appearance-hero-compact .hero { height: 210px; }
    body.appearance-hero-tall .hero { height: 360px; }
}
body.appearance-ratio-portrait .img-box { height: 300px; }
@media (max-width: 700px) {
    body.appearance-ratio-portrait .img-box { height: 235px; }
}

/* Preview del panel de diseño */
.diseno-preview {
    margin-top: 18px; padding: 18px; border-radius: 18px;
    background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06);
}
.diseno-preview-card { display: flex; gap: 14px; align-items: center; }
.diseno-preview-img {
    width: 74px; height: 74px; border-radius: 14px; background: #fff; color: #0f172a;
    display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0;
}
.diseno-preview-card b { font-family: var(--font-heading); }
.diseno-preview-card p { margin: 4px 0 8px; font-size: 12px; opacity: 0.65; }
.diseno-preview-precio {
    display: inline-block; background: var(--accent); color: #fff; font-weight: 800;
    font-size: 13px; padding: 5px 12px; border-radius: var(--radius-btn);
}
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ============================================================================
   TIENDA ESTILO TIENDANUBE (layout limpio)
   ============================================================================ */
body.estilo-tiendanube header {
    background: var(--card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 18px rgba(15, 23, 42, 0.05);
}
body.estilo-tiendanube .products-grid { gap: 24px; padding: 26px 20px 50px; }
body.estilo-tiendanube .product-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
body.estilo-tiendanube .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
body.estilo-tiendanube .img-box { height: 250px; padding: 18px; background: #fff; }
body.estilo-tiendanube .info-box { padding: 18px 18px 20px; }
body.estilo-tiendanube .prod-title { font-size: 15px; font-weight: 600; min-height: 42px; color: var(--text); }
body.estilo-tiendanube .price-val { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
body.estilo-tiendanube .btn-add {
    border-radius: 999px; padding: 13px 18px; font-size: 13px; letter-spacing: 0.2px;
    background: var(--accent); color: #fff; box-shadow: none;
}
body.estilo-tiendanube .btn-add:hover { filter: brightness(1.07); transform: translateY(-1px); }
body.estilo-tiendanube .promo-badge,
body.estilo-tiendanube .badge-destacado,
body.estilo-tiendanube .badge-nuevo { border-radius: 999px; font-size: 10px; padding: 5px 12px; }
body.estilo-tiendanube .cat-scroll .cat-item { border-radius: 999px; }
body.estilo-tiendanube .search-bar {
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-color);
}
body.estilo-tiendanube .hero { border-radius: 0 0 28px 28px; overflow: hidden; }
@media (max-width: 768px) { body.estilo-tiendanube .hero { border-radius: 0 0 18px 18px; } }
body.estilo-tiendanube .admin-tabs,
body.estilo-tiendanube .admin-subtabs { background: rgba(15, 23, 42, 0.05); }
body.estilo-tiendanube .admin-item,
body.estilo-tiendanube .admin-form-box { background: var(--card); border-color: var(--border-color); }

/* ============================================================================
   AGENDA / TURNOS
   ============================================================================ */
.turnos-section {
    max-width: 1400px;
    margin: 26px auto 10px;
    padding: 0 20px;
    position: relative;
}
.turnos-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card));
    border: 1px solid var(--border-color);
    border-radius: calc(var(--radius) + 6px);
    padding: 26px 28px;
    margin-bottom: 22px;
    overflow: hidden;
}
.turnos-head::after {
    content: "📅"; position: absolute; right: 150px; top: -10px; font-size: 130px; opacity: 0.06; pointer-events: none;
}
.turnos-head-text { position: relative; z-index: 1; min-width: 0; }
.turnos-kicker {
    display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.turnos-head h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.1; }
.turnos-head p { margin: 0; font-size: 14px; opacity: 0.7; max-width: 560px; line-height: 1.5; }
.turnos-cta { width: auto !important; margin: 0 !important; padding: 14px 24px !important; flex-shrink: 0; }
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.servicio-card {
    background: var(--card); border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column; gap: 10px; position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}
.servicio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,0.16); }
.servicio-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.servicio-rubro {
    font-size: 10px; font-weight: 900; letter-spacing: 0.7px; text-transform: uppercase;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
    padding: 5px 10px; border-radius: 999px; max-width: 65%; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
}
.servicio-dur { font-size: 11px; font-weight: 700; opacity: 0.6; white-space: nowrap; }
.servicio-nombre { margin: 2px 0 0; font-size: 19px; line-height: 1.25; }
.servicio-desc { margin: 0; font-size: 13px; opacity: 0.68; line-height: 1.5; flex-grow: 1; }
.servicio-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 6px; }
.servicio-precio-label { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.45; margin-bottom: 3px; }
.servicio-precio { font-size: 21px; font-weight: 900; color: var(--accent); letter-spacing: -0.03em; }
.btn-servicio {
    border: none; cursor: pointer; background: var(--accent); color: #fff;
    font-weight: 800; font-size: 12px; padding: 12px 16px; border-radius: var(--radius-btn);
    transition: transform 0.15s ease, filter 0.15s ease; white-space: nowrap;
}
.btn-servicio:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-servicio:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.servicios-vacio {
    grid-column: 1 / -1; text-align: center; padding: 46px 24px; border: 1px dashed var(--border-color);
    border-radius: var(--radius); background: rgba(255,255,255,0.025);
}
.servicios-vacio b { display: block; margin-bottom: 5px; }
.servicios-vacio p { margin: 0; font-size: 13px; opacity: 0.55; }

/* Modal de reserva */
.turno-modal { width: 100%; overflow: hidden; }
.turno-modal-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 24px 26px 18px; border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card));
}
.turno-modal-head h2 { margin: 2px 0 4px; font-size: 24px; line-height: 1.2; }
.turno-modal-head p { margin: 0; font-size: 13px; opacity: 0.65; }
.turno-modal-close {
    background: rgba(255,255,255,0.08); border: none; color: var(--text);
    width: 38px; height: 38px; border-radius: 12px; font-size: 18px; cursor: pointer; flex-shrink: 0;
}
.turno-modal-body { padding: 22px 26px 28px; max-height: 76vh; overflow-y: auto; }
.turno-paso { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.turno-paso-num {
    width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
    font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 22px;
}
.turno-label { display: block; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; margin-bottom: 8px; }
.turno-input {
    width: 100%; padding: 14px 15px; border-radius: 12px; border: 1px solid var(--border-color);
    background: var(--input-bg); color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.turno-input:focus { border-color: var(--accent); }
.turno-dias-rapidos { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.turno-dia-chip {
    background: var(--card); border: 1px solid var(--border-color); color: var(--text);
    min-width: 52px; padding: 8px 10px; border-radius: 12px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0;
}
.turno-dia-chip span { font-size: 9px; font-weight: 800; text-transform: uppercase; opacity: 0.5; }
.turno-dia-chip b { font-size: 16px; }
.turno-dia-chip.activo { background: var(--accent); border-color: var(--accent); color: #fff; }
.turno-dia-chip.activo span { opacity: 0.9; }
.turno-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.turno-slot {
    padding: 11px 8px; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--card); color: var(--text); cursor: pointer; font-weight: 800; font-size: 13px;
    transition: var(--transition);
}
.turno-slot:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.turno-slot.seleccionado { background: var(--accent); border-color: var(--accent); color: #fff; }
.turno-slot.ocupado { opacity: 0.28; cursor: not-allowed; text-decoration: line-through; }
.turno-slot-vacio { grid-column: 1 / -1; font-size: 13px; opacity: 0.6; padding: 8px 0; }
.turno-hibrido {
    display: none; align-items: flex-start; gap: 10px; background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color); border-radius: 12px; padding: 13px 14px;
    font-size: 12.5px; line-height: 1.45; margin-bottom: 16px; cursor: pointer;
}
.turno-hibrido input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.turno-error {
    background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.3);
    padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.turno-confirmar { width: 100%; padding: 18px !important; font-size: 14px !important; margin: 0 !important; }
@media (max-width: 620px) {
    .turnos-head { flex-direction: column; align-items: flex-start; padding: 22px; }
    .turnos-head h2 { font-size: 24px; }
    .turnos-cta { width: 100% !important; }
    .turno-modal-body { padding: 18px; }
    .turno-datos-grid { grid-template-columns: 1fr !important; }
    .turno-paso-num { margin-top: 20px; }
}

/* ============================================================================
   ESTADOS / ADMIN DE TURNOS
   ============================================================================ */
.turno-status-pill {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
    font-size: 10px; font-weight: 900; letter-spacing: 0.2px; background: rgba(16,185,129,0.14);
    color: var(--success); border: 1px solid rgba(16,185,129,0.25); white-space: nowrap;
}
.estado-rechazado-pill { background: rgba(239,68,68,0.13); color: var(--danger); border-color: rgba(239,68,68,0.28); }
.turno-mini-tag { font-size: 11px; opacity: 0.65; background: rgba(255,255,255,0.05); padding: 3px 9px; border-radius: 999px; }
.estado-rechazado {
    width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 12px;
    background: rgba(239,68,68,0.12); color: var(--danger); font-size: 12px; font-weight: 800;
    border: 1px solid rgba(239,68,68,0.25);
}
.turnos-admin-resumen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.turno-stat {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 14px; text-align: center;
}
.turno-stat small { display: block; font-size: 9px; letter-spacing: 1px; font-weight: 900; opacity: 0.45; }
.turno-stat b { display: block; font-size: 24px; color: var(--accent); margin-top: 3px; }
@media (max-width: 620px) { .turnos-admin-resumen { grid-template-columns: repeat(2, 1fr); } }

.dias-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.dia-check {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
    padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.dia-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.turno-admin-card {
    background: rgba(255,255,255,0.035); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 16px; margin-bottom: 12px; border-left: 4px solid var(--accent);
}
.turno-admin-card.es-hoy { border-left-color: var(--success); background: rgba(16,185,129,0.05); }
.turno-admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.turno-admin-fecha { font-size: 15px; }
.turno-hora-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 8px; }
.turno-admin-servicio { font-size: 13px; font-weight: 700; margin-top: 5px; opacity: 0.85; }
.turno-estado-select {
    width: auto; min-width: 190px; padding: 9px 10px; border-radius: 10px; background: var(--card);
    color: var(--text); border: 1px solid var(--border-color); font-size: 11px; font-weight: 800;
}
.turno-admin-cliente { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; opacity: 0.78; margin-top: 10px; }
.turno-admin-detalle {
    margin-top: 9px; font-size: 12px; background: rgba(0,0,0,0.18); padding: 9px 11px;
    border-radius: 10px; white-space: pre-wrap;
}
.turno-admin-acciones { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.turno-accion {
    border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: var(--text);
    font-size: 11px; font-weight: 800; padding: 7px 11px; border-radius: 9px; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.turno-accion:hover { background: rgba(255,255,255,0.1); }
.turno-accion.ok { color: var(--success); border-color: rgba(16,185,129,0.35); }
.turno-accion.danger { color: var(--danger); border-color: rgba(239,68,68,0.35); }
.turno-accion.wa { color: #25d366; border-color: rgba(37,211,102,0.35); }
.servicio-admin-item { align-items: flex-start; }
.servicio-admin-acciones { display: flex; gap: 4px; flex-shrink: 0; }
.servicio-admin-acciones button {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); color: var(--text);
    width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 14px;
}
.servicio-admin-acciones button.peligro { color: var(--danger); }

/* Ajustes para temas claros (Tiendanube) */
body.tema-claro .admin-tabs,
body.tema-claro .admin-subtabs { background: rgba(15,23,42,0.05); }
body.tema-claro .tab-btn { color: #64748b; }
body.tema-claro .tab-btn.active { background: var(--card); color: var(--accent); box-shadow: 0 2px 10px rgba(15,23,42,0.08); }
body.tema-claro .subtab-btn { color: #64748b; }
body.tema-claro .admin-form-box,
body.tema-claro .admin-item,
body.tema-claro .turno-admin-card,
body.tema-claro .turno-stat,
body.tema-claro .dia-check,
body.tema-claro .turno-accion,
body.tema-claro .servicio-admin-acciones button,
body.tema-claro .diseno-preview {
    background: #fff; border-color: rgba(15,23,42,0.09);
}
body.tema-claro .admin-item,
body.tema-claro .turno-admin-card { box-shadow: 0 2px 12px rgba(15,23,42,0.05); }
body.tema-claro .turno-admin-detalle { background: rgba(15,23,42,0.045); }
body.tema-claro .turno-hibrido { background: rgba(15,23,42,0.035); border-color: rgba(15,23,42,0.1); }
body.tema-claro .turno-mini-tag { background: rgba(15,23,42,0.06); }
body.tema-claro input,
body.tema-claro select,
body.tema-claro textarea { background: #fff; border-color: rgba(15,23,42,0.12); color: var(--text); }
body.tema-claro .drawer,
body.tema-claro .drawer-header { background: var(--card); }
body.tema-claro .overlay { background: rgba(15,23,42,0.45); }
body.tema-claro .admin-tabs,
body.tema-claro .admin-subtabs { border: 1px solid rgba(15,23,42,0.06); }
body.tema-claro .search-suggestions { box-shadow: 0 10px 30px rgba(15,23,42,0.12); border-color: rgba(15,23,42,0.1); }
body.tema-claro .suggestion-item:hover { background: rgba(15,23,42,0.04); }
body.tema-claro .estado-pedido-dot { background: rgba(15,23,42,0.09); }
body.tema-claro .estado-pedido-line { background: rgba(15,23,42,0.09); }
@media (max-width: 700px) {
    .turnos-section { padding: 0 14px; }
    .servicios-grid { grid-template-columns: 1fr; }
    .turno-admin-top { flex-direction: column; }
    .turno-estado-select { width: 100%; }
}
