/*
Theme Name: Volpartes Premium
Theme URI: https://volpartes.cl/
Author: Volpartes
Author URI: https://volpartes.cl/
Description: Tema premium para venta de repuestos de autos de alta gama europeos (Volvo, BMW, Mercedes, Audi, Mini). Optimizado para WooCommerce con catálogo de productos, cotización por importación y diseño moderno responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: volpartes
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, translation-ready, two-columns, right-sidebar, custom-colors, theme-options
WC requires at least: 7.0
WC tested up to: 9.0
*/

:root {
  /* Colores marca Volpartes - Azul escandinavo + acentos */
  --vp-primary: #1a3a5c;
  --vp-primary-dark: #0f2540;
  --vp-primary-light: #2d5a8a;
  --vp-accent: #e87722;
  --vp-accent-dark: #c9631a;
  --vp-accent-light: #f2934a;
  --vp-success: #2e7d32;
  --vp-warning: #f9a825;
  --vp-error: #c62828;
  --vp-neutral-50: #f8f9fa;
  --vp-neutral-100: #f0f2f5;
  --vp-neutral-200: #e2e6ea;
  --vp-neutral-300: #ced4da;
  --vp-neutral-400: #9aa5ad;
  --vp-neutral-500: #6c7680;
  --vp-neutral-600: #4a5258;
  --vp-neutral-700: #333a3f;
  --vp-neutral-800: #222831;
  --vp-neutral-900: #161b20;
  --vp-white: #ffffff;
  --vp-font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --vp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --vp-radius-sm: 6px;
  --vp-radius-md: 10px;
  --vp-radius-lg: 16px;
  --vp-radius-xl: 24px;
  --vp-shadow-sm: 0 1px 3px rgba(15, 37, 64, 0.08);
  --vp-shadow-md: 0 4px 12px rgba(15, 37, 64, 0.1);
  --vp-shadow-lg: 0 12px 40px rgba(15, 37, 64, 0.15);
  --vp-shadow-xl: 0 24px 60px rgba(15, 37, 64, 0.2);
  --vp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --vp-container: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--vp-font-body);
  color: var(--vp-neutral-800);
  background: var(--vp-neutral-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vp-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--vp-primary-dark);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; }

a {
  color: var(--vp-primary);
  text-decoration: none;
  transition: var(--vp-transition);
}

a:hover { color: var(--vp-accent); }

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

.container {
  max-width: var(--vp-container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Botones */
.vp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--vp-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--vp-radius-md);
  cursor: pointer;
  transition: var(--vp-transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.vp-btn-primary {
  background: var(--vp-accent);
  color: var(--vp-white);
  box-shadow: 0 4px 14px rgba(232, 119, 34, 0.35);
}

.vp-btn-primary:hover {
  background: var(--vp-accent-dark);
  color: var(--vp-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 119, 34, 0.45);
}

.vp-btn-secondary {
  background: var(--vp-white);
  color: var(--vp-primary);
  border: 2px solid var(--vp-primary);
}

.vp-btn-secondary:hover {
  background: var(--vp-primary);
  color: var(--vp-white);
  transform: translateY(-2px);
}

.vp-btn-ghost {
  background: transparent;
  color: var(--vp-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.vp-btn-ghost:hover {
  background: var(--vp-white);
  color: var(--vp-primary);
  border-color: var(--vp-white);
}

.vp-btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.vp-btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.vp-btn-block {
  width: 100%;
}

/* Utilidades */
.vp-section {
  padding: 80px 0;
}

.vp-section-sm {
  padding: 48px 0;
}

.vp-bg-dark {
  background: var(--vp-primary-dark);
  color: var(--vp-neutral-200);
}

.vp-bg-light {
  background: var(--vp-neutral-100);
}

.vp-bg-gradient {
  background: linear-gradient(135deg, var(--vp-primary-dark) 0%, var(--vp-primary) 100%);
}

.vp-eyebrow {
  display: inline-block;
  font-family: var(--vp-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vp-accent);
  margin-bottom: 16px;
}

.vp-section-title {
  text-align: center;
  margin-bottom: 12px;
}

.vp-section-subtitle {
  text-align: center;
  color: var(--vp-neutral-500);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

.vp-divider {
  width: 60px;
  height: 4px;
  background: var(--vp-accent);
  border-radius: 2px;
  margin: 12px auto 40px;
}

/* Animaciones */
@keyframes vp-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vp-slide-right {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes vp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes vp-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.vp-animate {
  animation: vp-fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.vp-animate-in {
  opacity: 0;
}

.vp-animate-in.vp-visible {
  animation: vp-fade-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Accesibilidad */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--vp-primary);
  color: var(--vp-white);
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: var(--vp-white);
}

/* WordPress core align */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.alignwide { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--vp-neutral-500); text-align: center; }
.sticky { display: block; }
.bypostauthor { display: block; }
.gallery-caption { font-size: 0.8rem; color: var(--vp-neutral-500); }
