/*
Theme Name: NEXORA WooCommerce
Description: Tema oscuro para tienda de productos digitales (ebooks, prompts, plantillas), basado en el diseño NEXORA. Compatible con WooCommerce.
Author: NEXORA
Version: 1.0
Text Domain: nexora-woo
Requires Plugins: woocommerce
*/

/* Tailwind se carga vía CDN desde functions.php para mantener las mismas
   utility classes que el diseño original (flex, grid, gap-*, text-*, etc.) */

body {
  font-family: 'Afacad', sans-serif;
  background: #050505;
  color: #ffffff;
}

  * { font-family: 'Afacad', sans-serif; }
  body { background: #050505; color: #ffffff; }

  .glass-panel {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .glass-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .glass-strong {
    background: rgb(24 24 27 / 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .section-label {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
  }
  .section-label .tag {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
  }

  .divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 0;
  }

  .btn-primary {
    background: #ffffff;
    color: #050505;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 150ms;
    border: none;
    cursor: pointer;
  }
  .btn-primary:hover { background: #e5e5e5; transform: translateY(-1px); }

  .btn-outline {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 150ms;
  }
  .btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

  .btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 150ms;
  }
  .btn-ghost:hover { color: #ffffff; background: rgba(255,255,255,0.05); }

  .product-card {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 300ms;
  }
  .product-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  .product-card img {
    transition: transform 500ms;
  }
  .product-card:hover img {
    transform: scale(1.05);
  }

  .input-field {
    width: 100%;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Afacad', sans-serif;
    outline: none;
    transition: border-color 150ms;
  }
  .input-field:focus {
    border-color: rgba(255, 255, 255, 0.3);
  }
  .input-field::placeholder {
    color: rgba(255,255,255,0.3);
  }

  select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .badge-sale { background: rgba(239, 68, 68, 0.2); color: #f87171; }
  .badge-new { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
  .badge-out { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
  .badge-hot { background: rgba(239, 68, 68, 0.2); color: #f87171; }
  .badge-best { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
  .badge-free { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
  .file-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
  }
  .download-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .niche-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
  }
  .niche-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
  .niche-card:hover img { transform: scale(1.08); }
  .niche-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%); }

  .star { color: rgba(255,255,255,0.15); }
  .star.filled { color: #fbbf24; }

  .qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 150ms;
  }
  .qty-btn:hover { background: rgba(255,255,255,0.1); }

  .tab-active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
  }
  .tab-inactive {
    color: rgba(255,255,255,0.4);
    border-bottom: 2px solid transparent;
  }

  .nav-link {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 500;
    transition: color 150ms;
    cursor: pointer;
    position: relative;
  }
  .nav-link:hover { color: #ffffff; }
  .nav-link.active { color: #ffffff; }
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffffff;
  }

  .category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
  }
  .category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms;
  }
  .category-card:hover img { transform: scale(1.08); }
  .category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  }

  .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: rgb(24 24 27 / 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(120%);
    transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .toast.show { transform: translateY(0); }

  .step-active {
    background: #ffffff;
    color: #050505;
  }
  .step-inactive {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
  }
  .step-done {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
  }

  .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 600px;
    background: rgb(24 24 27 / 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 200ms;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  }
  .mega-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms;
  }
  .search-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mini-cart {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background: rgb(24 24 27 / 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 200ms;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  }
  .cart-trigger:hover .mini-cart {
    opacity: 1;
    visibility: visible;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-up { animation: fadeUp 0.6s ease forwards; }
  .fade-up-d1 { animation-delay: 0.1s; opacity: 0; }
  .fade-up-d2 { animation-delay: 0.2s; opacity: 0; }
  .fade-up-d3 { animation-delay: 0.3s; opacity: 0; }
  .fade-up-d4 { animation-delay: 0.4s; opacity: 0; }

  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.05); }
    50% { box-shadow: 0 0 30px rgba(255,255,255,0.1); }
  }

  .scroll-hint {
    animation: bounce 2s infinite;
  }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }
/* Inline placeholder product visuals (no external images) */
  .IMG_ia_prompts {
    background: radial-gradient(circle at 30% 20%, #7c3aed55 0%, transparent 45%), linear-gradient(150deg, #3b1f6e 0%, #7c3aed 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_ia_prompts::after {
    content: "✨";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_excel_financiero {
    background: radial-gradient(circle at 30% 20%, #16a34a55 0%, transparent 45%), linear-gradient(150deg, #064e3b 0%, #16a34a 55%, #052e16 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_excel_financiero::after {
    content: "📊";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_fitness_rutinas {
    background: radial-gradient(circle at 30% 20%, #ea580c55 0%, transparent 45%), linear-gradient(150deg, #7c2d12 0%, #ea580c 55%, #431407 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_fitness_rutinas::after {
    content: "🏋️";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_productividad {
    background: radial-gradient(circle at 30% 20%, #0d948855 0%, transparent 45%), linear-gradient(150deg, #134e4a 0%, #0d9488 55%, #042f2e 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_productividad::after {
    content: "🗂️";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_n8n_kit {
    background: radial-gradient(circle at 30% 20%, #4f46e555 0%, transparent 45%), linear-gradient(150deg, #1e1b4b 0%, #4f46e5 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_n8n_kit::after {
    content: "🔗";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_marketing_prompts {
    background: radial-gradient(circle at 30% 20%, #8b5cf655 0%, transparent 45%), linear-gradient(150deg, #4c1d95 0%, #8b5cf6 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_marketing_prompts::after {
    content: "📣";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_ia_emprendedores {
    background: radial-gradient(circle at 30% 20%, #6366f155 0%, transparent 45%), linear-gradient(150deg, #312e81 0%, #6366f1 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_ia_emprendedores::after {
    content: "🚀";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_prompts_gratis {
    background: radial-gradient(circle at 30% 20%, #22c55e55 0%, transparent 45%), linear-gradient(150deg, #052e16 0%, #22c55e 55%, #022c22 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_prompts_gratis::after {
    content: "🎁";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_banner_ia {
    background: radial-gradient(circle at 30% 20%, #7c3aed55 0%, transparent 45%), linear-gradient(150deg, #1e1b4b 0%, #7c3aed 55%, #3b0764 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_banner_ia::after {
    content: "🤖";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_banner_oferta {
    background: radial-gradient(circle at 30% 20%, #ef444455 0%, transparent 45%), linear-gradient(150deg, #450a0a 0%, #ef4444 55%, #1c0505 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_banner_oferta::after {
    content: "🔥";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_ig1 {
    background: radial-gradient(circle at 30% 20%, #7c3aed55 0%, transparent 45%), linear-gradient(150deg, #3b1f6e 0%, #7c3aed 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_ig1::after {
    content: "✨";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_ig2 {
    background: radial-gradient(circle at 30% 20%, #16a34a55 0%, transparent 45%), linear-gradient(150deg, #064e3b 0%, #16a34a 55%, #052e16 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_ig2::after {
    content: "📊";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_ig3 {
    background: radial-gradient(circle at 30% 20%, #ea580c55 0%, transparent 45%), linear-gradient(150deg, #7c2d12 0%, #ea580c 55%, #431407 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_ig3::after {
    content: "🏋️";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_ig4 {
    background: radial-gradient(circle at 30% 20%, #0d948855 0%, transparent 45%), linear-gradient(150deg, #134e4a 0%, #0d9488 55%, #042f2e 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_ig4::after {
    content: "🗂️";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_ig5 {
    background: radial-gradient(circle at 30% 20%, #4f46e555 0%, transparent 45%), linear-gradient(150deg, #1e1b4b 0%, #4f46e5 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_ig5::after {
    content: "🔗";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_ig6 {
    background: radial-gradient(circle at 30% 20%, #ef444455 0%, transparent 45%), linear-gradient(150deg, #450a0a 0%, #ef4444 55%, #1c0505 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_ig6::after {
    content: "🔥";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_arch1 {
    background: radial-gradient(circle at 30% 20%, #4f46e555 0%, transparent 45%), linear-gradient(150deg, #1e1b4b 0%, #4f46e5 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_arch1::after {
    content: "🔗";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_arch2 {
    background: radial-gradient(circle at 30% 20%, #8b5cf655 0%, transparent 45%), linear-gradient(150deg, #4c1d95 0%, #8b5cf6 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_arch2::after {
    content: "📣";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_arch3 {
    background: radial-gradient(circle at 30% 20%, #6366f155 0%, transparent 45%), linear-gradient(150deg, #312e81 0%, #6366f1 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_arch3::after {
    content: "🚀";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_arch4 {
    background: radial-gradient(circle at 30% 20%, #4f46e555 0%, transparent 45%), linear-gradient(150deg, #1e1b4b 0%, #4f46e5 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_arch4::after {
    content: "🔗";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_arch5 {
    background: radial-gradient(circle at 30% 20%, #7c3aed55 0%, transparent 45%), linear-gradient(150deg, #3b1f6e 0%, #7c3aed 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_arch5::after {
    content: "🤖";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_arch6 {
    background: radial-gradient(circle at 30% 20%, #22c55e55 0%, transparent 45%), linear-gradient(150deg, #052e16 0%, #22c55e 55%, #022c22 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_arch6::after {
    content: "🎁";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_rel1 {
    background: radial-gradient(circle at 30% 20%, #4f46e555 0%, transparent 45%), linear-gradient(150deg, #1e1b4b 0%, #4f46e5 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_rel1::after {
    content: "🔗";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_rel2 {
    background: radial-gradient(circle at 30% 20%, #6366f155 0%, transparent 45%), linear-gradient(150deg, #312e81 0%, #6366f1 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_rel2::after {
    content: "🚀";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_rel3 {
    background: radial-gradient(circle at 30% 20%, #8b5cf655 0%, transparent 45%), linear-gradient(150deg, #4c1d95 0%, #8b5cf6 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_rel3::after {
    content: "📣";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_rel4 {
    background: radial-gradient(circle at 30% 20%, #7c3aed55 0%, transparent 45%), linear-gradient(150deg, #3b1f6e 0%, #7c3aed 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_rel4::after {
    content: "🤖";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_single_main {
    background: radial-gradient(circle at 30% 20%, #7c3aed55 0%, transparent 45%), linear-gradient(150deg, #3b1f6e 0%, #7c3aed 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_single_main::after {
    content: "✨";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_thumb_main {
    background: radial-gradient(circle at 30% 20%, #7c3aed55 0%, transparent 45%), linear-gradient(150deg, #3b1f6e 0%, #7c3aed 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_thumb_main::after {
    content: "✨";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_thumb_alt1 {
    background: radial-gradient(circle at 30% 20%, #8b5cf655 0%, transparent 45%), linear-gradient(150deg, #4c1d95 0%, #8b5cf6 55%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_thumb_alt1::after {
    content: "📄";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_thumb_alt2 {
    background: radial-gradient(circle at 30% 20%, #6366f155 0%, transparent 45%), linear-gradient(150deg, #312e81 0%, #6366f1 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_thumb_alt2::after {
    content: "🗒️";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }
  .IMG_thumb_alt3 {
    background: radial-gradient(circle at 30% 20%, #4f46e555 0%, transparent 45%), linear-gradient(150deg, #1e1b4b 0%, #4f46e5 55%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .IMG_thumb_alt3::after {
    content: "🔖";
    font-size: 2.6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    opacity: 0.9;
  }

/* ============================================================
   WooCommerce — estilos para elementos nativos (galería, precio,
   variaciones, add to cart, tabs, reseñas, grilla de productos)
   ============================================================ */

.woocommerce-breadcrumb { font-size: 12px; color: rgba(255,255,255,.3); margin-bottom: 24px; }
.woocommerce-breadcrumb a { color: rgba(255,255,255,.3); }
.woocommerce-breadcrumb a:hover { color: rgba(255,255,255,.6); }

/* ---------- Single product: grid galería | resumen ---------- */
.single-product div.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 100%;
}
@media (min-width: 768px) {
  .single-product div.product { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}
/* Evita que las celdas del grid se encojan al contenido (bug clásico de
   CSS Grid con imágenes: sin min-width:0 la columna de galería puede
   quedar más angosta que el track "1fr" que le corresponde). */
.single-product div.product > * { min-width: 0; }
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related.products,
.single-product div.product > .upsells.products { grid-column: 1 / -1; }

/* Galería */
.woocommerce-product-gallery { position: relative; width: 100%; }
.woocommerce-product-gallery__wrapper { width: 100%; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.05); }
.woocommerce-product-gallery__image { width: 100%; display: block; }
.woocommerce-product-gallery__image img { display: block; border-radius: 16px; width: 100% !important; height: auto !important; aspect-ratio: 3/4; object-fit: cover; }
.flex-control-thumbs { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px !important; padding: 0; list-style: none; }
.flex-control-thumbs li img { border-radius: 12px; aspect-ratio: 1/1; object-fit: cover; border: 2px solid transparent; opacity: .6; transition: all .15s; cursor: pointer; }
.flex-control-thumbs li img.flex-active, .flex-control-thumbs li img:hover { opacity: 1; border-color: rgba(255,255,255,.4); }
span.onsale {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  background: rgba(239, 68, 68, 0.2) !important; color: #f87171 !important;
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px !important; border-radius: 100px !important; min-height: 0; min-width: 0; line-height: normal;
}
.nx-badge-best {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  background: rgba(251,191,36,.2); color: #fbbf24;
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
}

/* Título / rating / precio */
.product_title { font-size: 34px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; line-height: 1.15; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.star-rating { color: rgba(255,255,255,.15); font-size: 14px; }
.star-rating span { color: #fbbf24; }
.woocommerce-review-link { font-size: 12px; color: rgba(255,255,255,.3); }
p.price, .price { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 28px; display: block; }
p.price del { color: rgba(255,255,255,.3); font-weight: 400; font-size: 18px; margin-right: 8px; }
p.price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: rgba(255,255,255,.5); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }

/* Formulario / variaciones */
table.variations { width: 100%; border: none; margin-bottom: 20px; }
table.variations tbody, table.variations tr, table.variations td, table.variations th { display: block; border: none; padding: 0; }
table.variations tr { margin-bottom: 16px; }
table.variations label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
table.variations select {
  width: 100%; background: rgba(24,24,27,.6); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 8px; padding: 12px 16px; font-size: 14px; font-family: inherit;
}
.reset_variations { display: inline-block; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.3); }
.woocommerce-variation-price .price { font-size: 22px; margin-bottom: 8px; }
.woocommerce-variation-availability { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.quantity { display: inline-flex; margin-right: 12px; }
.quantity input.qty {
  width: 64px; height: 48px; background: transparent; border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; color: #fff; text-align: center; font-size: 14px; font-family: inherit;
}
.single_add_to_cart_button {
  background: #ffffff !important; color: #050505 !important; font-weight: 600 !important;
  font-size: 14px !important; padding: 12px 28px !important; border-radius: 8px !important;
  border: none !important; cursor: pointer; transition: all .15s; height: 48px;
}
.single_add_to_cart_button:hover { background: #e5e5e5 !important; transform: translateY(-1px); }
.single_add_to_cart_button.disabled { background: rgba(255,255,255,.1) !important; color: rgba(255,255,255,.3) !important; cursor: not-allowed; }
p.stock { font-size: 12px; color: rgba(255,255,255,.4); margin: 12px 0 0; }
p.stock.out-of-stock { color: #f87171; }
.product_meta { font-size: 12px; color: rgba(255,255,255,.3); margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.05); }
.product_meta a { color: rgba(255,255,255,.4); }
.product_meta a:hover { color: #fff; }
.product_meta > span { display: block; margin-bottom: 4px; }

/* Acordeón (inyectado desde functions.php) */
.nx-accordion { border: 1px solid rgba(255,255,255,.05); border-radius: 12px; overflow: hidden; margin-top: 24px; }
.nx-accordion-item { border-bottom: 1px solid rgba(255,255,255,.05); }
.nx-accordion-item:last-child { border-bottom: none; }
.nx-accordion-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; background: transparent; border: none; color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; padding: 16px; cursor: pointer; text-align: left; }
.nx-accordion-btn:hover { background: rgba(255,255,255,.02); }
.nx-accordion-btn i { color: rgba(255,255,255,.3); transition: transform .2s; }
.nx-accordion-panel { padding: 0 16px 16px; font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.6; }
.nx-accordion-panel.hidden { display: none; }

/* Tabs nativas */
.woocommerce-tabs { margin-top: 80px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0 0 32px; border-bottom: 1px solid rgba(255,255,255,.05); }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; }
.woocommerce-tabs ul.tabs li a { display: inline-block; padding-bottom: 16px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.4); border-bottom: 2px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: #fff; border-bottom-color: #fff; }
.woocommerce-tabs .panel { color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.7; }
.woocommerce-tabs .panel h2 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 16px; }

/* Reseñas */
#reviews .comment { background: rgba(24,24,27,.6); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
#reviews .star-rating { float: none; margin-bottom: 8px; }
#reviews #respond input, #reviews #respond textarea { background: rgba(24,24,27,.6); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #fff; padding: 10px 14px; font-family: inherit; }
#reviews #respond #submit { background: #ffffff; color: #050505; font-weight: 600; padding: 12px 28px; border-radius: 8px; border: none; cursor: pointer; }

/* ---------- Grilla de productos (archivo/shop, relacionados, home) ---------- */
ul.products { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0 0 24px; }
@media (min-width: 768px) { ul.products { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
ul.products li.product { background: rgba(24,24,27,.4); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; overflow: hidden; transition: all .3s; padding: 0 !important; margin: 0 !important; }
ul.products li.product:hover { border-color: rgba(255,255,255,.15); transform: translateY(-4px); }
ul.products li.product img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
ul.products li.product .woocommerce-loop-product__title { font-size: 13px; font-weight: 500; padding: 16px 16px 0; color: #fff; }
ul.products li.product .price { font-size: 13px; font-weight: 600; padding: 8px 16px 16px; margin: 0; display: block; }
ul.products li.product .button { display: none; }

/* ---------- Tienda / archivo: título + orden ---------- */
.woocommerce-products-header__title { font-size: 34px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.woocommerce-result-count { font-size: 14px; color: rgba(255,255,255,.4); }
.woocommerce-ordering select {
  background: rgba(24,24,27,.6); border: 1px solid rgba(255,255,255,.1); color: #fff;
  border-radius: 8px; padding: 10px 14px; font-family: inherit; font-size: 14px;
}
nav.woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; justify-content: center; margin-top: 32px; }
nav.woocommerce-pagination ul li { margin: 0; }
nav.woocommerce-pagination ul li a, nav.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: 14px;
}
nav.woocommerce-pagination ul li span.current { background: #fff; color: #050505; font-weight: 600; border-color: #fff; }

/* ---------- Carrito / checkout (esqueleto base) ---------- */
.woocommerce-cart table.cart, .woocommerce-checkout table.shop_table {
  width: 100%; border-collapse: collapse; margin-bottom: 24px;
}
.woocommerce-cart table.cart th, .woocommerce-cart table.cart td,
.woocommerce-checkout table.shop_table th, .woocommerce-checkout table.shop_table td {
  border-bottom: 1px solid rgba(255,255,255,.05); padding: 16px 8px; font-size: 14px; color: rgba(255,255,255,.7);
}
.woocommerce-checkout input[type="text"], .woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"], .woocommerce-checkout textarea, .woocommerce-checkout select {
  background: rgba(24,24,27,.6); border: 1px solid rgba(255,255,255,.1); color: #fff;
  border-radius: 8px; padding: 12px 16px; font-family: inherit; width: 100%;
}
#place_order, .checkout-button {
  background: #ffffff !important; color: #050505 !important; font-weight: 600 !important;
  padding: 14px 28px !important; border-radius: 8px !important; border: none !important;
}

/* WooCommerce notices */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  list-style: none; background: rgba(24,24,27,.7); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 14px 20px; font-size: 14px; margin-bottom: 24px; color: #fff;
}
.woocommerce-error { border-color: rgba(239,68,68,.3); color: #f87171; }
