        body {
            font-family: 'inter', sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        input[type=number]::-webkit-inner-spin-button,
        input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            appearance: none;
            margin: 0;
        }

        input[type=number] {
            -moz-appearance: textfield;
            appearance: textfield;
        }

        /* Estilo para miniaturas de galería activas */
        .gallery-thumbnail.is-active {
            border-color: #3B82F6;
            opacity: 1;
        }

        /* Agregamos un modal simple para alertas */
        .alert-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }

        .alert-modal.is-visible {
            opacity: 1;
            visibility: visible;
        }

        .alert-modal-content {
            background-color: white;
            padding: 2rem;
            border-radius: 0.5rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            max-width: 90%;
            width: 400px;
            text-align: center;
        }

        .alert-modal-content p {
            margin-bottom: 1.5rem;
            font-size: 1rem;
            color: #374151;
        }

        .alert-modal-close {
            background-color: #3B82F6;
            color: white;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            border: none;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .alert-modal-close:hover {
            background-color: #2563EB;
        }

        /* Estilos para la previsualización de imágenes en el admin */
        .image-preview-item {
            position: relative;
        }

        .image-preview-item.is-cover {
            border: 2px solid #3B82F6;
        }

        .image-preview-actions {
            position: absolute;
            top: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.6);
            border-bottom-left-radius: 0.375rem;
            display: flex;
            gap: 0.25rem;
            padding: 0.25rem;
            opacity: 1;
        }

        .image-preview-actions button {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 0.25rem;
        }

        .image-preview-actions button:hover {
            color: #d1d5db;
        }

        /* Estilos para los iconos de productividad */
        #productivity-icons .productivity-icon {
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            position: absolute;
        }

        #productivity-icons .productivity-icon.is-visible {
            opacity: 1;
            position: relative;
        }

        /* Estilos para Productos Destacados */
        .featured-product-card {
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            width: 100%;
            max-width: 320px;
        }

        @media (min-width: 768px) {
            .featured-product-card:hover {
                transform: translateY(-10px);
            }
        }

        .featured-image-container img {
            transition: transform 0.8s ease;
        }

        .featured-product-card:hover .featured-image-container img {
            transform: scale(1.06);
        }

        .featured-buy-btn {
            transition: all 0.3s ease;
        }

        .featured-buy-btn:hover {
            background-color: #1d4ed8;
            transform: scale(1.05);
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
        }

        .admin-tab {
            border-color: transparent;
        }

        .admin-tab.is-active {
            border-color: #3B82F6;
            color: #3B82F6;
        }

        /* ===== Toast notification ===== */
        .share-toast {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #111827;
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            font-weight: 500;
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1);
            z-index: 9999;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .share-toast.is-visible {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ===== Share dropdown ===== */
        .share-dropdown {
            position: absolute;
            top: calc(100% + 0.5rem);
            right: 0;
            transform: scale(0.95);
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12), 0 4px 6px -2px rgba(0,0,0,0.05);
            padding: 0.5rem;
            min-width: 220px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 100;
        }
        .share-dropdown.is-visible {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }
        .share-dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            width: 100%;
            padding: 0.625rem 0.75rem;
            border: none;
            background: none;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: #374151;
            cursor: pointer;
            transition: background-color 0.15s ease;
        }
        .share-dropdown-item:hover {
            background-color: #f3f4f6;
        }

        /* ===== Cart Drawer ===== */
        #cart-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
            opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(2px);
        }
        #cart-overlay.is-visible { opacity: 1; visibility: visible; }
        #cart-drawer {
            position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 400px;
            background: white; z-index: 1001; transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex; flex-direction: column; overflow: hidden;
            box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        }
        #cart-drawer.is-open { transform: translateX(0); }
        .cart-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 1rem; border-bottom: 1px solid #f3f4f6;
        }
        .share-dropdown-item svg {
            flex-shrink: 0;
        }

        /* ===== Download Modal (post-pago) ===== */
        #download-modal {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.55);
            display: flex; align-items: center; justify-content: center;
            z-index: 2000;
            opacity: 0; visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            backdrop-filter: blur(4px);
        }
        #download-modal.is-visible { opacity: 1; visibility: visible; }
        .download-modal-box {
            background: white;
            border-radius: 1.5rem;
            padding: 2.5rem 2rem;
            max-width: 420px;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            animation: modalPop 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
        }
        @keyframes modalPop {
            from { transform: scale(0.88) translateY(20px); opacity: 0; }
            to   { transform: scale(1) translateY(0); opacity: 1; }
        }
        .download-modal-icon {
            width: 64px; height: 64px;
            background: linear-gradient(135deg, #dbeafe, #eff6ff);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 1.25rem;
        }
        #download-modal-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #2563eb;
            color: white;
            font-weight: 600;
            padding: 0.75rem 1.75rem;
            border-radius: 0.75rem;
            text-decoration: none;
            margin-top: 1.25rem;
            transition: background 0.2s, transform 0.15s;
            font-size: 0.95rem;
        }
        #download-modal-btn:hover { background: #1d4ed8; transform: scale(1.03); }
        #download-modal-close {
            margin-top: 0.75rem;
            background: none;
            border: none;
            color: #6b7280;
            font-size: 0.875rem;
            cursor: pointer;
            display: block;
            width: 100%;
        }
        #download-modal-close:hover { color: #111827; }

        .font-highlight {
            font-family: 'Playfair Display', 'Cormorant Garamond', 'Lora', serif !important;
            font-style: italic !important;
            font-weight: 600 !important;
            letter-spacing: -0.01em !important;
        }

        /* Personalización Dinámica de Plantillas */
        body, .font-inter, .font-sans {
            font-family: var(--body-font, 'Inter', sans-serif) !important;
        }

        h1, h2, h3, h4, h5, h6, .font-serif {
            font-family: var(--heading-font, 'Inter', sans-serif) !important;
        }

        /* Colores de Títulos y Textos Personalizados (se aplican si están definidos) */
        .layout-single-product-active h1,
        .layout-single-product-active h2,
        .layout-single-product-active h3 {
            color: var(--heading-color) !important;
        }
        .layout-single-product-active p,
        .layout-single-product-active li,
        .layout-single-product-active span:not(.font-highlight) {
            color: var(--body-color) !important;
        }

        /* Catálogo: Solo anular color si se especificó color customizado en variables */
        .layout-catalog-active h1,
        .layout-catalog-active h2,
        .layout-catalog-active h3 {
            color: var(--heading-color) !important;
        }
        .layout-catalog-active p,
        .layout-catalog-active span:not(.font-highlight) {
            color: var(--body-color) !important;
        }

        /* Botones CTA Personalizados (Colores Dinámicos Normal y Hover) */
        .single-cta-btn {
            background-color: var(--primary-color, #3B82F6) !important;
            color: white !important;
            transition: all 0.2s ease-in-out !important;
        }
        .single-cta-btn:hover {
            background-color: var(--primary-color-hover, #2563EB) !important;
            transform: scale(1.02) !important;
            box-shadow: 0 10px 15px -3px rgba(var(--primary-color-rgb), 0.3) !important;
        }

        /* ===== Single Product Funnel: Premium Offer Card Override ===== */
        #single-offer-card {
            background: linear-gradient(180deg, #121212 0%, #070707 100%) !important;
            border: 1.5px solid rgba(var(--primary-color-rgb, 59, 130, 246), 0.45) !important;
            box-shadow: 0 0 35px rgba(var(--primary-color-rgb, 59, 130, 246), 0.22), 
                        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
            border-radius: 28px !important;
        }

        #single-offer-headline {
            font-family: 'Inter', sans-serif !important;
            color: #ffffff !important;
            font-weight: 800 !important;
            font-size: 1.625rem !important; /* ~26px */
            line-height: 2.25rem !important;
            letter-spacing: -0.025em !important;
            margin-bottom: 0.5rem !important;
        }

        #single-offer-name {
            font-family: 'Inter', sans-serif !important;
            color: var(--primary-color, #3B82F6) !important;
            font-size: 0.75rem !important;
            font-weight: 700 !important;
            letter-spacing: 0.1em !important;
            margin-bottom: 1.25rem !important;
            display: block !important;
        }

        #single-offer-desc-short {
            font-family: 'Inter', sans-serif !important;
            color: #a3a3a3 !important;
            font-size: 0.875rem !important;
            line-height: 1.5rem !important;
            font-weight: 400 !important;
            text-align: center !important;
            font-style: italic !important;
            max-width: 24rem !important;
            margin-left: auto !important;
            margin-right: auto !important;
            margin-bottom: 1.5rem !important;
        }

        #single-offer-price {
            font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            font-size: 1.875rem !important;
            letter-spacing: -0.02em !important;
        }
        @media (min-width: 640px) {
            #single-offer-price {
                font-size: 2.25rem !important;
            }
        }

        /* Color override classes to protect specific elements from global body color values */
        .text-primary-dynamic {
            color: var(--primary-color, #3B82F6) !important;
        }
        svg.text-primary-dynamic {
            color: var(--primary-color, #3B82F6) !important;
            stroke: var(--primary-color, #3B82F6) !important;
        }

        /* Also ensure the includes are crisp and clean */
        #single-offer-includes li span {
            color: #d4d4d4 !important;
            font-size: 0.875rem !important;
        }
