/* Reset y estilos generales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #2b2b2b;
  line-height: 1.6;
}

/* Header */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 6%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-img {
  height: 64px;
  width: auto;
}

.logo-wrap {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

.logo-flags {
  position: absolute;
  top: -9px;
  right: -12px;
  height: 24px !important;
  width: auto !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28));
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d9534f;
}

/* Sección de Presentación / Hero */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 6%;
  background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  background-color: #ffe6e6;
  color: #d9534f;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin: 15px 0;
  color: #1a1a1a;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 25px;
}

.btn-primary {
  display: inline-block;
  background-color: #d9534f;
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #c9302c;
}

.hero-image {
  flex: 1;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Banner general de productos, dentro del hero */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

.hero-carousel .mb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.hero-carousel .mb-slide.activo {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel .mb-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
}

/* Sección Categorías */
.categories-section {
  padding: 60px 6%;
  max-width: 1300px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
}

.section-title p {
  color: #777;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.category-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
  position: relative;
  height: 220px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
}

.card-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.multi-image img {
  width: 30%;
  height: auto;
  margin: 0 2px;
}

/* Mini banner rotativo dentro de una tarjeta de categoría */
.card-image .mb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.card-image .mb-slide.activo {
  opacity: 1;
  pointer-events: auto;
}

.card-image .mb-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Puntos para navegar manualmente entre fotos (hero y tarjetas) */
.carrusel-puntos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}

.carrusel-punto {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.carrusel-punto.activo {
  background: #fff;
  transform: scale(1.1);
}


.card-info {
  padding: 20px;
  text-align: center;
}

.card-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #222;
}

.link-text {
  font-size: 0.9rem;
  color: #d9534f;
  font-weight: bold;
}

/* Footer */
.footer {
  padding: 40px 6% 25px;
  background-color: #1a1a1a;
  color: white;
  font-size: 0.9rem;
  margin-top: 50px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 560px) {
  .footer-links {
    align-items: flex-start;
    text-align: left;
  }
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-link:hover {
  color: #ff8f8b;
}

.footer-link .ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s, filter 0.15s;
}

.footer-link .ico svg {
  width: 15px;
  height: 15px;
}

.footer-link:hover .ico {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.ico-whatsapp {
  background: #25d366;
}

.ico-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.ico-facebook {
  background: #1877f2;
}

.ico-mail {
  background: #3b82f6;
}

.footer-bottom {
  max-width: 1300px;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Redes sociales ancladas (flotantes) — quedan fijas en pantalla mientras se navega */
.social-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.social-float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-float-btn svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
}

.social-float-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.social-float-whatsapp {
  background: #25d366;
}

.social-float-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-float-facebook {
  background: #1877f2;
}

@media (max-width: 480px) {
  .social-float {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }
  .social-float-btn {
    width: 46px;
    height: 46px;
  }
  .social-float-btn svg {
    width: 23px;
    height: 23px;
  }
}

/* Responsivo para celulares */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-image {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 12px 5%;
  }

  .logo-img {
    height: 46px;
  }

  .logo-flags {
    height: 18px !important;
    top: -6px;
    right: -9px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 13px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
}
