/*
Theme Name: Grupo PREB
Theme URI: https://grupopreb.com
Author: Grupo PREB
Author URI: https://grupopreb.com
Description: Theme oficial de Grupo PREB — Alimentos Argentinos de Calidad. Con soporte completo para WooCommerce. Cuatro marcas: Tegua, Geny, Rico Gusto, Carlimar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grupopreb
Tags: food, woocommerce, e-commerce, custom-menu, featured-images, threaded-comments, translation-ready
WooCommerce: true
*/

/* ============================================================
   DESIGN SYSTEM — VARIABLES
   ============================================================ */
:root {
  /* Paleta principal */
  --azul:          #19395f;
  --azul-hover:    #214d7d;
  --verde:         #4A9E4C;
  --verde-menta:   #A8D5A2;
  --crema:         #FAF6EE;
  --crema-oscura:  #EFE8D8;
  --tierra:        #8B5E3C;
  --tierra-claro:  #C4956A;
  --amarillo:      #E8C547;
  --texto:         #1C1C1C;
  --gris:          #6B7280;
  --blanco:        #ffffff;

  /* Marcas */
  --geny-color:      #1a7abf;
  --ricogusto-color: #b5451b;
  --tegua-color:     #2D6A2F;
  --carlimar-color:  #7b1fa2;

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado */
  --section-pad: 6rem 5%;
  --radius-card: 20px;
  --radius-btn:  50px;

  /* Sombras */
  --shadow-card:   0 8px 40px rgba(0,0,0,0.07);
  --shadow-hover:  0 24px 60px rgba(0,0,0,0.13);
  --shadow-btn:    0 4px 20px rgba(25,57,95,0.28);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--crema);
  color: var(--texto);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--azul);
  transition: color 0.2s;
}

a:hover {
  color: var(--verde);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--texto);
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TIPOGRAFÍA GLOBAL
   ============================================================ */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tierra-claro);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--verde);
}

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--azul);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 2px solid var(--azul);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--azul-hover);
  border-color: var(--azul-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(25,57,95,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--azul);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 2px solid var(--azul);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-secondary:hover {
  background: var(--azul);
  color: #fff;
  transform: translateY(-2px);
}

.btn-verde {
  background: var(--verde);
  border-color: var(--verde);
  box-shadow: 0 4px 20px rgba(74,158,76,0.3);
}

.btn-verde:hover {
  background: #3d8a3f;
  border-color: #3d8a3f;
  box-shadow: 0 8px 30px rgba(74,158,76,0.4);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5%;
  background: rgba(250,246,238,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(25,57,95,0.1);
  transition: box-shadow 0.3s, padding 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.09);
  padding: 0.6rem 5%;
}

.nav-logo img {
  width: 130px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--azul);
}

.nav-cta {
  background: var(--azul) !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--azul-hover) !important;
  transform: translateY(-1px);
}

/* Carrito en nav */
.nav-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--crema-oscura);
  color: var(--texto) !important;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 1.1rem;
}

.nav-cart-link:hover {
  background: var(--azul);
  color: #fff !important;
}

.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--verde);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Menú hamburguesa mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(168,213,162,0.32) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(196,149,106,0.18) 0%, transparent 50%),
    var(--crema);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-blob-1 {
  width: 520px; height: 520px;
  background: var(--verde-menta);
  right: -120px; top: -120px;
  animation: floatBlob 9s ease-in-out infinite;
}

.hero-blob-2 {
  width: 300px; height: 300px;
  background: var(--amarillo);
  left: -80px; bottom: 80px;
  animation: floatBlob 11s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
  padding: 0 5%;
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-block;
  background: var(--verde-menta);
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.06;
  color: var(--texto);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--azul);
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--gris);
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52%;
  overflow: hidden;
}

.hero-visual-inner {
  width: 100%;
  height: 100%;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
  background: linear-gradient(135deg, var(--verde-menta) 0%, var(--crema-oscura) 60%, var(--tierra-claro) 100%);
}

.hero-visual-inner img,
.hero-visual-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--azul);
  padding: 0.4rem 5%;
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.75;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ============================================================
   SECCIÓN NOSOTROS
   ============================================================ */
.section {
  padding: var(--section-pad);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nosotros-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gris);
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.nosotros-text p strong {
  color: var(--texto);
  font-weight: 600;
}

.valores-lista {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.valores-lista li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  color: var(--texto);
}

.check-icon {
  width: 30px; height: 30px;
  background: var(--verde-menta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--verde);
  font-size: 0.9rem;
  font-weight: 700;
}

.nosotros-image {
  border-radius: 24px;
  height: 600px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.nosotros-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.nosotros-image:hover img {
  transform: scale(1.03);
}

/* ============================================================
   SECCIÓN MARCAS
   ============================================================ */
.marcas-section {
  background: var(--crema-oscura);
  padding: var(--section-pad);
}

.marcas-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}

.marcas-header p {
  color: var(--gris);
  font-weight: 300;
  margin-top: 0.5rem;
}

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.marca-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-card);
}

.marca-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.marca-card-header {
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.marca-geny     .marca-card-header { background-image: url(assets/images/geny.jpg); }
.marca-ricogusto .marca-card-header { background-image: url(assets/images/ricogusto.jpg); }
.marca-tegua    .marca-card-header { background-image: url(assets/images/tegua.jpg); }
.marca-carlimar .marca-card-header { background-image: url(assets/images/carlimar.jpg); }

.marca-card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
}

.marca-card-body {
  padding: 1.8rem 2rem 2rem;
}

.marca-nombre {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.marca-descripcion {
  font-size: 0.93rem;
  color: var(--gris);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  font-weight: 300;
}

.marca-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap 0.2s;
}

.marca-geny     .marca-link { color: var(--geny-color); }
.marca-ricogusto .marca-link { color: var(--ricogusto-color); }
.marca-tegua    .marca-link { color: var(--tegua-color); }
.marca-carlimar .marca-link { color: var(--carlimar-color); }

.marca-card:hover .marca-link { gap: 0.9rem; }

/* ============================================================
   TIENDA — SHOP (WooCommerce override + custom)
   ============================================================ */
.woocommerce-page .site-main,
.woocommerce-shop .site-main {
  padding: 2rem 5% 5rem;
  max-width: 1340px;
  margin: 80px auto 0;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: var(--gris);
  margin-bottom: 2rem;
}

.woocommerce-breadcrumb a {
  color: var(--azul);
  text-decoration: none;
}

/* Toolbar */
.woocommerce-products-header {
  margin-bottom: 2rem;
}

.woocommerce-products-header__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
}

.woocommerce-ordering select,
.woocommerce-result-count {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gris);
}

.woocommerce-ordering select {
  border: 2px solid var(--crema-oscura);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  background: var(--crema);
  cursor: pointer;
  outline: none;
}

/* Grid de productos */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 2rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.related.products ul.products {grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;}
ul.products li.product {
  background: #fff !important;
  border-radius: var(--radius-card) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}
ul.products li.product a {text-decoration: none;}
ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-hover) !important;
}

/* Imagen del producto */
ul.products li.product a img,
ul.products li.product .woocommerce-loop-product__link img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 0.4s ease !important;
}

ul.products li.product:hover img {
  transform: scale(1.04) !important;
}

.product-image-wrap {
  overflow: hidden;
}

/* Info del producto */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--texto) !important;
  margin: 0 0 0.4rem !important;
  padding: 0.6rem 1.1rem 0 1.1rem!important;
}

ul.products li.product .woocommerce-Price-amount {
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  color: var(--azul) !important;
  padding: 0 1.4rem !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

ul.products li.product .price del {
  color: var(--gris) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  margin-right: 0.3rem;
}

ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--verde) !important;
}

/* Botón agregar al carrito en listado */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
  display: block !important;
  width: 160px !important;
  margin: 0rem 0 1rem 1.2rem!important;
  padding: 0.75rem 0 !important;
  background: var(--azul) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-body) !important;
  font-size: 13px;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.25s !important;
  box-shadow: var(--shadow-btn) !important;
}

ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover {
  background: var(--azul-hover) !important;
  transform: translateY(-1px) !important;
}

ul.products li.product .button.added {
  background: var(--verde) !important;
}

/* Badge de sale */
ul.products li.product .onsale {
  background: var(--verde) !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 0.3rem 0.8rem !important;
  top: 1rem !important;
  left: 1rem !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
}

/* ============================================================
   PÁGINA DE PRODUCTO INDIVIDUAL
   ============================================================ */
.single-product div.product {
  max-width: 1200px;
  margin: 100px auto 0;
  padding: 3rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ============================================================
   GALERÍA DE PRODUCTO (WooCommerce flexslider fix)
   ============================================================ */
div.woocommerce-product-gallery {
  position: relative;
  overflow: hidden;
}

.woocommerce-product-gallery .flex-viewport {
  overflow: hidden;
  position: relative;
}

.woocommerce-product-gallery__wrapper {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
  height: 480px;
  overflow: hidden;
}

div.woocommerce-product-gallery .woocommerce-product-gallery__image img,
div.woocommerce-product-gallery .woocommerce-product-gallery__wrapper img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.no-js .woocommerce-product-gallery__wrapper:not(.flex-viewport) .woocommerce-product-gallery__image:not(:first-child) {
  display: none;
}

/* Flechas prev/next */
.woocommerce-product-gallery .flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-product-gallery .flex-direction-nav li { list-style: none; }

.woocommerce-product-gallery .flex-direction-nav a {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--azul);
  font-size: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.2s;
}

.woocommerce-product-gallery .flex-direction-nav a:hover { background: #fff; }
.woocommerce-product-gallery .flex-direction-nav a.flex-prev { left: 1rem; }
.woocommerce-product-gallery .flex-direction-nav a.flex-prev::before { content: '‹'; font-size: 1.4rem; line-height: 1; }
.woocommerce-product-gallery .flex-direction-nav a.flex-next { right: 1rem; }
.woocommerce-product-gallery .flex-direction-nav a.flex-next::before { content: '›'; font-size: 1.4rem; line-height: 1; }

/* Lupa de zoom */
.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 4;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.woocommerce-product-gallery__trigger img { width: 16px !important; height: 16px !important; }

/* ─── Miniaturas (thumbnails) ─── */
.flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.flex-control-thumbs li {
  list-style: none;
  margin: 0;
  width: calc(25% - 0.55rem);
  flex-shrink: 0;
}

.flex-control-thumbs img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all 0.2s;
  display: block;
}

.flex-control-thumbs img:hover { opacity: 1; }

.flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: var(--azul);
}

/* Info producto individual */
.single-product .product_title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  font-weight: 900 !important;
  margin-bottom: 0.75rem !important;
}

.single-product .price {
  font-family: var(--font-display) !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: var(--azul) !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
}

.single-product .price ins {
  text-decoration: none !important;
  color: var(--verde) !important;
}

.single-product .woocommerce-product-details__short-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gris);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Cantidad + botón */
.single-product .quantity input {
  border: 2px solid var(--crema-oscura);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 80px;
  text-align: center;
  background: var(--crema);
  outline: none;
  transition: border-color 0.2s;
}

.single-product .quantity input:focus {
  border-color: var(--azul);
}
.single-product .quantity {display:inline-block;}
.single-product .single_add_to_cart_button {display:inline-block;
  background: var(--azul) !important;
  color: #fff !important;
  border: 2px solid var(--azul) !important;
  border-radius: var(--radius-btn) !important;
  padding: 0.9rem 2.5rem !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  box-shadow: var(--shadow-btn) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.single-product .single_add_to_cart_button:hover {
  background: var(--azul-hover) !important;
  border-color: var(--azul-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(25,57,95,0.35) !important;
}

/* Meta del producto */
.single-product .product_meta {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--gris);
}

.single-product .product_meta span {
  display: block;
  margin-bottom: 0.3rem;
}

.single-product .product_meta a {
  color: var(--azul);
  text-decoration: none;
  font-weight: 500;
}

/* Tabs */
.woocommerce-tabs {grid-column: span 2; width: 100%;}
.woocommerce-tabs ul.tabs {
  border-bottom: 2px solid var(--crema-oscura);
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  gap: 0;
}

.woocommerce-tabs ul.tabs li {
  margin: 0;
  list-style: none;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 1rem 1.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gris);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--azul);
  border-bottom-color: var(--azul);
}

.woocommerce-tabs .panel {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gris);
  font-weight: 300;
}

/* Productos relacionados */
.related.products {
  max-width: 1200px;
  width:100%;
  margin: 0 auto;
  padding: 4rem 0px;
  grid-column: span 2;
}

.related.products h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

/* ============================================================
   CARRITO (CART)
   ============================================================ */
.woocommerce-cart .woocommerce {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 3rem 25px;
}

.woocommerce-cart h1,
.woocommerce-cart .woocommerce-cart-form h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
}
.preb-cart-items-header h2 {font-size: 1.3rem; margin-bottom: 0;}
.woocommerce-checkout .col2-set, .form-row-first, .form-row-last {width: calc(50% - 1rem)!important;}
.checkout_coupon .button {padding: 0.7rem 1.4rem;
background: var(--verde);
color: #fff;
border: none;
border-radius: 12px;
font-family: var(--font-body);
font-size: 0.88rem;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
transition: background 0.2s;}

.woocommerce form .form-row input, .woocommerce form .form-row select, .woocommerce form .form-row textarea {font-family: inherit;
font-weight: 400;
letter-spacing: normal;
padding: .5em;
display: block;
background-color: #fff;
border: 1px solid #999;
border-radius: 4px;
color: #000;
box-sizing: border-box;
width: 100%;
margin: 0;
line-height: normal;
height: auto;}

table.cart {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

table.cart thead th {
  background: var(--crema-oscura);
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gris);
  border: none;
}

table.cart tbody td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--crema-oscura);
  vertical-align: middle;
}

table.cart tbody td.product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

table.cart tbody td.product-name a {
  font-weight: 600;
  color: var(--texto);
  text-decoration: none;
  font-size: 1rem;
}

table.cart tbody td.product-price,
table.cart tbody td.product-subtotal {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--azul);
}

table.cart tbody td.product-remove a {
  color: var(--gris) !important;
  font-size: 1.2rem;
  text-decoration: none;
}

table.cart tbody td.product-remove a:hover {
  color: #e74c3c !important;
}

/* Cantidad en carrito */
table.cart .qty {
  width: 65px;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--crema-oscura);
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
  background: var(--crema);
  outline: none;
}

/* Botones del carrito */
.wc-proceed-to-checkout .checkout-button,
.cart-collaterals .wc-proceed-to-checkout a {
  display: block !important;
  width: 100% !important;
  background: var(--azul) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  padding: 1.1rem !important;
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  box-shadow: var(--shadow-btn) !important;
  margin-top: 1rem !important;
}

.wc-proceed-to-checkout .checkout-button:hover,
.cart-collaterals .wc-proceed-to-checkout a:hover {
  background: var(--azul-hover) !important;
  transform: translateY(-2px) !important;
}

/* Totales del carrito */
.cart_totals {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.cart_totals h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cart_totals table {
  width: 100%;
  border-collapse: collapse;
}

.cart_totals table th,
.cart_totals table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--crema-oscura);
  font-size: 0.95rem;
}

.cart_totals table th {
  font-weight: 600;
  color: var(--texto);
  text-align: left;
}

.cart_totals table .order-total th,
.cart_totals table .order-total td {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--azul);
  border-bottom: none;
  padding-top: 1.2rem;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.woocommerce-checkout .woocommerce {
  max-width: 1250px;
  margin: 100px auto 0;
  padding: 3rem 25px;
}

.woocommerce-checkout .woocommerce h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--crema-oscura);
}

.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Campos del formulario */
.woocommerce-checkout .form-row {
  margin-bottom: 1.2rem;
}

.woocommerce-checkout .form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 0.4rem;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--crema-oscura);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--texto);
  background: var(--crema);
  transition: border-color 0.2s;
  outline: none;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--azul);
  background: #fff;
}

/* Botón de pedido */
#place_order {
  display: block !important;
  width: 100% !important;
  background: var(--azul) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  padding: 1.2rem !important;
  font-family: var(--font-body) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  box-shadow: var(--shadow-btn) !important;
  margin-top: 1.5rem !important;
}

#place_order:hover {
  background: var(--azul-hover) !important;
  transform: translateY(-2px) !important;
}

.preb-thankyou-detail {display: none;}
.added_to_cart {width: 90px;
position: absolute;
bottom: 30px;
right: 20px;
padding: 5px 8px;
border: solid 1px;
text-align: center;
border-radius: 12px;
font-size: 13px; background:#fff;}

/* ============================================================
   SECCIÓN CONTACTO
   ============================================================ */
.contacto-section {
  padding: var(--section-pad);
  max-width: 1200px;
  margin: 0 auto;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contacto-info h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.12;
}

.contacto-info h2 em {
  font-style: italic;
  color: var(--verde);
}

.contacto-info p {
  color: var(--gris);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.whatsapp-btn:hover {
  background: #1aaa52;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

.whatsapp-icon {
  width: 22px; height: 22px;
  fill: #fff;
  flex-shrink: 0;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dato-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gris);
  font-size: 0.95rem;
}

.dato-icon {
  width: 38px; height: 38px;
  background: var(--crema-oscura);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-contacto {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-contacto h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--crema-oscura);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--texto);
  background: var(--crema);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--azul);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-btn);
}

.btn-submit:hover {
  background: var(--azul-hover);
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--texto);
  color: rgba(255,255,255,0.65);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand .nav-logo img {
  width: 80px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 300;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--verde-menta);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.83rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--verde);
  border-color: var(--verde);
  color: #fff;
}

/* ============================================================
   MENSAJES WOOCOMMERCE
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 14px !important;
  padding: 1rem 1.5rem !important;
  font-size: 0.95rem !important;
  margin-bottom: 1.5rem !important;
  border-top: none !important;
}

.woocommerce-message {
  background: #e8f5e9 !important;
  color: var(--verde) !important;
}

.woocommerce-info {
  background: #e3f2fd !important;
  color: var(--azul) !important;
}

.woocommerce-error {
  background: #ffebee !important;
  color: #c0392b !important;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.woocommerce-pagination {
  text-align: center;
  margin-top: 3rem;
}

.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--gris);
  transition: all 0.2s;
  border: 2px solid transparent;
}

.woocommerce-pagination ul li a:hover {
  background: var(--crema-oscura);
  color: var(--azul);
}

.woocommerce-pagination ul li span.current {
  background: var(--azul);
  color: #fff;
}
.shop-layout {display: grid;
grid-template-columns: 260px 1fr;
gap: 1rem;
align-items: start;}
.shop-sidebar, .shop-layout main {width:100%}

.preb-page-header .header-orders {display:flex;align-items:center;gap:1rem;flex-wrap:wrap;}
.preb-page-header .woocommerce-result-count {margin-bottom: 0;}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .marcas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-content { width: 100%; padding-bottom: 3rem; }
  .hero-visual { position: relative; width: 100%; height: 320px; clip-path: none; }
  .hero { flex-direction: column; min-height: auto; padding: 100px 5% 0; }
  .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .marcas-grid { grid-template-columns: 1fr; }
  .stats-band { gap: 2rem; }
  .single-product div.product { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 80px; display:block}
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; gap: 0; }
  .shop-layout {grid-template-columns: 1fr;gap: 1rem;align-items: start;}
  .shop-sidebar {order: 2;}
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(250,246,238,0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem 5%;
    gap: 1rem;
    border-bottom: 1px solid var(--crema-oscura);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2col { grid-template-columns: 1fr; }
  .marcas-grid { grid-template-columns: 1fr; }
  .stats-band { gap: 1.5rem; }
  .stat-number { font-size: 2.2rem; }
}

/* ============================================================
   HOMEPAGE TIENDA — SHOP HERO
   ============================================================ */
.shop-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 50%, rgba(168,213,162,0.30) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(196,149,106,0.16) 0%, transparent 50%),
    var(--crema);
}

.shop-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  pointer-events: none;
}
.shop-hero-blob-1 { width: 460px; height: 460px; background: var(--verde-menta); right: -100px; top: -100px; animation: floatBlob 9s ease-in-out infinite; }
.shop-hero-blob-2 { width: 260px; height: 260px; background: var(--amarillo);    left: -60px; bottom: 60px; animation: floatBlob 11s ease-in-out infinite reverse; }

.shop-hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
  padding: 3rem 5%;
  animation: fadeUp 0.9s ease both;
}

.shop-hero-tag {
  display: inline-block;
  background: var(--verde-menta);
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.shop-hero h1 em {
  font-style: italic;
  color: var(--azul);
}

.shop-hero p {
  font-size: 1.05rem;
  color: var(--gris);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
}

/* Buscador */
.shop-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--crema-oscura);
  border-radius: 50px;
  padding: 0.35rem 0.35rem 0.35rem 1.4rem;
  max-width: 440px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-search-bar:focus-within {
  border-color: var(--azul);
  box-shadow: 0 4px 24px rgba(25,57,95,0.15);
}

.shop-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--texto);
  background: transparent;
}

.shop-search-input::placeholder { color: var(--gris); }

.shop-search-btn {
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: 50px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.shop-search-btn:hover { background: var(--azul-hover); }

.shop-hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

.shop-hero-visual img,
.shop-hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   FILTROS POR MARCA
   ============================================================ */
.brand-filter-section {
  background: #fff;
  border-bottom: 1px solid var(--crema-oscura);
  padding: 1rem 5%;
  position: sticky;
  top: 64px;
  z-index: 99;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.brand-filter-wrap {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.brand-filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gris);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.brand-pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--crema-oscura);
  color: var(--gris);
  background: var(--crema);
  transition: all 0.2s;
  white-space: nowrap;
}

.brand-pill:hover {
  border-color: var(--azul);
  color: var(--azul);
  background: #fff;
}

.brand-pill.active,
.brand-pill-all.active {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}

/* ============================================================
   GRID HOME DE PRODUCTOS
   ============================================================ */
.home-products-section {
  padding: 3rem 5% 5rem;
  background: var(--crema);
}

.home-products-wrap {
  max-width: 1300px;
  margin: 0 auto;
}

/* Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.products-count {
  font-size: 0.9rem;
  color: var(--gris);
  margin: 0;
}

.products-count strong { color: var(--texto); }

.products-sort select {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--texto);
  border: 2px solid var(--crema-oscura);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.products-sort select:focus { border-color: var(--azul); }

/* Grid de productos en home */
.home-products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 1.8rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.home-products-grid .product {
  background: #fff !important;
  border-radius: var(--radius-card) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.home-products-grid .product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-hover) !important;
}

.product-img-link {
  display: block;
  overflow: hidden;
  position: relative;
  height: 250px;
}

.product-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-products-grid .product:hover .product-img-link img {
  transform: scale(1.04);
}

.product-brand-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-decoration: none;
  margin: 1rem 1.2rem 0;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.product-brand-tag:hover { opacity: 0.8; }

.product-info {
  padding: 0.8rem 0rem 0.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info .woocommerce-loop-product__title,
.product-info h2 {
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.product-info .woocommerce-loop-product__title a,
.product-info h2 a {
  color: var(--texto) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.product-info .woocommerce-loop-product__title a:hover { color: var(--azul) !important; }

.product-info .price {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: var(--azul) !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

.product-info .price del { color: var(--gris) !important; font-size: 0.95rem !important; font-weight: 400 !important; }
.product-info .price ins { text-decoration: none !important; color: var(--verde) !important; }

.product-info .button,
.product-info .add_to_cart_button {
  display: block !important;
  width: 100% !important;
  margin-top: auto !important;
  padding: 0.75rem !important;
  background: var(--azul) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.25s !important;
  box-shadow: var(--shadow-btn) !important;
}

.product-info .button:hover { background: var(--azul-hover) !important; transform: translateY(-1px) !important; }
.product-info .button.added { background: var(--verde) !important; }

/* Badge de oferta */
.product-img-link .onsale {
  position: absolute !important;
  top: 1rem !important;
  left: 1rem !important;
  background: var(--verde) !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: 50px !important;
  z-index: 2 !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
}

/* Paginación home */
.home-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.home-pagination a,
.home-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.8rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--gris);
  border: 2px solid var(--crema-oscura);
  background: #fff;
  transition: all 0.2s;
}

.home-pagination a:hover { border-color: var(--azul); color: var(--azul); }
.home-pagination .current { background: var(--azul); color: #fff; border-color: var(--azul); }

/* Sin productos */
.no-products-found {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gris);
}

.no-products-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.no-products-found h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.75rem; color: var(--texto); }
.no-products-found a { color: var(--azul); font-weight: 600; }

/* ============================================================
   MARCAS STRIP
   ============================================================ */
.marcas-strip-section {
  background: var(--crema-oscura);
  padding: 5rem 5%;
}

.marcas-strip-wrap {
  max-width: 1300px;
  margin: 0 auto;
}

.marcas-strip-header {
  text-align: center;
  margin-bottom: 3rem;
}

.marcas-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.marca-strip-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.marca-strip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.marca-strip-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.marca-geny     .marca-strip-img { background-image: url(assets/images/geny.jpg); }
.marca-ricogusto .marca-strip-img { background-image: url(assets/images/ricogusto.jpg); }
.marca-tegua    .marca-strip-img { background-image: url(assets/images/tegua.jpg); }
.marca-carlimar .marca-strip-img { background-image: url(assets/images/carlimar.jpg); }

.marca-strip-body {
  padding: 1.4rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.marca-strip-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tierra-claro);
}

.marca-strip-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
}

.marca-strip-body p {
  font-size: 0.9rem;
  color: var(--gris);
  font-weight: 300;
  margin: 0;
}

.marca-strip-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--azul);
  margin-top: 0.8rem;
  transition: gap 0.2s;
  display: inline-block;
}

.marca-strip-card:hover .marca-strip-link { letter-spacing: 0.5px; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--azul);
  padding: 2.5rem 5%;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.trust-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.trust-item span {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 300;
}

/* ============================================================
   RESPONSIVE — HOMEPAGE TIENDA
   ============================================================ */
@media (max-width: 1100px) {
  .marcas-strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .shop-hero { min-height: auto; flex-direction: column; padding-top: 80px; }
  .shop-hero-content { width: 100%; padding: 3rem 5% 2rem; }
  .shop-hero-visual { position: relative; width: 100%; height: 280px; clip-path: none; }
  .brand-filter-section { position: static; top: auto; }
  .trust-strip { gap: 2rem; }
}

@media (max-width: 600px) {
  .home-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
  .marcas-strip-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { flex-direction: column; gap: 1.5rem; align-items: flex-start; padding: 2rem 5%; }
  .brand-filter-wrap { gap: 0.8rem; }
  .shop-hero h1 { font-size: 2rem; }
}

@media (max-width: 400px) {
  .home-products-grid { grid-template-columns: 1fr !important; }
  .marcas-strip-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NAVBAR — buscador inline
   ============================================================ */
.nav-search-form {
  display: flex;
  align-items: center;
  background: var(--crema-oscura);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  max-width: 220px;
}

.nav-search-form:focus-within {
  background: #fff;
  border-color: var(--azul);
}

.nav-search-input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: transparent;
  color: var(--texto);
  width: 140px;
}

.nav-search-input::placeholder { color: var(--gris); }

.nav-search-btn {
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: 50px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-search-btn:hover { background: var(--azul-hover); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

@media (max-width: 900px) {
  .nav-search-form { display: none; }
}

/* ============================================================
   HERO SLIDER — estilo Revolution Slider (nativo del theme)
   ============================================================ */
.preb-slider {
  position: relative;
  overflow: hidden;
  min-height: 18vh;
  padding-top: 80px;
}

.preb-slider-track {
  position: relative;
  width: 100%;
  min-height: calc(18vh - 80px);
}

.preb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: translateX(30px);
  overflow: hidden;
}

.preb-slide-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.preb-slide-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
}

.preb-slide-blob-1 { width: 480px; height: 480px; background: var(--verde-menta); right: -100px; top: -100px; animation: floatBlob 9s ease-in-out infinite; }
.preb-slide-blob-2 { width: 280px; height: 280px; background: var(--amarillo); left: -70px; bottom: 60px; animation: floatBlob 11s ease-in-out infinite reverse; }

.preb-slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 4rem 5%;
}

.preb-slide-tag {
  display: inline-block;
  background: var(--verde-menta);
  color: var(--verde);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.preb-slide-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--texto);
}

.preb-slide-title em {
  font-style: italic;
  color: var(--azul);
}

.preb-slide-subtitle {
  font-size: 1.05rem;
  color: var(--gris);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 460px;
}

.preb-slide-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Texto claro (para fondos oscuros) */
.preb-slide-text-claro .preb-slide-title,
.preb-slide-text-claro .preb-slide-subtitle { color: #fff; }
.preb-slide-text-claro .preb-slide-subtitle { opacity: 0.85; }
.preb-slide-text-claro .preb-slide-title em { color: var(--verde-menta); }

.preb-slide-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 60%;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 2;
}

.preb-slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flechas */
.preb-slider-arrow {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--azul);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transition: background 0.2s, transform 0.2s;
}

.preb-slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.preb-slider-arrow svg { width: 22px; height: 22px; }
.preb-slider-prev { left: 10px; }
.preb-slider-next { right: 10px; }

/* Dots */
.preb-slider-dots {
  position: absolute;
  bottom: 1.8rem;
  left: 5%;
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}

.preb-slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(25,57,95,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}

.preb-slider-dot.active {
  background: var(--azul);
  width: 28px;
  border-radius: 50px;
}

/* Buscador debajo del slider */
.preb-search-strip {
  background: #fff;
  border-bottom: 1px solid var(--crema-oscura);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: center;
}

.shop-search-bar-strip { max-width: 480px; width: 100%; }

@media (max-width: 900px) {
  .preb-slider { min-height: auto; padding-top: 80px; }
  .preb-slider-track { min-height: 520px; }
  .preb-slide { flex-direction: column; align-items: flex-start; padding-top: 1rem; }
  .preb-slide-content { width: 100%; padding: 2rem 5% 1rem; }
  .preb-slide-visual { position: relative; width: 100%; height: 240px; clip-path: none; order: 2; }
  .preb-slider-arrow { width: 38px; height: 38px; }
  .preb-slider-prev { left: 1rem; }
  .preb-slider-next { right: 1rem; }
}

@media (max-width: 600px) {
  .preb-slide-title { font-size: 1.9rem; }
  .preb-slide-buttons { flex-direction: column; align-items: stretch; }
  .preb-slide-buttons a { text-align: center; }
}
/* ============================================================
   PÁGINAS ESTÁTICAS GENÉRICAS (page.php)
   Nosotros, Contacto, Términos, Política de privacidad, etc.
   ============================================================ */
.preb-static-page { min-height: 50vh; padding-bottom: 5rem; }

.preb-page-featured-img {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 5% 0;
}

.preb-page-featured-img img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.preb-static-page-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 5%;
}

.preb-page-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--gris);
  font-weight: 300;
}

.preb-page-body h1,
.preb-page-body h2,
.preb-page-body h3,
.preb-page-body h4 {
  font-family: var(--font-display);
  color: var(--texto);
  font-weight: 800;
  line-height: 1.25;
  margin: 2rem 0 1rem;
}

.preb-page-body h1 { font-size: 2rem; }
.preb-page-body h2 { font-size: 1.6rem; }
.preb-page-body h3 { font-size: 1.3rem; }

.preb-page-body p { margin-bottom: 1.3rem; }

.preb-page-body a {
  color: var(--azul);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--verde-menta);
  text-underline-offset: 3px;
}

.preb-page-body a:hover { color: var(--verde); }

.preb-page-body ul,
.preb-page-body ol {
  margin: 0 0 1.3rem 1.4rem;
  list-style: revert;
}

.preb-page-body ul { list-style-type: disc; }
.preb-page-body ol { list-style-type: decimal; }

.preb-page-body li { margin-bottom: 0.5rem; }

.preb-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.5rem 0;
}

.preb-page-body blockquote {
  border-left: 4px solid var(--verde);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--texto);
  background: var(--crema-oscura);
  border-radius: 0 12px 12px 0;
}

.preb-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.preb-page-body table th,
.preb-page-body table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--crema-oscura);
  text-align: left;
}

.preb-page-body table th {
  background: var(--crema-oscura);
  font-weight: 700;
}

/* Bloques de WooCommerce dentro de páginas (carrito/checkout via shortcode) */
.preb-page-body .woocommerce {
  font-weight: 400;
}
