    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      margin: 0; padding: 0; background-color: #ffffff; line-height: 1.6;
      min-height: 100vh; display: flex; flex-direction: column; /* Sticky footer base */
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scrollbar-gutter: auto; }
    html, body { overflow-x: hidden; }
    body { overflow-y: auto; }
    img, video, canvas, svg { max-width: 100%; height: auto; }
header {
  background-color: #73996d;
  color: #ffffff;
  padding: 3px 0 0;
  text-align: center;
}
header h1 { margin: 0; font-size: 2.5rem; }
header p {
  margin: 12px 0 0;
  background: #ffffff;
  color: #1b5e20;
  font-weight: 700;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.4cm;
  padding: 0 16px;
}
.headline-bar {
  width: 100%;
  margin: 0;
  height: 1.2cm;
  background: #6f8f67;
  border-bottom: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 900px) {
  .headline-bar {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

@keyframes headline-move {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}

@keyframes headline-move-ltr {
  0% { transform: translate3d(calc(-1 * var(--headline-shift, 50%)), 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.headline-track {
  display: flex;
  width: max-content;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  animation: headline-move-ltr 24s linear infinite; /* Aumentamos la duración para un movimiento más lento con más contenido */
  will-change: transform;
}
.headline-group {
  display: flex;
  flex: 0 0 auto;
}
.headline-group-desktop {
  display: none;
}
@media (min-width: 900px) {
  .headline-group-desktop {
    display: flex;
  }
}
.headline-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
  padding: 0;
  gap: 0;
}
.headline-icon {
  margin-left: 6px;
}
.headline-item {
  font-size: 0;
}
.headline-text {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .3px;
}
.headline-icon svg {
  display: block;
}
.headline-item::after {
  content: none;
  margin: 0;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1600;
  pointer-events: none;
}
.cart-drawer.is-open {
  pointer-events: auto;
}
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 0;
}
.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100%;
  background: #fff;
  box-shadow: 8px 0 24px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow-x: hidden;
}
.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}
@media (max-width: 900px) {
  .cart-drawer__panel {
    width: 70vw;
  }
}

/* Forzar ancho del drawer en móvil (override final) */
@media (max-width: 900px) {
  .cart-drawer .cart-drawer__panel {
    width: 70vw !important;
  }
}
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e6e6e6;
}
.cart-drawer__title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #efefef;
  font-size: .85rem;
}
.cart-drawer__close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cart-drawer__body {
  padding: 16px 20px;
  overflow: auto;
  flex: 1;
}
.cart-drawer__empty {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.cart-drawer__empty-title {
  font-size: 1.2rem;
  font-weight: 700;
}
.cart-drawer__empty-subtitle {
  font-size: 0.9rem;
  color: #555;
}
.cart-drawer__link {
  color: #000;
  text-decoration: underline;
}
.cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  margin-bottom: 18px;
}
.cart-drawer__item {
  border-bottom: 1px solid #bfbfbf;
  padding-bottom: 14px;
}
.cart-drawer__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cart-drawer__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.cart-drawer__qty-box {
  display: inline-grid;
  grid-template-columns: 16px 16px 16px;
  align-items: center;
  justify-items: center;
  column-gap: 4px;
  border: none;
  border-radius: 5px;
  padding: 1px 3px;
  line-height: 1;
}
.cart-drawer__qty-btn {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
  padding: 0;
}

/* Categoria: titulo y grid */
.category-page-title {
  text-align: center;
  margin: 24px 0 8px;
}
.products.category-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1600px;
}
@media (min-width: 900px) {
  .products.category-products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Paginacion categorias */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 28px;
  flex-wrap: wrap;
}
.pagination .page-btn {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #222;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  min-width: 36px;
}
.pagination .page-btn.is-active {
  background: #1b5e20;
  color: #fff;
  border-color: #1b5e20;
}
.cart-drawer__qty {
  width: 16px;
  text-align: center;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  line-height: 16px;
}
.cart-drawer__remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}
.cart-drawer__qty-btn,
.cart-drawer__qty {
  line-height: 1;
}
.cart-drawer__qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .cart-drawer__item {
    grid-template-columns: 56px 1fr;
  }
  .cart-drawer__price {
    grid-column: 2;
    justify-self: end;
  }
  .cart-drawer__controls {
    gap: 8px;
  }
  .cart-drawer__qty-box {
    column-gap: 4px;
    padding: 1px 2px;
  }
}
.cart-drawer__thumb {
  width: 72px;
  height: auto;
  min-height: 110px;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer__thumb img {
  width: auto;
  height: auto;
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
  transform: none;
  padding-bottom: 0;
  display: block;
}
.cart-drawer__empty {
  color: #555;
  text-align: center;
  margin: 40px 0;
}
.cart-drawer__name {
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-drawer__meta {
  color: #666;
  font-size: .9rem;
  margin-bottom: 6px;
}
.cart-drawer__price {
  font-size: .9rem;
  margin-bottom: 10px;
}
.cart-drawer__qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  border-radius: 5px;
  padding: 1px 3px;
  margin-bottom: 10px;
}
.cart-drawer__qty-btn {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
  padding: 0;
}
.cart-drawer__remove {
  border: none;
  background: transparent;
  color: #444;
  cursor: pointer;
  font-size: .85rem;
  text-decoration: underline;
  padding: 0;
}
.cart-drawer__amount {
  font-weight: 600;
}
.cart-drawer__footer {
  padding: 16px 20px 20px;
  border-top: 1px solid #e6e6e6;
}
.cart-drawer__summary {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.cart-drawer__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart-drawer__summary-note {
  color: #6b6b6b;
  font-size: 0.85rem;
}
.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
}
.cart-drawer__note {
  margin: -6px 0 12px;
  font-size: 0.9rem;
  color: #6b6b6b;
  line-height: 1.4;
}
.cart-drawer__pay {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .cart-drawer {
    display: block;
  }
}

    .headline-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
      color: #fff;
    }






/* Contenedor principal del nav */
/* ===== BARRA DE NAVEGACIÓN (VERSIÓN REFORZADA) ===== */

/* ===== BARRA DE NAVEGACIÓN (CORREGIDA) ===== */

/* ===== BARRA DE NAVEGACIÓN - ESTILO CATÁLOGO DEFINITIVO ===== */

/* ===== BARRA DE NAVEGACIÓN (LINKS CENTRADOS) ===== */

.site-nav {
    background: #f7f7f7;
    padding: .75rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav .nav-links {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: clamp(14px, 4vw, 36px); /* Espaciado responsivo y uniforme */
}

.site-nav .nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dadada;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  display: block;
}

@media (max-width: 900px){
  header {
    text-align: left;
    padding: 12px 16px 0;
  }
  header h1 {
    font-size: 2rem;
    width: 10ch;
    display: inline-block;
    margin: 0;
    line-height: 1.1;
  }
  header p {
    font-size: .95rem;
    width: 100vw;
    margin-left: 0;
  }
  .site-nav {
    flex-wrap: nowrap;
    position: absolute;
    top: 24px;
    right: 12px;
    padding: 0;
    justify-content: flex-end;
    gap: 10px;
    background: transparent;
    z-index: 1200;
  }
  .nav-toggle {
    display: flex;
    order: 1;
    margin-left: 0;
    background: transparent;
    border-color: #fff;
  }
  .nav-toggle span {
    background: #fff;
  }
  .site-nav .nav-links {
    order: 3;
    width: min(80vw, 240px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin: 8px 0 0;
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #f7f7f7;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
    z-index: 1201;
  }
  .site-nav.nav-open .nav-links {
    display: flex;
  }
  .nav-actions {
    margin-left: 0;
    order: 2;
  }
  .lupa-icon {
    filter: brightness(0) invert(1);
  }
  .user-link {
    color: #fff;
  }
  .user-icon {
    filter: brightness(0) invert(1);
  }
  .cart {
    color: #fff;
    filter: none;
  }
  .cart-icon {
    filter: brightness(0) invert(1);
  }
  #cartCount {
    background: #fff;
    color: #2e7d32;
  }
}

/* --- (El resto de los estilos para íconos se mantienen igual) --- */

.search-btn {
    background: none; border: none; padding: 0; cursor: pointer; line-height: 0;
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.lupa-icon {
    width: 22px; height: 22px; display: block; transition: transform .2s ease;
}
.search-btn:hover .lupa-icon {
    transform: scale(1.15);
}
.user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    line-height: 0;
    transition: transform .2s ease;
    width: 32px;
    height: 32px;
}
.user-icon {
    width: 22px;
    height: 22px;
    display: block;
}
.user-link:hover {
    transform: scale(1.15);
}
.cart {
    position: relative; text-decoration: none; font-size: 22px; line-height: 1; transition: transform .2s ease;
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
}
.cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}
.cart:hover {
    transform: scale(1.15);
}
#cartCount {
    position: absolute; top: -8px; right: -10px;
    background: #4CAF50; color: #fff; border-radius: 999px;
    padding: 0 6px; min-width: 18px; height: 18px;
    font-size: .8rem; display: flex; align-items: center; justify-content: center;
}
.site-nav form.search {
    display: none !important;
}
    /* HERO */
.hero {
      background-image: url("images/historia_que_viste.jpeg"), url("images/historia_que_viste.jpeg");
      background-repeat: no-repeat;
      background-position: center 25%;
      background-size: contain;
      background-color: transparent;
      width: 100%;
      aspect-ratio: 1080 / 520;
      text-align: left;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 0;
      color: white;
    }
@media (min-width: 769px) {
  .hero {
    aspect-ratio: 1080 / 300;
    background-size: cover;
    background-position: center 65%;
    width: 100vw;
  }
}
    .hero h2 {
      font-size: clamp(2rem, 4vw, 3.5rem);
      margin: 0;
      text-shadow: 2px 2px 5px #000000;
    }
    .hero p { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

    /* TITULOS */
h2.section-title {
      text-align: center;
      width: 100%;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      color: #333;
      margin: 20px 0 20px 0;
    }
.section-title-house {
      font-family: "Playfair Display", serif;
      font-weight: 700;
      color: #1b5e20 !important;
    }
.section-title-accent {
      font-family: "Playfair Display", serif;
      font-weight: 700;
      color: #1b5e20 !important;
    }

    /* CONTENEDOR */
    .container { width: 100%; max-width: 1600px; margin: auto; overflow: hidden; padding: 20px 0; }

    /* CATEGORÍAS */
.categories {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: clamp(16px, 3vw, 32px);
      text-align: center;
      max-width: 1200px;
      margin: 0 auto;
      justify-items: center;
    }
.category-item { display:flex; flex-direction:column; align-items:center; }
.category-image-card {
      display:block;
      width:100%;
      max-width:360px;
      aspect-ratio: 7 / 5;
      height:auto;
      border-radius:25px;
      box-shadow:0 4px 15px rgba(0,0,0,0.15);
      overflow:hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .category-image-card:hover { transform: translateY(-10px); box-shadow:0 12px 25px rgba(0,0,0,0.2); }
    .category-image-card img { width:100%; height:100%; object-fit:cover; }
.category-title {
      margin-top:15px;
      padding:0;
      font-size: clamp(1.1rem, 2.4vw, 1.5rem);
      font-weight:700;
      color:#333;
      font-family:'Montserrat', sans-serif;
    }


    /* PRODUCTOS */
    /* ===== SECCIÓN DE PRODUCTOS DESTACADOS (CÓDIGO FINAL) ===== */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-items: center;
    gap: clamp(20px, 3vw, 32px);
    padding: clamp(18px, 3vw, 32px) 16px;
    max-width: 1320px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
  .products.products-house {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: start;
    max-width: 1600px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 191px;
    padding-right: 16px;
  }
  .products.products-house .product-card {
    max-width: 360px;
    width: 100%;
  }
}

.product-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 25px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  padding: 9px 16px;
  /* Usamos Flexbox para alinear el contenido verticalmente */
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  image-orientation: from-image;
  border-radius: 15px;
}

.product-card h3 {
  color: #333;
  font-size: 1.2rem;
  margin: 14px 0 6px 0;
  flex-grow: 1; /* Permite que este espacio crezca si es necesario */
}

.product-card .price {
  color: #007bff;
  font-weight: bold;
  font-size: 1.4rem;
  margin: 6px 0 12px 0;
}

.product-card button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
    transition: background-color 0.2s;
}

.product-card a {
    width: 100%;
    display: flex;
    text-decoration: none;
}

.product-card a button {
    width: 100%;
}

.product-card button:hover {
    background-color: #45a049;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card-content button {
  align-self: center;
}

.price-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.old-price {
  margin: 0;
  color: #9a9a9a;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.sale-price {
  margin: 0;
  color: #1b5e20;
  font-weight: 700;
  font-size: 1.15rem;
}



    /* OVERLAY BÚSQUEDA */
    .search-overlay {
      position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5);
      display:none; justify-content:flex-start; align-items:center; flex-direction:column; gap:12px; padding-top:100px; z-index:2000;
    }
    .search-overlay.active { display:flex; }
.search-box {
  width:80%; max-width:900px; background: rgba(255,255,255,0.95); border-radius:10px; padding:15px 20px;
  display:flex; align-items:center; gap:12px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin: 0 auto;
}
    .search-input-wrapper {
      flex:1; display:flex; align-items:center; gap:8px; border:1px solid #ccc; border-radius:6px; padding:8px 12px; background:white;
    }
    .search-input-wrapper .overlay-icon { width:20px; height:20px; }
    .search-input-wrapper input { flex:1; border:none; outline:none; font-size:1.1rem; background:transparent; }
    .search-submit {
      background:#4CAF50; color:#fff; border:none; padding:10px 18px; border-radius:6px; font-size:1rem; cursor:pointer;
      transition: background .2s ease, transform .2s ease;
    }
    .search-submit:hover { background:#45a049; transform: scale(1.05); }
    .close-btn {
      position: fixed;
      top: 12px;
      right: 12px;
      background: none;
      border: none;
      font-size: 1.3rem;
      cursor: pointer;
      color: #fff;
      line-height: 1;
      z-index: 2100;
      transition: transform .2s ease;
    }
    .close-btn:hover { transform: scale(1.2); }

    /* ===== Catálogo - Filtros ===== */
    .nav-accent { height: 2px; background: linear-gradient(90deg,#b9e4bb,#dff3e1); }

    .filter-section { padding: 16px 20px; background: #fafdfb; }
    .filter-bar {
      width: 100%; max-width: 1400px; margin: 0 auto;
      background: #fff; border: 1px solid #e9ecef; border-radius: 14px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
      display: grid; gap: 16px; align-items: end;
      grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
      padding: 14px 16px;
      box-sizing: border-box;
    }
    .filter-group label { display:block; margin:0 0 6px; font-weight:600; color:#2a2a2a; font-size: .95rem; }
    .filter-group select,
    .custom-select-trigger {
      width: 100%;
      height: 42px;
      padding: 8px 12px;
      font-size: 1rem;
      border: 1px solid #ced4da;
      border-radius: 10px;
      outline: none;
      background: #fff;
      transition: border-color .15s ease, box-shadow .15s ease;
      text-align: left;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 12px;
    }
    .custom-select-trigger:focus,
    .filter-group select:focus {
      border-color:#4CAF50; box-shadow:0 0 0 3px rgba(76,175,80,.15);
    }
    .custom-select { position: relative; width: 100%; }
    .custom-select-options {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      background: #fff;
      border: 1px solid #ced4da;
      border-radius: 12px;
      box-shadow: 0 10px 18px rgba(0,0,0,0.12);
      max-height: none;
      overflow: visible;
      padding: 6px 0;
      display: none;
      z-index: 30;
      list-style: none;
      margin: 0;
      pointer-events: auto;
    }
    .custom-select.is-open .custom-select-options { display: block; }
    .custom-select-option {
      padding: 8px 12px;
      cursor: pointer;
      font-size: .95rem;
      font-weight: 600;
      color: #2a2a2a;
      transition: background .15s ease, color .15s ease;
      display: block;
    }
    .custom-select-option:hover,
    .custom-select-option:focus,
    .custom-select-option.is-hovered,
    .custom-select-option:active {
      background: #4CAF50 !important;
      color: #fff !important;
    }
    .custom-select-option.is-selected {
      background: #e6f4e7;
      color: #1b5e20;
    }
    .custom-select-option.is-disabled {
      color: #9aa5a8;
      cursor: default;
    }
    .custom-select-option.is-disabled:hover {
      background: transparent;
      color: #9aa5a8;
    }
    body.has-custom-select .filter-group select { display: none; }
    body:not(.has-custom-select) .custom-select { display: none; }

    .filter-actions { display:flex; gap:10px; justify-content:flex-end; align-self:end; }
    .filter-btn, .reset-btn {
      appearance:none; -webkit-appearance:none; -moz-appearance:none;
      border-radius:10px; padding:10px 16px; font-size:1rem; cursor:pointer;
      border: 1px solid transparent; transition: background .2s ease, border-color .2s ease, transform .08s ease;
    }
    .filter-btn { background:#4CAF50; color:#fff; }
    .filter-btn:hover { background:#45a049; }
    .filter-btn:active { transform: scale(.98); }
    .reset-btn { background:#fff; border-color:#cfd8dc; color:#2a2a2a; }
    .reset-btn:hover { border-color:#90a4ae; }
    .reset-btn:active { transform: scale(.98); }

    @media (max-width: 900px){
      .filter-bar { grid-template-columns: 1fr 1fr; }
      .filter-actions { grid-column: 1 / -1; }
      .filter-actions .filter-btn, .filter-actions .reset-btn { flex:1; }
    }
@media (max-width: 768px){
      .filter-section {
        padding: 12px 16px 18px;
        background: #f5f8f5;
      }
      .filter-bar {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 2px 6px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
      }
      .filter-group {
        min-width: 0;
      }
      .filter-group label {
        margin: 0;
        font-size: .75rem;
        font-weight: 700;
        white-space: nowrap;
        display: none;
      }
      .filter-group select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border-radius: 999px;
        border-color: #d6e2d6;
        font-weight: 600;
        padding: 5px 26px 5px 8px;
        min-width: 0;
        height: 30px;
        font-size: .9rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a5b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 10px;
        width: 100%;
      }
      .custom-select-trigger {
        border-radius: 999px;
        border-color: #d6e2d6;
        font-weight: 600;
        padding: 5px 26px 5px 8px;
        height: 30px;
        font-size: .9rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a5b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 10px;
      }
      .filter-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
      }
      .filter-actions .filter-btn,
      .filter-actions .reset-btn {
        border-radius: 999px;
        padding: 5px 8px;
        height: 30px;
        font-size: .82rem;
        white-space: nowrap;
      }
      .filter-actions {
        display: none;
      }
    }
    @media (max-width: 520px){
      .filter-group select { font-size: .82rem; }
      .filter-actions .filter-btn,
      .filter-actions .reset-btn { padding: 4px 6px; }
    }

    /* CART */
    .cart-page { padding: clamp(24px, 5vw, 40px) 0; }
    .cart-empty { font-size: 1.1rem; color: #444; text-align: center; }
    .cart-grid {
      max-width: 1100px;
      margin: 24px auto 0;
      display: grid;
      gap: 24px;
      width: 100%;
      padding: 0 16px;
      box-sizing: border-box;
    }
    .cart-card { background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:16px; }
    .cart-card h3 { margin-top: 0; }
    .cart-item-row {
      display: grid;
      grid-template-columns: 72px 1fr auto;
      gap: 12px;
      align-items: start;
      padding: 12px 0;
      border-bottom: 1px solid #eee;
    }
    .cart-item-row:last-child { border-bottom: none; }
    .cart-item-thumb {
      width: 72px;
      height: 72px;
      border-radius: 12px;
      background: #f2f2f2;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cart-item-name { font-weight: 600; margin-bottom: 4px; }
    .cart-item-meta { color: #666; font-size: .9rem; margin-bottom: 6px; }
    .cart-item-qty {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: 1px solid #d4d4d4;
      border-radius: 10px;
      padding: 6px 10px;
      width: fit-content;
      margin-bottom: 6px;
    }
    .cart-item-qty button {
      border: none;
      background: transparent;
      font-size: 1rem;
      cursor: pointer;
    }
    .cart-item-remove {
      border: none;
      background: transparent;
      color: #444;
      cursor: pointer;
      font-size: .85rem;
      text-decoration: underline;
      padding: 0;
    }
    .cart-item-amount { font-weight: 600; }
    .payment-card {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid #e6ece6;
    }
    .payment-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .payment-grid .form-group.full-row {
      grid-column: 1 / -1;
    }
    .summary-grid { display:grid; gap:6px; }
    .muted { margin:0; color:#666; }
    .cart-pay-btn {
      margin-top:12px;
      background:#4CAF50;
      color:#fff;
      border:none;
      padding:12px 18px;
      border-radius:8px;
      cursor:pointer;
    }
    .cart-pay-btn:hover { background:#45a049; }
    .quote-btn {
      background:#2e7d32;
      color:#fff;
      border:none;
      padding:10px 16px;
      border-radius:8px;
      cursor:pointer;
    }
    .quote-btn:hover { background:#276c2b; }
    .shipping-form {
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap:12px;
    }
    .shipping-form .full-row { grid-column: 1 / -1; }
    .shipping-form .form-actions { text-align: right; }
    .quote-options { margin-top:10px; display:grid; gap:8px; }
    .quote-option {
      display:flex;
      gap:10px;
      align-items:center;
      background:#f7f9f7;
      padding:10px 12px;
      border-radius:10px;
      border:1px solid #e1e7e1;
      width: 100%;
      height: 64px;
    }
    .quote-option span {
      flex: 1;
      min-height: 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .quote-option--fixed {
      justify-content: center;
      text-align: center;
    }
.quote-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #5f6a5f;
  line-height: 1.4;
}
.quote-eta { color:#5f6a5f; font-size:.9rem; }

.payment-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  color: #3f4a3f;
  font-size: .95rem;
}
.payment-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.payment-logo {
  height: 40px;
  width: auto;
  display: block;
}
.payment-logo-amex {
  height: 36px;
}
.payment-logos .payment-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  transform: scale(1.34);
  transform-origin: center;
}
.openpay-logo {
  width: 120px;
  height: auto;
  margin-top: 4px;
}

.cart-support p {
  margin: 4px 0;
}

.purchase-items {
  display: grid;
  gap: 6px;
  margin: 6px 0 12px;
}
.purchase-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .95rem;
  color: #2f2f2f;
}
.purchase-totals {
  display: grid;
  gap: 6px;
  font-size: .95rem;
}

    @media (min-width: 980px){
      .cart-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
      .cart-products { grid-column: 1; }
      .cart-summary { grid-column: 2; align-self: start; position: sticky; top: 16px; }
      .cart-shipping, .cart-quote, .cart-tracking { grid-column: 1 / -1; }
    }
    @media (max-width: 720px){
      .shipping-form { grid-template-columns: 1fr; }
      .shipping-form .form-actions { text-align: left; }
      .cart-pay-btn { width: 100%; }
    }

    /* HOME - TIENDA FISICA */
.tienda-fisica-section { background:#ffffff; padding:40px 0; border-top:1px solid #ddd; }

.tienda-contenido {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 3vw, 30px);
  flex-wrap: wrap;
}

.tienda-info {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.tienda-info h3 {
  margin-top: 0;
}
.tienda-info p {
  margin: 4px 0 6px;
}
.tienda-list {
  margin: 0 0 8px;
  padding-left: 20px;
}
.tienda-list li {
  margin: 2px 0;
}

.tienda-mapa iframe {
  width: 100%;
  height: clamp(240px, 30vw, 360px);
  border-radius: 12px;
  border: 0;
}

.slider{
  flex: 1 1 420px;
  max-width: 560px;
  height: auto;
  align-self: stretch;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 1s ease-in-out;
}
/* FOOTER compacto una sola línea */
    footer.footer {
      background: #b9e4bb; color: #000; text-align:center; padding:8px 0; margin:0; width:100%; font-size:.9rem;
      margin-top: auto; /* Empuja el footer al fondo en páginas cortas */
    }
         body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      margin: 0; padding: 0; background-color: #ffffff; line-height: 1.6;
      min-height: 100vh; display: flex; flex-direction: column; /* Sticky footer base */
    }
    *, *::before, *::after { box-sizing: border-box; }
    html, body { overflow-x: hidden; }
    img, video, canvas, svg { max-width: 100%; height: auto; }
header {
  background-color: #73996d; color: #ffffff; padding: 3px 0; text-align: center;
}
header h1 { margin: 0; font-size: 2.5rem; }
header p {
  margin: 12px 0 0;
  background: #ffffff;
  color: #1b5e20;
  font-weight: 700;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.4cm;
  padding: 0 16px;
}
    .headline-bar {
      width: 100%;
      height: 1.2cm;
      background: #6f8f67;
      border-bottom: 0;
      display: flex;
      align-items: center;
      overflow: hidden;
    }
    .headline-track {
      display: flex;
      width: max-content;
      font-weight: 700;
      letter-spacing: .3px;
      color: #fff;
      font-size: clamp(1rem, 2.8vw, 1.2rem);
      animation: headline-move-ltr var(--headline-duration, 12s) linear infinite;
      will-change: transform;
      transform: translate3d(0, 0, 0);
    }
    .headline-group {
      display: flex;
      flex: 0 0 auto;
    }
    .headline-item {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      text-align: center;
      padding: 0 28px;
    }
.headline-item::after {
  content: " \2022";
  margin-left: 10px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1600;
  pointer-events: none;
}
.cart-drawer.is-open {
  pointer-events: auto;
}
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 0;
}
.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100%;
  background: #fff;
  box-shadow: 8px 0 24px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e6e6e6;
}
.cart-drawer__title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #efefef;
  font-size: .85rem;
}
.cart-drawer__close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cart-drawer__body {
  padding: 16px 20px;
  overflow: auto;
  flex: 1;
}
.cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
}
.cart-drawer__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-drawer__empty {
  color: #555;
  text-align: center;
  margin: 40px 0;
}
.cart-drawer__name {
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-drawer__meta {
  color: #666;
  font-size: .9rem;
  margin-bottom: 6px;
}
.cart-drawer__price {
  font-size: .9rem;
  margin-bottom: 10px;
}
.cart-drawer__qty {
  width: 16px;
  height: 16px;
  text-align: center;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
}
.cart-drawer__qty-btn {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
  padding: 0;
}
.cart-drawer__remove {
  border: none;
  background: transparent;
  color: #444;
  cursor: pointer;
  font-size: .85rem;
  text-decoration: underline;
  padding: 0;
}
.cart-drawer__amount {
  font-weight: 600;
}
.cart-drawer__footer {
  padding: 16px 20px 20px;
  border-top: 1px solid #e6e6e6;
}
.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
}
.cart-drawer__note {
  margin: -6px 0 12px;
  font-size: 0.9rem;
  color: #6b6b6b;
  line-height: 1.4;
}
.cart-drawer__pay {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .cart-drawer {
    display: block;
  }
}
    .headline-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
      color: #fff;
    }






/* Contenedor principal del nav */
/* ===== BARRA DE NAVEGACIÓN (VERSIÓN REFORZADA) ===== */

/* ===== BARRA DE NAVEGACIÓN (CORREGIDA) ===== */

/* ===== BARRA DE NAVEGACIÓN - ESTILO CATÁLOGO DEFINITIVO ===== */

/* ===== BARRA DE NAVEGACIÓN (LINKS CENTRADOS) ===== */

.site-nav {
    background: #f7f7f7;
    padding: .75rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav .nav-links {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: clamp(14px, 4vw, 36px); /* Espaciado responsivo y uniforme */
}

.site-nav .nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dadada;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  display: block;
}

@media (max-width: 900px){
  header {
    text-align: left;
    padding: 12px 16px 0;
  }
  header h1 {
    font-size: 2rem;
    width: 10ch;
    display: inline-block;
    margin: 0;
    line-height: 1.1;
  }
  header p {
    font-size: .95rem;
    width: 100vw;
    margin-left: 0;
  }
  .site-nav {
    flex-wrap: nowrap;
    position: absolute;
    top: 24px;
    right: 12px;
    padding: 0;
    justify-content: flex-end;
    gap: 10px;
    background: transparent;
    z-index: 1200;
  }
  .nav-toggle {
    display: flex;
    order: 1;
    margin-left: 0;
    background: transparent;
    border-color: #fff;
  }
  .nav-toggle span {
    background: #fff;
  }
  .site-nav .nav-links {
    order: 3;
    width: min(80vw, 240px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin: 8px 0 0;
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #f7f7f7;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
    z-index: 1201;
  }
  .site-nav.nav-open .nav-links {
    display: flex;
  }
  .nav-actions {
    margin-left: 0;
    order: 2;
  }
  .lupa-icon {
    filter: brightness(0) invert(1);
  }
  .user-link {
    color: #fff;
  }
  .user-icon {
    filter: brightness(0) invert(1);
  }
  .cart {
    color: #fff;
    filter: none;
  }
  .cart-icon {
    filter: brightness(0) invert(1);
  }
  #cartCount {
    background: #fff;
    color: #2e7d32;
  }
}

/* --- (El resto de los estilos para íconos se mantienen igual) --- */

.search-btn {
    background: none; border: none; padding: 0; cursor: pointer; line-height: 0;
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.lupa-icon {
    width: 22px; height: 22px; display: block; transition: transform .2s ease;
}
.search-btn:hover .lupa-icon {
    transform: scale(1.15);
}
.user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    line-height: 0;
    transition: transform .2s ease;
    width: 32px;
    height: 32px;
}
.user-icon {
    width: 22px;
    height: 22px;
    display: block;
}
.user-link:hover {
    transform: scale(1.15);
}
.cart {
    position: relative; text-decoration: none; font-size: 22px; line-height: 1; transition: transform .2s ease;
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
}
.cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}
.cart:hover {
    transform: scale(1.15);
}
#cartCount {
    position: absolute; top: -8px; right: -10px;
    background: #4CAF50; color: #fff; border-radius: 999px;
    padding: 0 6px; min-width: 18px; height: 18px;
    font-size: .8rem; display: flex; align-items: center; justify-content: center;
}
.site-nav form.search {
    display: none !important;
}
    /* HERO */
.hero {
      background-image: url("images/historia_que_viste.jpeg"), url("images/historia_que_viste.jpeg");
      background-repeat: no-repeat;
      background-position: center 25%;
      background-size: contain;
      background-color: transparent;
      width: 100%;
      aspect-ratio: 1080 / 520;
      text-align: left;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 0;
      color: white;
    }
@media (min-width: 901px) {
  .hero {
    aspect-ratio: 1080 / 300;
    background-size: cover;
    background-position: center 65%;
    width: 100vw;
  }
}
    .hero h2 {
      font-size: clamp(2rem, 4vw, 3.5rem);
      margin: 0;
      text-shadow: 2px 2px 5px #000000;
    }
    .hero p { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

    /* TITULOS */
h2.section-title {
      text-align: center;
      width: 100%;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      color: #333;
      margin: 20px 0 20px 0;
    }
.section-title-house {
      font-family: "Playfair Display", serif;
      font-weight: 700;
      color: #1b5e20 !important;
    }
.section-title-accent {
      font-family: "Playfair Display", serif;
      font-weight: 700;
      color: #1b5e20 !important;
    }

    /* CONTENEDOR */
    .container { width: 100%; max-width: 1600px; margin: auto; overflow: hidden; padding: 20px 0; }

    /* CATEGORÍAS */
.categories {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: clamp(16px, 3vw, 32px);
      text-align: center;
      max-width: 1200px;
      margin: 0 auto;
      justify-items: center;
    }
.category-item { display:flex; flex-direction:column; align-items:center; }
.category-image-card {
      display:block;
      width:100%;
      max-width:360px;
      aspect-ratio: 7 / 5;
      height:auto;
      border-radius:25px;
      box-shadow:0 4px 15px rgba(0,0,0,0.15);
      overflow:hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .category-image-card:hover { transform: translateY(-10px); box-shadow:0 12px 25px rgba(0,0,0,0.2); }
    .category-image-card img { width:100%; height:100%; object-fit:cover; }
.category-title {
      margin-top:15px;
      padding:0;
      font-size: clamp(1.1rem, 2.4vw, 1.5rem);
      font-weight:700;
      color:#333;
      font-family:'Montserrat', sans-serif;
    }


    /* PRODUCTOS */
    /* ===== SECCIÓN DE PRODUCTOS DESTACADOS (CÓDIGO FINAL) ===== */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-items: center;
    gap: clamp(20px, 3vw, 32px);
    padding: clamp(18px, 3vw, 32px) 16px;
    max-width: 1320px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
  .products.products-house {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: start;
    max-width: 1600px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 191px;
    padding-right: 16px;
  }
  .products.products-house .product-card {
    max-width: 360px;
    width: 100%;
  }
}

.product-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 25px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  padding: 9px 16px;
  /* Usamos Flexbox para alinear el contenido verticalmente */
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  image-orientation: from-image;
  border-radius: 15px;
}

.product-card h3 {
  color: #333;
  font-size: 1.2rem;
  margin: 14px 0 6px 0;
  flex-grow: 1; /* Permite que este espacio crezca si es necesario */
}

.product-card .price {
  color: #007bff;
  font-weight: bold;
  font-size: 1.4rem;
  margin: 6px 0 12px 0;
}

.product-card button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
    transition: background-color 0.2s;
}

.product-card a {
    width: 100%;
    display: flex;
    text-decoration: none;
}

.product-card a button {
    width: 100%;
}

.product-card button:hover {
    background-color: #45a049;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card-content button {
  align-self: center;
}

.price-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.old-price {
  margin: 0;
  color: #9a9a9a;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.sale-price {
  margin: 0;
  color: #1b5e20;
  font-weight: 700;
  font-size: 1.15rem;
}



    /* OVERLAY BÚSQUEDA */
    .search-overlay {
      position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5);
      display:none; justify-content:flex-start; align-items:center; flex-direction:column; gap:12px; padding-top:100px; z-index:2000;
    }
    .search-overlay.active { display:flex; }
    .search-box {
      width:80%; max-width:900px; background: rgba(255,255,255,0.95); border-radius:10px; padding:15px 20px;
      display:flex; align-items:center; gap:12px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    .search-input-wrapper {
      flex:1; display:flex; align-items:center; gap:8px; border:1px solid #ccc; border-radius:6px; padding:8px 12px; background:white;
    }
    .search-input-wrapper .overlay-icon { width:20px; height:20px; }
    .search-input-wrapper input { flex:1; border:none; outline:none; font-size:1.1rem; background:transparent; }
    .search-submit {
      background:#4CAF50; color:#fff; border:none; padding:10px 18px; border-radius:6px; font-size:1rem; cursor:pointer;
      transition: background .2s ease, transform .2s ease;
    }
    .search-submit:hover { background:#45a049; transform: scale(1.05); }
    .close-btn {
      position: fixed;
      top: 12px;
      right: 12px;
      background: none;
      border: none;
      font-size: 1.3rem;
      cursor: pointer;
      color: #fff;
      line-height: 1;
      z-index: 2100;
      transition: transform .2s ease;
    }
    .close-btn:hover { transform: scale(1.2); }

    /* ===== Catálogo - Filtros ===== */
    .nav-accent { height: 2px; background: linear-gradient(90deg,#b9e4bb,#dff3e1); }

    .filter-section { padding: 16px 20px; background: #fafdfb; }
    .filter-bar {
      width: 100%; max-width: 1100px; margin: 0 auto;
      background: #fff; border: 1px solid #e9ecef; border-radius: 14px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
      display: grid; gap: 16px; align-items: end;
      grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
      padding: 14px 16px;
      box-sizing: border-box;
    }
    .filter-group label { display:block; margin:0 0 6px; font-weight:600; color:#2a2a2a; font-size: .95rem; }
    .filter-group select,
    .custom-select-trigger {
      width: 100%;
      height: 42px;
      padding: 8px 12px;
      font-size: 1rem;
      border: 1px solid #ced4da;
      border-radius: 10px;
      outline: none;
      background: #fff;
      transition: border-color .15s ease, box-shadow .15s ease;
      text-align: left;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 12px;
    }
    .custom-select-trigger:focus,
    .filter-group select:focus {
      border-color:#4CAF50; box-shadow:0 0 0 3px rgba(76,175,80,.15);
    }
    .custom-select { position: relative; width: 100%; }
    .custom-select-options {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      background: #fff;
      border: 1px solid #ced4da;
      border-radius: 12px;
      box-shadow: 0 10px 18px rgba(0,0,0,0.12);
      max-height: none;
      overflow: visible;
      padding: 6px 0;
      display: none;
      z-index: 30;
      list-style: none;
      margin: 0;
      pointer-events: auto;
    }
    .custom-select.is-open .custom-select-options { display: block; }
    .custom-select-option {
      padding: 8px 12px;
      cursor: pointer;
      font-size: .95rem;
      font-weight: 600;
      color: #2a2a2a;
      transition: background .15s ease, color .15s ease;
      display: block;
    }
    .custom-select-option:hover,
    .custom-select-option:focus,
    .custom-select-option.is-hovered,
    .custom-select-option:active {
      background: #4CAF50 !important;
      color: #fff !important;
    }
    .custom-select-option.is-selected {
      background: #e6f4e7;
      color: #1b5e20;
    }
    .custom-select-option.is-disabled {
      color: #9aa5a8;
      cursor: default;
    }
    .custom-select-option.is-disabled:hover {
      background: transparent;
      color: #9aa5a8;
    }
    body.has-custom-select .filter-group select { display: none; }
    body:not(.has-custom-select) .custom-select { display: none; }

    .filter-actions { display:flex; gap:10px; justify-content:flex-end; align-self:end; }
    .filter-btn, .reset-btn {
      appearance:none; -webkit-appearance:none; -moz-appearance:none;
      border-radius:10px; padding:10px 16px; font-size:1rem; cursor:pointer;
      border: 1px solid transparent; transition: background .2s ease, border-color .2s ease, transform .08s ease;
    }
    .filter-btn { background:#4CAF50; color:#fff; }
    .filter-btn:hover { background:#45a049; }
    .filter-btn:active { transform: scale(.98); }
    .reset-btn { background:#fff; border-color:#cfd8dc; color:#2a2a2a; }
    .reset-btn:hover { border-color:#90a4ae; }
    .reset-btn:active { transform: scale(.98); }

    @media (max-width: 900px){
      .filter-bar { grid-template-columns: 1fr 1fr; }
      .filter-actions { grid-column: 1 / -1; }
      .filter-actions .filter-btn, .filter-actions .reset-btn { flex:1; }
    }
@media (max-width: 768px){
      .filter-section {
        padding: 12px 16px 18px;
        background: #f5f8f5;
      }
      .filter-bar {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 2px 6px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
      }
      .filter-group {
        min-width: 0;
      }
      .filter-group label {
        margin: 0;
        font-size: .75rem;
        font-weight: 700;
        white-space: nowrap;
        display: none;
      }
      .filter-group select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border-radius: 999px;
        border-color: #d6e2d6;
        font-weight: 600;
        padding: 5px 26px 5px 8px;
        min-width: 0;
        height: 30px;
        font-size: .9rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a5b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 10px;
        width: 100%;
      }
      .custom-select-trigger {
        border-radius: 999px;
        border-color: #d6e2d6;
        font-weight: 600;
        padding: 5px 26px 5px 8px;
        height: 30px;
        font-size: .9rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a5b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 10px;
      }
      .filter-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
      }
      .filter-actions .filter-btn,
      .filter-actions .reset-btn {
        border-radius: 999px;
        padding: 5px 8px;
        height: 30px;
        font-size: .82rem;
        white-space: nowrap;
      }
      .filter-actions {
        display: none;
      }
    }
    @media (max-width: 520px){
      .filter-group select { font-size: .82rem; }
      .filter-actions .filter-btn,
      .filter-actions .reset-btn { padding: 4px 6px; }
    }

    /* CART */
    .cart-page { padding: clamp(24px, 5vw, 40px) 0; }
    .cart-empty { font-size: 1.1rem; color: #444; text-align: center; }
    .cart-grid {
      max-width: 1100px;
      margin: 24px auto 0;
      display: grid;
      gap: 24px;
      width: 100%;
      padding: 0 16px;
      box-sizing: border-box;
    }
    .cart-card { background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:16px; }
    .cart-card h3 { margin-top: 0; }
    .cart-item-row {
      display: grid;
      grid-template-columns: 72px 1fr auto;
      gap: 12px;
      align-items: start;
      padding: 12px 0;
      border-bottom: 1px solid #eee;
    }
    .cart-item-row:last-child { border-bottom: none; }
    .cart-item-thumb {
      width: 72px;
      height: 72px;
      border-radius: 12px;
      background: #f2f2f2;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cart-item-name { font-weight: 600; margin-bottom: 4px; }
    .cart-item-meta { color: #666; font-size: .9rem; margin-bottom: 6px; }
    .cart-item-qty {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: 1px solid #d4d4d4;
      border-radius: 10px;
      padding: 6px 10px;
      width: fit-content;
      margin-bottom: 6px;
    }
    .cart-item-qty button {
      border: none;
      background: transparent;
      font-size: 1rem;
      cursor: pointer;
    }
    .cart-item-remove {
      border: none;
      background: transparent;
      color: #444;
      cursor: pointer;
      font-size: .85rem;
      text-decoration: underline;
      padding: 0;
    }
    .cart-item-amount { font-weight: 600; }
    .payment-card {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid #e6ece6;
    }
    .payment-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .payment-grid .form-group.full-row {
      grid-column: 1 / -1;
    }
    .summary-grid { display:grid; gap:6px; }
    .muted { margin:0; color:#666; }
    .cart-pay-btn {
      margin-top:12px;
      background:#4CAF50;
      color:#fff;
      border:none;
      padding:12px 18px;
      border-radius:8px;
      cursor:pointer;
    }
    .cart-pay-btn:hover { background:#45a049; }
    .quote-btn {
      background:#2e7d32;
      color:#fff;
      border:none;
      padding:10px 16px;
      border-radius:8px;
      cursor:pointer;
    }
    .quote-btn:hover { background:#276c2b; }
    .shipping-form {
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap:12px;
    }
    .shipping-form .full-row { grid-column: 1 / -1; }
    .shipping-form .form-actions { text-align: right; }
    .quote-options { margin-top:10px; display:grid; gap:8px; }
    .quote-option {
      display:flex;
      gap:10px;
      align-items:center;
      background:#f7f9f7;
      padding:10px 12px;
      border-radius:10px;
      border:1px solid #e1e7e1;
      width: 100%;
      height: 64px;
    }
    .quote-option span {
      flex: 1;
      min-height: 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .quote-option--fixed {
      justify-content: center;
      text-align: center;
    }
.quote-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #5f6a5f;
  line-height: 1.4;
}
.quote-eta { color:#5f6a5f; font-size:.9rem; }

.payment-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  color: #3f4a3f;
  font-size: .95rem;
}
.payment-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.payment-logo {
  height: 40px;
  width: auto;
  display: block;
}
.payment-logo-amex {
  height: 36px;
}
.payment-logos .payment-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  transform: scale(1.34);
  transform-origin: center;
}
.openpay-logo {
  width: 120px;
  height: auto;
  margin-top: 4px;
}

.cart-support p {
  margin: 4px 0;
}

.purchase-items {
  display: grid;
  gap: 6px;
  margin: 6px 0 12px;
}
.purchase-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .95rem;
  color: #2f2f2f;
}
.purchase-totals {
  display: grid;
  gap: 6px;
  font-size: .95rem;
}

    @media (min-width: 980px){
      .cart-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
      .cart-products { grid-column: 1; }
      .cart-summary { grid-column: 2; align-self: start; position: sticky; top: 16px; }
      .cart-shipping, .cart-quote, .cart-tracking { grid-column: 1 / -1; }
    }
    @media (max-width: 720px){
      .shipping-form { grid-template-columns: 1fr; }
      .shipping-form .form-actions { text-align: left; }
      .cart-pay-btn { width: 100%; }
    }

    /* HOME - TIENDA FISICA */
.tienda-fisica-section { background:#ffffff; padding:40px 0; border-top:1px solid #ddd; }

.tienda-contenido {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 3vw, 30px);
  flex-wrap: wrap;
}

.tienda-info {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.tienda-info h3 {
  margin-top: 0;
}
.tienda-info p {
  margin: 4px 0 6px;
}
.tienda-list {
  margin: 0 0 8px;
  padding-left: 20px;
}
.tienda-list li {
  margin: 2px 0;
}

.tienda-mapa iframe {
  width: 100%;
  height: clamp(240px, 30vw, 360px);
  border-radius: 12px;
  border: 0;
}

.slider{
  flex: 1 1 420px;
  max-width: 560px;
  height: auto;
  align-self: stretch;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 1s ease-in-out;
}
/* FOOTER compacto una sola línea */
footer.footer {
  background: #b9e4bb;
  color: #000;
  text-align: center;
  padding: 8px 0;
  margin: 0;
  width: 100%;
  font-size: .9rem;
  margin-top: auto; /* Empuja el footer al fondo en páginas cortas */
}

footer.footer p {
  margin: 4px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  text-align: center;
}

@media (min-width: 900px) {
  footer.footer p {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0 18px;
    white-space: nowrap;
  }
  footer.footer p > span,
  footer.footer p > .footer-legal,
  footer.footer p > .footer-social {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  footer.footer .footer-social {
    order: -1;
    margin-right: 32px;
  }
  footer.footer .footer-legal {
    gap: 20px;
  }
}

footer.footer .footer-text,
footer.footer .footer-social,
footer.footer .social-links {
  display: inline-flex;
}

footer.footer .social-links {
  gap: 14px;
}

footer.footer .social-links a {
  color: #0b4e0e;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding-bottom: 2px;
}





footer.footer .footer-legal a {
  font-weight: 700;
}

footer.footer .social-links a {
  font-weight: 700 !important;
}



@media (max-width: 640px) {
  footer.footer {
    padding: 12px 16px;
    font-size: .85rem;
    text-align: center;
  }

  footer.footer p {
    line-height: 1.5;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  footer.footer a {
    display: inline-block;
  }

  footer.footer .footer-social {
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
  }

  footer.footer .social-links {
    display: inline-flex;
    gap: 6px 10px;
  }

  footer.footer .footer-text {
    display: block;
  }

footer.footer .footer-legal {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
}

footer.footer p > span,
footer.footer p > .footer-legal,
footer.footer p > .footer-social {
  white-space: normal;
}

footer.footer p > span:not(.footer-social):not(.footer-legal) {
  display: block;
}

footer.footer .footer-social {
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
}
      footer.footer .footer-legal {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
      }
      footer.footer .footer-legal::before,
      footer.footer .footer-legal::after,
      footer.footer .footer-social::after {
        content: none;
      }
footer.footer .footer-legal,
footer.footer .footer-social {
  padding: 0;
}

/* ===== Footer line single row ===== */
footer.footer {
  font-weight: 400;
}
footer.footer p {
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 900px) {
  footer.footer p {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0 18px;
    white-space: nowrap;
  }
  footer.footer .footer-social {
    order: -1;
    margin-right: 26px;
  }
  footer.footer .footer-legal {
    gap: 18px;
  }
}

        /* RESPONSIVE */
    @media (max-width: 1200px){
      .container{ width:95%; }
      .categories{ max-width: 100%; gap:40px; }
      .products{ max-width: 100%; }
    }
    @media (max-width: 900px){
      .tienda-contenido{ flex-direction: column; align-items: stretch; }
      .slider{ max-width: 100%; width: 100%; height: clamp(280px, 60vw, 420px); }
      .tienda-info{ width: 100%; }
    }
    @media (max-width: 768px){
      .container{ padding:20px 15px; }
      .category-image-card{ max-width:100%; width:100%; }
      .categories{ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:25px; }
      .categories-mosaic{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 100%;
      }
      .categories-mosaic .category-item{
        align-items: stretch;
        width: 100%;
        position: relative;
      }
      .categories-mosaic .category-image-card{
        max-width: none;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
      }
      .categories-mosaic .category-image-card img{
        border-radius: 0;
      }
      .category-wide-1,
      .category-wide-2{
        grid-column: 1 / -1;
      }
      .category-wide-1 .category-image-card,
      .category-wide-2 .category-image-card{
        aspect-ratio: 16 / 7;
      }
      .category-small-1 .category-image-card,
      .category-small-2 .category-image-card,
      .category-small-3 .category-image-card,
      .category-small-4 .category-image-card{
        aspect-ratio: 1 / 1;
      }
      .categories-mosaic .category-title{
        position: absolute;
        top: 12px;
        left: 12px;
        margin: 0;
        padding: 6px 10px;
        background: rgba(255,255,255,0.9);
        color: #111;
        font-size: .95rem;
        text-align: left;
        border-radius: 0;
        pointer-events: none;
      }
      .products{
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding: 8px 16px 20px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
      }
      .products.products-house {
        scroll-snap-type: x proximity;
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
        scroll-padding-left: 16px;
        scroll-padding-right: 16px;
      }
      .products::-webkit-scrollbar { height: 6px; }
      .products::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 999px; }
      .product-card{
        flex: 0 0 80%;
        max-width: 320px;
        padding: 12px;
        border-radius: 18px;
        border-color: #e0e0e0;
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
        scroll-snap-align: start;
      }
      .product-card img{ height: 190px; border-radius: 12px; }
      .products.products-house .product-card img{ height: 360px; }
      .products.products-house .product-card img{
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: contain;
      }
      .product-card h3{ font-size: 1.05rem; margin: 10px 0 4px; }
      .product-card .price{ font-size: 1.2rem; margin: 4px 0 10px; }
      .product-card button{ padding: 10px 16px; font-size: .95rem; width: 100%; }
      .product-card a{ width: 100%; display: block; }
      .product-card a button{ width: 100%; }
      .products.products-house .product-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
      }
      .hero{
        padding: 0;
      }
      .hero h2{ font-size:2.5rem; }
      .site-nav .nav-links{ margin-left:10px; gap:16px; }
      .search-overlay{ padding-top: 80px; padding-left: 16px; padding-right: 16px; }
      .search-box{ width: min(92vw, 420px); margin: 0 auto; }
    }
/* --- ESTILOS CORREGIDOS PARA EL BOTÓN DE WHATSAPP --- */

/* ==== BUSQUEDA CON RESULTADOS ==== */
.search-input-wrapper{ position: relative; }
.search-input-wrapper input{ padding-right: 28px; }
.search-clear{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#333;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  display:none;
}
.search-clear.is-visible{ display:block; }
.search-results{
  width:80%;
  max-width:900px;
  margin:12px auto 0;
  background:#fff;
  border-radius:12px;
  padding:16px;
  box-shadow:0 6px 24px rgba(0,0,0,0.18);
  display:none;
  clear: both;
}
.search-results.is-visible{ display:block; }
.search-results__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.search-results__header h3{
  margin:0;
  font-size:1.1rem;
}
.search-results__all{
  text-decoration:none;
  font-weight:700;
  color:#1b5e20;
}
.search-results__grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap:14px;
}
.search-result-card{
  text-decoration:none;
  color:inherit;
  display:block;
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.search-result-card:hover{
  transform: translateY(-4px);
}
.search-result-card__media{
  background:#f2f2f2;
  overflow:hidden;
}
.search-result-card__media img{
  width:100%;
  height:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  display:block;
}
.search-result-card__body h4{
  margin:8px 0 4px;
  font-size:0.95rem;
  line-height:1.2;
}
.search-result-card__body p{
  margin:0;
  font-weight:700;
}
.search-results__empty{
  color:#666;
  font-size:0.95rem;
  margin-top:8px;
}
@media (max-width: 640px){
  .search-results{
    width: min(92vw, 420px);
  }
  .search-results__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px; /* <-- Asegura la posición a la derecha */
    left: auto;  /* <-- Evita conflictos con la posición izquierda */
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Forzar centrado de títulos de sección cuando algún estilo lo sobrescriba */
.container > h2.section-title,
main .section-title {
  text-align: center !important;
}
.section-title.section-title-house {
  text-align: left !important;
  width: min(1320px, 100%);
  margin: 20px auto;
  padding: 0 16px;
}

/* ===== Cuenta / Login ===== */
:root {
  --auth-ink: #162015;
  --auth-leaf: #2f6b3a;
  --auth-moss: #8fc08f;
  --auth-cream: #f5f3ed;
  --auth-border: #dde6dd;
  --auth-shadow: 0 18px 40px rgba(24, 42, 26, 0.15);
}

.auth-card {
  max-width: 520px;
  margin: 32px auto 60px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  text-align: center;
}
.auth-card p { margin: 10px 0 18px; color: #444; }
.auth-actions { display: grid; gap: 12px; }
.auth-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.auth-btn.primary {
  background: linear-gradient(135deg, #2f6b3a 0%, #57a060 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(47, 107, 58, 0.25);
}
.auth-btn.primary:hover { transform: translateY(-1px); }
.auth-btn.google {
  background: #fff;
  color: #222;
  border-color: #d7d7d7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-btn.google:hover { border-color: #4CAF50; }
.auth-note { font-size: .95rem; color: #555; text-align: center; }
.google-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.auth-page {
  position: relative;
  padding: clamp(28px, 5vw, 60px) 0 72px;
  isolation: isolate;
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background:
    radial-gradient(circle at 12% 18%, rgba(143, 192, 143, 0.35), transparent 55%),
    radial-gradient(circle at 88% 22%, rgba(47, 107, 58, 0.22), transparent 50%),
    linear-gradient(130deg, #f9f6f1 0%, #ffffff 45%, #eef7ef 100%);
  z-index: 0;
}
.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(47, 107, 58, 0.06) 0, rgba(47, 107, 58, 0.06) 1px, transparent 1px, transparent 12px);
  opacity: 0.5;
  z-index: 0;
}
.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(18px, 4vw, 32px);
  width: min(1120px, 92vw);
  margin: 0 auto;
}
.auth-panel {
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--auth-shadow);
  display: grid;
  gap: 16px;
  animation: auth-rise .7s ease both;
}
.auth-header {
  display: grid;
  gap: 8px;
}
.auth-kicker {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #4c6b4f;
  font-weight: 600;
}
.auth-title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-family: "Playfair Display", serif;
  color: var(--auth-ink);
}
.auth-subtitle {
  margin: 0;
  color: #48564a;
  font-size: 1.02rem;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form .form-group {
  margin: 0;
  gap: 6px;
  animation: auth-fade .6s ease both;
}
.auth-form .form-group:nth-of-type(2) { animation-delay: .06s; }
.auth-form input {
  width: 100%;
  border: 1px solid #cfd8cf;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fbfdfb;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-form input:focus {
  border-color: #2f6b3a;
  box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.15);
  background: #fff;
}
.auth-form .errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #b71c1c;
  font-weight: 600;
  font-size: .92rem;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: #3d4a3c;
}
.auth-remember input { margin: 0; }
.auth-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: auth-fade .6s ease .12s both;
}
.auth-form-actions .auth-btn.primary { flex: 1; min-width: 190px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7a8a79;
  font-size: .95rem;
  margin: 6px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e9e2;
}
.auth-actions .auth-btn { width: 100%; }
.auth-link {
  display: inline-block;
  color: #1b5e20;
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

.auth-aside {
  animation: auth-rise .85s ease .05s both;
}
.auth-aside-card {
  background: linear-gradient(150deg, #1c2d1f 0%, #203a24 50%, #2f6b3a 100%);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 34px);
  color: #f2f6f2;
  box-shadow: 0 16px 30px rgba(18, 30, 21, 0.35);
  display: grid;
  gap: 14px;
  min-height: 100%;
}
.auth-aside-label {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.auth-aside-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-family: "Playfair Display", serif;
}
.auth-aside-card .auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.auth-aside-card .auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 12px;
  color: #f6fbf6;
  font-weight: 600;
}
.auth-aside-card .auth-benefits li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a7dbac;
  flex: 0 0 8px;
}
.auth-aside-foot {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: .92rem;
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { order: 2; }
}
@media (max-width: 720px) {
  .auth-page { padding: 24px 0 56px; }
  .auth-page::before { border-radius: 18px; }
  .auth-form-actions { justify-content: flex-start; }
  .auth-form-actions .auth-btn.primary { width: 100%; }
}

/* ===== Vende tus Jerseys (diseño) ===== */
.main-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.main-container h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin: 0 0 10px;
  color: #2a2a2a;
}

/* ===== Contacto (diseño) ===== */
.contact-container{ width:100%; max-width:1100px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

/* ===== Sobre Nosotros (diseño) ===== */
.about-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0 60px;
  position: relative;
}
.about-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  width: min(1200px, 94vw);
  height: 220px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f3f7f1 0%, #e8f0e5 55%, #f7f3e8 100%);
  z-index: -1;
}
.about-panel {
  background: #ffffff;
  border: 1px solid #e7ece7;
  border-radius: 22px;
  box-shadow: 0 18px 30px rgba(21, 35, 20, 0.12);
  padding: 36px 40px;
}
.about-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6f8f67;
  font-weight: 700;
}
.about-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #1e2d20;
}
.about-lead {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #273026;
}
.about-columns {
  column-count: 1;
  column-gap: 0;
}
.about-columns p {
  margin: 0 0 10px;
  color: #3d3f3c;
  break-inside: avoid;
  line-height: 1.7;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== Cuenta ===== */
.account-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.account-card {
  background: #ffffff;
  border: 1px solid #e7ece7;
  border-radius: 20px;
  box-shadow: 0 16px 28px rgba(21, 35, 20, 0.12);
  padding: 28px 32px;
}
.account-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6f8f67;
  font-weight: 700;
}
.account-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: #1e2d20;
}
.account-meta {
  margin: 0 0 10px;
  color: #2f2f2f;
  font-size: 1.02rem;
}
.account-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1b5e20;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.account-btn.secondary {
  background: #ffffff;
  color: #1b5e20;
  border-color: #1b5e20;
}
.account-btn:hover {
  opacity: 0.92;
}
.account-subtitle {
  margin: 26px 0 12px;
  font-size: 1.2rem;
  color: #1e2d20;
}
.account-muted {
  margin: 12px 0 0;
  color: #5a5a5a;
}
.order-card {
  border: 1px solid #e7ece7;
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(21, 35, 20, 0.08);
  margin-bottom: 14px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #1e2d20;
  margin-bottom: 10px;
}
.order-date {
  font-weight: 500;
  color: #6b6b6b;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.order-grid p {
  margin: 0 0 8px;
  color: #2f2f2f;
}
.order-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.account-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 30;
}
.account-menu__title {
  font-weight: 700;
  color: #1e2d20;
  margin-bottom: 10px;
}
.account-menu__btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1b5e20;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.account-menu-wrapper:hover .account-menu,
.account-menu-wrapper:focus-within .account-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  .about-content { padding: 18px 0 48px; }
  .about-content::before { height: 180px; }
  .about-panel { padding: 26px 22px; }
  .about-columns { column-count: 1; }
}
.contact-info, .contact-form {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.contact-info h3, .contact-form h3 { margin: 0 0 10px; }
.contact-info p { margin: 6px 0; }
.contact-info a { color: #1b5e20; font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; }
.form-group input, .form-group textarea {
  border: 1px solid #ced4da; border-radius: 8px; padding: 10px 12px; font-size: 1rem; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,.15); }
.form-group button { background:#4CAF50; color:#fff; border:none; padding:12px 18px; border-radius:8px; cursor:pointer; font-size:1rem; }
.form-group button:hover { background:#45a049; }

@media (max-width: 900px){
  .contact-wrapper{ grid-template-columns: 1fr; }
}

.intro-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px;
  color: #444;
  font-size: 1.05rem;
}

.steps-container {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  background: linear-gradient(180deg, #ffffff 0%, #f3faf4 100%);
  border: 1px solid #dfeee1;
  border-left: 4px solid #8bc48f;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1b5e20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-item h3::before {
  content: '';
  width: 6px;
  height: 20px;
  border-radius: 4px;
  background: #4CAF50;
  flex: 0 0 6px;
}

.step-item p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.5; /* Sugerencia para mejor legibilidad */
}

.sell-cta {
  margin-top: 28px;
  text-align: center;
}

.sell-cta .cta-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #b9e4bb 0%, #dff3e1 100%);
  border: 1px solid #b7e3b9;
  padding: 14px 18px;
  border-radius: 12px;
}

.sell-cta .cta-text {
  font-weight: 600;
  color: #1b5e20;
}

.sell-cta .cta-btn {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sell-cta .cta-btn:hover {
  background: #1ebe57;
}

.sell-cta .cta-btn img {
  width: 25px;
  height: 25px;
}

@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  footer.footer {
    padding: 12px 16px;
    font-size: .85rem;
    text-align: center;
  }

  footer.footer p {
    line-height: 1.5;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  footer.footer a {
    display: inline-block;
  }

  footer.footer .footer-social {
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
  }

  footer.footer .social-links {
    display: inline-flex;
    gap: 6px 10px;
  }

  footer.footer .social-links a {
    color: #0b4e0e;
    text-decoration: none;
    font-weight: 600;
  }

  footer.footer .footer-text {
    display: block;
  }

  footer.footer .footer-legal {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
} /* <--- Aquí cerramos correctamente el Media Query */

/* ===== ESTILOS PARA TODOS LOS DISPOSITIVOS ===== */
.main-container {
  padding: 24px 16px 50px;
  width: 100%;
  max-width: 1100px; /* Asegura consistencia con tu diseño */
  margin: 0 auto;
}
  .products {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 8px 12px 24px;
  }
  .product-card {
    max-width: 320px;
    width: 100%;
  }
  .sell-cta .cta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sell-cta .cta-btn {
    width: 100%;
    justify-content: center;
  }
  .contact-info, .contact-form {
    padding: 16px;
  }
  .about-text p {
    font-size: 1rem;
  }

/* ===== Alertas (Contacto y generales) ===== */
.alert { 
  border-radius: 10px; 
  padding: 10px 12px; 
  margin: 6px 0 12px; 
  font-weight: 600; 
}
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.alert-error { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }

/* ===== Media Query para Footer ===== */
@media (max-width: 640px) {
  footer.footer {
    padding: 12px 16px;
    font-size: .85rem;
    text-align: center;
  }
  footer.footer p {
    line-height: 1.5;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  footer.footer a {
    display: inline-block;
  }
  footer.footer .footer-social {
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
  }
  footer.footer .social-links {
    display: inline-flex;
    gap: 6px 10px;
  }
  footer.footer .social-links a {
    color: #0b4e0e;
    text-decoration: none;
    font-weight: 600;
  }
  footer.footer .footer-text {
    display: block;
  }
  footer.footer .footer-legal {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
} /* Cierre correcto del media query */

/* ===== Estilos Globales de Estructura ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0; 
  padding: 0; 
  background-color: #ffffff; 
  line-height: 1.6;
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; /* Sticky footer base */
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

img, video, canvas, svg { max-width: 100%; height: auto; }

/* ===== Header y Barra de Anuncios ===== */
header {
  background-color: #73996d; 
  color: #ffffff; 
  padding: 3px 0; 
  text-align: center;
}
header h1 { margin: 0; font-size: 2.5rem; }
header p {
  margin: 12px 0 0;
  background: #ffffff;
  color: #1b5e20;
  font-weight: 700;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.4cm;
  padding: 0 16px;
}

.headline-bar {
  width: 100%;
  height: 1.2cm;
  background: #6f8f67;
  border-bottom: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.headline-track {
  display: flex;
  width: max-content;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  animation: headline-move-ltr var(--headline-duration, 12s) linear infinite;
  will-change: transform;
}

.headline-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0;
}

.headline-item::after {
  content: none;
  margin: 0;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1600;
  pointer-events: none;
}
.cart-drawer.is-open {
  pointer-events: auto;
}
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 0;
}
.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100%;
  background: #fff;
  box-shadow: 8px 0 24px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e6e6e6;
}
.cart-drawer__title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #efefef;
  font-size: .85rem;
}
.cart-drawer__close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cart-drawer__body {
  padding: 16px 20px;
  overflow: auto;
  flex: 1;
}
.cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
}
.cart-drawer__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-drawer__empty {
  color: #555;
  text-align: center;
  margin: 40px 0;
}
.cart-drawer__name {
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-drawer__meta {
  color: #666;
  font-size: .9rem;
  margin-bottom: 6px;
}
.cart-drawer__price {
  font-size: .9rem;
  margin-bottom: 10px;
}
.cart-drawer__qty {
  width: 16px;
  height: 16px;
  text-align: center;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
}
.cart-drawer__qty-btn {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
  padding: 0;
}
.cart-drawer__remove {
  border: none;
  background: transparent;
  color: #444;
  cursor: pointer;
  font-size: .85rem;
  text-decoration: underline;
  padding: 0;
}
.cart-drawer__amount {
  font-weight: 600;
}
.cart-drawer__footer {
  padding: 16px 20px 20px;
  border-top: 1px solid #e6e6e6;
}
.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
}
.cart-drawer__note {
  margin: -6px 0 12px;
  font-size: 0.9rem;
  color: #6b6b6b;
  line-height: 1.4;
}
.cart-drawer__pay {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .cart-drawer {
    display: block;
  }
}
    .headline-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
      color: #fff;
    }






/* Contenedor principal del nav */
/* ===== BARRA DE NAVEGACIÓN (VERSIÓN REFORZADA) ===== */

/* ===== BARRA DE NAVEGACIÓN (CORREGIDA) ===== */

/* ===== BARRA DE NAVEGACIÓN - ESTILO CATÁLOGO DEFINITIVO ===== */

/* ===== BARRA DE NAVEGACIÓN (LINKS CENTRADOS) ===== */

.site-nav {
    background: #f7f7f7;
    padding: .75rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav .nav-links {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: clamp(14px, 4vw, 36px); /* Espaciado responsivo y uniforme */
}

.site-nav .nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dadada;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  display: block;
}

@media (max-width: 900px){
  header {
    text-align: left;
    padding: 12px 16px 0;
  }
  header h1 {
    font-size: 2rem;
    width: 10ch;
    display: inline-block;
    margin: 0;
    line-height: 1.1;
  }
  header p {
    font-size: .95rem;
    width: 100vw;
    margin-left: 0;
  }
  .site-nav {
    flex-wrap: nowrap;
    position: absolute;
    top: 24px;
    right: 12px;
    padding: 0;
    justify-content: flex-end;
    gap: 10px;
    background: transparent;
    z-index: 1200;
  }
  .nav-toggle {
    display: flex;
    order: 1;
    margin-left: 0;
    background: transparent;
    border-color: #fff;
  }
  .nav-toggle span {
    background: #fff;
  }
  .site-nav .nav-links {
    order: 3;
    width: min(80vw, 240px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin: 8px 0 0;
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #f7f7f7;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
    z-index: 1201;
  }
  .site-nav.nav-open .nav-links {
    display: flex;
  }
  .nav-actions {
    margin-left: 0;
    order: 2;
  }
  .lupa-icon {
    filter: brightness(0) invert(1);
  }
  .user-link {
    color: #fff;
  }
  .user-icon {
    filter: brightness(0) invert(1);
  }
  .cart {
    color: #fff;
    filter: none;
  }
  .cart-icon {
    filter: brightness(0) invert(1);
  }
  #cartCount {
    background: #fff;
    color: #2e7d32;
  }
}

/* --- (El resto de los estilos para íconos se mantienen igual) --- */

.search-btn {
    background: none; border: none; padding: 0; cursor: pointer; line-height: 0;
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.lupa-icon {
    width: 22px; height: 22px; display: block; transition: transform .2s ease;
}
.search-btn:hover .lupa-icon {
    transform: scale(1.15);
}
.user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    line-height: 0;
    transition: transform .2s ease;
    width: 32px;
    height: 32px;
}
.user-icon {
    width: 22px;
    height: 22px;
    display: block;
}
.user-link:hover {
    transform: scale(1.15);
}
.cart {
    position: relative; text-decoration: none; font-size: 22px; line-height: 1; transition: transform .2s ease;
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
}
.cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}
.cart:hover {
    transform: scale(1.15);
}
#cartCount {
    position: absolute; top: -8px; right: -10px;
    background: #4CAF50; color: #fff; border-radius: 999px;
    padding: 0 6px; min-width: 18px; height: 18px;
    font-size: .8rem; display: flex; align-items: center; justify-content: center;
}
.site-nav form.search {
    display: none !important;
}
    /* HERO */
.hero {
      background-image: url("images/historia_que_viste.jpeg"), url("images/historia_que_viste.jpeg");
      background-repeat: no-repeat;
      background-position: center 25%;
      background-size: contain;
      background-color: transparent;
      width: 100%;
      aspect-ratio: 1080 / 520;
      text-align: left;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 0;
      color: white;
    }
@media (min-width: 901px) {
  .hero {
    aspect-ratio: 1080 / 300;
    background-size: cover;
    background-position: center 65%;
    width: 100vw;
  }
}
    .hero h2 {
      font-size: clamp(2rem, 4vw, 3.5rem);
      margin: 0;
      text-shadow: 2px 2px 5px #000000;
    }
    .hero p { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

    /* TITULOS */
h2.section-title {
      text-align: center;
      width: 100%;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      color: #333;
      margin: 20px 0 20px 0;
    }
.section-title-house {
      font-family: "Playfair Display", serif;
      font-weight: 700;
      color: #1b5e20 !important;
    }
.section-title-accent {
      font-family: "Playfair Display", serif;
      font-weight: 700;
      color: #1b5e20 !important;
    }

    /* CONTENEDOR */
    .container { width: 100%; max-width: 1600px; margin: auto; overflow: hidden; padding: 20px 0; }

    /* CATEGORÍAS */
.categories {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: clamp(16px, 3vw, 32px);
      text-align: center;
      max-width: 1200px;
      margin: 0 auto;
      justify-items: center;
    }
.category-item { display:flex; flex-direction:column; align-items:center; }
.category-image-card {
      display:block;
      width:100%;
      max-width:360px;
      aspect-ratio: 7 / 5;
      height:auto;
      border-radius:25px;
      box-shadow:0 4px 15px rgba(0,0,0,0.15);
      overflow:hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .category-image-card:hover { transform: translateY(-10px); box-shadow:0 12px 25px rgba(0,0,0,0.2); }
    .category-image-card img { width:100%; height:100%; object-fit:cover; }
.category-title {
      margin-top:15px;
      padding:0;
      font-size: clamp(1.1rem, 2.4vw, 1.5rem);
      font-weight:700;
      color:#333;
      font-family:'Montserrat', sans-serif;
    }


    /* PRODUCTOS */
    /* ===== SECCIÓN DE PRODUCTOS DESTACADOS (CÓDIGO FINAL) ===== */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-items: center;
    gap: clamp(20px, 3vw, 32px);
    padding: clamp(18px, 3vw, 32px) 16px;
    max-width: 1320px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
  .products.products-house {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: start;
    max-width: 1600px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 191px;
    padding-right: 16px;
  }
  .products.products-house .product-card {
    max-width: 360px;
    width: 100%;
  }
}

.product-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 25px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  padding: 9px 16px;
  /* Usamos Flexbox para alinear el contenido verticalmente */
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  image-orientation: from-image;
  border-radius: 15px;
}

.product-card h3 {
  color: #333;
  font-size: 1.2rem;
  margin: 14px 0 6px 0;
  flex-grow: 1; /* Permite que este espacio crezca si es necesario */
}

.product-card .price {
  color: #007bff;
  font-weight: bold;
  font-size: 1.4rem;
  margin: 6px 0 12px 0;
}

.product-card button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
    transition: background-color 0.2s;
}

.product-card a {
    width: 100%;
    display: flex;
    text-decoration: none;
}

.product-card a button {
    width: 100%;
}

.product-card button:hover {
    background-color: #45a049;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card-content button {
  align-self: center;
}

.price-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.old-price {
  margin: 0;
  color: #9a9a9a;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.sale-price {
  margin: 0;
  color: #1b5e20;
  font-weight: 700;
  font-size: 1.15rem;
}



    /* OVERLAY BÚSQUEDA */
    .search-overlay {
      position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5);
      display:none; justify-content:flex-start; align-items:center; flex-direction:column; gap:12px; padding-top:100px; z-index:2000;
    }
    .search-overlay.active { display:flex; }
    .search-box {
      width:80%; max-width:900px; background: rgba(255,255,255,0.95); border-radius:10px; padding:15px 20px;
      display:flex; align-items:center; gap:12px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    .search-input-wrapper {
      flex:1; display:flex; align-items:center; gap:8px; border:1px solid #ccc; border-radius:6px; padding:8px 12px; background:white;
    }
    .search-input-wrapper .overlay-icon { width:20px; height:20px; }
    .search-input-wrapper input { flex:1; border:none; outline:none; font-size:1.1rem; background:transparent; }
    .search-submit {
      background:#4CAF50; color:#fff; border:none; padding:10px 18px; border-radius:6px; font-size:1rem; cursor:pointer;
      transition: background .2s ease, transform .2s ease;
    }
    .search-submit:hover { background:#45a049; transform: scale(1.05); }
    .close-btn {
      position: fixed;
      top: 12px;
      right: 12px;
      background: none;
      border: none;
      font-size: 1.3rem;
      cursor: pointer;
      color: #fff;
      line-height: 1;
      z-index: 2100;
      transition: transform .2s ease;
    }
    .close-btn:hover { transform: scale(1.2); }

    /* ===== Catálogo - Filtros ===== */
    .nav-accent { height: 2px; background: linear-gradient(90deg,#b9e4bb,#dff3e1); }

    .filter-section { padding: 16px 20px; background: #fafdfb; }
    .filter-bar {
      width: 100%; max-width: 1100px; margin: 0 auto;
      background: #fff; border: 1px solid #e9ecef; border-radius: 14px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.06);
      display: grid; gap: 16px; align-items: end;
      grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
      padding: 14px 16px;
      box-sizing: border-box;
    }
    .filter-group label { display:block; margin:0 0 6px; font-weight:600; color:#2a2a2a; font-size: .95rem; }
    .filter-group select,
    .custom-select-trigger {
      width: 100%;
      height: 42px;
      padding: 8px 12px;
      font-size: 1rem;
      border: 1px solid #ced4da;
      border-radius: 10px;
      outline: none;
      background: #fff;
      transition: border-color .15s ease, box-shadow .15s ease;
      text-align: left;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 12px;
    }
    .custom-select-trigger:focus,
    .filter-group select:focus {
      border-color:#4CAF50; box-shadow:0 0 0 3px rgba(76,175,80,.15);
    }
    .custom-select { position: relative; width: 100%; }
    .custom-select-options {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      background: #fff;
      border: 1px solid #ced4da;
      border-radius: 12px;
      box-shadow: 0 10px 18px rgba(0,0,0,0.12);
      max-height: none;
      overflow: visible;
      padding: 6px 0;
      display: none;
      z-index: 30;
      list-style: none;
      margin: 0;
      pointer-events: auto;
    }
    .custom-select.is-open .custom-select-options { display: block; }
    .custom-select-option {
      padding: 8px 12px;
      cursor: pointer;
      font-size: .95rem;
      font-weight: 600;
      color: #2a2a2a;
      transition: background .15s ease, color .15s ease;
      display: block;
    }
    .custom-select-option:hover,
    .custom-select-option:focus,
    .custom-select-option.is-hovered,
    .custom-select-option:active {
      background: #4CAF50 !important;
      color: #fff !important;
    }
    .custom-select-option.is-selected {
      background: #e6f4e7;
      color: #1b5e20;
    }
    .custom-select-option.is-disabled {
      color: #9aa5a8;
      cursor: default;
    }
    .custom-select-option.is-disabled:hover {
      background: transparent;
      color: #9aa5a8;
    }
    body.has-custom-select .filter-group select { display: none; }
    body:not(.has-custom-select) .custom-select { display: none; }

    .filter-actions { display:flex; gap:10px; justify-content:flex-end; align-self:end; }
    .filter-btn, .reset-btn {
      appearance:none; -webkit-appearance:none; -moz-appearance:none;
      border-radius:10px; padding:10px 16px; font-size:1rem; cursor:pointer;
      border: 1px solid transparent; transition: background .2s ease, border-color .2s ease, transform .08s ease;
    }
    .filter-btn { background:#4CAF50; color:#fff; }
    .filter-btn:hover { background:#45a049; }
    .filter-btn:active { transform: scale(.98); }
    .reset-btn { background:#fff; border-color:#cfd8dc; color:#2a2a2a; }
    .reset-btn:hover { border-color:#90a4ae; }
    .reset-btn:active { transform: scale(.98); }

    @media (max-width: 900px){
      .filter-bar { grid-template-columns: 1fr 1fr; }
      .filter-actions { grid-column: 1 / -1; }
      .filter-actions .filter-btn, .filter-actions .reset-btn { flex:1; }
    }
@media (max-width: 768px){
      .filter-section {
        padding: 12px 16px 18px;
        background: #f5f8f5;
      }
      .filter-bar {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 2px 6px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
      }
      .filter-group {
        min-width: 0;
      }
      .filter-group label {
        margin: 0;
        font-size: .75rem;
        font-weight: 700;
        white-space: nowrap;
        display: none;
      }
      .filter-group select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border-radius: 999px;
        border-color: #d6e2d6;
        font-weight: 600;
        padding: 5px 26px 5px 8px;
        min-width: 0;
        height: 30px;
        font-size: .9rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a5b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 10px;
        width: 100%;
      }
      .custom-select-trigger {
        border-radius: 999px;
        border-color: #d6e2d6;
        font-weight: 600;
        padding: 5px 26px 5px 8px;
        height: 30px;
        font-size: .9rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a5b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 10px;
      }
      .filter-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
      }
      .filter-actions .filter-btn,
      .filter-actions .reset-btn {
        border-radius: 999px;
        padding: 5px 8px;
        height: 30px;
        font-size: .82rem;
        white-space: nowrap;
      }
      .filter-actions {
        display: none;
      }
    }
    @media (max-width: 520px){
      .filter-group select { font-size: .82rem; }
      .filter-actions .filter-btn,
      .filter-actions .reset-btn { padding: 4px 6px; }
    }

    /* CART */
    .cart-page { padding: clamp(24px, 5vw, 40px) 0; }
    .cart-empty { font-size: 1.1rem; color: #444; text-align: center; }
    .cart-grid {
      max-width: 1100px;
      margin: 24px auto 0;
      display: grid;
      gap: 24px;
      width: 100%;
      padding: 0 16px;
      box-sizing: border-box;
    }
    .cart-card { background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:16px; }
    .cart-card h3 { margin-top: 0; }
    .cart-item-row {
      display: grid;
      grid-template-columns: 72px 1fr auto;
      gap: 12px;
      align-items: start;
      padding: 12px 0;
      border-bottom: 1px solid #eee;
    }
    .cart-item-row:last-child { border-bottom: none; }
    .cart-item-thumb {
      width: 72px;
      height: 72px;
      border-radius: 12px;
      background: #f2f2f2;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cart-item-name { font-weight: 600; margin-bottom: 4px; }
    .cart-item-meta { color: #666; font-size: .9rem; margin-bottom: 6px; }
    .cart-item-qty {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: 1px solid #d4d4d4;
      border-radius: 10px;
      padding: 6px 10px;
      width: fit-content;
      margin-bottom: 6px;
    }
    .cart-item-qty button {
      border: none;
      background: transparent;
      font-size: 1rem;
      cursor: pointer;
    }
    .cart-item-remove {
      border: none;
      background: transparent;
      color: #444;
      cursor: pointer;
      font-size: .85rem;
      text-decoration: underline;
      padding: 0;
    }
    .cart-item-amount { font-weight: 600; }
    .payment-card {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid #e6ece6;
    }
    .payment-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .payment-grid .form-group.full-row {
      grid-column: 1 / -1;
    }
    .summary-grid { display:grid; gap:6px; }
    .muted { margin:0; color:#666; }
    .cart-pay-btn {
      margin-top:12px;
      background:#4CAF50;
      color:#fff;
      border:none;
      padding:12px 18px;
      border-radius:8px;
      cursor:pointer;
    }
    .cart-pay-btn:hover { background:#45a049; }
    .quote-btn {
      background:#2e7d32;
      color:#fff;
      border:none;
      padding:10px 16px;
      border-radius:8px;
      cursor:pointer;
    }
    .quote-btn:hover { background:#276c2b; }
    .shipping-form {
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap:12px;
    }
    .shipping-form .full-row { grid-column: 1 / -1; }
    .shipping-form .form-actions { text-align: right; }
    .quote-options { margin-top:10px; display:grid; gap:8px; }
    .quote-option {
      display:flex;
      gap:10px;
      align-items:center;
      background:#f7f9f7;
      padding:10px 12px;
      border-radius:10px;
      border:1px solid #e1e7e1;
      width: 100%;
      height: 64px;
    }
    .quote-option span {
      flex: 1;
      min-height: 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .quote-option--fixed {
      justify-content: center;
      text-align: center;
    }
.quote-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #5f6a5f;
  line-height: 1.4;
}
.quote-eta { color:#5f6a5f; font-size:.9rem; }

.payment-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  color: #3f4a3f;
  font-size: .95rem;
}
.payment-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.payment-logo {
  height: 40px;
  width: auto;
  display: block;
}
.payment-logo-amex {
  height: 36px;
}
.payment-logos .payment-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  transform: scale(1.34);
  transform-origin: center;
}
.openpay-logo {
  width: 120px;
  height: auto;
  margin-top: 4px;
}

.cart-support p {
  margin: 4px 0;
}

.purchase-items {
  display: grid;
  gap: 6px;
  margin: 6px 0 12px;
}
.purchase-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .95rem;
  color: #2f2f2f;
}
.purchase-totals {
  display: grid;
  gap: 6px;
  font-size: .95rem;
}

    @media (min-width: 980px){
      .cart-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
      .cart-products { grid-column: 1; }
      .cart-summary { grid-column: 2; align-self: start; position: sticky; top: 16px; }
      .cart-shipping, .cart-quote, .cart-tracking { grid-column: 1 / -1; }
    }
    @media (max-width: 720px){
      .shipping-form { grid-template-columns: 1fr; }
      .shipping-form .form-actions { text-align: left; }
      .cart-pay-btn { width: 100%; }
    }

    /* HOME - TIENDA FISICA */
.tienda-fisica-section { background:#ffffff; padding:40px 0; border-top:1px solid #ddd; }

.tienda-contenido {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 3vw, 30px);
  flex-wrap: wrap;
}

.tienda-info {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.tienda-info h3 {
  margin-top: 0;
}
.tienda-info p {
  margin: 4px 0 6px;
}
.tienda-list {
  margin: 0 0 8px;
  padding-left: 20px;
}
.tienda-list li {
  margin: 2px 0;
}

.tienda-mapa iframe {
  width: 100%;
  height: clamp(240px, 30vw, 360px);
  border-radius: 12px;
  border: 0;
}

.slider{
  flex: 1 1 420px;
  max-width: 560px;
  height: auto;
  align-self: stretch;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 1s ease-in-out;
}
/* ===== FOOTER ESTILO BASE (Escritorio y Global) ===== */
footer.footer {
  background: #b9e4bb;
  color: #000;
  text-align: center;
  padding: 8px 0;
  margin: 0;
  width: 100%;
  font-size: .9rem;
  margin-top: auto; /* Empuja el footer al fondo en páginas cortas */
}

footer.footer p {
  margin: 4px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  text-align: center;
}

footer.footer .footer-text {
  display: inline-block;
}

footer.footer .social-links {
  display: inline-flex;
  gap: 14px;
}

footer.footer .social-links a {
  color: #0b4e0e;
  text-decoration: none;
  font-weight: 600;
}



/* ===== AJUSTES PARA MÓVILES (640px o menos) ===== */
@media (max-width: 640px) {
  footer.footer {
    padding: 12px 16px;
    font-size: .85rem;
  }

  footer.footer p {
    line-height: 1.5;
    flex-direction: column; /* Apila los elementos verticalmente */
    gap: 8px;
  }

  footer.footer .footer-social {
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
  }

  footer.footer .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  footer.footer .footer-legal {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
} /* <--- CIERRE CORRECTO DEL MEDIA QUERY */
        /* RESPONSIVE */
    @media (max-width: 1200px){
      .container{ width:95%; }
      .categories{ max-width: 100%; gap:40px; }
      .products{ max-width: 100%; }
    }
    @media (max-width: 900px){
      .tienda-contenido{ flex-direction: column; align-items: stretch; }
      .slider{ max-width: 100%; width: 100%; height: clamp(280px, 60vw, 420px); }
      .tienda-info{ width: 100%; }
    }
    @media (max-width: 768px){
      .container{ padding:20px 15px; }
      .category-image-card{ max-width:100%; width:100%; }
      .categories{ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:25px; }
      .categories-mosaic{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 100%;
      }
      .categories-mosaic .category-item{
        align-items: stretch;
        width: 100%;
        position: relative;
      }
      .categories-mosaic .category-image-card{
        max-width: none;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
      }
      .categories-mosaic .category-image-card img{
        border-radius: 0;
      }
      .category-wide-1,
      .category-wide-2{
        grid-column: 1 / -1;
      }
      .category-wide-1 .category-image-card,
      .category-wide-2 .category-image-card{
        aspect-ratio: 16 / 7;
      }
      .category-small-1 .category-image-card,
      .category-small-2 .category-image-card,
      .category-small-3 .category-image-card,
      .category-small-4 .category-image-card{
        aspect-ratio: 1 / 1;
      }
      .categories-mosaic .category-title{
        position: absolute;
        top: 12px;
        left: 12px;
        margin: 0;
        padding: 6px 10px;
        background: rgba(255,255,255,0.9);
        color: #111;
        font-size: .95rem;
        text-align: left;
        border-radius: 0;
        pointer-events: none;
      }
      .products{
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding: 8px 16px 20px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
      }
      .products.products-house {
        scroll-snap-type: x proximity;
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
        scroll-padding-left: 16px;
        scroll-padding-right: 16px;
      }
      .products::-webkit-scrollbar { height: 6px; }
      .products::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 999px; }
      .product-card{
        flex: 0 0 80%;
        max-width: 320px;
        padding: 12px;
        border-radius: 18px;
        border-color: #e0e0e0;
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
        scroll-snap-align: start;
      }
      .product-card img{ height: 190px; border-radius: 12px; }
      .products.products-house .product-card img{ height: 360px; }
      .products.products-house .product-card img{
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: contain;
      }
      .product-card h3{ font-size: 1.05rem; margin: 10px 0 4px; }
      .product-card .price{ font-size: 1.2rem; margin: 4px 0 10px; }
      .product-card button{ padding: 10px 16px; font-size: .95rem; width: 100%; }
      .product-card a{ width: 100%; display: block; }
      .product-card a button{ width: 100%; }
      .products.products-house .product-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
      }
      .hero{
        padding: 0;
      }
      .hero h2{ font-size:2.5rem; }
      .site-nav .nav-links{ margin-left:10px; gap:16px; }
      .search-overlay{ padding-top: 80px; padding-left: 16px; padding-right: 16px; }
      .search-box{ width: min(92vw, 420px); margin: 0 auto; }
    }
/* --- ESTILOS CORREGIDOS PARA EL BOTÓN DE WHATSAPP --- */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px; /* <-- Asegura la posición a la derecha */
    left: auto;  /* <-- Evita conflictos con la posición izquierda */
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Forzar centrado de títulos de sección cuando algún estilo lo sobrescriba */
.container > h2.section-title,
main .section-title {
  text-align: center !important;
}
.section-title.section-title-house {
  text-align: left !important;
  width: min(1320px, 100%);
  margin: 20px auto;
  padding: 0 16px;
}

/* ===== Cuenta / Login ===== */
:root {
  --auth-ink: #162015;
  --auth-leaf: #2f6b3a;
  --auth-moss: #8fc08f;
  --auth-cream: #f5f3ed;
  --auth-border: #dde6dd;
  --auth-shadow: 0 18px 40px rgba(24, 42, 26, 0.15);
}

.auth-card {
  max-width: 520px;
  margin: 32px auto 60px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  text-align: center;
}
.auth-card p { margin: 10px 0 18px; color: #444; }
.auth-actions { display: grid; gap: 12px; }
.auth-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.auth-btn.primary {
  background: linear-gradient(135deg, #2f6b3a 0%, #57a060 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(47, 107, 58, 0.25);
}
.auth-btn.primary:hover { transform: translateY(-1px); }
.auth-btn.google {
  background: #fff;
  color: #222;
  border-color: #d7d7d7;
}
.auth-btn.google:hover { border-color: #4CAF50; }
.auth-note { font-size: .95rem; color: #555; text-align: center; }

.auth-page {
  position: relative;
  padding: clamp(28px, 5vw, 60px) 0 72px;
  isolation: isolate;
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background:
    radial-gradient(circle at 12% 18%, rgba(143, 192, 143, 0.35), transparent 55%),
    radial-gradient(circle at 88% 22%, rgba(47, 107, 58, 0.22), transparent 50%),
    linear-gradient(130deg, #f9f6f1 0%, #ffffff 45%, #eef7ef 100%);
  z-index: 0;
}
.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(47, 107, 58, 0.06) 0, rgba(47, 107, 58, 0.06) 1px, transparent 1px, transparent 12px);
  opacity: 0.5;
  z-index: 0;
}
.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(18px, 4vw, 32px);
  width: min(1120px, 92vw);
  margin: 0 auto;
}
.auth-panel {
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--auth-shadow);
  display: grid;
  gap: 16px;
  animation: auth-rise .7s ease both;
}
.auth-header {
  display: grid;
  gap: 8px;
}
.auth-kicker {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #4c6b4f;
  font-weight: 600;
}
.auth-title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-family: "Playfair Display", serif;
  color: var(--auth-ink);
}
.auth-subtitle {
  margin: 0;
  color: #48564a;
  font-size: 1.02rem;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form .form-group {
  margin: 0;
  gap: 6px;
  animation: auth-fade .6s ease both;
}
.auth-form .form-group:nth-of-type(2) { animation-delay: .06s; }
.auth-form input {
  width: 100%;
  border: 1px solid #cfd8cf;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fbfdfb;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-form input:focus {
  border-color: #2f6b3a;
  box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.15);
  background: #fff;
}
.auth-form .errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #b71c1c;
  font-weight: 600;
  font-size: .92rem;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: #3d4a3c;
}
.auth-remember input { margin: 0; }
.auth-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: auth-fade .6s ease .12s both;
}
.auth-form-actions .auth-btn.primary { flex: 1; min-width: 190px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7a8a79;
  font-size: .95rem;
  margin: 6px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e9e2;
}
.auth-actions .auth-btn { width: 100%; }
.auth-link {
  display: inline-block;
  color: #1b5e20;
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

.auth-aside {
  animation: auth-rise .85s ease .05s both;
}
.auth-aside-card {
  background: linear-gradient(150deg, #1c2d1f 0%, #203a24 50%, #2f6b3a 100%);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 34px);
  color: #f2f6f2;
  box-shadow: 0 16px 30px rgba(18, 30, 21, 0.35);
  display: grid;
  gap: 14px;
  min-height: 100%;
}
.auth-aside-label {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.auth-aside-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-family: "Playfair Display", serif;
}
.auth-aside-card .auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.auth-aside-card .auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 12px;
  color: #f6fbf6;
  font-weight: 600;
}
.auth-aside-card .auth-benefits li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a7dbac;
  flex: 0 0 8px;
}
.auth-aside-foot {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: .92rem;
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { order: 2; }
}
@media (max-width: 720px) {
  .auth-page { padding: 24px 0 56px; }
  .auth-page::before { border-radius: 18px; }
  .auth-form-actions { justify-content: flex-start; }
  .auth-form-actions .auth-btn.primary { width: 100%; }
}

/* ===== Vende tus Jerseys (diseño) ===== */
.main-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.main-container h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin: 0 0 10px;
  color: #2a2a2a;
}

/* ===== Contacto (diseño) ===== */
.contact-container{ width:100%; max-width:1100px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

/* ===== Sobre Nosotros (diseño) ===== */
.about-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0 60px;
  position: relative;
}
.about-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  width: min(1200px, 94vw);
  height: 220px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f3f7f1 0%, #e8f0e5 55%, #f7f3e8 100%);
  z-index: -1;
}
.about-panel {
  background: #ffffff;
  border: 1px solid #e7ece7;
  border-radius: 22px;
  box-shadow: 0 18px 30px rgba(21, 35, 20, 0.12);
  padding: 36px 40px;
}
.about-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6f8f67;
  font-weight: 700;
}
.about-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #1e2d20;
}
.about-lead {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #273026;
}
.about-columns {
  column-count: 1;
  column-gap: 0;
}
.about-columns p {
  margin: 0 0 10px;
  color: #3d3f3c;
  break-inside: avoid;
  line-height: 1.7;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== Cuenta ===== */
.account-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.account-card {
  background: #ffffff;
  border: 1px solid #e7ece7;
  border-radius: 20px;
  box-shadow: 0 16px 28px rgba(21, 35, 20, 0.12);
  padding: 28px 32px;
}
.account-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6f8f67;
  font-weight: 700;
}
.account-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: #1e2d20;
}
.account-meta {
  margin: 0 0 10px;
  color: #2f2f2f;
  font-size: 1.02rem;
}
.account-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1b5e20;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.account-btn.secondary {
  background: #ffffff;
  color: #1b5e20;
  border-color: #1b5e20;
}
.account-btn:hover {
  opacity: 0.92;
}
.account-subtitle {
  margin: 26px 0 12px;
  font-size: 1.2rem;
  color: #1e2d20;
}
.account-muted {
  margin: 12px 0 0;
  color: #5a5a5a;
}
.order-card {
  border: 1px solid #e7ece7;
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(21, 35, 20, 0.08);
  margin-bottom: 14px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #1e2d20;
  margin-bottom: 10px;
}
.order-date {
  font-weight: 500;
  color: #6b6b6b;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.order-grid p {
  margin: 0 0 8px;
  color: #2f2f2f;
}
.order-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.account-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 30;
}
.account-menu__title {
  font-weight: 700;
  color: #1e2d20;
  margin-bottom: 10px;
}
.account-menu__btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1b5e20;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.account-menu-wrapper:hover .account-menu,
.account-menu-wrapper:focus-within .account-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  .about-content { padding: 18px 0 48px; }
  .about-content::before { height: 180px; }
  .about-panel { padding: 26px 22px; }
  .about-columns { column-count: 1; }
}
.contact-info, .contact-form {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.contact-info h3, .contact-form h3 { margin: 0 0 10px; }
.contact-info p { margin: 6px 0; }
.contact-info a { color: #1b5e20; font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; }
.form-group input, .form-group textarea {
  border: 1px solid #ced4da; border-radius: 8px; padding: 10px 12px; font-size: 1rem; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,.15); }
.form-group button { background:#4CAF50; color:#fff; border:none; padding:12px 18px; border-radius:8px; cursor:pointer; font-size:1rem; }
.form-group button:hover { background:#45a049; }

@media (max-width: 900px){
  .contact-wrapper{ grid-template-columns: 1fr; }
}

.intro-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px;
  color: #444;
  font-size: 1.05rem;
}

.steps-container {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  background: linear-gradient(180deg, #ffffff 0%, #f3faf4 100%);
  border: 1px solid #dfeee1;
  border-left: 4px solid #8bc48f;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1b5e20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-item h3::before {
  content: '';
  width: 6px;
  height: 20px;
  border-radius: 4px;
  background: #4CAF50;
  flex: 0 0 6px;
}

.step-item p {
  margin: 0;
  color: #4a4a4a;
}

.sell-cta {
  margin-top: 28px;
  text-align: center;
}

.sell-cta .cta-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #b9e4bb 0%, #dff3e1 100%);
  border: 1px solid #b7e3b9;
  padding: 14px 18px;
  border-radius: 12px;
}

.sell-cta .cta-text {
  font-weight: 600;
  color: #1b5e20;
}

.sell-cta .cta-btn {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sell-cta .cta-btn:hover {
  background: #1ebe57;
}

.sell-cta .cta-btn img {
  width: 22px;
  height: 22px;
}

@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  footer.footer {
    padding: 12px 16px;
    font-size: .85rem;
    text-align: center;
  }
  footer.footer p {
    line-height: 1.5;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  footer.footer a {
    display: inline-block;
  }
  footer.footer .footer-social {
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
  }
  footer.footer .social-links {
    display: inline-flex;
    gap: 6px 10px;
  }
  footer.footer .social-links a {
    color: #0b4e0e;
    text-decoration: none;
    font-weight: 600;
  }
  footer.footer .footer-text {
    display: block;
  }
  footer.footer .footer-legal {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.main-container {
  padding: 24px 16px 50px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
  .products {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 8px 12px 24px;
  }
  .product-card {
    max-width: 320px;
    width: 100%;
  }
  .sell-cta .cta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sell-cta .cta-btn {
    width: 100%;
    justify-content: center;
  }
  .contact-info, .contact-form {
    padding: 16px;
  }
  .about-text p {
    font-size: 1rem;
  }
}


/* ===== Alertas (Contacto y generales) ===== */
.alert { border-radius:10px; padding:10px 12px; margin: 6px 0 12px; font-weight:600; }
.alert-success { background:#e8f5e9; color:#1b5e20; border:1px solid #c8e6c9; }
.alert-error { background:#fdecea; color:#b71c1c; border:1px solid #f5c6cb; }
      footer.footer p > span,
      footer.footer p > .footer-legal,
      footer.footer p > .footer-social {
        white-space: normal;
      }
      footer.footer p > span:not(.footer-social):not(.footer-legal) {
        display: block;
      }
      footer.footer a {
        display: inline-block;
      }
      footer.footer .footer-social {
        display: block;
        margin-bottom: 6px;
        white-space: nowrap;
      }
      footer.footer .footer-text { display: inline-block; }
      footer.footer .social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 10px;
        margin-top: 4px;
      }
      footer.footer .footer-text { display: inline-block; }
      footer.footer .social-links a {
        color: #0b4e0e;
        text-decoration: none;
        font-weight: 600;
      }
      footer.footer .footer-legal {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
      }
      footer.footer .footer-legal::before,
      footer.footer .footer-legal::after,
      footer.footer .footer-social::after {
        content: none;
      }
footer.footer .footer-legal,
footer.footer .footer-social {
  padding: 0;
}

footer.footer .footer-social {
  align-items: center;
  margin-bottom: 0;
}

        /* RESPONSIVE */
    @media (max-width: 1200px){
      .container{ width:95%; }
      .categories{ max-width: 100%; gap:40px; }
      .products{ max-width: 100%; }
    }
    @media (max-width: 900px){
      .tienda-contenido{ flex-direction: column; align-items: stretch; }
      .slider{ max-width: 100%; width: 100%; height: clamp(280px, 60vw, 420px); }
      .tienda-info{ width: 100%; }
    }
    @media (max-width: 768px){
      .container{ padding:20px 15px; }
      .category-image-card{ max-width:100%; width:100%; }
      .categories{ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:25px; }
      .categories-mosaic{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 100%;
      }
      .categories-mosaic .category-item{
        align-items: stretch;
        width: 100%;
        position: relative;
      }
      .categories-mosaic .category-image-card{
        max-width: none;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
      }
      .categories-mosaic .category-image-card img{
        border-radius: 0;
      }
      .category-wide-1,
      .category-wide-2{
        grid-column: 1 / -1;
      }
      .category-wide-1 .category-image-card,
      .category-wide-2 .category-image-card{
        aspect-ratio: 16 / 7;
      }
      .category-small-1 .category-image-card,
      .category-small-2 .category-image-card,
      .category-small-3 .category-image-card,
      .category-small-4 .category-image-card{
        aspect-ratio: 1 / 1;
      }
      .categories-mosaic .category-title{
        position: absolute;
        top: 12px;
        left: 12px;
        margin: 0;
        padding: 6px 10px;
        background: rgba(255,255,255,0.9);
        color: #111;
        font-size: .95rem;
        text-align: left;
        border-radius: 0;
        pointer-events: none;
      }
      .products{
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding: 8px 16px 20px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
      }
      .products.products-house {
        scroll-snap-type: x proximity;
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
        scroll-padding-left: 16px;
        scroll-padding-right: 16px;
      }
      .products::-webkit-scrollbar { height: 6px; }
      .products::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 999px; }
      .product-card{
        flex: 0 0 80%;
        max-width: 320px;
        padding: 12px;
        border-radius: 18px;
        border-color: #e0e0e0;
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
        scroll-snap-align: start;
      }
      .product-card img{ height: 190px; border-radius: 12px; }
      .products.products-house .product-card img{ height: 360px; }
      .products.products-house .product-card img{
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: contain;
      }
      .product-card h3{ font-size: 1.05rem; margin: 10px 0 4px; }
      .product-card .price{ font-size: 1.2rem; margin: 4px 0 10px; }
      .product-card button{ padding: 10px 16px; font-size: .95rem; width: 100%; }
      .product-card a{ width: 100%; display: block; }
      .product-card a button{ width: 100%; }
      .products.products-house .product-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
      }
      .hero{
        padding: 0;
      }
      .hero h2{ font-size:2.5rem; }
      .site-nav .nav-links{ margin-left:10px; gap:16px; }
      .search-overlay{ padding-top: 80px; padding-left: 16px; padding-right: 16px; }
      .search-box{ width: min(92vw, 420px); margin: 0 auto; }
    }
/* --- ESTILOS CORREGIDOS PARA EL BOTÓN DE WHATSAPP --- */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px; /* <-- Asegura la posición a la derecha */
    left: auto;  /* <-- Evita conflictos con la posición izquierda */
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Forzar centrado de títulos de sección cuando algún estilo lo sobrescriba */
.container > h2.section-title,
main .section-title {
  text-align: center !important;
}
.section-title.section-title-house {
  text-align: left !important;
  width: min(1320px, 100%);
  margin: 20px auto;
  padding: 0 16px;
}

/* ===== Cuenta / Login ===== */
:root {
  --auth-ink: #162015;
  --auth-leaf: #2f6b3a;
  --auth-moss: #8fc08f;
  --auth-cream: #f5f3ed;
  --auth-border: #dde6dd;
  --auth-shadow: 0 18px 40px rgba(24, 42, 26, 0.15);
}

.auth-card {
  max-width: 520px;
  margin: 32px auto 60px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  text-align: center;
}
.auth-card p { margin: 10px 0 18px; color: #444; }
.auth-actions { display: grid; gap: 12px; }
.auth-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.auth-btn.primary {
  background: linear-gradient(135deg, #2f6b3a 0%, #57a060 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(47, 107, 58, 0.25);
}
.auth-btn.primary:hover { transform: translateY(-1px); }
.auth-btn.google {
  background: #fff;
  color: #222;
  border-color: #d7d7d7;
}
.auth-btn.google:hover { border-color: #4CAF50; }
.auth-note { font-size: .95rem; color: #555; text-align: center; }

.auth-page {
  position: relative;
  padding: clamp(28px, 5vw, 60px) 0 72px;
  isolation: isolate;
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background:
    radial-gradient(circle at 12% 18%, rgba(143, 192, 143, 0.35), transparent 55%),
    radial-gradient(circle at 88% 22%, rgba(47, 107, 58, 0.22), transparent 50%),
    linear-gradient(130deg, #f9f6f1 0%, #ffffff 45%, #eef7ef 100%);
  z-index: 0;
}
.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(47, 107, 58, 0.06) 0, rgba(47, 107, 58, 0.06) 1px, transparent 1px, transparent 12px);
  opacity: 0.5;
  z-index: 0;
}
.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(18px, 4vw, 32px);
  width: min(1120px, 92vw);
  margin: 0 auto;
}
.auth-panel {
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--auth-shadow);
  display: grid;
  gap: 16px;
  animation: auth-rise .7s ease both;
}
.auth-header {
  display: grid;
  gap: 8px;
}
.auth-kicker {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #4c6b4f;
  font-weight: 600;
}
.auth-title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-family: "Playfair Display", serif;
  color: var(--auth-ink);
}
.auth-subtitle {
  margin: 0;
  color: #48564a;
  font-size: 1.02rem;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form .form-group {
  margin: 0;
  gap: 6px;
  animation: auth-fade .6s ease both;
}
.auth-form .form-group:nth-of-type(2) { animation-delay: .06s; }
.auth-form input {
  width: 100%;
  border: 1px solid #cfd8cf;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fbfdfb;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-form input:focus {
  border-color: #2f6b3a;
  box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.15);
  background: #fff;
}
.auth-form .errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #b71c1c;
  font-weight: 600;
  font-size: .92rem;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: #3d4a3c;
}
.auth-remember input { margin: 0; }
.auth-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: auth-fade .6s ease .12s both;
}
.auth-form-actions .auth-btn.primary { flex: 1; min-width: 190px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7a8a79;
  font-size: .95rem;
  margin: 6px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e9e2;
}
.auth-actions .auth-btn { width: 100%; }
.auth-link {
  display: inline-block;
  color: #1b5e20;
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

.auth-aside {
  animation: auth-rise .85s ease .05s both;
}
.auth-aside-card {
  background: linear-gradient(150deg, #1c2d1f 0%, #203a24 50%, #2f6b3a 100%);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 34px);
  color: #f2f6f2;
  box-shadow: 0 16px 30px rgba(18, 30, 21, 0.35);
  display: grid;
  gap: 14px;
  min-height: 100%;
}
.auth-aside-label {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.auth-aside-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-family: "Playfair Display", serif;
}
.auth-aside-card .auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.auth-aside-card .auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 12px;
  color: #f6fbf6;
  font-weight: 600;
}
.auth-aside-card .auth-benefits li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a7dbac;
  flex: 0 0 8px;
}
.auth-aside-foot {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: .92rem;
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { order: 2; }
}
@media (max-width: 720px) {
  .auth-page { padding: 24px 0 56px; }
  .auth-page::before { border-radius: 18px; }
  .auth-form-actions { justify-content: flex-start; }
  .auth-form-actions .auth-btn.primary { width: 100%; }
}

/* ===== Vende tus Jerseys (diseño) ===== */
.main-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.main-container h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin: 0 0 10px;
  color: #2a2a2a;
}

/* ===== Contacto (diseño) ===== */
.contact-container{ width:100%; max-width:1100px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

/* ===== Sobre Nosotros (diseño) ===== */
.about-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0 60px;
  position: relative;
}
.about-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  width: min(1200px, 94vw);
  height: 220px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f3f7f1 0%, #e8f0e5 55%, #f7f3e8 100%);
  z-index: -1;
}
.about-panel {
  background: #ffffff;
  border: 1px solid #e7ece7;
  border-radius: 22px;
  box-shadow: 0 18px 30px rgba(21, 35, 20, 0.12);
  padding: 36px 40px;
}
.about-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6f8f67;
  font-weight: 700;
}
.about-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #1e2d20;
}
.about-lead {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #273026;
}
.about-columns {
  column-count: 1;
  column-gap: 0;
}
.about-columns p {
  margin: 0 0 10px;
  color: #3d3f3c;
  break-inside: avoid;
  line-height: 1.7;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== Cuenta ===== */
.account-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.account-card {
  background: #ffffff;
  border: 1px solid #e7ece7;
  border-radius: 20px;
  box-shadow: 0 16px 28px rgba(21, 35, 20, 0.12);
  padding: 28px 32px;
}
.account-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6f8f67;
  font-weight: 700;
}
.account-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: #1e2d20;
}
.account-meta {
  margin: 0 0 10px;
  color: #2f2f2f;
  font-size: 1.02rem;
}
.account-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1b5e20;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.account-btn.secondary {
  background: #ffffff;
  color: #1b5e20;
  border-color: #1b5e20;
}
.account-btn:hover {
  opacity: 0.92;
}
.account-subtitle {
  margin: 26px 0 12px;
  font-size: 1.2rem;
  color: #1e2d20;
}
.account-muted {
  margin: 12px 0 0;
  color: #5a5a5a;
}
.order-card {
  border: 1px solid #e7ece7;
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(21, 35, 20, 0.08);
  margin-bottom: 14px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #1e2d20;
  margin-bottom: 10px;
}
.order-date {
  font-weight: 500;
  color: #6b6b6b;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.order-grid p {
  margin: 0 0 8px;
  color: #2f2f2f;
}
.order-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.account-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 30;
}
.account-menu__title {
  font-weight: 700;
  color: #1e2d20;
  margin-bottom: 10px;
}
.account-menu__btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1b5e20;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.account-menu-wrapper:hover .account-menu,
.account-menu-wrapper:focus-within .account-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  .about-content { padding: 18px 0 48px; }
  .about-content::before { height: 180px; }
  .about-panel { padding: 26px 22px; }
  .about-columns { column-count: 1; }
}
.contact-info, .contact-form {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.contact-info h3, .contact-form h3 { margin: 0 0 10px; }
.contact-info p { margin: 6px 0; }
.contact-info a { color: #1b5e20; font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; }
.form-group input, .form-group textarea {
  border: 1px solid #ced4da; border-radius: 8px; padding: 10px 12px; font-size: 1rem; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,.15); }
.form-group button { background:#4CAF50; color:#fff; border:none; padding:12px 18px; border-radius:8px; cursor:pointer; font-size:1rem; }
.form-group button:hover { background:#45a049; }

@media (max-width: 900px){
  .contact-wrapper{ grid-template-columns: 1fr; }
}

.intro-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px;
  color: #444;
  font-size: 1.05rem;
}

.steps-container {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  background: linear-gradient(180deg, #ffffff 0%, #f3faf4 100%);
  border: 1px solid #dfeee1;
  border-left: 4px solid #8bc48f;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1b5e20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-item h3::before {
  content: '';
  width: 6px;
  height: 20px;
  border-radius: 4px;
  background: #4CAF50;
  flex: 0 0 6px;
}

.step-item p {
  margin: 0;
  color: #4a4a4a;
}

.sell-cta {
  margin-top: 28px;
  text-align: center;
}

.sell-cta .cta-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #b9e4bb 0%, #dff3e1 100%);
  border: 1px solid #b7e3b9;
  padding: 14px 18px;
  border-radius: 12px;
}

.sell-cta .cta-text {
  font-weight: 600;
  color: #1b5e20;
}

.sell-cta .cta-btn {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sell-cta .cta-btn:hover {
  background: #1ebe57;
}

.sell-cta .cta-btn img {
  width: 22px;
  height: 22px;
}

@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  footer.footer {
    padding: 12px 16px;
    font-size: .85rem;
    text-align: center;
  }
  footer.footer p {
    line-height: 1.5;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  footer.footer a {
    display: inline-block;
  }
  footer.footer .footer-social {
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
  }
  footer.footer .social-links {
    display: inline-flex;
    gap: 6px 10px;
  }
  footer.footer .social-links a {
    color: #0b4e0e;
    text-decoration: none;
    font-weight: 600;
  }
  footer.footer .footer-text {
    display: block;
  }
  footer.footer .footer-legal {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Asegúrate de cerrar cualquier @media query antes de esta línea si es necesario */

.main-container {
    padding: 24px 16px 50px;
    width: 100%;
    max-width: 1100px; /* Consistencia con tu diseño actual */
    margin: 0 auto;
}
  .products {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 8px 12px 24px;
  }
  .product-card {
    max-width: 320px;
    width: 100%;
  }
  .sell-cta .cta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sell-cta .cta-btn {
    width: 100%;
    justify-content: center;
  }
  .contact-info, .contact-form {
    padding: 16px;
  }
  .about-text p {
    font-size: 1rem;
  }
}

/* ===== Alertas (Contacto y generales) ===== */
.alert { 
  border-radius: 10px; 
  padding: 10px 12px; 
  margin: 6px 0 12px; 
  font-weight: 600; 
}

.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.alert-error { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }

/* ===== Tarjetas "Vende tus Jerseys" (Estilo General) ===== */
.steps-container .step-item {
  background: #e6f5e9;
  border: 2px solid #79b97f;
  border-left: 10px solid #1b5e20;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 10px 20px rgba(27, 94, 32, 0.18);
  transition: transform 0.2s ease;
}

.steps-container .step-item h3 {
  color: #124017;
  margin-bottom: 8px;
}

.steps-container .step-item p {
  color: #2f3f2f;
  line-height: 1.5;
}

/* ===== Ajustes para Móvil (640px o menos) ===== */
@media (max-width: 640px) {
  .main-container {
    padding: 20px 16px;
  }

  .steps-container {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna en móvil */
    gap: 14px;
  }

  .steps-container .step-item {
    padding: 16px 14px;
    box-shadow: 0 12px 22px rgba(27, 94, 32, 0.22);
  }

  .steps-container .step-item h3 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .steps-container .step-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  header,
  .headline-bar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

@media (min-width: 900px) {
  footer.footer {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  footer.footer p {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    gap: 18px;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 0.82rem;
    text-align: center;
  }
  footer.footer .footer-social,
  footer.footer .footer-text,
  footer.footer .footer-legal,
  footer.footer .social-links {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    line-height: 1.2;
    align-self: center;
  }
  footer.footer .footer-social {
    position: static;
    top: auto;
    align-items: center;
  }
  footer.footer .footer-social {
    position: relative;
    top: 2px;
  }
  footer.footer .social-links {
    align-items: center;
  }
  footer.footer .footer-legal {
    gap: 20px;
  }
  footer.footer .social-links {
    gap: 14px;
    position: relative;
    top: 7px;
  }
  footer.footer .social-links a,
  footer.footer .footer-legal a {
    font-weight: 700;
    text-decoration: none;
    color: #000;
    line-height: 1.2;
    display: inline-flex;
    align-items: baseline;
  }
    }



footer.footer .social-links a {
  position: static;
  padding-bottom: 0;
  text-decoration: none;
}

/* Carrusel: sin espacios entre repeticiones */
.headline-track {
  gap: 0;
}
.headline-group {
  margin: 0;
}
.headline-item {
  padding: 0;
  gap: 0;
}
.headline-item {
  padding: 0 !important;
}

@media (min-width: 900px) {
  /* Carrusel de texto (escritorio) - bloque final sin huecos */
  .headline-track {
    display: flex;
    width: max-content !important;
    flex-shrink: 0;
    gap: 0 !important;
    animation: headline-move-ltr 6s linear infinite !important;
    transform: translate3d(0, 0, 0);
  }
  .headline-bar .headline-group {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  .headline-bar .headline-item {
    padding: 0 !important;
    gap: 0 !important;
  }
  .headline-bar .headline-icon {
    display: none !important;
    margin-left: 0 !important;
  }
  .headline-bar .headline-group,
  .headline-bar .headline-track {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .headline-bar .headline-item::after {
    content: none !important;
    margin: 0 !important;
  }
  .headline-bar .headline-text {
    letter-spacing: 0 !important;
  }
}



@media (min-width: 900px) {
  /* Usa el mismo comportamiento del carrusel que en móvil */
}

/* ===== Carrusel definitivo (override) ===== */
@media (min-width: 900px) {
  .headline-track {
    animation: headline-move-ltr 6s linear infinite !important;
    width: max-content !important;
    display: flex !important;
    gap: 0 !important;
  }
  .headline-bar .headline-group,
  .headline-bar .headline-track,
  .headline-bar .headline-item {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .headline-bar .headline-item::after {
    content: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 899px) {
.headline-track {
    animation: headline-move-ltr 12s linear infinite !important;
    width: max-content !important;
    display: flex !important;
    gap: 0 !important;
  }
}

/* ===== Categoria (override final) ===== */
.category-page-title {
  text-align: center !important;
  margin: 24px 0 8px !important;
}
.products.category-products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 1600px !important;
}
@media (min-width: 900px) {
  .products.category-products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
.pagination {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 0 28px !important;
  flex-wrap: wrap !important;
}
.pagination .page-btn {
  border: 1px solid #cfcfcf !important;
  background: #fff !important;
  color: #222 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  min-width: 36px !important;
}
.pagination .page-btn.is-active {
  background: #1b5e20 !important;
  color: #fff !important;
  border-color: #1b5e20 !important;
}

/* ===== Catalogo (2 columnas en movil y web) ===== */
.products.catalog-products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1600px !important;
  padding-inline: 9px !important;
  box-sizing: border-box;
}
.products.catalog-products > * {
  min-width: 0;
}
.catalog-card {
  width: 100%;
  min-width: 0;
  height: 100%;
}
.catalog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  color: inherit;
}
.catalog-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f6f6;
}
.catalog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catalog-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 12px;
  min-height: 86px;
}
.catalog-card__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}
.catalog-card__price {
  margin: 2px 0 0;
  font-size: 1.22rem;
  font-weight: 700;
  color: #111;
}
@media (min-width: 900px) {
  .products.catalog-products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding-inline: 9px !important;
  }
  .catalog-card__media {
    aspect-ratio: 4 / 5;
  }
  .catalog-card__price {
    font-size: 1.26rem;
  }
}

/* ===== Catalogo: ajuste móvil (altura + tipografía) ===== */
@media (max-width: 899px) {
  .products.catalog-products {
    gap: 18px 14px !important;
    padding-inline: 9px !important;
  }
  .catalog-card {
    padding: 3px 0 3px !important; /* +6px de altura total al contenedor */
  }
  .catalog-card__media {
    aspect-ratio: 2 / 3 !important;
    height: auto !important;
    padding: 6px 0 !important; /* +6px de altura al contenedor de foto */
    background: #f6f6f6 !important;
  }
  .catalog-card__media img {
    object-fit: contain !important;
    object-position: center !important;
  }
  .catalog-card__body {
    padding: 8px 8px 10px !important;
    gap: 4px !important;
  }
  .catalog-card__title {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }
  .catalog-card__price {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    font-weight: 700 !important;
  }
}

/* ===== Catalogo: filtros compactos ===== */
.filter-bar {
  align-items: start !important;
}
.custom-select-trigger {
  white-space: normal !important;
  line-height: 1.1 !important;
  height: auto !important;
  min-height: 34px !important;
  word-break: break-word !important;
}
@media (max-width: 768px) {
  .filter-section {
    padding: 10px 12px 12px !important;
  }
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .filter-group {
    width: 100% !important;
    min-width: 0 !important;
  }
  .custom-select-trigger,
  .filter-group select {
    height: auto !important;
    min-height: 30px !important;
    padding: 6px 22px 6px 8px !important;
    font-size: .82rem !important;
    line-height: 1.1 !important;
  }
}
@media (max-width: 520px) {
  .custom-select-trigger,
  .filter-group select {
    font-size: .78rem !important;
  }
}

/* ===== Catalogo: titulo mas arriba en web ===== */
@media (min-width: 769px) {
  .filter-section + .container {
    padding-top: 8px !important;
  }
  .filter-section + .container > h2.section-title {
    margin-top: 6px !important;
  }
}

/* ===== Catalogo: titulo mas arriba en movil ===== */
@media (max-width: 768px) {
  .filter-section + .container {
    padding-top: 8px !important;
  }
  .filter-section + .container > h2.section-title {
    margin-top: 6px !important;
  }
}

/* ===== Ofertas: titulo mas arriba ===== */
.offers-container {
  padding-top: 0 !important;
}
.offers-title {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}
@media (max-width: 768px) {
  .offers-container {
    padding-top: 0 !important;
    margin-top: 6px !important;
  }
  .offers-title {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }
}
@media (max-width: 520px) {
  .offers-container {
    margin-top: 4px !important;
  }
}
.offers-container .price-container {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (min-width: 769px) {
  .offers-container {
    margin-top: -35px !important;
  }
  .offers-title {
    margin-top: 0 !important;
  }
}

/* ===== Catalogo: filtros ordenados en web ===== */
@media (min-width: 901px) {
  .filter-section .filter-bar {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) max-content !important;
    grid-template-areas: "liga talla ordenar masfiltros acciones";
    align-items: end !important;
  }
  .filter-section .filter-bar .filter-group:nth-child(1) { grid-area: liga; }
  .filter-section .filter-bar .filter-group:nth-child(2) { grid-area: talla; }
  .filter-section .filter-bar .filter-group:nth-child(3) { grid-area: ordenar; }
  .filter-section .filter-bar .filter-group:nth-child(4) { grid-area: masfiltros; }
  .filter-section .filter-bar .filter-actions {
    grid-area: acciones;
    justify-content: flex-end !important;
    justify-self: end !important;
    align-self: end !important;
  }
  .filter-section .filter-bar .filter-actions .reset-btn {
    height: 42px;
    padding: 8px 12px;
  }
}

/* ===== Catalogo: titulo mas arriba en web (override fuerte) ===== */
@media (min-width: 769px) {
  .filter-section {
    padding-bottom: 6px !important;
  }
  .filter-section + .container {
    padding-top: 0 !important;
    margin-top: -24px !important;
  }
  .filter-section + .container > h2.section-title {
    margin-top: 0 !important;
  }
}

/* ===== Catalogo: estado vacio ===== */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 600;
  color: #333;
  padding: 24px 0 36px;
}


/* ===== Gracias por tu compra ===== */
.thanks-body {
  background:
    radial-gradient(900px 420px at 8% -12%, rgba(237, 194, 76, 0.25), transparent 60%),
    radial-gradient(850px 360px at 92% 0%, rgba(23, 74, 56, 0.22), transparent 64%),
    #f4efe3;
}

.thanks-page {
  max-width: 1080px;
  margin: 34px auto 68px;
  padding: 0 20px;
  display: grid;
  gap: 20px;
}

.thanks-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 46px 48px;
  background: linear-gradient(135deg, #102117 0%, #183428 56%, #1f4332 100%);
  color: #f8f2e2;
  box-shadow: 0 24px 52px rgba(16, 33, 24, 0.28);
}

.thanks-hero::before,
.thanks-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.thanks-hero::before {
  width: 300px;
  height: 300px;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle at 45% 40%, rgba(248, 214, 112, 0.27), rgba(248, 214, 112, 0));
}

.thanks-hero::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: -130px;
  background: radial-gradient(circle at 58% 42%, rgba(250, 242, 226, 0.18), rgba(250, 242, 226, 0));
}

.thanks-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f5d87d;
}

.thanks-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
}

.thanks-message {
  margin: 16px 0 0;
  font-size: 1.04rem;
  line-height: 1.62;
  max-width: 680px;
  color: #efe6d0;
}

.thanks-meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thanks-meta-item {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(2px);
}

.thanks-meta-item span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8ccb0;
}

.thanks-meta-item strong {
  margin-top: 6px;
  display: block;
  font-size: 1.05rem;
  color: #fff9ea;
}

.thanks-actions {
  margin-top: 28px;
}

.thanks-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #231f12;
  background: linear-gradient(135deg, #f9de8b, #efc24c);
  box-shadow: 0 10px 22px rgba(239, 194, 76, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.thanks-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(239, 194, 76, 0.42);
}

.thanks-home-btn:active {
  transform: translateY(0);
}

.thanks-note-card {
  border-radius: 22px;
  padding: 26px 28px;
  background: #fffdf6;
  border: 1px solid #e5dcc8;
  box-shadow: 0 10px 26px rgba(35, 31, 18, 0.08);
}

.thanks-note-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #213428;
}

.thanks-note-card p {
  margin: 0;
  color: #4b564a;
  line-height: 1.6;
}

@media (max-width: 840px) {
  .thanks-hero {
    padding: 36px 22px;
  }

  .thanks-meta {
    grid-template-columns: 1fr;
  }

  .thanks-message {
    font-size: 0.98rem;
  }

  .thanks-actions {
    margin-top: 22px;
  }

  .thanks-home-btn {
    width: 100%;
  }

  .thanks-note-card {
    padding: 22px 18px;
  }
}
/* ===== Carrito: entrega en punto fisico ===== */
.cart-pickup {
  display: grid;
  gap: 6px;
}
.pickup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1e2d20;
}
.pickup-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1b5e20;
}
.pickup-note {
  margin: 0;
  color: #4f5a4f;
  font-size: 0.92rem;
}
.pickup-extra-note {
  display: grid;
  gap: 8px;
  margin-top: -6px;
  padding: 10px 12px;
  border: 1px solid #d8e5d8;
  border-radius: 10px;
  background: #f7faf7;
}
.pickup-extra-note p {
  margin: 0;
  color: #314031;
  font-size: 0.88rem;
  line-height: 1.45;
}
.pickup-free-label {
  color: #1b5e20;
  font-weight: 700;
  align-self: center;
}
@media (max-width: 720px) {
  .pickup-toggle {
    font-size: 0.95rem;
  }
  .pickup-note {
    font-size: 0.88rem;
  }
  .pickup-extra-note p {
    font-size: 0.84rem;
  }
}
/* ===== Layout: evitar salto por scrollbar ===== */
html { scrollbar-gutter: auto; }
body { overflow-y: auto; }

/* ===== Busqueda overlay: bloquear scroll de fondo y permitir scroll interno ===== */
html.search-overlay-open,
body.search-overlay-open {
  overflow: hidden !important;
}
html.search-overlay-open {
  overscroll-behavior: none;
}
body.search-overlay-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  touch-action: auto;
}
.search-overlay {
  overscroll-behavior: contain;
}
.search-overlay.active {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.search-results {
  max-height: min(68vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
@media (max-width: 640px) {
  .search-results {
    max-height: min(64vh, 520px);
  }
}

/* ===== Vende tus Jerseys: titulo con tipografia accent ===== */
.main-container h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 20px 0;
}
.main-container h2.section-title-accent {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #1b5e20;
}

/* ===== Catalogo: fix final movil ===== */
.products.catalog-products {
  padding-left: 9px !important;
  padding-right: 9px !important;
  gap: 12px !important;
  grid-auto-rows: 1fr !important;
}

.products.catalog-products .catalog-card,
.products.catalog-products .catalog-card__link {
  width: 100% !important;
  height: 100% !important;
  padding: 3px 0 !important; /* +6px total al contenedor */
}

.products.catalog-products .catalog-card__link {
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.products.catalog-products .catalog-card__media {
  position: relative !important;
  aspect-ratio: 2 / 3 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 6px 0 !important; /* +6px de altura visual */
}

.products.catalog-products .catalog-card__media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.products.catalog-products .catalog-card__body {
  padding: 10px 10px 10px !important;
  min-height: 96px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.products.catalog-products .catalog-card__title {
  color: #111 !important;
  font-size: 0.98rem !important;
  line-height: 1.22 !important;
  margin: 0 !important;
  height: calc(1.22em * 2) !important;
  overflow: hidden !important;
}

.products.catalog-products .catalog-card__price {
  color: #111 !important;
  font-size: 1rem !important;
  font-weight: 600 !important; /* quitar negrita extrema */
  line-height: 1.15 !important;
  margin: 0 0 0 !important; /* acercar al título */
}

@media (min-width: 900px) {
  .products.catalog-products {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
  .products.catalog-products .catalog-card__price {
    font-size: 1.18rem !important;
  }
}

/* ===== Catalogo: override móvil final (alinear foto/contenedor y precio) ===== */
@media (max-width: 899px) {
  .products.catalog-products {
    gap: 18px 14px !important;
  }
  .products.catalog-products .catalog-card,
  .products.catalog-products .catalog-card__link {
    padding: 6px 0 !important; /* +6px de altura total */
  }
  .products.catalog-products .catalog-card__media {
    aspect-ratio: 2 / 3 !important;
    height: auto !important;
    padding: 6px 0 !important;
    background: #f6f6f6 !important;
  }
  .products.catalog-products .catalog-card__media img {
    object-fit: contain !important;
    object-position: center !important;
  }
  .products.catalog-products .catalog-card__body {
    padding: 8px 8px 8px !important;
    gap: 3px !important;
  }
  .products.catalog-products .catalog-card__title {
    font-size: 0.95rem !important;
    margin: 0 0 2px !important;
  }
  .products.catalog-products .catalog-card__price {
    font-size: 0.9rem !important;
    font-weight: 600 !important; /* sin negrita pesada */
    line-height: 1.15 !important;
    margin: -2px 0 0 !important; /* subir el precio */
  }
}

/* ===== Catalogo: contenedores iguales y sin sombras ===== */
.products.catalog-products > * {
  height: 100% !important;
}
.products.catalog-products .catalog-card,
.products.catalog-products .catalog-card__link {
  min-height: 0 !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.products.catalog-products .catalog-card__media {
  width: 100% !important;
  height: 247px !important;
  max-height: 247px !important;
  padding: 0 !important;
  background: #f6f6f6 !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
.products.catalog-products .catalog-card__media img {
  object-fit: cover !important;
  object-position: center !important;
}
.products.catalog-products .catalog-card__media-link {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
}
.products.catalog-products .catalog-card__title-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}
.products.catalog-products .catalog-card__title-link:hover {
  text-decoration: none !important;
}
.products.catalog-products .catalog-card__price-link {
  text-decoration: none !important;
  color: inherit !important;
  display: inline-block !important;
}
.products.catalog-products .catalog-card__price-link:hover {
  text-decoration: none !important;
}
.products.catalog-products .catalog-card__body {
  margin-top: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  padding: 12px 12px 14px !important;
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.products.catalog-products .catalog-card__price {
  margin-top: 0 !important;
  font-weight: 700 !important;
}
@media (max-width: 899px) {
  .products.catalog-products .catalog-card,
  .products.catalog-products .catalog-card__link {
    min-height: 0 !important;
  }
  .products.catalog-products .catalog-card__media {
    height: 273px !important;
    max-height: 273px !important;
  }
  .products.catalog-products .catalog-card__title {
    height: auto !important;
    min-height: 0 !important;
  }
  .products.catalog-products .catalog-card__body {
    min-height: 18px !important;
  }
}

@media (max-width: 900px) {
  #house-products.products-house,
  .products.products-house {
    gap: 10px !important;
  }
}

@media (min-width: 900px) {
  .site-nav .nav-links a {
    font-size: 1.16rem !important;
  }
}

