/* ============================
   TARJETAS (CARDS)
============================ */
.card { 
  font-size: 0.9rem; 
  border-radius: 8px; 
  background: rgba(255,255,255,0.15);
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card .card-img-top { object-fit: cover; }
.card-compact .card-img-top { height: 150px; }
.coleccion-card .card-img-top { height: 160px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 15px; color: #333; }
.card a { text-decoration: none; color: #000; font-weight: bold; }

/* Responsive cards */
@media (max-width: 420px) {
  .card-compact .card-img-top { height: 120px; }
}

/* ============================
   SEARCH OVERLAY
============================ */
.search-overlay {
  position: fixed;
  top: 8px;
  left: 0;
  right: 0;
  display: none;
  justify-content: center;
  z-index: 1500;
  pointer-events: none;
}
.search-overlay.active {
  display: flex;
  pointer-events: auto;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 70%;
  max-width: 900px;
  background: rgba(30,35,41,0.98);
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 8px 12px;
}
.search-box input {
  flex:1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 8px;
  font-size: 16px;
}
.search-box button { background: none; border: none; cursor: pointer; }
.search-box img { width: 20px; filter: invert(100%); }
.close-search {
  background: none;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
@media (max-width: 420px) {
  .search-box { width: 90%; padding: 6px; }
  .search-box input { font-size: 14px; }
}

/* ============================
   TOAST
============================ */
.position-fixed.bottom-0.end-0 {
  right: 12px;
  bottom: 12px;
}

/* ============================
   HEADER Y NAVBAR
============================ */
.header {
  padding-left: 3rem;
  padding-right: 3rem;
  background-color: #231F20;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}
.header.expanded { padding-top: 12px; padding-bottom: 12px; }
.header.shrink { padding-top: 4px; padding-bottom: 4px; }
.logo img {
  height: 70px;
  transition: height 0.3s ease;
  display: block;
}
.header.shrink .logo img { height: 50px; }
body {
  padding-top: 90px; /* evita que el contenido quede debajo del header */
  background-color: #F4F4F4;
}
.navar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 10px 0;
}
.opciones ul {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0; padding: 0;
}
.opciones li { list-style: none; }
.opciones li a {
  text-decoration: none;
  color: white;
  font-size: 15px;
  transition: color 0.2s;
}
.opciones li a:hover { color: orange; text-decoration: underline; }

/* ============================
   ICONOS DEL NAVBAR
============================ */
.icons { display: flex; align-items: center; gap: 16px; }
.icon-btn { background: none; border: none; padding: 0; cursor: pointer; }
.icons img { width: 22px; filter: invert(100%); display:block; }
.Carrito { position: relative; display:inline-flex; align-items:center; }
#contador {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ============================
   MENÚ HAMBURGUER
============================ */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menu-toggle .hamb {
  display: block;
  width: 20px; height: 2px;
  background: white;
  position: relative;
}
.menu-toggle .hamb::before,
.menu-toggle .hamb::after {
  content: "";
  position: absolute; left: 0;
  width: 20px; height: 2px;
  background: white;
}
.menu-toggle .hamb::before { top: -6px; }
.menu-toggle .hamb::after { top: 6px; }

/* ============================
   MENÚ MÓVIL
============================ */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #231F20;
  padding: 12px 1.5rem 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  z-index: 1100;
}
.mobile-menu ul {
  list-style: none;
  margin:0; padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mobile-menu a { color: white; text-decoration: none; font-size: 16px; }
.mobile-menu.active { display: block; }

/* ============================
   RESPONSIVE NAVBAR
============================ */
@media (max-width: 992px) {
  .logo img { height: 56px; }
  .opciones ul { gap: 18px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .opciones { display: none; }
  .icons { gap: 10px; }
  .icons img { width: 20px; }
  header { padding-left: 1rem; padding-right: 1rem; }
  .logo img { height: 52px; }
}
@media (max-width: 420px) {
  .mobile-menu ul { gap: 10px; }
}

/* ============================
   FOOTER
============================ */
.site-footer { 
  background-color: #231F20;
  color: white;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer .footer-link {
  color: #cfcfcf;
  text-decoration: none;
  display: inline-block;
  padding: 3px 0;
}
.site-footer .footer-link:hover { color: white; text-decoration: underline; }
.site-footer .small { color: white; }
.social-link {
  color: inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px; height:36px;
  border-radius:6px;
  background: rgba(255,255,255,0.02);
  transition:background .15s, transform .12s;
}
.social-link:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.payment-pill { 
  background: rgba(255,255,255,0.03);
  padding:6px 8px;
  border-radius:6px;
  font-size:12px;
  color:#ddd;
}
#newsletter-form input.form-control {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}
#newsletter-msg { color: #cfcfcf; }
@media (max-width: 767px) {
  .site-footer .row { text-align: left; }
  .site-footer .social-icons { margin-top: 6px; }
  .payment-pill { font-size: 11px; padding:5px 6px; }
}

/* ============================
   SECCIÓN BENEFICIOS
============================ */
.benefits {
  background: #d1c2b3;
  padding: 40px 20px;
  text-align: center;
}
.benefits h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: bold;
}

/* ============================
   CARRUSEL DE COLECCIONES
============================ */
.colecciones-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.coleccion-card {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
}
@media (max-width: 768px) {
  .coleccion-card { width: 80%; }
}
/* Ocultar scrollbar */
.colecciones-scroll::-webkit-scrollbar { display: none; }

/* Indicadores (puntos) */
.indicadores {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.indicadores .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
  transition: background 0.3s;
}
.indicadores .dot.active { background: #333; }

/* Botones del carrusel */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}
.carrusel-btn:hover { background: rgba(0,0,0,0.8); }
.carrusel-prev { left: 10px; }
.carrusel-next { right: 10px; }


.promo-section {
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 10px 0;
}

.promo-slider {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap; /* modo escritorio */
  transition: transform 0.3s ease;
}

.promo-item {
  text-align: center;
  min-width: 150px;
  flex-shrink: 0;
}

.promo-item img {
  width: 80px;
  height: auto;
  margin-bottom: 8px;
}

/* --- En móviles: se convierte en slider --- */
@media (max-width: 768px) {
  .promo-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    animation: scroll 15s linear infinite;
  }
}

/* Animación de scroll infinito */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
