/* Grid spacing para BS3 */
.product-grid .col-xs-12 { margin-bottom: 24px; }

/* Card */
.product-card{
  border:1px solid #eee;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  -webkit-transition:transform .15s, box-shadow .15s;
  transition:transform .15s, box-shadow .15s;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:0 12px 30px rgba(0,0,0,.08); }
.card-body{ padding:16px; }
.card-footer{ padding:16px; background:#fff; border-top:1px solid #f1f1f1; }

/* Imagen con relación 4:3 (válido para BS3/4) */
.img-wrap{
  position:relative;
  width:100%;
  padding-top:75%;           /* 4:3 */
  background:#fafafa;
}
.img-wrap img{
  position:absolute; top:0; left:0; width:100%; height:100%;
  object-fit:cover;          /* recorta sin deformar */
}

/* Texto y precios */
.product-title{ font-size:16px; line-height:1.35; margin:0 0 6px; }
.product-prices{ margin-bottom:8px; }
.product-prices .old-price{ color:#9aa0a6; text-decoration:line-through; margin-right:6px; }
.product-prices .price{ font-weight:700; font-size:18px; }

/* Cantidad */
.qty-row{ margin-top:8px; }
.qty-row .control-label{ margin-right:8px; }
.qty-input{ width:80px; }

.product-card {
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.product-title {
  font-size: 1rem;
  min-height: 48px; /* para que los títulos no desacomoden las cards */
}
.old-price {
  color: #888;
  text-decoration: line-through;
}
.price {
  color: #b20000;
  font-weight: bold;
}

/* ====== Productos ====== */
.product-grid {
  row-gap: 28px;
}

.product-card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
  background: #fff;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.product-card .card-img-top {
  height: 180px;                 /* ajustá si querés más alto */
  width: 100%;
  object-fit: cover;
  display: block;
}

.product-card .card-body {
  padding: 18px 18px 6px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #2b2b2b;
  min-height: 42px;              /* mantiene filas parejas */
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* clamp de 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-prices .price {
  font-size: 20px;
  color: #b32020;
}

.product-prices .old-price {
  color: #9aa0a6;
  text-decoration: line-through;
}

.qty-input {
  height: 36px;
  max-width: 90px;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}

/* Footer de la tarjeta */
.product-card .card-footer {
  padding: 16px 18px 20px;
}

.btn-danger.btn-block {
  background: linear-gradient(#d33, #b51d1d);
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 10px 14px;
  box-shadow: 0 6px 14px rgba(204, 35, 35, .28);
  transition: filter .15s ease, transform .05s ease;
}

.btn-danger.btn-block:hover { filter: brightness(1.05); }
.btn-danger.btn-block:active { transform: translateY(1px); }

/* Badge de oferta */
.badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(22,163,74,.25);
}

/* Icono/etiquetas auxiliares */
.product-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

/* Responsive tweaks */
@media (min-width: 1200px) {
  .product-card .card-img-top { height: 210px; }
  .product-title { font-size: 15px; }
}
  .float-wa{
        position:fixed;
        width:60px;
        height:60px;
        bottom:40px;
        right:40px;
        background-color:#25d366;
        color:#FFF;
        border-radius:50px;
        text-align:center;
        font-size:30px;
        z-index:100;
    }

/* ===== Contacto nuevo ===== */
.contacto-wrap { padding: 40px 0 80px; }
.contacto-card {
  max-width: 1060px; margin: 24px auto 0; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  border: 1px solid #eee;
}
.contacto-left { padding: 26px 28px 20px; }

.contacto-right {
  background: radial-gradient(1200px 400px at 100% 0, rgba(179,32,32,.08), transparent 60%) , #fafafa;
  border-left: 1px solid #eee; 
  padding: 28px;
  display:flex; 
  align-items: center; 
  justify-content: center;
}

.info-block { width: 100%; max-width: 360px; }
.info-block h3 { font-size: 18px; margin: 6px 0 6px; display:flex; gap: 8px; align-items:center; }
.info-block hr { border:0; border-top:1px dashed #e5e7eb; margin:16px 0; }
.btn-whatsapp {
  display:inline-block; margin-top:10px; background:#25D366; color:#fff; border:0; border-radius:12px;
  padding:10px 16px; font-weight:700; box-shadow:0 8px 20px rgba(37,211,102,.25);
}
.btn-whatsapp:hover { filter:brightness(1.05); color:#fff; }

/* Form */
.contacto-form .form-control { height: 44px; border-radius: 12px; border:1px solid #e6e6e6; }
.contacto-form textarea.form-control { height:auto; min-height:130px; }
.contacto-form label { font-weight:600; color:#2b2b2b; margin-bottom:6px; }
.contacto-form .btn-send { border-radius: 12px; padding: 10px 18px; font-weight: 700; letter-spacing:.3px; }
.contacto-form .check { margin-top:6px; }
.contacto-form .alert { border-radius: 10px; }

/* Responsive */
@media (max-width: 991px){
  .contacto-right { border-left:0; border-top:1px solid #eee; }
}
/* Hace que las dos columnas de la tarjeta tengan el mismo alto */
.contacto-card {
  display: flex;
  flex-wrap: wrap;
}

.contacto-left, 
.contacto-right {
  display: flex;
  flex-direction: column;
}

.contacto-right {
  background: linear-gradient(180deg, #ffffff, #fff5f5);
  border-left: 1px solid #eee;
  justify-content: center; /* centra vertical si sobra espacio */
}


/* Ancho extra solo para la sección de contacto */
#contacto .container {
  width: 96%;            /* ocupa más del viewport */
  max-width: 1320px;     /* podés subir a 1400/1440 si querés */
}

/* La tarjeta puede aprovechar más ancho */
.contacto-card { 
  margin-left: auto;
  margin-right: auto;
  max-width: none;       /* quita límite si lo tuvieras */
}
/* ===== Sección envíos ===== */
.envios {
  background: #111 url('img/bg-envios.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
  position: relative;
}

.envios .section-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.envios .lead.main {
  color: #f5f5f5;
  margin-bottom: 40px;
}

.map-container {
  position: relative;
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}

.map-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9) contrast(1.05);
}

.map-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(179,32,32,0.9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-overlay i {
  font-size: 18px;
}


/* ====== Envíos ====== */
.envios {
  position: relative;
  padding: 70px 0 80px;
  color: #222;
  background: #111 url('img/bg-envios.jpg') center/cover no-repeat;
}
.envios .section-title,
.envios .lead.main { color: #fff; }
.envios .lead.main { opacity: .95; margin-bottom: 28px; }

.envios-grid { margin-top: 10px; }

/* Tarjeta del mapa */
.map-card {
  position: relative;
  background: rgba(255,255,255,.96);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 16px;
}
.arg-svg { width: 100%; height: auto; display: block; }

/* Badge sobre el mapa */
.map-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: #b32020;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex; gap: 8px; align-items: center;
  box-shadow: 0 8px 20px rgba(179,32,32,.28);
}
.map-badge i { font-size: 16px; }

/* Lista de atributos */
.envios-list { list-style: none; padding: 0; margin: 0 0 12px; }
.envios-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed #e7e7e7; color: #f5f5f5;
}
.envios-list li i { width: 22px; text-align: center; color: #fff; opacity: .9; }

/* Botón WhatsApp */
.btn-whatsapp {
  display: inline-block; margin-left: 8px; background:#25D366; color:#fff;
  border-radius:12px; padding:10px 16px; font-weight:700; border:0;
  box-shadow: 0 8px 20px rgba(37,211,102,.25);
}
.btn-whatsapp:hover { filter: brightness(1.05); color:#fff; }

/* Iframe (si usás Google Maps) */
.arg-map-iframe { width: 100%; height: 420px; border: 0; border-radius: 14px; }

/* Responsive */
@media (max-width: 991px){
  .envios { padding: 56px 0 64px; }
  .envios .section-title, .envios .lead.main { text-align: center; }
  .envios-list li { color: #fff; }
}

.envios-section {
  position: relative;
  padding: 80px 0;
  background: #fff url('img/mapa-argentina.svg') no-repeat center;
  background-size: contain;   /* adapta el mapa al ancho */
}

.envios-section .section-title {
  font-size: 42px;
  font-weight: 800;
  color: #b32020;
  margin-bottom: 10px;
}

.envios-section .lead {
  font-size: 20px;
  font-weight: 600;
  color: #615d4e;
  margin-bottom: 40px;
}

/* Si querés el mapa más suave */
.envios-section {
  background-color: #fff;
  background-blend-mode: lighten;
  opacity: 0.9; /* ajustá opacidad del fondo */
}
.footer {
  background: #222;
  color: #eee;
  padding: 30px 0;
  font-size: 14px;
  position: relative;
}
.footer .social-links a {
  color: #eee;
  margin: 0 10px;
  font-size: 20px;
  transition: color 0.3s;
}
.footer .social-links a:hover {
  color: #b32020;
}
.footer p {
  margin-bottom: 12px;
}

.product-details li {
  font-size: 15px;
  margin-bottom: 6px;
  color: #444;
}
.product-details strong {
  font-size: 15.5px;
  color: #222;
}
.price {
  color: #b32020;
  font-size: 20px;
  font-weight: 700;
}


.badge-oferta {
  position: absolute;
  top: 10px;
  left: -5px;
  background: #dc3545;
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.product-card.oferta {
  border: 2px solid #dc3545;
}
.product-card.oferta .price {
  background: #dc3545;
  color: white !important;
  padding: 3px 8px;
  border-radius: 5px;
}
.product-card.oferta {
  box-shadow: 0 4px 15px rgba(220,53,69,0.4);
}
.btn-top {
  position: fixed;
  bottom: 49px;
  right: 120px;
  width: 45px;
  height: 45px;
  background: #b32020; /* rojo de tu tema */
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  display: none; /* oculto al inicio */
  z-index: 999;
  transition: opacity 0.3s ease;
}

/* Ajustes solo para pantallas chicas (ej: celulares hasta 768px) */
@media (max-width: 768px) {
  /* Reducir el tamaño del título en el banner */
  .banner-title {
    font-size: 28px; /* antes seguro estaba mucho más grande */
    line-height: 1.2;
    text-align: center;
  }

  .banner-subtitle {
    font-size: 14px;
    padding: 4px 8px;
  }

  /* Menú desplegable más liviano */
  .navbar-collapse {
    background: rgba(0,0,0,0.95); /* un poco transparente */
    width: 80%;  /* ocupa solo parte del ancho, estilo sidebar */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    padding-top: 60px;
    transition: all 0.3s ease-in-out;
  }

  .navbar-collapse ul {
    text-align: left;
    padding-left: 20px;
  }

  .navbar-collapse a {
    font-size: 16px;
    padding: 12px 0;
    display: block;
  }

  /* Logo más chico para no robar tanto espacio */
  .navbar-brand {
    font-size: 18px;
  }
}

/* Ajustes generales opcionales */
.navbar-inverse { background:#202020; border:none; }

@media (max-width: 768px) {
    /* Reducir el tamaño del título en el banner */
  .banner-title {
    font-size: 28px; /* antes seguro estaba mucho más grande */
    line-height: 1.2;
    text-align: center;
  }

  .banner-subtitle {
    font-size: 14px;
    padding: 4px 8px;
  }
  /* Si el collapse está cerrado, ocultar los links */
  #menu #navbar:not(.in) .nav.navbar-nav { display: none; }

  /* Off-canvas opcional (más lindo): */
  #navbar.navbar-collapse {
    position: fixed; top:0; right:0; height:100vh; width:80%;
    max-width:320px; background:rgba(0,0,0,.95);
    padding:70px 20px 20px; overflow-y:auto; z-index: 1040;
    transform: translateX(100%); transition: transform .25s ease-in-out;
    box-shadow: -6px 0 18px rgba(0,0,0,.35);
  }
  #navbar.in { transform: translateX(0); }

  #navbar .nav>li>a { font-size:16px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.08); }

  /* El logo grande fuera en XS */
  #logo { display:none !important; }
}
#navbar.navbar-collapse {
 /
}
#navbar.navbar-collapse {
  padding-top: 40px; /* antes 70px */
}
@media (max-width: 768px) {
    /* Reducir el tamaño del título en el banner */
  .banner-title {
    font-size: 28px; /* antes seguro estaba mucho más grande */
    line-height: 1.2;
    text-align: center;
  }

  .banner-subtitle {
    font-size: 14px;
    padding: 4px 8px;
  }
  /* Panel lateral (off-canvas) */
  #navbar.navbar-collapse {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 80%; max-width: 320px;
    background: rgba(0,0,0,.85);  /* menos negro */
    padding: 40px 20px 20px;       /* menos espacio arriba */
    overflow-y: auto;
    z-index: 1040;
    transform: translateX(100%);
    transition: transform .25s ease-in-out;
    box-shadow: -6px 0 18px rgba(0,0,0,.35);
  }
  /* Abierto (Bootstrap 3 usa .in) */
  #navbar.in { transform: translateX(0); }

  /* Evita parpadeos durante transición */
  #navbar.collapsing { height: 100vh !important; }

  /* Ítems más legibles */
  #navbar .nav>li>a {
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  /* Ocultar el logo grande en XS */
  #logo { display: none !important; }
}

/* Overlay para cerrar al tocar afuera */
#menu-overlay{
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,.5);
  z-index: 1030;
  display: none;
}
/* Mostrar overlay cuando el menú está abierto */
body.menu-open #menu-overlay { display:block; }
/* Ajustes del título del hero en móviles */
@media (max-width: 768px) {
  /* Selecciona tu h1 del banner */
  #header .banner h1.banner-title {
    /* tamaño fluido y acotado */
    font-size: clamp(26px, 8.5vw, 38px);
    line-height: 1.1;
    margin: 0;
    padding: 0 10px 24px !important;  /* antes había 160px abajo; lo bajamos */
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal;      /* permite salto de línea */
    word-break: keep-all;     /* no cortar palabras */
    hyphens: none;            /* sin guiones automáticos */
    letter-spacing: .5px;
  }

  /* Subtítulo más compacto */
  #header .banner .banner-subtitle {
    font-size: 14px;
    padding: 4px 8px;
  }
}

/* En pantallas muy chicas, aún más chico */
@media (max-width: 420px) {
  #header .banner h1.banner-title {
    font-size: clamp(24px, 8vw, 34px);
    padding-bottom: 18px !important;
  }
}