/* =========================================
   1. VARIABLES GLOBALES Y MODO OSCURO (APP PREMIUM)
   ========================================= */
:root {
    /* Paleta Claro (Light Mode) */
    --bg-body: #edf0f3; /* Un gris-azul muy suave para que las tarjetas blancas resalten */
    --bg-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --card-border: #baccffc2;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-light: rgba(226, 232, 240, 0.8);
    
    /* Sombras multicapa (Efecto Levitación Apple) */
    --shadow-app: 0 10px 20px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
    
    /* Configuración Estética Premium */
    --card-radius: 24px;
    --btn-radius: 14px; /* Estilo iOS moderno (rectángulo muy redondeado) */
    --transicion-suave: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Variables dinámicas */
    --color-price: var(--color-primary); 
    --img-shadow: drop-shadow(0 15px 15px rgba(0,0,0,0.06));
}

/* Paleta Oscuro (Dark Mode) - Automático o por Switch */
[data-theme="dark"] {
    --bg-body: #0f1421; /* Azul ultra oscuro, casi negro */
    /* Degradado profundo para la tarjeta, da sensación de material físico */
    --bg-card: linear-gradient(160deg, #162032 0%, #0d131f 100%); 
    --card-border: #baccffc2;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* Sombras oscuras y borde superior iluminado (Efecto cristal) */
    --shadow-app: 0 15px 30px -5px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    --shadow-hover: 0 30px 60px -10px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    
    /* Correcciones para Modo Oscuro */
    --color-price: #0ea5e9; /* Azul eléctrico neón que brilla en la oscuridad */
    --img-shadow: drop-shadow(0 20px 25px rgba(0,0,0,0.5));
}

/* =========================================
   2. RESETEO Y BASE GLOBALES (SCROLL CORREGIDO)
   ========================================= */
html {
    /* Permitir scroll vertical natural y bloquear desbordamiento horizontal */
    overflow-x: hidden;
    width: 100%;
    /* Mueve la regla del rebote aquí. Evita el rebote en móviles sin romper el scroll del ratón */
    overscroll-behavior-y: none; 
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.5s ease, color 0.5s ease; 
    
    width: 100%;
    /* Eliminamos overflow-x de aquí porque ya está en html (evita conflictos en algunos navegadores) */
    
    /* overscroll-behavior-y: none; <- ELIMINADO DE AQUÍ PARA REPARAR EL MOUSE */
    
    -webkit-text-size-adjust: 100%; 
    -webkit-tap-highlight-color: transparent; 
    touch-action: manipulation; 
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.site-main {
    padding: 0px 0 40px;
}


/* 9. LIMPIEZA */
.woocommerce-order-details__title, 
.woocommerce-customer-details, 
.mq-photos-grid, 
.cgt-galeria-grid, .page-title,
.woocommerce-order-details, .woocommerce-message { 
    display: none !important; 
}
