/*
Theme Name: SCP New by Acuciante Design
Theme URI: https://acuciante.design
Author: Acuciante Design
Author URI: https://acuciante.design
Description: Tema base para WooCommerce desarrollado por Acuciante Design.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scpnew
Tags: woocommerce, e-commerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, translation-ready

Este tema es base para tiendas WooCommerce.
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* ===== VARIABLES DE COLOR ===== */
:root {
    --scp-dark:         #0f0f0f;
    --scp-purple:       #6B21A8;
    --scp-purple-nav:   #5A189A;
    --scp-purple-light: #9333EA;
    --scp-purple-faint: rgba(107, 33, 168, 0.12);
    --scp-accent:       #9333EA;
    --scp-accent-hover: #7E22CE;
    --scp-white:        #ffffff;
    --scp-gray-bg:      #f5f5f7;
    --scp-border:       #e0e0e0;
    --scp-text:         #222222;
    --scp-text-muted:   #666666;
    --scp-font-body:    'Segoe UI', system-ui, -apple-system, sans-serif;
    --scp-font-headings: var(--scp-font-body);
    --scp-font-size-base: 16px;
    --scp-font-size-nav: 15px;
    --scp-font-size-h1: 32px;
    --scp-font-size-h2: 24px;
    --scp-container-max: 1280px;
    --scp-container-pad: 20px;
    --scp-box-radius: 14px;
    --scp-order-payment-focus-max: 1200px;
    --scp-promo-hover-scale: 1.10;
    --scp-promo-hover-duration: 0.75s;
    --scp-promo-hover-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--scp-font-body, 'Segoe UI', system-ui, -apple-system, sans-serif);
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--scp-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== LAYOUT ===== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--scp-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--scp-container-pad);
    padding-right: var(--scp-container-pad);
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* --- Barra superior (oscura) --- */
.header-top {
    background: var(--scp-dark);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-top .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px 24px;
}

.header-top__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px 24px;
}

/* Hamburguesa en barra superior — solo mobile */
.menu-toggle--top {
    display: none;
    grid-column: 1;
    justify-self: start;
}

/* Toggle buscador — solo mobile */
.header-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--scp-purple-light);
    line-height: 0;
    flex-shrink: 0;
}

.header-search-toggle__icon--close {
    display: none;
}

.header-top.is-search-open .header-search-toggle__icon--open {
    display: none;
}

.header-top.is-search-open .header-search-toggle__icon--close {
    display: block;
}

.header-top.is-search-open .header-search-toggle {
    color: var(--scp-white);
}

/* Logo */
.site-branding {
    flex-shrink: 0;
    grid-column: 1;
    justify-self: start;
}

.site-branding a.custom-logo-link img,
.site-branding .scp-img-load img,
.site-logo {
    max-height: 56px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.site-branding .scp-img-load {
    width: auto;
    max-width: 100%;
    display: block;
}

.site-logo-link {
    display: block;
    line-height: 0;
}

.site-logo-link:hover .site-logo {
    opacity: 0.85;
}

/* Buscador wrapper — ancho ~mitad del header (+30%), centrado */
.header-search-wrap {
    width: 100%;
    max-width: 624px;
    min-width: 338px;
    justify-self: center;
    grid-column: 2;
}

.header-top .header-actions {
    grid-column: 3;
    justify-self: end;
}

.scpnew-fibosearch-wrap {
    width: 100%;
}

/* Buscador nativo (fallback sin FiboSearch) */
.header-search {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    background: var(--scp-white);
    border: 1.5px solid var(--scp-purple-light);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
    border-color: var(--scp-purple);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

/* FiboSearch: ver assets/css/fibosearch-header.css */

.header-search__btn {
    background: transparent;
    border: none;
    padding: 0 14px;
    height: 46px;
    display: flex;
    align-items: center;
    color: var(--scp-purple-light);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
}

.header-search__btn:hover {
    background: transparent;
    color: var(--scp-purple);
    transform: none;
}

.header-search__input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--scp-text);
    font-size: 1rem;
    padding: 0 14px 0 0;
    height: 46px;
    width: 100%;
    font-family: inherit;
}

.header-search__input::placeholder {
    color: #999;
}

.header-search__input::-webkit-search-cancel-button {
    opacity: 0.45;
}

/* Acciones (usuario + carrito) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    justify-self: end;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--scp-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}

.header-action:hover {
    color: var(--scp-purple-light);
    text-decoration: none;
}

.header-action svg {
    flex-shrink: 0;
    color: var(--scp-purple-light);
}

.header-action__label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e53935;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
}

.cart-count.is-empty {
    display: none;
}

/* --- Mini-carrito desplegable --- */
.header-mini-cart {
    position: relative;
}

.header-mini-cart.is-open::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: min(340px, calc(100vw - 24px));
    height: 12px;
}

.header-mini-cart__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.header-action.header-mini-cart__toggle:hover,
.header-action.header-mini-cart__toggle:focus,
.header-action.header-mini-cart__toggle:focus-visible,
.header-action.header-mini-cart__toggle:active {
    color: var(--scp-white);
    background: none;
    border: none;
    transform: none;
    text-decoration: none;
}

.header-action.header-mini-cart__toggle:hover svg,
.header-action.header-mini-cart__toggle:focus svg,
.header-action.header-mini-cart__toggle:active svg {
    color: var(--scp-purple-light);
}

.header-mini-cart__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

/* Puente invisible para no perder hover entre ícono y dropdown */
.header-mini-cart__dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.header-mini-cart.is-open .header-mini-cart__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-mini-cart__inner {
    padding: 16px;
}

.header-mini-cart__empty {
    margin: 0;
    padding: 12px 0;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

.header-mini-cart__items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.header-mini-cart__item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.header-mini-cart__item:last-child {
    border-bottom: none;
}

.header-mini-cart__thumb {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.header-mini-cart__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.header-mini-cart__details {
    min-width: 0;
}

.header-mini-cart__name {
    display: block;
    color: #1a1a1a;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    margin-bottom: 4px;
}

.header-mini-cart__name:hover {
    color: var(--scp-purple);
}

.header-mini-cart__meta {
    display: block;
    color: #666;
    font-size: 0.78rem;
}

.header-mini-cart__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #999;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.header-mini-cart__remove:hover {
    color: #c00;
    background: rgba(204, 0, 0, 0.08);
}

.header-mini-cart__subtotal {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.header-mini-cart__subtotal strong {
    font-weight: 700;
}

.header-mini-cart__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.header-mini-cart__btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.header-mini-cart__btn--view,
.header-mini-cart__btn--checkout {
    background: var(--scp-purple-light);
    color: #fff;
}

.header-mini-cart__btn--view:hover,
.header-mini-cart__btn--checkout:hover {
    background: var(--scp-purple);
    color: #fff;
    text-decoration: none;
}

/* --- Barra de navegación --- */
.header-nav-wrap {
    background: var(--scp-purple-nav);
}

.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 48px;
}

.main-navigation {
    flex: 1;
    width: 100%;
}

/* Menú centrado: [Categorías + Menú 1] | ARMA TU PC | Menú 2 */
.main-navigation .nav-inner,
.main-navigation .nav-inner--desktop {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 4px;
}

.nav-left-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 4px;
}

.nav-inner--with-mega .nav-left-cluster {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
}

.nav-mega-slot {
    justify-self: start;
    flex-shrink: 0;
}

.nav-menu--left {
    justify-self: end;
    min-width: 0;
}

.nav-menu--right {
    justify-self: start;
}

.nav-center {
    justify-self: center;
    padding: 0 10px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu ul li a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    line-height: 1;
}

.nav-menu ul li a:hover,
.nav-menu ul li.current-menu-item > a,
.nav-menu ul li.current-menu-ancestor > a {
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
}

/* Botón central ARMA TU PC */
.nav-pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 24px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--scp-purple-nav);
    background: linear-gradient(180deg, #ffffff 0%, #f3ecff 100%);
    border: 2px solid rgba(255,255,255,0.95);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,1);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-pc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,1);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    color: var(--scp-purple);
    text-decoration: none;
}

/* Botón ARMA TU PC — fondo animado tech/IA */
.nav-pc-btn--animated {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(124, 58, 237, 0.35);
}

.nav-pc-btn--animated::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(
        125deg,
        #0f0320 0%,
        #3b1578 22%,
        #7c3aed 42%,
        #06b6d4 52%,
        #9333EA 68%,
        #5A189A 85%,
        #2d1065 100%
    );
    background-size: 320% 320%;
    animation: scpnew-pc-btn-gradient-flow 16s ease-in-out infinite;
}

.nav-pc-btn__text {
    position: relative;
    z-index: 2;
}

.nav-pc-btn--animated:hover {
    color: #ffffff;
    background: transparent;
    transform: translateY(-1px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(6, 182, 212, 0.45),
        0 0 36px rgba(124, 58, 237, 0.4);
    text-decoration: none;
}

@keyframes scpnew-pc-btn-gradient-flow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-pc-btn--animated::before {
        animation: none;
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
}

/* Botón en barra morada — solo móvil (desktop usa .nav-center) */
.nav-pc-btn--mobile-bar {
    display: none;
}

/* Submenús */
.nav-menu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a0533;
    min-width: 200px;
    z-index: 300;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-radius: 0 0 8px 8px;
    flex-direction: column;
}

.nav-menu ul li:hover > ul,
.nav-menu ul li:focus-within > ul {
    display: flex;
}

.nav-menu ul li ul li a {
    padding: 11px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-menu ul li ul li:last-child a {
    border-bottom: none;
}

/* Botón hamburguesa (mobile): solo 3 rayas; lila en hover/abierto → X */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    flex-shrink: 0;
    width: auto;
    height: auto;
    line-height: 0;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--scp-purple-light);
    outline-offset: 4px;
    border-radius: 4px;
}

.menu-toggle__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 16px;
}

.menu-toggle__bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover .menu-toggle__bar,
.menu-toggle[aria-expanded="true"] .menu-toggle__bar {
    background: var(--scp-purple-light);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Panel menú mobile */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(15, 15, 15, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.mobile-nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-panel {
    display: none;
}

.nav-inner--desktop {
    display: grid;
}

/* Branding inside header-top — eliminar estilos legacy */
.site-branding .site-title,
.site-branding .site-description { display: none; }

/* ===== HERO / BANNER ===== */
.site-hero {
    background: linear-gradient(135deg, #e8eaf0 0%, #f5f5f7 100%);
    padding: 60px 0;
    text-align: center;
}

.site-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.site-hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* ===== MAIN CONTENT ===== */
.content-area {
    padding: 40px 0;
}

/* ===== SIDEBAR ===== */
.with-sidebar .content-area {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

.widget-area {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e8e8e8;
}

.widget-area .widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #444;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: auto;
    padding: 0;
    background: transparent;
    color: #e8e8ec;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.site-footer .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.site-footer__main {
    background: #0f0f0f;
    padding: 40px 0 36px;
}

.footer-main {
    display: grid;
    grid-template-columns: 120px 1.1fr 1fr 1fr 1.15fr;
    gap: 0;
    align-items: start;
}

.footer-main__col {
    padding: 0 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    min-height: 100%;
}

.footer-main__col--qr {
    padding-left: 0;
    border-left: none;
}

.footer-qr {
    display: block;
    line-height: 0;
}

.footer-qr__img {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav__list a {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1.35;
    transition: color 0.2s;
}

.footer-nav__list a:hover {
    color: var(--scp-purple-light, #9333ea);
    text-decoration: none;
}

.footer-col__title {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.footer-col__title--spaced {
    margin-top: 22px;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #d8d8de;
}

.footer-contact-list__item--email {
    flex-wrap: nowrap;
    align-items: center;
}

.footer-contact-list a {
    color: #d8d8de;
    text-decoration: none;
    word-break: break-word;
}

.footer-contact-list a.footer-email,
.footer-contact-list a.js-email {
    white-space: nowrap;
    word-break: normal;
    flex-shrink: 0;
    font-size: 0.8rem;
    letter-spacing: -0.01em;
}

.footer-contact-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #fff;
    opacity: 0.9;
}

.site-footer__legal {
    background: #000;
    padding: 22px 0;
    color: #d8d8de;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal__disclaimer {
    margin: 0 0 8px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #9a9aa8;
    max-width: 720px;
}

.footer-legal__copyright {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f0f0f2;
}

.footer-designer {
    display: inline-block;
    text-decoration: none;
}

.footer-designer--text {
    font-size: 0.68rem;
    font-weight: 700;
    font-style: italic;
    color: var(--scp-purple-light, #9333ea);
    letter-spacing: -0.02em;
}

.footer-designer__img {
    max-height: 24px;
    width: auto;
    display: block;
}

@media (max-width: 1024px) {
    .footer-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .footer-main__col {
        width: 100%;
        max-width: 100%;
        border-left: none;
        padding: 0;
        box-sizing: border-box;
    }

    .footer-main__col--qr {
        order: 5;
    }
}

@media (max-width: 640px) {
    .site-footer__main {
        padding: 20px 0 28px;
        background: #080808;
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .footer-main__col {
        order: 2;
        width: 100%;
        max-width: 100%;
        padding: 18px 20px;
        border-left: none;
        border-radius: 14px;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
        border: 1px solid rgba(255, 255, 255, 0.09);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
        box-sizing: border-box;
    }

    .footer-main__col--links {
        order: 1;
    }

    .footer-main__col--contact {
        order: 2;
    }

    .footer-main__col--rma {
        order: 3;
    }

    .footer-main__col--address {
        order: 4;
    }

    .footer-main__col--qr {
        order: 5;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 22px 20px;
    }

    .footer-main__col--qr .footer-qr {
        margin: 0 auto;
    }

    .footer-qr__img {
        width: 132px;
        height: 132px;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }

    .footer-col__title {
        font-size: 0.9rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-col__title--spaced {
        margin-top: 18px;
    }

    .footer-nav__list {
        gap: 8px;
    }

    .footer-nav__list a {
        font-size: 0.74rem;
    }

    .footer-contact-list li {
        font-size: 0.82rem;
    }

    .footer-contact-list__item--email {
        flex-wrap: wrap;
    }

    .footer-contact-list a.footer-email,
    .footer-contact-list a.js-email {
        white-space: normal;
        word-break: break-all;
        flex-shrink: 1;
    }

    .site-footer__legal {
        padding: 24px 0 28px;
    }

    .footer-legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-legal__copy {
        width: 100%;
    }

    .footer-legal__disclaimer {
        max-width: none;
        font-size: 0.7rem;
    }

    .footer-legal__copyright {
        font-size: 0.76rem;
    }

    .footer-legal__brand {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 4px;
    }

    .footer-designer {
        display: flex;
        justify-content: center;
    }

    .footer-designer__img {
        max-height: 28px;
    }
}

/* ===== BOTONES ===== */
.btn,
button,
input[type="submit"],
.button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--scp-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover,
button:not(.header-mini-cart__toggle):not(.header-search-toggle):not(.menu-toggle):hover,
input[type="submit"]:hover,
.button:hover {
    background: var(--scp-accent-hover);
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

/* ===== WOOCOMMERCE ===== */

/* Grid de productos (tienda genérica; el catálogo usa .scp-catalog-grid) */
.woocommerce ul.products:not(.scp-catalog-grid) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products:not(.scp-catalog-grid) li.product {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
}

.woocommerce ul.products:not(.scp-catalog-grid) li.product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.woocommerce ul.products:not(.scp-catalog-grid) li.product a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.woocommerce ul.products:not(.scp-catalog-grid) li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 12px 4px;
    color: #222;
}

.woocommerce ul.products:not(.scp-catalog-grid) li.product .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--scp-accent);
    padding: 4px 12px 12px;
}

.woocommerce ul.products:not(.scp-catalog-grid) li.product .button {
    margin: 0 12px 16px;
    width: calc(100% - 24px);
    text-align: center;
}

/* Página de producto individual — el layout lo define .scp-single-product */
.woocommerce div.product:not(.scp-single-product) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background: #ffffff;
    border-radius: 10px;
    padding: 32px;
    border: 1px solid #e8e8e8;
}

.woocommerce div.product .product_title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.woocommerce div.product p.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--scp-accent);
    margin-bottom: 20px;
}

/* Carrito */
.woocommerce table.cart th,
.woocommerce table.cart td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* Checkout */
.woocommerce form .form-row {
    margin-bottom: 16px;
}

.woocommerce form .form-row label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 4px;
    display: block;
}

.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--scp-accent);
    outline: none;
}

/* Mensajes WooCommerce */
.woocommerce-message,
.woocommerce-info {
    background: #e8f0fe;
    border-left: 4px solid var(--scp-accent);
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    color: #333;
}

.woocommerce-error {
    background: #fdecea;
    border-left: 4px solid #d32f2f;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    color: #333;
    list-style: none;
}

/* ===== RESPONSIVE ===== */
/* Tablet: menú desktop con muchas categorías — scroll horizontal en lugar de recorte */
@media (max-width: 1200px) and (min-width: 901px) {
    .header-nav-inner {
        justify-content: flex-start;
    }

    .main-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-navigation::-webkit-scrollbar {
        display: none;
    }

    .main-navigation .nav-inner--desktop {
        width: max-content;
        min-width: 100%;
    }

    .nav-menu ul li a {
        padding: 13px 12px;
        font-size: 0.85rem;
    }

    .nav-pc-btn {
        padding: 8px 16px;
        font-size: 0.72rem;
    }
}

@media (max-width: 900px) {
    :root {
        --scp-container-pad: 16px;
        --header-mobile-bar-h: 44px;
        --header-mobile-offset: 64px;
    }

    .header-search-wrap {
        max-width: none;
    }

    .header-action__label {
        display: none;
    }

    /* Header mobile: [menú] [logo centro] [buscar | cuenta | carrito] */
    .header-top {
        padding: 10px 0;
        overflow: visible;
    }
    .header-top.is-search-open {
        overflow: visible;
    }
    .header-top__inner,
    .header-top .header-top__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0 8px;
        position: relative;
        min-height: var(--header-mobile-bar-h);
    }
    .menu-toggle--top {
        display: flex;
        order: 1;
    }

    /* Iconos del header en blanco (mejor contraste sobre fondo oscuro) */
    .header-search-toggle {
        color: #fff;
    }
    .header-action {
        color: #fff;
    }
    .header-action svg {
        color: #fff;
    }
    .header-action:hover {
        color: rgba(255, 255, 255, 0.85);
    }
    .header-action.header-mini-cart__toggle:hover,
    .header-action.header-mini-cart__toggle:focus,
    .header-action.header-mini-cart__toggle:active {
        color: #fff;
    }
    .header-action.header-mini-cart__toggle:hover svg,
    .header-action.header-mini-cart__toggle:focus svg,
    .header-action.header-mini-cart__toggle:active svg {
        color: #fff;
    }
    .site-branding {
        order: 2;
        position: absolute;
        left: 50%;
        top: calc(var(--header-mobile-bar-h) / 2);
        transform: translate(-50%, -50%);
        flex: none;
        width: auto;
        max-width: min(168px, calc(100vw - 148px));
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        grid-column: auto;
        justify-self: center;
        z-index: 1;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }
    .site-branding a {
        pointer-events: auto;
        line-height: 0;
    }
    .site-branding .scp-img-load {
        width: auto;
        max-width: 100%;
        background: none;
        animation: none;
    }
    .site-branding .scp-img-load::after {
        display: none;
    }
    .site-branding a.custom-logo-link img,
    .site-branding .scp-img-load img,
    .site-logo {
        width: auto !important;
        max-width: 100%;
        height: auto !important;
        max-height: 44px;
        object-fit: contain;
    }
    .header-actions {
        order: 3;
        justify-self: end;
        gap: 10px;
        grid-column: auto;
    }
    .header-search-toggle {
        display: inline-flex;
    }
    .header-search-wrap {
        order: 4;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
        grid-column: auto;
        justify-self: stretch;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        pointer-events: none;
        transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.32s ease;
        box-sizing: border-box;
    }
    .header-top.is-search-open .header-top__inner {
        overflow: visible;
    }

    .header-top.is-search-open .header-search-wrap {
        /* Ancho completo de pantalla (sale del padding del .container) */
        width: 100vw;
        max-width: 100vw;
        flex: 0 0 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-top: 6px;
        max-height: 80px;
        opacity: 1;
        padding: 10px var(--scp-container-pad, 16px) 12px;
        pointer-events: auto;
        position: relative;
        z-index: 2;
    }
    .header-top.is-search-open .header-search-wrap .scpnew-fibosearch-wrap,
    .header-top.is-search-open .header-search-wrap .header-search,
    .header-top.is-search-open .header-search-wrap .dgwt-wcas-search-wrapp {
        width: 100%;
        max-width: 100%;
    }

    /* Barra morada: botón ARMA TU PC centrado */
    .header-nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        min-height: 48px;
        padding: 6px 0;
    }
    .nav-pc-btn--mobile-bar {
        display: inline-flex;
        flex: 0 0 100%;
        justify-content: center;
        order: 1;
        position: static;
        transform: none;
        padding: 7px 18px;
        font-size: 0.68rem;
    }
    .nav-pc-btn--mobile-bar:hover {
        transform: translateY(-1px);
    }
    .main-navigation {
        width: 100%;
        order: 2;
        height: 0;
        overflow: hidden;
    }

    .nav-inner--desktop {
        display: none !important;
    }

    .mobile-nav-backdrop {
        display: block;
        z-index: 10040;
    }

    .mobile-nav-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 88vw);
        height: 100dvh;
        height: 100vh;
        max-height: none;
        margin: 0;
        padding: calc(var(--header-mobile-offset) + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0px);
        transform: translateX(-105%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10050;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
        background: linear-gradient(180deg, #2d0a52 0%, #1a0533 100%);
    }

    body.mobile-menu-open .mobile-nav-panel,
    .mobile-nav-panel.is-open {
        transform: translateX(0);
    }

    .header-top {
        position: relative;
        z-index: 10060;
    }

    .mobile-nav__featured {
        list-style: none;
        margin: 0;
        padding: 12px 14px 8px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-nav__featured li {
        margin: 0;
    }

    .mobile-nav__link {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 13px 16px;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
        border-radius: 10px;
        transition: background 0.2s, color 0.2s;
        box-sizing: border-box;
    }

    .mobile-nav__link:hover,
    .mobile-nav__link.is-current {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        text-decoration: none;
    }

    .mobile-nav__link--cta {
        justify-content: center;
        background: var(--scp-purple-light, #9333ea);
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
    }

    .mobile-nav__link--cta:hover {
        background: var(--scp-accent-hover, #7e22ce);
    }

    .mobile-nav__link-icon {
        display: inline-flex;
        opacity: 0.9;
    }

    .mobile-nav__divider {
        height: 1px;
        margin: 4px 16px 8px;
        background: rgba(255, 255, 255, 0.12);
    }

    .mobile-nav__section-label {
        margin: 0;
        padding: 10px 16px 4px;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.45);
    }

    .mobile-nav-mega {
        padding-top: 0;
    }

    .mobile-nav-mega > li > .mobile-nav__link {
        font-weight: 700;
        text-transform: none;
        letter-spacing: 0;
        font-size: 0.95rem;
    }

    .mobile-nav-mega__group-label {
        padding: 10px 14px 4px;
        margin: 0;
        list-style: none;
    }

    .mobile-nav-mega__group-label span {
        display: block;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.45);
    }

    .mobile-nav-mega__count {
        margin-left: auto;
        font-size: 0.78rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.45);
    }

    .mobile-nav-mega__view-all-wrap {
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav-mega__view-all {
        font-weight: 700;
        color: var(--scp-purple-light, #c084fc) !important;
    }

    .mobile-nav-menu,
    .mobile-nav-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-menu {
        padding: 0 10px 14px;
    }

    .mobile-nav-menu > li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .mobile-nav-menu > li:last-child {
        border-bottom: none;
    }

    .mobile-nav-menu .mobile-nav__link {
        border-radius: 8px;
        font-weight: 500;
        text-transform: uppercase;
        font-size: 0.88rem;
        letter-spacing: 0.03em;
    }

    .mobile-nav-item--has-children > .mobile-nav__link {
        padding-right: 44px;
        position: relative;
    }

    .mobile-nav-item--has-children > .mobile-nav__link::after {
        content: '';
        position: absolute;
        right: 18px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(255, 255, 255, 0.7);
        border-bottom: 2px solid rgba(255, 255, 255, 0.7);
        transform: translateY(-65%) rotate(45deg);
        transition: transform 0.2s;
    }

    .mobile-nav-item--has-children.is-open > .mobile-nav__link::after {
        transform: translateY(-35%) rotate(-135deg);
    }

    .mobile-nav-submenu {
        display: none;
        padding: 0 0 8px 12px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 0 0 8px 8px;
    }

    .mobile-nav-item--has-children.is-open > .mobile-nav-submenu {
        display: block;
    }

    .mobile-nav-submenu .mobile-nav__link {
        font-size: 0.84rem;
        text-transform: none;
        letter-spacing: 0;
        padding: 10px 14px;
    }

    /* Barra morada: oculta en mobile salvo opción del personalizador (solo ARMA TU PC) */
    .header-nav-wrap--mobile-collapsed {
        display: none;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .mobile-nav-menu .current-menu-item > .mobile-nav__link {
        background: rgba(255, 255, 255, 0.12);
    }

    /* Carrito / checkout: anular layout mobile del header principal */
    body.scp-checkout-header-active .site-header--checkout .header-top.header-top--checkout .container.header-top__inner--checkout {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 0;
        position: relative;
        grid-template-columns: none;
    }

    body.scp-checkout-header-active .site-header--checkout .site-branding {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        order: 0;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 140px);
        width: auto;
        pointer-events: auto;
        z-index: 1;
        justify-self: auto;
        display: flex;
        justify-content: flex-start;
    }

    body.scp-checkout-header-active .site-header--checkout .site-branding a.custom-logo-link img,
    body.scp-checkout-header-active .site-header--checkout .site-branding .scp-img-load img,
    body.scp-checkout-header-active .site-header--checkout .site-logo {
        width: auto !important;
        max-width: 100%;
        height: auto !important;
        max-height: 36px;
        object-fit: contain;
    }

    body.scp-checkout-header-active .site-header--checkout .header-actions--checkout {
        order: 1;
        flex: 0 0 auto;
        gap: 8px;
        margin-left: auto;
        grid-column: auto;
        justify-self: auto;
        z-index: 2;
    }

    body.scp-checkout-header-active .site-header--checkout .header-action__label {
        display: none;
    }

}

@media (max-width: 768px) {
    .with-sidebar .content-area {
        grid-template-columns: 1fr;
    }
    .woocommerce div.product:not(.scp-single-product) {
        grid-template-columns: 1fr;
    }
    .site-hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products:not(.scp-catalog-grid) {
        grid-template-columns: 1fr 1fr;
    }
    .header-top .container {
        gap: 8px;
    }
}
