/* =====================================================================
   E&B Confecciones — Hoja de estilos principal
   Paleta: burgundy #7A1F2B / navy #12294D / crema #F8F6F2
   Tipografía: Playfair Display (títulos) + Poppins (texto)
   ===================================================================== */

:root {
  --burgundy: #7A1F2B;
  --burgundy-dark: #5e1620;
  --navy: #12294D;
  --navy-dark: #0b1c38;
  --cream: #F8F6F2;
  --white: #FFFFFF;
  --text: #24262b;
  --text-light: #6b7280;
  --border: #e6e2da;
  --shadow: 0 10px 30px rgba(18, 41, 77, 0.08);
  --radius: 10px;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--navy); margin: 0 0 .5em; line-height: 1.25; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-header { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-header h1, .section-header h2 { font-size: 2rem; }
.section-header p { color: var(--text-light); }
.section-eyebrow {
  display: inline-block;
  color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .82rem; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(18,41,77,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 92px; width: auto; }
@media (min-width: 992px) {
  .logo-img { height: 112px; }
}

.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: .92rem;
  color: var(--navy);
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a.active { color: var(--burgundy); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 230px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 10px 12px; border-radius: 6px; }
.dropdown a:hover { background: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-close { display: none; }

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: -6px 0 24px rgba(0,0,0,.12);
    padding: 90px 24px 24px;
    transition: right .3s ease;
    overflow-y: auto;
    z-index: 600;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }

  .nav-close {
    display: block;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    line-height: 1;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18,41,77,.45);
    z-index: 400;
  }
  .nav-overlay.open { display: block; }
}

/* ---------------------------------------------------------------------
   Hero / slider
   --------------------------------------------------------------------- */
/*
 * El CSS de Swiper (cargado vía CDN después de este archivo) trae su propia
 * regla ".swiper-slide { height: 100% }" con la misma especificidad que
 * ".hero-slide", así que sin !important terminaba ganando la del CDN y
 * el banner se achicaba al alto de su contenido en vez de ocupar la pantalla.
 */
.hero-slider.swiper {
  position: relative;
  height: 90vh !important;
  min-height: 520px;
}
.hero-slider .swiper-wrapper {
  height: 100% !important;
}
.hero-slide {
  height: 90vh !important;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 640px;
  margin-left: 0;
  margin-right: auto;
  padding-left: 64px;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.hero-content h1 { color: var(--white); font-size: 2.6rem; margin-bottom: .4em; }
.hero-content p { font-size: 1.05rem; margin-bottom: 1.6em; opacity: .92; }
.swiper-button-next, .swiper-button-prev { color: var(--white); }
.swiper-pagination-bullet { background: var(--white); opacity: .6; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--burgundy); }

@media (max-width: 767px) {
  .hero-slide { justify-content: center !important; }
  .hero-overlay { background: linear-gradient(120deg, rgba(18,41,77,.82), rgba(122,31,43,.7)); }
  .hero-content { margin: 0 auto; padding-left: 24px; text-align: center; text-shadow: none; }
  .hero-content h1 { font-size: 1.8rem; }
}

/* ---------------------------------------------------------------------
   Grids y tarjetas
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-productos { grid-template-columns: repeat(auto-fit, minmax(215px, 260px)); gap: 20px; }

/* Nuestras líneas: 5 cartillas en una sola fila, a todo el ancho de pantalla, sin espacios */
.grid-lineas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
  height: 80vh;
}
.linea-card {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
}
.linea-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.linea-card:hover img { transform: scale(1.08); }
.linea-card-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 16px;
  background: linear-gradient(to top, rgba(11,28,56,.88), rgba(11,28,56,0));
}
.linea-card-title h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}
.linea-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(122, 31, 43, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.linea-card-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--white);
  padding: 10px 24px;
  border-radius: 30px;
}
.linea-card:hover .linea-card-overlay { opacity: 1; }

@media (max-width: 991px) {
  .grid-lineas {
    height: auto;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .linea-card { height: 60vh; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .grid-lineas { grid-auto-columns: 78%; }
  .linea-card { height: 50vh; }
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img-wrap { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--cream); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.card:hover .card-img-wrap img { transform: scale(1.06); }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.02rem; margin-bottom: .35em; }
.card-body p { color: var(--text-light); font-size: .87rem; }
.card-categoria { color: var(--burgundy); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.producto-categoria-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.card-institucion { color: var(--text-light); font-size: .78rem; font-weight: 600; }
.card-institucion a { color: var(--navy); text-decoration: underline; }
.card-institucion a:hover { color: var(--burgundy); }
.producto-precio { font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-top: 4px; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.btn-cart { display: inline-flex; align-items: center; gap: 8px; flex: 1; justify-content: center; white-space: nowrap; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; flex: 1; justify-content: center; background: #1EA952; }
.btn-whatsapp:hover { background: #178a42; }
.btn-lupa {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-lupa:hover { border-color: var(--burgundy); color: var(--burgundy); }
.badge-destacado {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--burgundy);
  color: var(--white);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.badge-promo {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d32f2f;
  color: var(--white);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Precio con promoción: precio anterior tachado + precio de oferta */
.precio-antes {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 500;
  font-size: .88em;
  margin-right: 8px;
}
.precio-promo { color: #d32f2f; }

/* Colores del producto (tarjeta y detalle) */
.producto-colores { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.producto-colores-detalle .color-swatch { width: 28px; height: 28px; }
.color-chip { padding: 0; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.color-chip:hover { transform: scale(1.08); }
.color-chip.selected { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy); }
.producto-ficha { display: flex; gap: 20px; flex-wrap: wrap; font-size: .9rem; color: var(--text-light); margin-bottom: 10px; }
.producto-ficha strong { color: var(--navy); }

/* ---------------------------------------------------------------------
   Tallas de producto (tarjeta y detalle)
   --------------------------------------------------------------------- */
.btn-ver-tallas {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(8px);
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.card:hover .btn-ver-tallas, .btn-ver-tallas:focus {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tallas-panel { margin-top: 10px; }
.tallas-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.talla-chip {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.talla-chip:hover { border-color: var(--navy); }
.talla-chip.selected { background: var(--navy); border-color: var(--navy); color: var(--white); }
.talla-chip.selected .precio-antes { color: rgba(255,255,255,.65); }
.talla-chip.selected .precio-promo { color: var(--white); }

.talla-chip.chip-agotado, .color-chip.chip-agotado {
  opacity: .4;
  cursor: not-allowed;
  position: relative;
}
.talla-chip.chip-agotado { text-decoration: line-through; }
.color-chip.chip-agotado::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom right, transparent 45%, currentColor 47%, currentColor 53%, transparent 55%);
  color: var(--burgundy);
}

.producto-tallas-label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 8px; }
.producto-tallas-detalle { margin: 4px 0 18px; }
.producto-tallas-detalle .talla-chip { padding: 10px 16px; font-size: .88rem; }

.producto-cantidad { margin: 0 0 18px; }
.cantidad-selector { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cantidad-btn {
  width: 38px; height: 38px; border: none; background: var(--white); color: var(--navy);
  font-size: 1.1rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.cantidad-btn:hover { background: var(--cream); }
.cantidad-input {
  width: 52px; height: 38px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: .95rem; font-weight: 600; color: var(--navy);
  -moz-appearance: textfield;
  appearance: textfield;
}
.cantidad-input::-webkit-outer-spin-button, .cantidad-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cantidad-input:disabled { background: var(--cream); color: var(--text-light); }
.cantidad-stock-nota { font-size: .8rem; color: var(--text-light); margin: 6px 0 0; }
.cantidad-stock-nota.stock-agotado { color: var(--burgundy); font-weight: 600; }
.info-card { padding: 28px; text-align: center; }
.info-card h3 { color: var(--burgundy); }

/* ---------------------------------------------------------------------
   Tabs filtro (Todos / Destacados)
   --------------------------------------------------------------------- */
.tabs-filtro { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tab-btn {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--navy);
  padding: 9px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s ease;
}
.tab-btn:hover { border-color: var(--burgundy); }
.tab-btn.active { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.sin-resultados { text-align: center; color: var(--text-light); padding: 20px 0; }

/* ---------------------------------------------------------------------
   Clientes
   --------------------------------------------------------------------- */
.clientes-section { background: var(--cream); }
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.cliente-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  min-height: 140px;
}
.cliente-logo img { transition: all .2s ease; max-height: 100px; max-width: 100%; }

.clientes-grid .cliente-logo {
  min-height: 240px;
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.clientes-grid .cliente-logo img { max-height: 200px; }

@media (max-width: 1200px) {
  .clientes-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .clientes-grid { grid-template-columns: repeat(3, 1fr); }
  .clientes-grid .cliente-logo { min-height: 200px; }
  .clientes-grid .cliente-logo img { max-height: 160px; }
}
@media (max-width: 640px) {
  .clientes-grid { grid-template-columns: repeat(2, 1fr); }
  .clientes-grid .cliente-logo { min-height: 160px; padding: 18px; }
  .clientes-grid .cliente-logo img { max-height: 130px; }
}

/* Carrusel infinito de clientes (solo sección de inicio) */
.clientes-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.clientes-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: clientes-scroll 30s linear infinite;
}
.clientes-carousel:hover .clientes-track { animation-play-state: paused; }
.clientes-track .cliente-logo { flex: 0 0 auto; width: 200px; }

@keyframes clientes-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   Página de colegio (empresas/clientes con productos filtrables)
   --------------------------------------------------------------------- */
/* Banner/portada full-width de la institución */
.colegio-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy), var(--burgundy));
  background-size: cover;
  background-position: center;
}
.colegio-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,28,56,.88), rgba(11,28,56,.35));
}
.colegio-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.colegio-banner-logo {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.colegio-banner-logo img { max-height: 84px; max-width: 100%; }
.colegio-banner-texto h1 { color: var(--white); margin-bottom: .2em; }
.colegio-banner-texto p { color: rgba(255,255,255,.85); margin: 0; max-width: 620px; }
.colegio-banner-texto .section-eyebrow { color: #f2c9ce; }

@media (max-width: 640px) {
  .colegio-banner-content { flex-direction: column; align-items: flex-start; gap: 16px; }
  .colegio-banner-logo { width: 84px; height: 84px; }
}

/* ---------------------------------------------------------------------
   Banner de portada de la página "Colegio" (empresas.php)
   --------------------------------------------------------------------- */
.empresas-banner {
  position: relative;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy), var(--burgundy));
  background-size: cover;
  background-position: center;
}
.empresas-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,28,56,.85), rgba(11,28,56,.45));
}
.empresas-banner-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empresas-banner-content h1 { color: var(--white); margin: 0; }
.empresas-banner-breadcrumb { justify-content: center; color: rgba(255,255,255,.85); }
.empresas-banner-breadcrumb a { color: var(--white); }
.empresas-banner-breadcrumb a:hover { color: #f2c9ce; }

/* Filtro de precio vertical dentro del sidebar del catálogo */
.sidebar-block-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  margin: 0 0 12px;
}
.sidebar-precio-filtro {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.filtro-precio-valores { font-size: .82rem; font-weight: 500; color: var(--burgundy); margin-bottom: 14px; }
.filtro-precio-slider { position: relative; height: 32px; }
.filtro-precio-slider input[type="range"] {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  pointer-events: none;
}
.filtro-precio-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.filtro-precio-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.filtro-precio-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
  margin-top: -7px;
  cursor: pointer;
}
.filtro-precio-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
  cursor: pointer;
}

/* Lista compacta "Destacados/Relacionados" en el sidebar del catálogo */
.sidebar-relacionados {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-producto-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 6px;
}
.sidebar-producto-mini:hover { background: var(--cream); }
.sidebar-producto-mini img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.sidebar-producto-mini span { display: flex; flex-direction: column; min-width: 0; }
.sidebar-producto-mini strong {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-producto-mini em { font-style: normal; font-size: .78rem; color: var(--burgundy); font-weight: 600; }

/* ---------------------------------------------------------------------
   Libro de Reclamaciones
   --------------------------------------------------------------------- */
.reclamo-form { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.reclamo-section-title {
  font-size: 1.1rem;
  margin: 28px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.reclamo-section-title:first-of-type { margin-top: 6px; }
.reclamo-form label { font-weight: 600; font-size: .88rem; margin-top: 12px; color: var(--navy); }
.reclamo-form input[type="text"],
.reclamo-form input[type="email"],
.reclamo-form input[type="number"],
.reclamo-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  width: 100%;
}
.reclamo-form textarea { resize: vertical; }
.reclamo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) {
  .reclamo-grid { grid-template-columns: 1fr; }
}
.reclamo-radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.reclamo-radio { display: flex; align-items: baseline; gap: 8px; font-weight: 500 !important; margin-top: 0 !important; cursor: pointer; }
.reclamo-radio input { width: auto; }
.reclamo-hint { font-weight: 400; font-size: .82rem; color: var(--text-light); }
.reclamo-form-actions { margin-top: 24px; }
.reclamo-alert {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .92rem;
}
.reclamo-alert-ok { background: #e6f4ea; color: #1e6b34; border: 1px solid #b6ddc2; }
.reclamo-alert-error { background: #fbe9e9; color: var(--burgundy-dark); border: 1px solid #f0c4c4; }

/* ---------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------- */
.breadcrumb-bar { background: var(--cream); border-bottom: 1px solid var(--border); padding: 14px 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--text-light); }
.breadcrumb a { color: var(--navy); font-weight: 500; }
.breadcrumb a:hover { color: var(--burgundy); }

/* ---------------------------------------------------------------------
   Catálogo de productos (sidebar + toolbar + grid + paginación)
   --------------------------------------------------------------------- */
.catalogo-wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.catalogo-section { padding-top: 32px; padding-bottom: 64px; }
.section-header-catalogo { max-width: none; text-align: left; margin: 0 0 24px; }

.catalogo-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  align-items: start;
}
.catalogo-sidebar { position: sticky; top: 96px; }
.sidebar-categorias summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  padding: 4px 0 14px;
}
.sidebar-categorias summary::-webkit-details-marker,
.sidebar-categorias summary::marker { display: none; content: ''; }
.sidebar-categorias-list { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); padding-top: 10px; }
.sidebar-categorias-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: .89rem;
  color: var(--text);
}
.sidebar-categorias-list a:hover { background: var(--cream); color: var(--navy); }
.sidebar-categorias-list a.active { background: var(--burgundy); color: var(--white); font-weight: 600; }
.sidebar-count {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  background: var(--cream);
  color: var(--text-light);
  border-radius: 10px;
  padding: 2px 8px;
}
.sidebar-categorias-list a.active .sidebar-count { background: rgba(255,255,255,.25); color: var(--white); }

.catalogo-main { min-width: 0; }
.catalogo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.catalogo-resultados { font-size: .84rem; color: var(--text-light); }
.catalogo-toolbar-form { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar-field { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-light); font-weight: 600; }
.toolbar-field select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: .84rem;
  color: var(--navy);
  cursor: pointer;
}
.toolbar-vista { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 3px; }
.vista-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 4px;
  color: var(--text-light);
  cursor: pointer;
  transition: all .15s ease;
}
.vista-btn:hover { color: var(--navy); }
.vista-btn.active { background: var(--navy); color: var(--white); }

.paginacion { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagina-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.pagina-link:hover { border-color: var(--burgundy); color: var(--burgundy); }
.pagina-actual { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }

/* Vista de lista: tarjeta horizontal (imagen fija a la izquierda) */
.grid-productos.vista-lista { grid-template-columns: 1fr; gap: 12px; }
.grid-productos.vista-lista .producto-card { display: flex; flex-direction: row; align-items: stretch; }
.grid-productos.vista-lista .card-img-wrap { width: 160px; flex-shrink: 0; aspect-ratio: auto; }
.grid-productos.vista-lista .card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.grid-productos.vista-lista .card-actions { margin-top: 8px; }

@media (max-width: 900px) {
  .catalogo-layout { grid-template-columns: 1fr; }
  .catalogo-sidebar { position: static; }
  .sidebar-categorias-list { max-height: 280px; overflow-y: auto; }
}
@media (max-width: 640px) {
  .catalogo-toolbar { flex-direction: column; align-items: stretch; }
  .catalogo-toolbar-form { justify-content: space-between; }
  .grid-productos.vista-lista .producto-card { flex-direction: column; }
  .grid-productos.vista-lista .card-img-wrap { width: 100%; aspect-ratio: 3/4; }
}

/* ---------------------------------------------------------------------
   Detalle de producto
   --------------------------------------------------------------------- */
.producto-detalle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}
@media (max-width: 900px) { .producto-detalle-grid { grid-template-columns: 1fr; } }

.producto-galeria { width: 100%; }
.producto-imagen-principal { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--cream); cursor: zoom-in; }
.producto-imagen-principal img { width: 100%; height: 100%; object-fit: contain; display: block; }
.producto-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 74px; height: 74px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.thumb.active, .thumb:hover { border-color: var(--burgundy); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.producto-info .card-categoria a:hover { color: var(--burgundy); }
.producto-info h1 { font-size: 1.9rem; margin-top: 6px; margin-bottom: 6px; }
.producto-precio-grande { font-family: var(--font-title); font-size: 1.7rem; font-weight: 700; color: var(--burgundy); margin-bottom: 14px; }
.producto-descripcion { color: var(--text-light); margin-bottom: 24px; }
.producto-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.producto-compartir { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.compartir-label { font-size: .85rem; font-weight: 600; color: var(--text-light); }
.copiar-feedback { font-size: .8rem; color: var(--burgundy); font-weight: 600; }

.producto-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .88rem;
}
.producto-nav-link { color: var(--navy); font-weight: 500; }
.producto-nav-link:hover { color: var(--burgundy); }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,28,56,.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 86vh; border-radius: 6px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------------------------------------------------------------------
   Nosotros
   --------------------------------------------------------------------- */
/* Secciones "imagen + texto" de Nosotros/Historia: la imagen queda pegada
   al borde de la pantalla (izquierdo o derecho) con una altura fija de
   70vh, independiente de lo largo que sea el texto del otro lado. */
.about-split {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}
.about-split-img {
  position: absolute;
  top: 0;
  width: 45%;
  height: 70vh;
}
.about-split-img img { width: 100%; height: 100%; object-fit: cover; }
.about-split.img-left .about-split-img { left: 0; }
.about-split.img-right .about-split-img { right: 0; }

.about-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 48px;
}
.about-split.img-left .about-split-text { margin-left: 45%; }
.about-split.img-right .about-split-text { margin-right: 45%; }

.about-split-text h1, .about-split-text h2 { font-size: 2.1rem; }
.about-split-text p { color: var(--text-light); }

.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.stat-item { display: flex; align-items: center; gap: 12px; }
.stat-item svg { color: var(--burgundy); flex-shrink: 0; }
.stat-item strong { display: block; font-family: var(--font-title); font-size: 1.3rem; color: var(--navy); line-height: 1.2; }
.stat-item span { font-size: .8rem; color: var(--text-light); }

@media (max-width: 900px) {
  .about-split { min-height: auto; }
  .about-split-img { position: static; width: 100%; height: 46vh; }
  .about-split-text {
    min-height: auto;
    margin: 0 !important;
    padding: 40px 24px;
    text-align: left !important;
    align-items: flex-start !important;
  }
}
@media (max-width: 480px) {
  .nosotros-stats { grid-template-columns: 1fr; }
}

.mision-vision-section { background: var(--cream); }
.info-icon { color: var(--burgundy); margin-bottom: 10px; display: flex; justify-content: center; }

/* Por qué elegirnos */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.porque-item { text-align: center; padding: 10px; }
.porque-item svg { color: var(--burgundy); margin-bottom: 12px; }
.porque-item h4 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.porque-item p { color: var(--text-light); font-size: .88rem; }

.cta-section { background: var(--navy); text-align: center; }
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 26px; }
.cta-content { max-width: 620px; margin: 0 auto; }

/* ---------------------------------------------------------------------
   Contacto
   --------------------------------------------------------------------- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .contacto-grid { grid-template-columns: 1fr; } }
.contacto-item { margin-bottom: 26px; }
.contacto-item h3 { font-size: 1.05rem; color: var(--burgundy); margin-bottom: 4px; }
.contacto-mapa { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.pagina-legal { max-width: 760px; }
.pagina-legal h1 { margin-bottom: 24px; }
.pagina-legal-contenido { font-size: .96rem; line-height: 1.85; color: var(--text-light); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.82); }

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 34px;
  padding: 60px 24px 40px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-cuentas li { margin-bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.footer-cuentas li span { opacity: .8; }
.footer-cuentas li strong { color: var(--white); }
.footer-logo img { height: 52px; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; opacity: .75; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--white);
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--burgundy); }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: .88rem; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { opacity: .85; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .8rem; opacity: .7; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; }
.footer-bottom-inner p { margin: 0; }
.footer-libro-reclamos {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 1;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.footer-libro-reclamos:hover { color: var(--white); }

/* ---------------------------------------------------------------------
   Carrito de cotización (drawer lateral)
   --------------------------------------------------------------------- */
.header-right { display: flex; align-items: center; gap: 18px; }
.header-icons { display: flex; align-items: center; gap: 10px; }
.cart-toggle-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.cart-toggle-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--burgundy);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------------------------------------------------------------------
   Barra de búsqueda de productos
   Escritorio: input siempre visible al costado de los íconos, con los
   resultados en un popover anclado debajo.
   Responsivo: solo aparece la lupa; al pulsarla se abre el mismo
   componente como panel flotante.
   --------------------------------------------------------------------- */
.header-icons { position: relative; }

#search-toggle { display: none; }

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 190px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--cream);
  color: var(--text-light);
  transition: width .2s ease, border-color .2s ease;
}
.header-search:focus-within { width: 240px; border-color: var(--burgundy); }
.header-search svg { flex-shrink: 0; }
.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: .86rem;
  color: var(--text);
  background: transparent;
}
.search-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-light);
  flex-shrink: 0;
}
.search-close:hover { color: var(--burgundy); }

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: 82vw;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .15s ease;
}
.search-results:not(:empty) { opacity: 1; visibility: visible; transform: translateY(0); padding: 8px 0; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
}
.search-result-item:hover { background: var(--cream); }
.search-result-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 6px;
  flex-shrink: 0;
}
.search-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
}
.search-result-info { min-width: 0; flex: 1; }
.search-result-nombre {
  font-size: .88rem;
  color: var(--navy);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-precio { font-size: .8rem; color: var(--burgundy); font-weight: 600; margin-top: 2px; }
.search-result-tipo { font-size: .7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.search-mensaje { padding: 16px; color: var(--text-light); font-size: .88rem; text-align: center; }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,28,56,.45);
  z-index: 549;
}

@media (max-width: 991px) {
  #search-toggle { display: flex; }

  .header-search {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(88vw, 320px);
    box-shadow: var(--shadow);
    z-index: 550;
  }
  .header-search.open { display: flex; }
  .header-search:focus-within { width: min(88vw, 320px); }
  .search-close { display: block; }
  .search-overlay.open { display: block; }
  .search-results { right: -12px; }
}

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,28,56,.6);
  z-index: 2200;
  justify-content: flex-end;
}
.cart-overlay.open { display: flex; }
.cart-drawer {
  background: var(--white);
  width: 100%;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { margin: 0; font-size: 1.2rem; }
.cart-drawer-header button {
  background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-light);
}
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-empty { color: var(--text-light); text-align: center; padding: 40px 0; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { margin: 0 0 4px; font-size: .92rem; color: var(--navy); }
.cart-item-variant { font-size: .78rem; color: var(--text-light); margin-bottom: 4px; }
.cart-item-price { font-size: .85rem; color: var(--burgundy); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: var(--white);
  cursor: pointer; font-weight: 700; line-height: 1; color: var(--navy);
}
.cart-item-remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: .78rem; text-decoration: underline; align-self: flex-start; }
.cart-drawer-footer { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: 4px; }
.cart-note { font-size: .75rem; color: var(--text-light); margin-bottom: 14px; }
.cart-drawer-footer .btn { width: 100%; }

/* ---------------------------------------------------------------------
   Boletín / Newsletter
   --------------------------------------------------------------------- */
.newsletter-section {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 50px 24px;
}
.newsletter-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11,28,56,.82), rgba(122,31,43,.75));
}
.newsletter-content { position: relative; z-index: 2; max-width: 640px; }
.newsletter-content h2 { color: var(--white); letter-spacing: 1px; }
.newsletter-content > p { color: rgba(255,255,255,.85); margin-bottom: 26px; }
.newsletter-form { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#newsletter-campos:not([hidden]) { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.newsletter-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .newsletter-form-grid { grid-template-columns: 1fr; } }
.newsletter-form input, .newsletter-form textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-body);
  font-size: .92rem;
  resize: vertical;
}
.newsletter-form button { align-self: center; margin-top: 4px; }
.newsletter-msg { margin-top: 14px; font-size: .88rem; min-height: 1.2em; color: var(--white); }
.newsletter-msg.error { color: #ffb4b4; }

/* ---------------------------------------------------------------------
   Barra de sellos de confianza (full-bleed, sin márgenes)
   --------------------------------------------------------------------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}
.trust-item {
  flex: 1 1 0;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--navy);
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item svg { color: var(--burgundy); width: 44px; height: 44px; }
.trust-item span { font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; }
.trust-item p { margin: 0; font-size: .82rem; color: var(--text-light); text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.4; }

@media (max-width: 700px) {
  .trust-item { flex: 1 1 50%; border-right: none; }
}

/* ---------------------------------------------------------------------
   Botón flotante de WhatsApp
   --------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 900;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
