:root {
  --bg-top: #050a1c;
  --bg-mid: #0b1533;
  --bg-bottom: #111f4d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.site-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 10% 15%, rgba(197, 22, 50, 0.22), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(57, 88, 182, 0.24), transparent 36%),
    linear-gradient(175deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bottom) 100%);
}

.hero-carousel {
  overflow: hidden;
  border-radius: 16px;
  background: #0b153300;
}

.hero-carousel-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.hero-slide {
  width: 100%;
  flex: 0 0 100%;
  padding: 20px;
  --border-width: 2px;
  --animated-glow-opacity: 0;
}

.animated-border {
  --border-width: 2px;
  --radius: 16px;
  --border-speed: 8.5s;
  position: relative;
  border-radius: var(--radius);
  border: var(--border-width) solid transparent !important;
  border-color: transparent !important;
  background:
    var(--animated-fill, linear-gradient(160deg, rgba(5, 10, 28, 0.86) 0%, rgba(11, 21, 51, 0.72) 100%)) padding-box,
    var(
      --animated-border-gradient,
      linear-gradient(
        120deg,
        rgba(18, 31, 77, 0.95) 0%,
        rgba(90, 4, 18, 0.98) 22%,
        rgba(242, 245, 255, 0) 40%,
        rgba(34, 56, 120, 0.98) 62%,
        rgba(109, 5, 22, 0.95) 82%,
        rgba(18, 31, 77, 0.95) 100%
      )
    ) border-box;
  background-size:
    100% 100%,
    280% 280%;
  background-position:
    0 0,
    0% 50%;
  isolation: isolate;
  overflow: hidden;
  animation: animatedBorderShift var(--border-speed) linear infinite;
}

.animated-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(197, 22, 50, 0.22), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(57, 88, 182, 0.2), transparent 45%);
  opacity: var(--animated-glow-opacity, 0.75);
  z-index: -1;
  pointer-events: none;
}

.animated-border:hover {
  animation-play-state: paused;
}

.hero-slide {
  --animated-fill: linear-gradient(160deg, #0a1230 0%, #121f4b 100%);
}

#section-shipping-info.animated-border {
  --animated-fill: linear-gradient(160deg, #0a1230 0%, #132553 100%);
  --animated-glow-opacity: 0.18;
}

#section-news-featured.animated-border {
  --animated-fill: linear-gradient(160deg, #0a1230 0%, #132553 100%);
  --animated-glow-opacity: 0.16;
}

#section-shipping-contact.animated-border {
  --animated-fill: #0f1d47;
  --border-width: 3px;
  --border-speed: 3.2s;
  --animated-glow-opacity: 0.28;
  --animated-border-gradient: linear-gradient(
    120deg,
    rgba(242, 245, 255, 0.98) 0%,
    rgba(197, 22, 50, 1) 22%,
    rgba(57, 88, 182, 1) 52%,
    rgba(242, 245, 255, 0.98) 74%,
    rgba(197, 22, 50, 1) 100%
  );
}

.meeting-map.animated-border {
  --animated-fill: linear-gradient(160deg, #0a1230 0%, #132553 100%);
  --animated-glow-opacity: 0.12;
}

.hero-media {
  width: 100%;
  height: 360px;
}

.flash-slider {
  overflow: hidden;
}

.news-featured-slider {
  overflow: hidden;
}

.news-featured-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.news-featured-slide {
  width: 100%;
  flex: 0 0 100%;
}

.flash-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.flash-slide {
  width: 100%;
  flex: 0 0 100%;
}

.flash-offer {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(242, 245, 255, 0.2);
  min-height: 330px;
}

.flash-image {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.flash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 28, 0.88) 0%, rgba(5, 10, 28, 0.56) 52%, rgba(5, 10, 28, 0.2) 100%);
}

.flash-content {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.2rem;
}

.flash-badge {
  display: inline-flex;
  border: 1px solid rgba(242, 245, 255, 0.35);
  border-radius: 999px;
  background: rgba(197, 22, 50, 0.25);
  color: #f2f5ff;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meeting-map {
  width: 100%;
  height: 340px;
  background-color: rgba(11, 21, 51, 0.65);
}

.meeting-map .leaflet-tile {
  filter: grayscale(1) contrast(1.08) brightness(0.9);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 245, 255, 0.32);
  transition: all 180ms ease;
}

.hero-dot.is-active {
  width: 26px;
  background: #f2f5ff;
}

.hero-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 245, 255, 0.24);
  border-radius: 999px;
  background: rgba(11, 21, 51, 0.72);
  color: #f2f5ff;
  transition: border-color 180ms ease, transform 180ms ease;
}

.hero-nav-btn:hover {
  border-color: rgba(197, 22, 50, 0.9);
  background: rgba(197, 22, 50, 0.22);
  transform: translateY(-1px);
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(242, 245, 255, 0.16);
  border-radius: 1.2rem;
  background: rgba(11, 21, 51, 0.72);
  box-shadow: 0 18px 36px rgba(2, 5, 16, 0.4);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(2, 5, 16, 0.56);
}

.product-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.product-card > div {
  padding: 1rem 1rem 1.2rem;
}

#float-whatsapp {
  position: fixed;
  right: 1rem;
  top: 58vh;
  z-index: 70;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: whatsappPulse 2.2s ease-in-out infinite;
}

.atropos {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp 650ms ease forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animatedBorderShift {
  0% {
    background-position:
      0 0,
      0% 50%;
  }
  100% {
    background-position:
      0 0,
      200% 50%;
  }
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.48), 0 18px 36px rgba(2, 5, 16, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 18px 36px rgba(2, 5, 16, 0.45);
  }
}

@media (max-width: 767px) {
  .hero-media {
    height: 280px;
  }

  .flash-offer,
  .flash-image {
    min-height: 300px;
    height: 300px;
  }

  .meeting-map {
    height: 300px;
  }

  #float-whatsapp {
    right: 0.75rem;
    top: 60vh;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-border {
    animation: none;
  }
}

@media (min-width: 768px) {
  #float-whatsapp {
    right: 1.5rem;
    width: 64px;
    height: 64px;
  }
}
