/*-----------------------------------*\
  #styles.css
\*-----------------------------------*/
:root {
  --primary-color: #19416f;
  --primary-hover: #1e3a8a;
  --secondary-color: #00aeef;
  --secondary-hover: #0088cc;
  --accent-color: #ff4500;
  --text-color: #333;
  --text-light: #666;
  --text-white: #fff;
  --border-color: #ddd;
  --bg-light: #f8f8f8;
  --bg-white: #fff;
  --error-color: #ff0000;
  --success-color: #388d38;
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --border-radius-sm: 3px;
  --border-radius-md: 5px;
  --border-radius-lg: 8px;
  --border-radius-round: 50%;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.15);
  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 24px;
  --font-xxl3: 42px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
  --container-max: 1600px;
  --container-narrow: 1200px;
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-laptop: 1024px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

body {
  line-height: 2;
  background-color: var(--bg-white);
  color: var(--text-color);
}

/*-----------------------------------*\
  #MOBILE NAVIGATION
\*-----------------------------------*/

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/*-----------------------------------*\
  #CAROUSEL
\*-----------------------------------*/

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}

.carousel {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: auto;
}

.slide {
  flex: 0 0 100%;
  position: relative;
}

.slide a {
  text-decoration: none;
  display: block;
}

.slide {
  flex: 0 0 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: scale(1.2);
}

/*-----------------------------------*\
  #RESPONSIVE CAROUSEL
\*-----------------------------------*/

.slide img[loading="lazy"] {
  opacity: 0;
}

.slide img[loading="lazy"].loaded {
  opacity: 1;
}

/* Optimización para diferentes densidades de pantalla */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .slide img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -webkit-crisp-edges;
    image-rendering: crisp-edges;
  }
}

@media (min-width: 1440px) {
  .carousel {
    height: auto;
  }

  .slide img {
    max-height: none;
    object-fit: contain;
  }
}

@media (max-width: 1200px) {
  .carousel {
    height: auto;
  }

  .slide img {
    max-height: none;
    object-fit: contain;
  }

  .carousel-dots {
    bottom: 15px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 1024px) {
  .carousel {
    height: auto;
  }

  .slide img {
    max-height: none;
    object-fit: contain;
  }

  .carousel-dots {
    bottom: 12px;
  }

  .carousel-dot {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 834px) {
  .carousel {
    height: auto;
  }

  .slide img {
    max-height: none;
    object-fit: contain;
  }

  .carousel-dots {
    bottom: 10px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .carousel {
    height: auto;
  }

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

  .carousel-dots {
    bottom: 8px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 428px) {
  .carousel {
    height: auto;
  }

  .slide img {
    max-height: none;
    object-fit: contain;
  }

  .carousel-dots {
    bottom: 6px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 375px) {
  .carousel {
    height: auto;
  }

  .slide img {
    max-height: none;
    object-fit: contain;
  }

  .carousel-dots {
    bottom: 5px;
  }

  .carousel-dot {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 320px) {
  .carousel {
    height: auto;
  }

  .slide img {
    max-height: none;
    object-fit: contain;
  }

  .carousel-dots {
    bottom: 4px;
  }

  .carousel-dot {
    width: 4px;
    height: 4px;
  }
}

/*-----------------------------------*\
  #ANNOUNCEMENT-CONTAINER
\*-----------------------------------*/

.announcement-bar {
  margin: 0;
  padding: 0;
}

.announcement-bar-container {
  background-color: #1fa9ff;
  margin: 0;
}

.announcement-bar-content {
  padding: 0;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 1.25px;
  font-weight: 700;
  color: #f8f5f5;
  margin: 0;
}

/* En mobile, la barra de anuncios se oculta */
@media (max-width: 768px) {
  .announcement-bar {
    display: none;
  }
}

/*-----------------------------------*\
  #CONTAINER-PROMOTIONS
\*-----------------------------------*/

.container-promotions {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  overflow-x: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: var(--spacing-lg);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-xl);
}

.section-header-stack {
  display: flex;
  align-items: center;
}

.section-title-heading-h3 {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  text-transform: uppercase;
}

.section-action-link {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--secondary-hover);
  text-decoration: none;
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.section-action-link:hover .link-text {
  transform: translateX(-10px);
}

.section-action-link .fa-arrow-right {
  opacity: 0;
  margin-left: var(--spacing-xs);
  transition: opacity var(--transition-normal),
    transform var(--transition-normal);
}

.section-action-link:hover .fa-arrow-right {
  opacity: 1;
  transform: translateX(5px);
}

/*-----------------------------------*\
  #RESPONSIVE CONTAINER-PROMOTIONS
\*-----------------------------------*/

@media (max-width: 768px) {
  .container-promotions {
    padding: var(--spacing-md) 1rem 0;
    margin: 0 auto;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 375px) {
  .container-promotions {
    padding: var(--spacing-sm) 0.75rem 0;
  }

  .container {
    padding: 0 0.75rem;
  }
}

/*-----------------------------------*\
  #MERCHANDISING-SECTION
\*-----------------------------------*/
.merchandising-section {
  max-width: 92.5rem;
  margin: var(--spacing-xl) auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.merchandising-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-xl);
}

.merchandising-section .product-list-container {
  position: relative;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

/*-----------------------------------*\
  #PRODUCT NAVIGATION ARROWS
\*-----------------------------------*/

.product-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.product-nav-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.product-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.product-nav-arrow.prev {
  left: -25px;
}

.product-nav-arrow.next {
  right: -25px;
}

.product-nav-arrow i {
  font-size: 16px;
}

.merchandising-section .product-list-container:hover .product-nav-arrow.next {
  opacity: 0.8;
  visibility: visible;
}

.merchandising-section .product-list-container .product-nav-arrow.next.visible {
  opacity: 1;
  visibility: visible;
}

/*-----------------------------------*\
  #RESPONSIVE MERCHANDISING-SECTION
\*-----------------------------------*/

@media (max-width: 1024px) {
  .merchandising-section .product-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .merchandising-section {
    padding: 0 var(--spacing-lg);
    margin: var(--spacing-lg) auto;
  }

  .merchandising-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--spacing-sm);
  }

  .merchandising-section .section-title-heading-h3 {
    font-size: var(--font-lg);
  }

  .merchandising-section .section-action-link {
    font-size: var(--font-sm);
  }

  .merchandising-section .product-list-container {
    margin-left: 0;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 10px;
  }

  .merchandising-section .product-list {
    display: flex;
    grid-template-columns: none;
    padding: var(--spacing-md) 0;
    width: max-content;
    justify-content: flex-start;
  }

  .merchandising-section .product-card {
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 160px;
  }

  .product-nav-arrow {
    display: none;
  }

  .go-back-button,
  .go-next-button {
    display: flex;
  }
}

@media (max-width: 480px) {
  .merchandising-section .section-title-heading-h3 {
    font-size: var(--font-md);
  }

  .merchandising-section .product-card {
    flex: 0 0 300px;
    min-width: 100px;
    max-width: 300px;
  }

  .product-card img {
    height: 140px;
  }
}

/*-----------------------------------*\
  #PRODUCT-LIST
\*-----------------------------------*/

.product-list {
  display: flex;
  grid-template-columns: none;
  justify-content: flex-start;
  justify-content: flex-start;
  width: max-content;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0 10px;
}

.product-card {
  position: relative;
  text-align: center;
  background-color: var(--bg-white);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), opacity 0.3s ease,
    transform 0.3s ease;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 230px;
  min-width: 230px;
  max-width: 230px;
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.product-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.product-card .discount {
  position: absolute;
  top: var(--spacing-xs);
  left: var(--spacing-xs);
  background-color: var(--error-color);
  color: var(--text-white);
  padding: var(--spacing-xs);
  border-radius: var(--border-radius-round);
  font-size: var(--font-xs);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: var(--spacing-md);
}

.product-card .brand {
  font-size: var(--font-xs);
  color: #000;
  transition: color var(--transition-slow);
}

.product-card .brand:hover {
  color: var(--secondary-color);
}

.product-card .product-name {
  font-size: var(--font-sm);
  font-weight: 500;
  color: #000;
  transition: color var(--transition-slow);
}

.product-card .product-name:hover {
  color: var(--secondary-color);
}

.product-card .price {
  margin: var(--spacing-md) 0;
}

.product-card .price .original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: var(--font-sm);
  display: block;
}

.product-card .price .discounted {
  font-size: var(--font-lg);
  font-weight: bold;
  color: #000000;
}

.product-card .availability {
  color: var(--success-color);
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.product-card .availability::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success-color);
}

.product-card .availability.out-of-stock {
  color: var(--error-color);
}

.product-card .availability.out-of-stock::before {
  background-color: var(--error-color);
}

.product-card .reviews {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.product-card .reviews span {
  font-size: var(--font-xs);
  color: #000;
  transition: color var(--transition-slow);
}

.product-card .reviews span:hover {
  font-size: 12px;
  color: #269fdb;
}

.product-card .reviews i {
  color: #999999;
  font-size: 12px;
}

.product-card .add-to-cart {
  background-color: var(--secondary-color);
  color: var(--text-white);
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-top: var(--spacing-sm);
  cursor: pointer;
  width: 100%;
  font-size: var(--font-sm);
  font-weight: 550;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-slow);
}

.product-card .add-to-cart:hover {
  background-color: #0088cc;
}

.product-card .quick-view {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--border-color);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-top: var(--spacing-xs);
  cursor: pointer;
  width: 100%;
  font-size: var(--font-sm);
  font-weight: 550;
  border-radius: var(--border-radius-sm);
  transition: color var(--transition-slow), box-shadow var(--transition-normal);
}

.product-card .quick-view:hover {
  color: #000000;
}

/*-----------------------------------*\
  #BANNER
\*-----------------------------------*/

.banner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--spacing-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-image {
  position: relative;
  width: 1600px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.banner-image:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

.item-banner-mid {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.banner-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/*-----------------------------------*\
  #RESPONSIVE BANNER
\*-----------------------------------*/

@media (max-width: 768px) {
  .banner {
    padding: 10px;
  }

  .banner-image {
    max-width: 100%;
    border-radius: 8px;
  }

  .banner-image img {
    height: 200px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .banner-image img {
    height: 150px;
  }
}

/*-----------------------------------*\
  #FOOTER-TOP-COM
\*-----------------------------------*/

.footer-top-com {
  margin-top: 60px !important;
  margin-bottom: 60px !important;
}

.footer-top-com h1 {
  text-align: center;
  font-size: var(--font-xxl3);
  font-weight: 800;
  color: #002e86;
  margin-bottom: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  justify-content: center;
  gap: 20px;
}

.col-m3 {
  flex: 0 0 auto;
  width: 250px;
}

.footer-icon-text-box {
  color: #002e86;
  text-align: center;
  border: 2px solid #ffbe2d;
  border-radius: 8px;
  margin: 0;
  padding: 25px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-icon-text-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
  margin-bottom: 15px;
}

.service-icon i {
  font-size: 2.5rem;
  color: #19416f;
}

.footer-icon-text-box h3 {
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: 800;
  color: #19416f;
}

.footer-icon-text-box p {
  font-size: 13px;
  padding: 0;
  color: #302c2c;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/*-----------------------------------*\
  #BACK-TO-TOP
\*-----------------------------------*/

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-hover);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-round);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal),
    transform var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top i {
  font-size: 24px;
}

.back-to-top:hover {
  background-color: #0056b3;
  transform: translateX(-50%) scale(1.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/*-----------------------------------*\
  #RESPONSIVE SERVICE-LIST
\*-----------------------------------*/

@media (max-width: 768px) {
  .service-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-item {
    justify-content: center;
  }
}

/*-----------------------------------*\
  #RESPONSIVE LOGO, SEARCH BAR AND SIDEBAR
\*-----------------------------------*/

@media screen and (max-width: 800px) {
  .logo h1 {
    font-size: 1.2rem;
  }

  .search-bar {
    flex-direction: column;
    gap: 10px;
  }

  .sidebar {
    width: 200px;
  }
}

/*menu contextual en mobile*/

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .search-bar,
  .login-button,
  .register-button {
    display: none;
  }

  .user-icon {
    display: block;
  }

  .nav-list {
    display: none;
  }

  nav {
    justify-content: space-between;
    padding: var(--spacing-sm);
  }

  .logo span {
    font-size: var(--font-sm);
  }
}

/*-----------------------------------*\
  #RESPONSIVE PRODUCT-LIST
\*-----------------------------------*/

@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .merchandising-section .product-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }

  .carousel {
    height: auto;
  }

  .slide img {
    height: auto;
    object-fit: contain;
  }

  .section-header {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-column {
    padding: var(--spacing-sm);
    border: none !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

/*-----------------------------------*\
  #RESPONSIVE PRODUCT-CARD
\*-----------------------------------*/

@media (max-width: 480px) {
  .product-card {
    padding: var(--spacing-md);
  }

  .product-card img {
    height: 150px;
  }

  .section-title-heading-h3 {
    font-size: var(--font-lg);
  }

  .carousel {
    height: auto;
  }

  .slide img {
    height: auto;
    object-fit: contain;
  }
}

/*-----------------------------------*\
  #RESPONSIVE MERCHANDISING-SECTION AND PRODUCT-LIST
\*-----------------------------------*/

@media (max-width: 768px) {
  .merchandising-section {
    padding: 0 var(--spacing-lg);
  }

  .container-promotions {
    padding: 0 var(--spacing-lg);
  }

  .merchandising-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--spacing-sm);
  }

  .merchandising-section .section-title-heading-h3 {
    font-size: var(--font-lg);
  }

  .merchandising-section .section-action-link {
    font-size: var(--font-sm);
  }

  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/*-----------------------------------*\
  #RESPONSIVE MERCHANDISING-SECTION AND PRODUCT-LIST
\*-----------------------------------*/

@media (max-width: 768px) {
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  .carousel-container,
  .container,
  .container-promotions,
  .merchandising-section {
    width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .merchandising-section .section-title-heading-h3 {
    font-size: var(--font-md);
  }

  .product-card img {
    height: 140px;
  }
}

/*-----------------------------------*\
  #RESPONSIVE ANNOUNCEMENT-BAR
\*-----------------------------------*/

@media (max-width: 768px) {
  .announcement-bar-content {
    font-size: var(--font-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    line-height: 1.4;
    text-align: center;
  }

  .announcement-bar-inner {
    padding: 0;
  }
}

/*-----------------------------------*\
  #RESPONSIVE CAROUSEL-DOTS
\*-----------------------------------*/

@media (max-width: 768px) {
  .carousel-dots {
    display: flex;
  }
}

/*-----------------------------------*\
  #FLOATING ABOUT US BUTTON
\*-----------------------------------*/

.floating-about-us {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(calc(100% - 50px));
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 15px 20px 15px 25px;
  border-radius: 30px 0 0 30px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-md);
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.floating-about-us:hover {
  transform: translateY(-50%) translateX(0);
  background-color: var(--secondary-color);
}

.floating-about-us i {
  font-size: 20px;
}

@media (max-width: 768px) {
  .floating-about-us {
    padding: 10px 15px 10px 20px;
    font-size: var(--font-sm);
  }

  .floating-about-us i {
    font-size: 16px;
  }
}

/*-----------------------------------*\
  #JSR CLUB PROMOTIONAL BANNER
\*-----------------------------------*/

.jsr-promo-banner {
  background: linear-gradient(135deg, #19416f 0%, #00aeef 100%);
  padding: 3rem 0;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.jsr-promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,800 1000,1000"/></svg>');
  background-size: cover;
  z-index: 1;
}

.promo-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  position: relative;
  z-index: 2;
}

.promo-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: crown-glow 2s infinite ease-in-out;
}

.promo-icon i {
  font-size: 2.5rem;
  color: #ffd700;
}

@keyframes crown-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

.promo-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.promo-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.promo-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}

.promo-features i {
  color: #00ff7f;
  font-size: 0.8rem;
}

.promo-cta {
  text-align: center;
}

.promo-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #ff4500, #ffb347);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.promo-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.8s ease;
}

.promo-button:hover::before {
  left: 100%;
}

.promo-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 69, 0, 0.4);
  color: white;
}

.promo-button i {
  transition: transform 0.3s ease;
}

.promo-button:hover i {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .promo-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .promo-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .jsr-promo-banner {
    padding: 2rem 0;
    margin: 2rem 0;
  }

  .promo-container {
    padding: 0 var(--spacing-md);
  }

  .promo-content {
    padding: 1.5rem;
  }

  .promo-text h2 {
    font-size: 1.8rem;
  }

  .promo-features {
    justify-content: center;
  }

  .promo-icon {
    width: 60px;
    height: 60px;
  }

  .promo-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .promo-text h2 {
    font-size: 1.5rem;
  }

  .promo-text p {
    font-size: 1rem;
  }

  .promo-features {
    flex-direction: column;
    gap: 0.8rem;
  }

  .promo-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/*-----------------------------------*\
  #GLOBAL RESPONSIVE FIXES
\*-----------------------------------*/

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

.main-navbar,
.navbar-container,
.desktop-navbar,
.mobile-navbar,
.carousel-container,
.container,
.container-promotions,
.merchandising-section {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (width: 390px) {
  .navbar-container {
    padding: 0.25rem 0.5rem;
  }

  .mobile-top-row {
    gap: 0.25rem;
  }

  .mobile-actions {
    gap: 0.125rem;
  }

  .mobile-search-container {
    padding: 1px;
  }

  .mobile-search-container input {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .mobile-search-btn {
    width: 30px;
    height: 30px;
    padding: 0.25rem;
  }

  .mobile-announcement-bar p {
    font-size: 0.625rem;
    line-height: 1.4;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (width: 375px) {
  .mobile-announcement-bar {
    padding: 0.4rem;
    margin-top: 0.5rem;
  }

  .mobile-announcement-bar p {
    font-size: 0.55rem;
    line-height: 1.5;
    letter-spacing: 0.3px;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (width: 768px) {
  .desktop-navbar {
    display: none;
  }

  .mobile-navbar {
    display: flex;
  }

  .mobile-logo span {
    display: block;
    font-size: 0.875rem;
  }

  .mobile-search-container {
    max-width: 100%;
    margin: 0;
  }
}

@media (width: 820px) {
  .desktop-navbar {
    display: none;
  }

  .mobile-navbar {
    display: flex;
  }

  .navbar-container {
    padding: 0.75rem 1rem;
  }

  .mobile-logo img {
    width: 38px;
    height: 38px;
  }

  .mobile-logo span {
    font-size: 1rem;
  }
}

@media (width: 1366px) {
  .navbar-search {
    max-width: 450px;
  }

  .search-input-container {
    max-width: 450px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .mobile-promotional-header {
    padding: 0.5rem;
  }

  .mobile-promo-content h2 {
    font-size: 1rem;
  }

  .mobile-announcement-bar p {
    font-size: 0.625rem;
    line-height: 1.4;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .navbar-container {
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    margin-bottom: 0;
    padding: 0;
  }

  .carousel {
    height: auto;
  }

  .slide img {
    height: auto;
    object-fit: contain;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container-promotions {
    padding-top: 1rem;
    margin-top: 0;
  }

  .merchandising-section {
    margin: 1rem auto;
    padding: 0 1rem;
  }
}

@media (max-width: 320px) {
  .mobile-promotional-header {
    min-height: auto;
  }

  .mobile-promo-container {
    gap: 0.5rem;
  }

  .navbar-container {
    min-height: auto;
    padding: 0.25rem;
  }

  .mobile-top-row {
    min-height: 36px;
  }

  .mobile-search-row {
    padding: 0.25rem 0;
  }
}

/*-----------------------------------*\
  #RESPONSIVE 768px - 1445px
\*-----------------------------------*/

@media (min-width: 769px) and (max-width: 1445px) {
  body {
    padding-top: 0;
  }

  .announcement-bar-container {
    display: none;
  }

  .main-navbar {
    position: relative;
    z-index: 1000;
  }

  .mobile-promotional-header {
    display: block;
    position: relative;
    z-index: 10;
    width: 100%;
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    );
    color: var(--text-white);
    padding: 1rem;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
  }

  .container {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-xl);
  }

  .carousel {
    height: auto;
  }

  .slide img {
    height: auto;
    object-fit: contain;
  }

  .container-promotions {
    padding: var(--spacing-md) var(--spacing-xl);
    padding-top: 3rem;
  }

  .merchandising-section {
    padding: var(--spacing-md) 0;
    margin-top: -2rem;
  }

  .merchandising-section .product-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .jsr-promo-banner {
    margin: var(--spacing-xl) 0;
  }

  .promo-content {
    padding: var(--spacing-xl) var(--spacing-2xl);
  }

  .promo-text h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .promo-text p {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  }

  .floating-about-us {
    width: 60px;
    height: 60px;
    font-size: var(--font-lg);
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: var(--font-md);
  }
}

@media (min-width: 1025px) {
  .mobile-promotional-header {
    display: none !important;
  }
}

/*-----------------------------------*\
  #PROMOTION-PRODUCT-LIST (igual a PRODUCT-LIST)
\*-----------------------------------*/
.promotion-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.promotion-product-card {
  position: relative;
  text-align: center;
  background-color: var(--bg-white);
  padding: var(--spacing-md);
  border: 1px solid #cccccc;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promotion-product-card:hover {
  box-shadow: var(--shadow-lg);
}

.promotion-product-card .discount {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background-color: var(--error-color);
  color: var(--text-white);
  padding: var(--spacing-xs);
  border-radius: var(--border-radius-round);
  font-size: var(--font-xs);
}

.promotion-product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: var(--spacing-md);
}

.promotion-product-card .brand {
  font-size: var(--font-xs);
  color: #000;
  transition: color var(--transition-slow);
}

.promotion-product-card .brand:hover {
  color: var(--secondary-color);
}

.promotion-product-card .product-name {
  font-size: var(--font-md);
  font-weight: 500;
  color: #000;
  transition: color var(--transition-slow);
}

.promotion-product-card .product-name:hover {
  color: var(--secondary-color);
}

.promotion-product-card .price {
  margin: var(--spacing-md) 0;
}

.promotion-product-card .price .original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: var(--font-md);
  display: block;
}

.promotion-product-card .price .discounted {
  font-size: var(--font-lg);
  font-weight: bold;
  color: #000000;
}

.promotion-product-card .availability {
  color: var(--success-color);
  font-size: var(--font-sm);
}

.promotion-product-card .reviews {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.promotion-product-card .reviews span {
  font-size: var(--font-xs);
  color: #000;
  transition: color var(--transition-slow);
}

.promotion-product-card .reviews span:hover {
  font-size: var(--font-xs);
  color: var(--secondary-color);
}

.promotion-product-card .reviews i {
  color: #999999;
  font-size: var(--font-xs);
}

.promotion-product-card .add-to-cart {
  background-color: var(--secondary-color);
  color: var(--text-white);
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  margin-top: var(--spacing-sm);
  cursor: pointer;
  width: 100%;
  font-size: var(--font-sm);
  font-weight: 550;
  border-radius: var(--border-radius-md);
  transition: background-color var(--transition-slow);
}

.promotion-product-card .add-to-cart:hover {
  background-color: var(--secondary-hover);
}

.promotion-product-card .quick-view {
  background-color: transparent;
  color: var(--secondary-color);
  border: none;
  padding: var(--spacing-xs) var(--spacing-md);
  margin-top: var(--spacing-xs);
  cursor: pointer;
  width: 100%;
  font-size: var(--font-sm);
  font-weight: 550;
  transition: color var(--transition-slow);
}

.promotion-product-card .quick-view:hover {
  color: #000000;
}

@media (max-width: 768px) {
  .promotion-product-list {
    display: flex;
    grid-template-columns: none;
    padding: var(--spacing-md) 0;
    width: max-content;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .promotion-product-card {
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 160px;
  }
  .go-back-button,
  .go-next-button {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .promotion-product-card {
    flex: 0 0 300px;
    min-width: 100px;
    max-width: 300px;
  }
  .promotion-product-card img {
    height: 140px;
  }
}

.merchandising-section {
  position: relative;
}

.go-back-button,
.go-next-button {
  cursor: pointer;
  transition: transform 0.2s ease;
  background: none;
  border: none;
  box-shadow: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.go-back-button {
  left: 5px;
}

.go-next-button {
  right: 5px;
}

.go-back-button:hover,
.go-next-button:hover {
  transform: translateY(-50%) scale(1.1);
  filter: brightness(1.2);
}

.go-back-button:active,
.go-next-button:active {
  transform: translateY(-50%) scale(0.95);
}

.go-back-icon,
.go-next-icon {
  stroke: #93c5fd;
  background: none;
  transition: stroke 0.3s ease;
}

.go-back-button:hover .go-back-icon,
.go-next-button:hover .go-next-icon {
  stroke: #3b82f6;
}

/*-----------------------------------*\
  #RESPONSIVE FOOTER-TOP-COM
\*-----------------------------------*/

@media (max-width: 768px) {
  .footer-top-com h1 {
    font-size: 35px;
  }

  .row {
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .col-m3 {
    width: 100%;
  }

  .footer-icon-text-box {
    margin: 0 auto;
    height: 220px;
    padding: 20px;
  }

  .service-icon i {
    font-size: 2.2rem;
  }

  .footer-icon-text-box h3 {
    font-size: var(--font-xl);
  }

  .footer-icon-text-box p {
    font-size: var(--font-lg);
  }
}

@media (max-width: 480px) {
  .footer-icon-text-box {
    margin: 0 auto;
    height: 160px;
    padding: 12px;
  }

  .service-icon i {
    font-size: 1.8rem;
  }

  .footer-icon-text-box h3 {
    font-size: 15px;
  }

  .footer-icon-text-box p {
    font-size: 11px;
  }
}
