/*
Theme Name: Maxi-Bombeo
Theme URI: https://maxibombeo.com
Author: Maxi-Bombeo
Description: Tema personalizado para Maxi-Bombeo - WooCommerce + Elementor
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: maxi-bombeo
*/

/* ============================================
   LAGU SANS FONT FACE
============================================ */
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Thin Italic.otf') format('opentype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans ExtraLight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans ExtraLight Italic.otf') format('opentype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Light Italic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Regular Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Medium Italic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans SemiBold Italic.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Bold Italic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans ExtraBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans ExtraBold Italic.otf') format('opentype'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lagu Sans'; src: url('assets/fonts/Lagu Sans Black Italic.otf') format('opentype'); font-weight: 900; font-style: italic; font-display: swap; }

/* ============================================
   VARIABLES
============================================ */
:root {
  --color-primary: #1565C0;
  --color-primary-dark: #0D47A1;
  --color-primary-light: #1976D2;
  --color-accent-red: #E53935;
  --color-accent-orange: #F57C00;
  --color-gradient-nav: linear-gradient(90deg, #E53935 0%, #F57C00 100%);
  --color-gradient-nav-hover: linear-gradient(90deg, #c62828 0%, #e65100 100%);
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-white: #fff;
  --color-bg-light: #f5f5f5;
  --color-border: #e0e0e0;
  --color-price: #E53935;
  --color-whatsapp: #25D366;
  --font-primary: 'Lagu Sans', 'Montserrat', sans-serif;
  --font-secondary: 'Lagu Sans', 'Open Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --topbar-height: 60px;
  --nav-height: 48px;
}

/* ============================================
   RESET & BASE - FULL WIDTH
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* CLAVE: body y page-wrapper siempre full width */
body {
  font-family: var(--font-secondary);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  font-size: 15px;
  width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Elementor body overrides - evitar que Elementor restrinja width */
body.elementor-page #main,
body.elementor-page .site-main,
body.elementor-page .page-content { padding: 0; max-width: none; }

/* WordPress default page wrapper reset */
#page, #content, #primary, #main, .site, .site-content { width: 100%; max-width: 100%; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ============================================
   TOPBAR
============================================ */
#topbar {
  background-color: var(--color-primary);
  color: #fff;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  width: 100%;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.site-logo .logo-text { font-family: var(--font-primary); font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; white-space: nowrap; }
.site-logo img { height: 40px; width: auto; }
.topbar-tagline { font-size: 13px; color: rgba(255,255,255,0.85); white-space: nowrap; }
@media (max-width: 767px) { .topbar-tagline { display: none; } }

/* ============================================
   SEARCH
============================================ */
.search-wrapper { flex: 1; max-width: 480px; position: relative; }
.search-form { display: flex; align-items: center; background: #fff; border-radius: 6px; overflow: hidden; border: 2px solid transparent; transition: var(--transition); }
.search-form:focus-within { border-color: var(--color-accent-orange); }
.search-input { flex: 1; border: none; outline: none; padding: 10px 14px; font-size: 14px; font-family: var(--font-secondary); background: transparent; color: var(--color-text); min-width: 0; }
.search-input::placeholder { color: #999; }
.search-btn { background: var(--color-accent-red); border: none; cursor: pointer; padding: 10px 16px; color: #fff; display: flex; align-items: center; transition: var(--transition); flex-shrink: 0; }
.search-btn:hover { background: #c62828; }
.search-btn svg { width: 18px; height: 18px; fill: currentColor; }
.search-results-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); max-height: 420px; overflow-y: auto; z-index: 9999; display: none; border: 1px solid var(--color-border); }
.search-results-dropdown.active { display: block; animation: fadeDown 0.2s ease; }
@keyframes fadeDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: var(--transition); border-bottom: 1px solid #f0f0f0; text-decoration: none; color: inherit; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f5f9ff; }
.search-result-item img { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; flex-shrink: 0; border: 1px solid #f0f0f0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 13px; font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.search-result-cat { font-size: 11px; color: #999; margin-bottom: 3px; }
.search-result-price { font-size: 13px; color: var(--color-price); font-weight: 700; }
.search-no-results, .search-loading { padding: 16px; text-align: center; color: var(--color-text-light); font-size: 14px; }

/* ============================================
   TOPBAR PHONE & CART
============================================ */
.topbar-phone { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.topbar-phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.topbar-phone:hover { color: var(--color-accent-orange); }
.cart-trigger { position: relative; cursor: pointer; color: #fff; display: flex; align-items: center; background: none; border: none; padding: 8px; border-radius: 6px; transition: var(--transition); }
.cart-trigger:hover { background: rgba(255,255,255,0.15); }
.cart-trigger svg { width: 24px; height: 24px; fill: currentColor; }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--color-accent-red); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* ============================================
   NAVBAR - FULL WIDTH
============================================ */
#main-nav {
  background: var(--color-gradient-nav);
  height: var(--nav-height);
  position: sticky;
  top: var(--topbar-height);
  z-index: 999;
  width: 100%;
}
.nav-inner { display: flex; align-items: stretch; height: 100%; width: 100%; justify-content: center; }
.nav-menu { display: flex; align-items: stretch; height: 100%; width: auto; max-width: 100%; padding: 0; margin: 0; list-style: none; justify-content: center; overflow: visible; flex-wrap: nowrap; }
.nav-menu > li { position: relative; display: flex; align-items: stretch; }
.nav-menu > li > a { display: flex; align-items: center; gap: 5px; padding: 0 14px; color: #fff; font-family: var(--font-primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; transition: var(--transition); }
.nav-menu > li > a:hover, .nav-menu > li:hover > a { background: rgba(0,0,0,0.15); }
.nav-menu > li > a .arrow { width: 10px; height: 10px; fill: rgba(255,255,255,0.8); transition: transform 0.25s; }
.nav-menu > li:hover > a .arrow { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 0 0 var(--border-radius) var(--border-radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--color-accent-red); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.25s ease; z-index: 9998; padding: 0; margin: 0; list-style: none; }
.nav-menu > li:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown li a { display: block; padding: 10px 18px; font-size: 13px; color: var(--color-text); border-bottom: 1px solid #f0f0f0; transition: var(--transition); }
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover { background: #fff5f0; color: var(--color-accent-red); padding-left: 24px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px 16px; color: #fff; align-items: center; gap: 8px; }
.nav-toggle svg { width: 24px; height: 24px; fill: currentColor; }

/* ── NAV OVERFLOW: botón "⋮" para items que no caben ─── */
.nav-more-item { position: relative; display: flex; align-items: stretch; flex-shrink: 0; }
.nav-more-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: #fff; padding: 0 14px; height: 100%;
  font-size: 22px; font-weight: 900; letter-spacing: 0;
  line-height: 1; transition: var(--transition);
}
.nav-more-btn:hover { background: rgba(0,0,0,0.15); }
.nav-more-dropdown {
  position: absolute; top: 100%; right: 0;
  background: var(--color-gradient-nav); /* igual que el nav bar */
  min-width: 220px;
  border-radius: 0 0 8px 8px; box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--color-accent-orange);
  list-style: none; padding: 0; margin: 0;
  z-index: 9999; display: none;
}
.nav-more-dropdown.open { display: block; animation: fadeDown 0.18s ease; }

/* Items del ⋮ — mismos estilos que .nav-menu > li > a */
.nav-more-dropdown > li { position: relative; }
.nav-more-dropdown > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 18px; height: var(--nav-height, 48px);
  color: #fff; font-family: var(--font-primary);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3px; white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.nav-more-dropdown > li:last-child > a { border-bottom: none; }
.nav-more-dropdown > li > a:hover { background: rgba(0,0,0,0.15); }
/* Ocultar la flecha SVG — en lista vertical no hace falta */
.nav-more-dropdown > li > a .arrow { display: none !important; }

/* ── Submenús dentro del ⋮ — igual que .nav-dropdown estándar ── */
.nav-more-dropdown > li .nav-dropdown {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: none !important;
  /* mismo blanco del nav-dropdown normal */
  background: #fff !important;
  border-top: none !important;
  border-left: 3px solid var(--color-accent-red) !important;
  border-radius: 0 !important;
  min-width: unset !important;
  display: none !important;
  transition: none !important;
}
.nav-more-dropdown > li:hover .nav-dropdown { display: block !important; }

/* Links del submenú — exactamente igual que .nav-dropdown li a */
.nav-more-dropdown > li .nav-dropdown li a {
  display: block !important;
  font-size: 13px !important;
  color: var(--color-text) !important;
  padding: 10px 18px !important;
  border-bottom: 1px solid rgb(240, 240, 240) !important;
  transition: var(--transition) !important;
  background: transparent !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.nav-more-dropdown > li .nav-dropdown li:last-child a { border-bottom: none !important; }
.nav-more-dropdown > li .nav-dropdown li a:hover {
  background: #fff5f0 !important;
  color: var(--color-accent-red) !important;
  padding-left: 24px !important;
}

/* ============================================
   MINI CART - FIXED
============================================ */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.mini-cart { position: fixed; top: 0; right: -440px; width: 420px; max-width: 100vw; height: 100vh; background: #fff; z-index: 10001; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transition: right 0.35s cubic-bezier(0.4,0,0.2,1); }
.mini-cart.active { right: 0; }
.mini-cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 2px solid var(--color-border); background: var(--color-primary); color: #fff; flex-shrink: 0; }
.mini-cart-header h3 { font-family: var(--font-primary); font-size: 18px; font-weight: 700; }
.mini-cart-close { background: none; border: none; cursor: pointer; color: #fff; padding: 4px; border-radius: 4px; display: flex; align-items: center; transition: var(--transition); }
.mini-cart-close:hover { background: rgba(255,255,255,0.2); }
.mini-cart-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 0 24px; min-height: 0; }
.mini-cart-empty { text-align: center; padding: 48px 0; color: var(--color-text-light); }
.mini-cart-empty svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.3; }
.mini-cart-empty p { font-size: 15px; margin-bottom: 16px; }
.mini-cart-empty a { display: inline-block; background: var(--color-gradient-nav); color: #fff; padding: 10px 24px; border-radius: var(--border-radius); font-family: var(--font-primary); font-weight: 700; font-size: 14px; }
.mini-cart-loading { text-align: center; padding: 32px; color: var(--color-text-light); }
.mini-cart-loading::after { content: ''; display: block; width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 12px auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.cart-item:last-child { border-bottom: none; }
.cart-item-image { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; border: 1px solid var(--color-border); flex-shrink: 0; padding: 4px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--color-text); margin-bottom: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--color-price); margin-bottom: 8px; font-family: var(--font-primary); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--color-border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--color-text); transition: var(--transition); line-height: 1; flex-shrink: 0; }
.qty-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.qty-input { width: 40px; text-align: center; border: 1px solid var(--color-border); border-radius: 4px; padding: 4px; font-size: 14px; font-weight: 600; }
.cart-item-remove { background: none; border: none; cursor: pointer; color: #ccc; padding: 4px; transition: var(--transition); flex-shrink: 0; display: flex; align-items: center; }
.cart-item-remove:hover { color: var(--color-accent-red); }
.cart-item-remove svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.mini-cart-footer { padding: 20px 24px; border-top: 2px solid var(--color-border); background: #fafafa; flex-shrink: 0; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-subtotal span:first-child { font-size: 14px; color: var(--color-text-light); }
.cart-subtotal .subtotal-price { font-size: 22px; font-weight: 900; color: var(--color-price); font-family: var(--font-primary); }
.btn-checkout { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--color-gradient-nav); color: #fff !important; border: none; border-radius: var(--border-radius); padding: 14px; font-family: var(--font-primary); font-size: 15px; font-weight: 700; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: var(--transition); gap: 8px; }
.btn-checkout:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.btn-view-cart { display: block; text-align: center; margin-top: 10px; color: var(--color-primary); font-size: 13px; font-weight: 600; text-decoration: underline; }
.btn-view-cart:hover { color: var(--color-primary-dark); }

/* ============================================
   WC "AÑADIR AL CARRITO" BUTTONS - fix estilos
============================================ */
/* Fix botón "Ver carrito" que sale sin estilo */
.added_to_cart.wc-forward,
a.added_to_cart {
  display: inline-flex !important;
  align-items: center !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 14px !important;
  font-family: var(--font-primary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  margin: 4px 14px 14px !important;
  text-decoration: none !important;
  border: none !important;
}
.added_to_cart.wc-forward:hover { background: var(--color-primary-dark) !important; }

/* ============================================
   HERO SLIDER
============================================ */
#hero { position: relative; min-height: 520px; overflow: hidden; background: #0a1628; }
.hero-slider { position: relative; width: 100%; height: 100%; min-height: 520px; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
  min-height: 520px;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.hero-slide.prev { opacity: 0; z-index: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.45) 55%, transparent 100%); }
.hero-content { position: relative; z-index: 3; max-width: 600px; padding: 80px 0; }
/* Animaciones de entrada */
.hero-slide.active .hero-brand    { animation: slideUp 0.6s 0.1s both ease; }
.hero-slide.active .hero-title    { animation: slideUp 0.6s 0.25s both ease; }
.hero-slide.active .hero-subtitle { animation: slideUp 0.6s 0.4s both ease; }
.hero-slide.active .btn-hero      { animation: slideUp 0.6s 0.55s both ease; }
@keyframes slideUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
.hero-brand { font-family: var(--font-primary); font-size: 13px; font-weight: 700; color: var(--color-accent-orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.hero-title { font-family: var(--font-primary); font-size: clamp(34px, 5vw, 58px); font-weight: 900; line-height: 1.05; color: #fff; margin-bottom: 8px; text-transform: uppercase; }
.hero-title .highlight { color: var(--color-accent-orange); }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 32px; max-width: 460px; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent-orange); color: #fff; padding: 16px 32px; border-radius: var(--border-radius); font-family: var(--font-primary); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); box-shadow: 0 4px 20px rgba(245,124,0,0.4); }
.btn-hero:hover { background: #e65100; transform: translateY(-2px); color: #fff; }

/* Flechas del slider */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); border-color: #fff; }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
.hero-arrow svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* Dots y barra de progreso */
.hero-controls { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); border: none; padding: 0; }
.hero-dot.active { background: var(--color-accent-orange); transform: scale(1.4); }
.hero-dot:hover { background: rgba(255,255,255,0.8); }
/* Barra de progreso del timer */
.hero-progress-bar {
  width: 160px; height: 3px; background: rgba(255,255,255,0.25); border-radius: 2px; overflow: hidden;
}
.hero-progress-fill {
  height: 100%; background: var(--color-accent-orange); border-radius: 2px;
  width: 0%; transition: width linear;
}

/* ============================================
   CATEGORÍAS
============================================ */
#categories { padding: 40px 0 48px; background: #fff; overflow: hidden; }
#categories .container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ================================================================
   CARRUSEL DE CATEGORÍAS
================================================================ */
.cats-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Viewport: contiene y recorta el track */
.cats-carousel-viewport {
  flex: 1;
  min-width: 0;          /* importante: evita que flex desborde */
  overflow: hidden;
  width: 100%;
}

/* Track: fila de cards, se mueve con translateX */
.cats-carousel-track,
.maxi-cats-dynamic {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  width: max-content;    /* se expande al ancho total de todas las cards */
  will-change: transform;
  /* transition añadida por JS en goTo() para poder hacer cambios sin animación */
}

/* ── FLECHAS ── */
.cats-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #374151;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 10;
  padding: 0;
  line-height: 1;
}
.cats-arrow:hover {
  background: var(--color-primary, #1565C0);
  border-color: var(--color-primary, #1565C0);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(21,101,192,0.28);
}
.cats-arrow svg { pointer-events: none; display: block; }

/* ── CARD ── */
.category-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
  flex-shrink: 0;          /* JS controla el width exacto */
  text-decoration: none;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.category-card:hover img { transform: scale(1.06); }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%); pointer-events: none; }
.category-card-label { position: absolute; bottom: 16px; left: 16px; right: 8px; z-index: 2; }
.category-card-label .line1 { display: block; font-family: var(--font-primary); font-size: 15px; font-weight: 700; color: #fff; text-transform: uppercase; line-height: 1.2; }
.category-card-label .line2 { display: block; font-family: var(--font-primary); font-size: 15px; font-weight: 900; color: var(--color-accent-orange); text-transform: uppercase; line-height: 1.2; }
.cat-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%); }

/* Mobile: flechas más compactas, el viewport siempre corta el overflow */
@media (max-width: 640px) {
  .cats-arrow { width: 36px; height: 36px; min-width: 36px; }
  .cats-arrow svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .cats-arrow { display: none !important; }
}

/* ============================================
   PRODUCT CARDS - MODERNO CON RATING Y CATEGORÍA
============================================ */
.products-section { padding: 48px 0; background: var(--color-bg-light); }
.products-section.white-bg { background: #fff; }
.section-title { font-family: var(--font-primary); font-size: clamp(24px, 3vw, 32px); font-weight: 900; text-align: center; margin-bottom: 36px; color: var(--color-text); }
.section-title .highlight { color: var(--color-accent-red); }
.section-title .highlight-blue { color: var(--color-primary); }

/* ============================================
   PRODUCT CARDS — DISEÑO MODERNO 2026
   Aplica IGUAL en home (Elementor), tienda, búsqueda
   Cargado en style.css para estar disponible SIEMPRE
============================================ */

/* ── Reset total WC ── */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before, ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { float: none !important; clear: none !important; }

/* ── Grid universal ── */
ul.products,
ul.products.columns-1, ul.products.columns-2, ul.products.columns-3,
ul.products.columns-4, ul.products.columns-5, ul.products.columns-6 {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 22px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
}
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr) !important; }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr) !important; }

/* ── TARJETA BASE — diseño moderno con sombra multi-capa ── */
ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  flex: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #eaecf0 !important;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.04) !important;
  overflow: hidden !important;
  transition: transform 0.32s cubic-bezier(.22,.68,0,1.2), box-shadow 0.32s ease, border-color 0.25s ease !important;
  position: relative !important;
}
ul.products li.product:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 8px 24px rgba(21,101,192,0.14), 0 20px 40px rgba(16,24,40,0.10) !important;
  border-color: var(--color-primary) !important;
}

/* ── IMAGEN ── */
ul.products li.product a.woocommerce-LoopProduct-link {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #f7f8fa !important;
  border-bottom: 1px solid #f0f2f5 !important;
}
ul.products li.product a img,
ul.products li.product img.wp-post-image,
ul.products li.product img.attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 200px !important;
  object-fit: contain !important;
  padding: 20px !important;
  display: block !important;
  background: #f7f8fa !important;
  transition: transform 0.42s cubic-bezier(.22,.68,0,1.2) !important;
}
ul.products li.product:hover a img,
ul.products li.product:hover img.attachment-woocommerce_thumbnail {
  transform: scale(1.08) !important;
}

/* ── BADGE OFERTA ── */
ul.products li.product .onsale {
  position: absolute !important; top: 12px !important; left: 12px !important;
  background: linear-gradient(135deg, var(--color-accent-red), #ff6b35) !important;
  color: #fff !important; font-family: var(--font-primary) !important;
  font-size: 10px !important; font-weight: 800 !important;
  padding: 4px 10px !important; border-radius: 20px !important;
  z-index: 5 !important; text-transform: uppercase !important; letter-spacing: 0.4px !important;
  line-height: 1.6 !important; min-height: auto !important; min-width: auto !important;
  width: auto !important; box-shadow: 0 2px 8px rgba(229,57,53,0.4) !important;
}

/* ── CUERPO DE LA TARJETA ── */
.maxi-card-body,
.maxi-product-info {
  padding: 14px 16px 0 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Categoría */
.maxi-product-cat {
  font-size: 10px !important; font-weight: 700 !important; text-transform: uppercase !important;
  letter-spacing: 1px !important; color: var(--color-primary) !important;
  margin-bottom: 5px !important; display: block !important; opacity: 0.85;
}

/* Nombre */
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-primary) !important;
  font-size: 13.5px !important; font-weight: 700 !important;
  padding: 0 !important; line-height: 1.45 !important;
  color: var(--color-text) !important; letter-spacing: -0.1px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 0 8px !important;
  min-height: 38px !important;
}

/* Rating */
.maxi-product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 7px; }
.maxi-stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.maxi-rating-count { font-size: 11px; color: #aaa; }

/* Precio */
ul.products li.product .price {
  font-family: var(--font-primary) !important;
  font-size: 18px !important; font-weight: 900 !important;
  color: var(--color-price) !important; letter-spacing: -0.3px !important;
  padding: 0 !important; margin: 0 0 14px !important;
  display: block !important; line-height: 1.2 !important;
}
ul.products li.product .price del { font-size: 12px !important; color: #bbb !important; font-weight: 400 !important; margin-right: 4px; }
ul.products li.product .price ins { text-decoration: none !important; }
.price-on-request {
  font-family: var(--font-primary); font-size: 13px !important;
  font-weight: 700 !important; color: var(--color-primary) !important;
  background: #e8f0fe; padding: 3px 10px; border-radius: 6px;
  display: inline-block !important;
}

/* ── BOTÓN — degradado corporativo naranja→rojo, radio en esquinas inferiores ── */
ul.products li.product .button,
ul.products li.product .add_to_cart_button,
ul.products li.product .product_type_simple,
ul.products li.product .product_type_variable,
ul.products li.product .product_type_external {
  display: block !important; width: 100% !important;
  background: var(--color-gradient-nav) !important; color: #fff !important;
  border: none !important; border-radius: 0 0 14px 14px !important;
  padding: 13px 16px !important; font-family: var(--font-primary) !important;
  font-size: 12px !important; font-weight: 800 !important;
  text-transform: uppercase !important; letter-spacing: 0.6px !important;
  text-align: center !important; cursor: pointer !important;
  transition: opacity 0.22s ease !important;
  margin: auto 0 0 0 !important; box-sizing: border-box !important;
}
ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover { opacity: 0.87 !important; }
ul.products li.product .maxi-quote-btn {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%) !important;
}
ul.products li.product .maxi-quote-btn:hover { opacity: 0.87 !important; }

/* "Ver carrito" post-añadir */
a.added_to_cart.wc-forward, .added_to_cart {
  display: block !important; width: 100% !important;
  background: var(--color-primary) !important; color: #fff !important;
  border-radius: 0 0 14px 14px !important; padding: 10px 14px !important;
  font-family: var(--font-primary) !important; font-size: 12px !important;
  font-weight: 700 !important; text-align: center !important;
  text-decoration: none !important; border: none !important;
  box-sizing: border-box !important; margin: 0 !important;
}


/* ============================================
   ASESORÍA
============================================ */
#asesoria { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); padding: 64px 20px; text-align: center; }
.asesoria-title { font-family: var(--font-primary); font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: #fff; margin-bottom: 14px; }
.asesoria-title .highlight { color: var(--color-accent-orange); }
.asesoria-subtitle { font-size: 16px; color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; background: var(--color-whatsapp); color: #fff; padding: 16px 36px; border-radius: 50px; font-family: var(--font-primary); font-size: 16px; font-weight: 700; text-decoration: none; transition: var(--transition); box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
.btn-whatsapp svg { width: 22px; height: 22px; fill: currentColor; }
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-2px); color: #fff; }

/* ============================================
   FOOTER - con menús desde admin
============================================ */
#footer { background: var(--color-primary); color: #fff; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo-text { font-family: var(--font-primary); font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.6); margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.85); transition: var(--transition); display: block; }
.footer-col ul li a:hover { color: var(--color-accent-orange); padding-left: 4px; }
/* Override estilos de menú de nav en footer */
#footer .nav-menu, #footer .menu { display: block !important; background: none !important; flex-direction: unset !important; }
#footer .nav-menu li, #footer .menu li { display: block; border: none; }
#footer .nav-menu li a, #footer .menu li a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 0; margin-bottom: 10px; }
#footer .nav-menu li a:hover, #footer .menu li a:hover { color: var(--color-accent-orange); background: none; padding-left: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--color-accent-orange); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-contact-item { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 10px; line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,0.85); }
.footer-contact-item a:hover { color: var(--color-accent-orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-heart { color: var(--color-accent-red); }

/* ============================================
   WHATSAPP FLOAT
============================================ */
#whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 9990; width: 56px; height: 56px; border-radius: 50%; background: var(--color-whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.5); transition: var(--transition); text-decoration: none; }
#whatsapp-float:hover { transform: scale(1.1); }
#whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ============================================
   PÁGINAS INTERNAS - full width fix
============================================ */
body.page #main,
body.single-product #main,
body.woocommerce #main,
body.woocommerce-page #main,
body.error404 #main { width: 100%; max-width: 100%; margin: 0; padding: 0; }

/* WooCommerce wrapper siempre full */
.woocommerce, .woocommerce-page { width: 100% !important; }
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-page .woocommerce-notices-wrapper { width: 100%; }

/* Quitar padding/margin que WordPress añade */
.entry-content, .page-content { margin: 0; padding: 0; }

/* ============================================
   404 PAGE - FIX ESTILOS
============================================ */
.error-404 { min-height: calc(100vh - 200px); display: flex; align-items: center; }
.error-404-section { padding: 80px 0; text-align: center; width: 100%; }
.error-404-content { max-width: 560px; margin: 0 auto; }
.error-404-number { font-family: var(--font-primary); font-size: clamp(80px,15vw,140px); font-weight: 900; line-height: 1; background: var(--color-gradient-nav); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0; display: block; }
.error-404-section h2 { font-family: var(--font-primary); font-size: 28px; font-weight: 800; margin: 8px 0 16px; }
.error-404-section p { color: var(--color-text-light); font-size: 16px; margin-bottom: 32px; line-height: 1.6; }
.error-404-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.btn-outline { display: inline-flex; align-items: center; padding: 14px 28px; border: 2px solid var(--color-primary); color: var(--color-primary); border-radius: var(--border-radius); font-family: var(--font-primary); font-weight: 700; font-size: 15px; transition: var(--transition); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.error-404-search { margin-top: 24px; }
.error-404-search p { font-size: 14px; color: var(--color-text-light); margin-bottom: 12px; }
.error-404-search .search-form { max-width: 380px; margin: 0 auto; border: 2px solid var(--color-border); border-radius: 8px; overflow: hidden; display: flex; }
.error-404-search .search-form input { flex: 1; padding: 12px 16px; border: none; outline: none; font-size: 14px; }
.error-404-search .search-form button { background: var(--color-primary); color: #fff; border: none; padding: 12px 16px; cursor: pointer; }

/* ============================================
   PÁGINA GENÉRICA (page.php)
============================================ */
.page-content-wrapper { padding: 48px 0; }
.page-article .page-title { font-family: var(--font-primary); font-size: clamp(24px,3vw,36px); font-weight: 900; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 3px solid var(--color-accent-orange); }
.page-entry-content { font-size: 16px; line-height: 1.8; color: var(--color-text); }
.page-entry-content h2, .page-entry-content h3 { font-family: var(--font-primary); font-weight: 800; margin: 28px 0 12px; }
.page-entry-content a { color: var(--color-primary); }
.page-entry-content a:hover { color: var(--color-accent-orange); }
.page-entry-content p { margin-bottom: 16px; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
  ul.products { grid-template-columns: repeat(4,1fr) !important; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  ul.products { grid-template-columns: repeat(3,1fr) !important; }
}
@media (max-width: 768px) {
  #main-nav { height: auto; }
  .nav-inner { flex-direction: column; }
  .nav-toggle { display: flex; width: 100%; padding: 12px 20px; font-family: var(--font-primary); font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; }
  .nav-menu { display: none !important; flex-direction: column; width: 100%; border-top: 1px solid rgba(255,255,255,0.2); }
  .nav-menu.open { display: flex !important; }
  .nav-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: rgba(0,0,0,0.15); display: none; border-radius: 0; width: 100%; }
  /* Fix: el <li> es flex-row por defecto → el submenu queda al lado del link.
     Al tener clase open forzamos column para que el dropdown quede debajo */
  .nav-menu > li.open { flex-direction: column; align-items: stretch; }
  .nav-menu > li.open > a { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-menu > li.open .nav-dropdown { display: block; }
  .nav-dropdown li a { padding: 10px 20px 10px 36px; color: rgba(255,255,255,0.85); }
  ul.products { grid-template-columns: repeat(2,1fr) !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .mini-cart { width: 100vw; right: -100vw; }
  #hero, .hero-slider, .hero-slide { min-height: 400px; }
  .hero-content { padding: 40px 0; }
  .hero-arrow { display: none; }
}
@media (max-width: 480px) {
  .search-wrapper { max-width: 180px; }
  .topbar-phone { display: none; }
  ul.products { grid-template-columns: 1fr !important; gap: 14px !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   FIX PRODUCT CARDS WIDTH — HOME ELEMENTOR
   Asegura el grid correcto en todos los contextos
============================================ */

/* Override final para Elementor widget de productos */
.woocommerce ul.products { float: none !important; clear: both; }

@media (max-width: 1200px) {
  ul.products { grid-template-columns: repeat(4,1fr) !important; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  ul.products { grid-template-columns: repeat(3,1fr) !important; }
}
@media (max-width: 768px) {
  ul.products { grid-template-columns: repeat(2,1fr) !important; gap: 14px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr !important; gap: 14px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 20px; }
}

/* ============================================
   FIX v2.8 - ZOOM IMAGEN PRODUCTO + MISC
============================================ */

/* Zoom en imagen de producto single */
.woocommerce-product-gallery,
.woocommerce div.product div.images { border-radius: 12px; overflow: hidden; }
.woocommerce-product-gallery .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image { overflow: hidden; }
.woocommerce-product-gallery .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img:not(.flex-control-nav img) {
  transition: transform 0.45s ease !important;
  cursor: zoom-in !important;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image:hover img,
.woocommerce div.product div.images .woocommerce-product-gallery__image:hover img {
  transform: scale(1.08) !important;
}

/* Sección categorías: oculta hasta que JS la llene */
#categories:not(.has-items) { display: none; }
#categories.has-items { display: block; }

/* Sección .maxi-section con categorías oculta hasta JS */
.maxi-section.cats-empty { display: none; }

/* Fix: productos en home visibles y full-width */
.products-section .container,
.products-section > .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Asegurar que ul.products no desborde el container */
.products-section .container ul.products,
.products-section > .container ul.products {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Fix: WooCommerce shortcode no debe anular el padding del container */
.woocommerce .products-section .woocommerce,
.products-section .woocommerce {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Fix: WooCommerce shortcode products no debe tener overflow hidden */
.woocommerce .woocommerce-product-loop { overflow: visible; }

/* Responsive adicional para grid de productos */
@media (max-width: 1400px) {
  ul.products.columns-5 { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 1100px) {
  ul.products.columns-5,
  ul.products.columns-4 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ============================================
   MOBILE SEARCH TOGGLE — responsive fix
============================================ */

/* Botón lupa (solo visible en mobile) */
.search-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-toggle-btn:hover { background: rgba(255,255,255,0.15); }
.search-toggle-btn svg { width: 22px; height: 22px; display: block; stroke: currentColor; }

/* Barra de búsqueda mobile flotante */
.mobile-search-bar {
  display: none;
  position: fixed;
  top: var(--topbar-height, 60px);
  left: 0;
  right: 0;
  z-index: 9997;
  background: #fff;
  padding: 12px 16px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  border-top: 3px solid var(--color-accent-orange, #f57c00);
}
.mobile-search-bar.open {
  display: block;
  animation: fadeDown 0.2s ease;
}
.mobile-search-bar .search-form {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}
.mobile-search-bar .search-form:focus-within {
  border-color: var(--color-accent-orange, #f57c00);
  background: #fff;
}
.mobile-search-bar .search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-secondary);
  background: transparent;
  color: var(--color-text);
  min-width: 0;
}
.mobile-search-bar .search-btn {
  background: var(--color-accent-red, #e53935);
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.mobile-search-bar .search-btn svg { width: 20px; height: 20px; fill: currentColor; }
.mobile-search-bar .search-results-dropdown {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin-top: 6px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  background: #fff;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--color-border, #eee);
  display: none;
}
.mobile-search-bar .search-results-dropdown.active { display: block; animation: fadeDown 0.15s ease; }

/* En mobile: ocultar buscador del topbar, mostrar botón lupa */
@media (max-width: 767px) {
  .search-wrapper { display: none !important; }
  .topbar-phone  { display: none !important; }
  .search-toggle-btn { display: flex; }
}

/* ============================================
   SECCIÓN EXPERTO — Mario Vargas
============================================ */
.expert-section {
  padding: 72px 0 80px;
  background: #f0f4f8;
  position: relative;
  overflow: hidden;
}
.expert-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-gradient-nav);
}

/* Encabezado */
.expert-header {
  text-align: center;
  margin-bottom: 52px;
}
.expert-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  color: #111827;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.expert-highlight {
  color: var(--color-accent-red);
}
.expert-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid 2 columnas */
.expert-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
}

/* Columna foto */
.expert-photo-col {
  display: flex;
  justify-content: center;
}
.expert-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  background: #fff;
  max-width: 400px;
  width: 100%;
}
.expert-photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

/* Columna contenido */
.expert-content-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Badge "Fundador" */
.expert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gradient-nav);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 999px;
  width: fit-content;
}
.expert-badge svg { flex-shrink: 0; }

/* Párrafos biográficos */
.expert-bio {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  margin: 0;
}
.expert-bio strong { color: #111827; }

/* Stats */
.expert-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.expert-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  min-width: 110px;
  flex: 1;
}
.expert-stat-num {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-accent-red);
  line-height: 1;
  margin-bottom: 4px;
}
.expert-stat-label {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Botón CTA */
.btn-expert-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-whatsapp, #25D366);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  width: fit-content;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  margin-top: 4px;
}
.btn-expert-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

/* ── Botón WA centrado debajo de secciones de productos y casos ── */
.section-wa-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.section-wa-cta .btn-expert-cta {
  margin-top: 0;
  width: auto;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .expert-grid { grid-template-columns: 340px 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .expert-grid { grid-template-columns: 280px 1fr; gap: 32px; }
  .expert-photo-wrap { max-width: 280px; }
}
@media (max-width: 700px) {
  .expert-section { padding: 48px 0 56px; }
  .expert-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .expert-photo-col { order: 1; }
  .expert-content-col { order: 2; }
  .expert-photo-wrap { max-width: 300px; margin: 0 auto; }
  .expert-header { margin-bottom: 36px; }
  .expert-stats { gap: 12px; }
  .expert-stat { padding: 12px 14px; min-width: 90px; }
  .expert-stat-num { font-size: 22px; }
  .btn-expert-cta { width: 100%; justify-content: center; }
}

/* ── Compatibilidad Elementor: [maxi_expert] dentro de widget Shortcode ── */
/* Elementor envuelve el shortcode en .elementor-widget-container, que puede
   agregar padding, line-height y otros estilos que interfieren con la sección */
.elementor-widget-shortcode .expert-section,
.elementor-shortcode .expert-section {
  /* Eliminar margen extra que Elementor pueda agregar */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Evitar que el contenedor del widget herede display:flex y rompa el layout interno */
.elementor-widget-shortcode .elementor-widget-container {
  display: block;
}
/* Asegurar que el grid del experto no sea afectado por Flexbox de Elementor */
.elementor-widget-shortcode .expert-grid {
  display: grid !important;
}
/* El widget shortcode no debe tener padding propio que duplique el de la sección */
.elementor-widget-shortcode > .elementor-widget-container {
  padding: 0 !important;
}

/* ============================================
   CASOS DE ÉXITO
============================================ */
.casos-section {
  padding: 72px 0 80px;
  background: #f0f4f8;
  position: relative;
  overflow: hidden;
}
.casos-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-gradient-nav);
}

/* Slider wrap: posición relativa para las flechas absolutas */
.casos-slider-wrap {
  position: relative;
}

/* Cada slide oculto por defecto, visible si .active */
.caso-slide {
  display: none;
}
.caso-slide.active {
  display: block;
  animation: casoFadeIn 0.5s ease;
}
@keyframes casoFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Grid 2 columnas: fotos | texto */
.caso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Columna fotos ── */
.caso-fotos-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.caso-foto-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  background: #fff;
  position: relative;
  cursor: pointer;
}
.caso-foto-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.caso-foto-wrap:hover img {
  transform: scale(1.04);
}

/* ── Badge "Clic para ampliar" ── */
.caso-foto-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px 5px 10px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}
.caso-foto-wrap:hover .caso-foto-badge {
  opacity: 1;
}

/* ── Lightbox ── */
#maxi-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.2s ease;
}
#maxi-lightbox.active {
  display: flex;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#maxi-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  cursor: default;
  animation: lbZoomIn 0.25s ease;
}
@keyframes lbZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
#maxi-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
}
#maxi-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* ── Columna texto ── */
.caso-texto-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.caso-titulo {
  font-family: var(--font-primary);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}
.caso-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.caso-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 4px solid var(--color-accent-orange);
}
.caso-item-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.caso-item-texto {
  font-size: 14px;
  color: #374151;
  line-height: 1.65;
  margin: 0;
}

/* ── Flechas ── */
.casos-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5e7eb;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.casos-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.casos-arrow svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.casos-prev { left: -24px; }
.casos-next { right: -24px; }

/* ── Dots ── */
.casos-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.casos-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(21,101,192,0.25);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.casos-dot.active {
  background: var(--color-accent-orange);
  transform: scale(1.4);
}
.casos-dot:hover { background: var(--color-primary); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .caso-grid { grid-template-columns: 1fr; gap: 32px; }
  .casos-prev { left: 0; }
  .casos-next { right: 0; }
}
@media (max-width: 640px) {
  .casos-section { padding: 48px 0 56px; }
  .caso-foto-wrap img { height: 200px; }
  .casos-arrow { display: none; }
}

/* ======================================================
   PÁGINA: SOBRE NOSOTROS
   ====================================================== */

/* ── Hero ──────────────────────────────────────────── */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 80px 0 72px;
  text-align: center;
  overflow: hidden;
}
/* Overlay oscuro — activo cuando se pasa --about-hero-overlay vía inline style */
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--about-hero-overlay, 0));
  z-index: 0;
}
/* Línea naranja inferior */
.about-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-gradient-nav);
  z-index: 2;
}
/* Contenido siempre por encima del overlay */
.about-hero .container {
  position: relative;
  z-index: 1;
}
.about-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.about-hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}
.about-hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Secciones base ─────────────────────────────────── */
.about-section {
  padding: 72px 0 80px;
  background: #f0f4f8;
}
.about-section.about-section--white {
  background: #fff;
}

/* ── Quiénes somos ──────────────────────────────────── */
.about-who-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.about-who-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-who-body {
  font-size: 16px;
  color: #374151;
  line-height: 1.85;
  margin: 0;
}
.about-quote {
  border-left: 4px solid var(--color-accent-orange);
  margin: 0;
  padding: 18px 24px;
  background: #fff;
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.6;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
}
.about-who-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 56px;
}
.about-who-stats .expert-stat { width: 100%; }

/* ── Grilla de ítems (Qué hacemos / Qué ofrecemos) ─── */
.about-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.about-item-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-section--white .about-item-card {
  background: #f0f4f8;
  box-shadow: none;
  border: 1px solid #e5e7eb;
}
.about-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.11);
}
.about-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 2px;
}
.about-item-icon--blue { background: var(--color-primary); }
.about-item-card p {
  margin: 0;
  font-size: 15px;
  color: #374151;
  line-height: 1.65;
}

/* ── Misión & Visión ────────────────────────────────── */
.about-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}
.about-mv-card {
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 28px rgba(0,0,0,.1);
}
.about-mv-card--mission {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.about-mv-card--vision {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}
.about-mv-icon { font-size: 36px; line-height: 1; }
.about-mv-card h3 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  color: #fff;
}
.about-mv-card p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  color: rgba(255,255,255,.88);
}

/* ── CTA de la página About ─────────────────────────── */
.about-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 72px 20px;
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .about-who-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-who-stats { flex-direction: row; flex-wrap: wrap; padding-top: 0; }
  .about-who-stats .expert-stat { flex: 1; min-width: 140px; }
  .about-mv-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .about-section  { padding: 48px 0 56px; }
  .about-hero     { padding: 52px 0 48px; }
  .about-items-grid { grid-template-columns: 1fr; }
  .about-mv-card  { padding: 28px 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   PÁGINAS LEGALES (Términos · Privacidad · Envíos)
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero legal ──────────────────────────────────────────────── */
.legal-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 80px 0 72px;
  text-align: center;
  overflow: hidden;
}
/* Overlay oscuro — activo cuando se pasa --legal-hero-overlay vía inline style */
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--legal-hero-overlay, 0));
  z-index: 0;
}
/* Línea naranja inferior */
.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-gradient-nav);
  z-index: 2;
}
/* Contenido siempre por encima del overlay */
.legal-hero .container {
  position: relative;
  z-index: 1;
}
.legal-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.legal-hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.1;
}
.legal-hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Cuerpo del contenido legal ──────────────────────────────── */
.legal-body {
  background: #f8fafc;
  padding: 64px 0 80px;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-section {
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 18px;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: box-shadow .2s ease;
}
.legal-section:last-child {
  margin-bottom: 0;
}
.legal-section:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
.legal-section-title {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.4;
}
.legal-section-num {
  color: var(--color-accent-orange);
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.legal-section-body p {
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.8;
  margin: 0 0 8px;
}
.legal-section-body p:last-child {
  margin-bottom: 0;
}

/* ── Lista de viñetas naranja ────────────────────────────────── */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.legal-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.75;
  margin-bottom: 8px;
}
.legal-list li:last-child {
  margin-bottom: 0;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-accent-orange);
  border-radius: 50%;
}

/* ── Responsive legal ────────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-content { max-width: 100%; }
}
@media (max-width: 640px) {
  .legal-hero    { padding: 52px 0 48px; }
  .legal-section { padding: 24px 20px; }
  .legal-section-title { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   PÁGINA DE CONTACTO
   ═══════════════════════════════════════════════════════════════ */

/* ── Sección principal ───────────────────────────────────────── */
.contact-section {
  background: #f0f4f8;
  padding: 72px 0 80px;
}
.contact-section-title {
  text-align: center !important;
  margin-bottom: 48px !important;
}

/* ── Grid formulario + info ──────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Columna formulario ──────────────────────────────────────── */
.contact-form-subtitle {
  font-family: var(--font-primary);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
}
.contact-form-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 20px;
}
.contact-form-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.contact-no-form {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  border: 2px dashed #cdd5e0;
  color: #666;
  line-height: 1.7;
}
.contact-no-form strong { color: var(--color-primary-dark); }
.contact-no-form code {
  background: #f4f6f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── Columna info ────────────────────────────────────────────── */
.contact-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  position: sticky;
  top: 24px;
}
.contact-info-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f4f8;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid #f0f4f8;
}
.contact-info-item:last-of-type {
  border-bottom: none;
  padding-bottom: 4px;
}
.contact-info-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #eef2fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.contact-info-item > div > strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #999;
  margin-bottom: 4px;
}
.contact-info-item > div p {
  font-size: 14px;
  color: #333;
  line-height: 1.55;
  margin: 0;
}
.contact-info-item > div a {
  color: var(--color-primary);
  text-decoration: none;
}
.contact-info-item > div a:hover {
  text-decoration: underline;
}
.contact-wa-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 11px 18px !important;
  font-size: 14px !important;
  width: 100%;
  border-radius: 10px !important;
}

/* ── Mapa ────────────────────────────────────────────────────── */
.contact-map-section {
  line-height: 0;
  font-size: 0;
}
.contact-map-section iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ── Contact Form 7 overrides ────────────────────────────────── */
.contact-form-wrap .wpcf7-form p {
  margin: 0 0 18px;
}
.contact-form-wrap .wpcf7-form p:last-child { margin-bottom: 0; }

.contact-form-wrap .wpcf7-form strong,
.contact-form-wrap .wpcf7-form b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}
.contact-form-wrap .wpcf7-form label {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  display: inline;
}

/* Campos de texto */
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form input[type="number"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dce3ee;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fafcff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form textarea:focus,
.contact-form-wrap .wpcf7-form select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, .1);
  background: #fff;
}
.contact-form-wrap .wpcf7-form textarea {
  min-height: 88px;
  resize: vertical;
}

/* Radio y checkbox */
.contact-form-wrap .wpcf7-radio,
.contact-form-wrap .wpcf7-checkbox {
  display: block;
}
.contact-form-wrap .wpcf7-radio .wpcf7-list-item,
.contact-form-wrap .wpcf7-checkbox .wpcf7-list-item {
  display: block;
  margin: 5px 0;
}
.contact-form-wrap .wpcf7-radio .wpcf7-list-item-label,
.contact-form-wrap .wpcf7-checkbox .wpcf7-list-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #444;
  font-weight: 400;
}
.contact-form-wrap .wpcf7-form input[type="radio"],
.contact-form-wrap .wpcf7-form input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--color-accent-orange);
  flex-shrink: 0;
  cursor: pointer;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Botón enviar */
.contact-form-wrap .wpcf7-form input[type="submit"],
.contact-form-wrap .wpcf7-submit {
  background: linear-gradient(135deg, var(--color-accent-orange) 0%, #e65c00 100%);
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  width: 100%;
  letter-spacing: .3px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(230,92,0,.3);
  font-family: var(--font-primary);
}
.contact-form-wrap .wpcf7-form input[type="submit"]:hover {
  opacity: .9;
  transform: translateY(-2px);
}

/* Mensaje respuesta CF7 */
.contact-form-wrap .wpcf7-response-output {
  border-radius: 8px !important;
  border-left: 4px solid var(--color-primary) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  margin-top: 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.contact-form-wrap .wpcf7 form.sent .wpcf7-response-output {
  border-left-color: #2e7d32 !important;
  background: #f0fff4 !important;
  color: #1b5e20 !important;
}

/* ── Responsive contacto ─────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
}
@media (max-width: 640px) {
  .contact-section { padding: 48px 0 56px; }
  .contact-form-wrap { padding: 24px 18px; }
  .contact-info-card { padding: 22px 16px; }
}

/* ============================================
   SKIP LINK (Accessibility - Lighthouse fix)
============================================ */
.skip-link {
  position: absolute;
  top: -48px;
  left: 6px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  z-index: 100000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s ease;
  white-space: nowrap;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ============================================
   SEO CONTENT SECTION (keyword-rich, visible)
============================================ */
.seo-content-section {
  padding: 64px 0;
  background: #f8f9fa;
  border-top: 1px solid var(--color-border);
}
.seo-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.35;
}
.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.seo-content-col {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}
.seo-content-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.seo-content-col p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--color-text-light);
  margin: 0;
}
.seo-content-col strong {
  color: var(--color-text);
  font-weight: 600;
}
@media (max-width: 900px) {
  .seo-content-grid { grid-template-columns: 1fr; gap: 16px; }
  .seo-content-section { padding: 48px 0; }
}

/* ============================================
   FAQ SECTION
============================================ */
.faq-section {
  padding: 64px 0;
  background: #fff;
}
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-primary);
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
  min-width: 44px;
}
.faq-question:hover {
  background: #f0f4ff;
}
.faq-question[aria-expanded="true"] {
  background: #e8f0fe;
  color: var(--color-primary);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--color-primary);
}
.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
}
.faq-answer p { margin: 12px 0 0; }
@media (max-width: 640px) {
  .faq-section { padding: 48px 0; }
  .faq-question { font-size: 0.93rem; padding: 14px 14px; }
  .faq-answer { padding: 0 14px 14px; }
}

/* ============================================
   TAP TARGET FIX (Lighthouse Accessibility)
   Mínimo 44×44px para botones táctiles
============================================ */
.hero-dot,
.casos-dot {
  min-width: 12px;
  min-height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow,
.cats-arrow,
.casos-arrow {
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle {
  min-height: 44px;
  min-width: 44px;
}
.search-btn {
  min-width: 44px;
  min-height: 44px;
}
.cart-trigger {
  min-height: 44px;
  min-width: 44px;
}
.search-toggle-btn {
  min-height: 44px;
  min-width: 44px;
}
