

/*--------------------------------------------------------------
  1. TIPOGRAFÍAS Y FUENTES
  - Tipografía secundaria oficial: Anton (cargada localmente desde fonts/Anton-Regular.ttf,
    extraída del manual de identidad de marca).
  - Tipografía primaria oficial: Trobika. Dado que los archivos .ttf/.otf de Trobika no están
    disponibles en los recursos suministrados, se utiliza como sustituto visual armónico
    'Outfit' y 'Montserrat' de Google Fonts, manteniendo el estilo geométrico y limpio.
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;1,600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Anton';
  src: url('fonts/Anton-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------------------------------
  2. PALETA DE COLORES Y VARIABLES CSS
--------------------------------------------------------------*/
:root {
  /* Colores oficiales de marca Autoservicio El Negro */
  --brand-red          : #DB0102;
  --brand-navy         : #011131;
  --brand-gray         : #8A9099;
  --brand-gray-light   : #D9DDE2;
  --brand-yellow       : #FCE300;
  --brand-white        : #FFFFFF;
  --brand-bg-light     : #F8F9FA;
  --brand-red-dark     : #B50001;
  --brand-navy-light   : #062157;

  /* Asignación estructural del tema */
  --primary-color      : var(--brand-red);
  --secondary-color    : var(--brand-navy);
  --accent-color       : var(--brand-yellow);
  --dark-color         : var(--brand-navy);
  --light-dark-color   : var(--brand-gray);
  --light-color        : var(--brand-white);
  --grey-color         : var(--brand-gray-light);
  --light-grey-color   : var(--brand-bg-light);
  --light-primary-color: #FDEDED;

  /* Tipografías */
  --body-font          : 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --heading-font       : 'Anton', Impact, sans-serif;
  --primary-font       : var(--body-font);
  --secondary-font     : var(--heading-font);

  /* Dimensiones estructurales */
  --header-height      : 140px;
  --header-height-min  : 75px;
}

@media screen and (max-width: 768px) {
  :root {
    --header-height: 90px;
  }
}

/*--------------------------------------------------------------
  3. ESTILOS GENERALES Y BOOTSTRAP OVERRIDES
--------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  color: #333842;
  background-color: var(--brand-white);
  letter-spacing: 0.01em;
  overflow-x: clip;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--heading-font);
  color: var(--brand-navy);
  letter-spacing: 0.03em;
  font-weight: 400;
}

.text-navy {
  color: var(--brand-navy) !important;
}

.bg-navy {
  background-color: var(--brand-navy) !important;
}

.text-red {
  color: var(--brand-red) !important;
}

.bg-red {
  background-color: var(--brand-red) !important;
}

.text-yellow {
  color: var(--brand-yellow) !important;
}

.bg-yellow {
  background-color: var(--brand-yellow) !important;
}

.border-navy {
  border-color: var(--brand-navy) !important;
}

.border-red {
  border-color: var(--brand-red) !important;
}

a {
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

/* Botones principales de marca */
.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--brand-red);
  --bs-btn-border-color: var(--brand-red);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--brand-red-dark);
  --bs-btn-hover-border-color: var(--brand-red-dark);
  --bs-btn-focus-shadow-rgb: 219, 1, 2;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--brand-red-dark);
  font-family: var(--body-font);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary {
  --bs-btn-color: var(--brand-red);
  --bs-btn-border-color: var(--brand-red);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--brand-red);
  --bs-btn-hover-border-color: var(--brand-red);
  font-family: var(--body-font);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-navy {
  background-color: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
  font-weight: 600;
}
.btn-navy:hover {
  background-color: var(--brand-navy-light);
  color: #ffffff;
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--brand-navy);
  border: 2px solid var(--brand-navy);
  font-weight: 600;
}
.btn-outline-navy:hover {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-yellow {
  background-color: var(--brand-yellow);
  color: var(--brand-navy);
  border: 1px solid var(--brand-yellow);
  font-weight: 700;
}
.btn-yellow:hover {
  background-color: #ebd300;
  color: var(--brand-navy);
}

.btn-whatsapp-cta {
  background-color: #25D366;
  color: #ffffff;
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.btn-whatsapp-cta:hover {
  background-color: #1ebd5b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Badges */
.badge.bg-danger {
  background-color: var(--brand-red) !important;
}

.badge.bg-navy {
  background-color: var(--brand-navy) !important;
}

.badge.bg-yellow {
  background-color: var(--brand-yellow) !important;
  color: var(--brand-navy) !important;
}

/*--------------------------------------------------------------
  4. PRELOADER ORIGINAL DE FOODMART
--------------------------------------------------------------*/
.preloader-wrapper {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-wrapper .preloader {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  animation: animation 1.2s infinite ease-in-out;
  position: relative;
}

.preloader:before,
.preloader:after {
  content: '';
  position: absolute;
  top: 0;
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  animation: animation 1.2s infinite ease-in-out;
}

.preloader {
  animation-delay: -0.16s;
}

.preloader:before {
  left: -3.5em;
  animation-delay: -0.32s;
}

.preloader:after {
  left: 3.5em;
}

@keyframes animation {
  0%, 80%, 100% {
    box-shadow: 0 2em 0 -1em var(--brand-red);
  }
  40% {
    box-shadow: 0 2em 0 0 var(--brand-navy);
  }
}

/*--------------------------------------------------------------
  5. BARRA SUPERIOR Y ENCABEZADO
--------------------------------------------------------------*/
.top-bar {
  background-color: var(--brand-navy);
  color: var(--brand-gray-light);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: var(--brand-gray-light);
}

.top-bar a:hover {
  color: var(--brand-yellow);
}

.header-main {
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.brand-logo-img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.02);
}

.nav-link {
  font-family: var(--body-font);
  font-weight: 600;
  color: var(--brand-navy);
  padding: 0.6rem 1rem !important;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-red) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--brand-red);
  border-radius: 2px;
}

/* Header badge promo */
.header-phone-badge {
  background: var(--brand-bg-light);
  border: 1px solid var(--brand-gray-light);
  border-radius: 50px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/*--------------------------------------------------------------
  6. HERO PRINCIPAL (ADAPTADO DE FOODMART)
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f9fc 0%, #edf1f7 100%);
}

/* Hero Banner 100% Ancho */
.banner-ad {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(1, 17, 49, 0.08);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.banner-ad.main-hero-banner {
  min-height: 520px;
  background-color: var(--brand-navy);
  width: 100%;
}

.hero-slide {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(1, 17, 49, 0.92) 0%, rgba(1, 17, 49, 0.78) 55%, rgba(1, 17, 49, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: 50px 60px;
  box-sizing: border-box;
}

.hero-slogan {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.18;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slogan span.highlight-yellow {
  color: var(--brand-yellow);
}

.hero-tagline {
  font-family: var(--body-font);
  font-size: 1.15rem;
  color: var(--brand-gray-light);
  font-weight: 400;
  line-height: 1.6;
}

/* Flechas de navegación del Hero Carrusel */
.hero-swiper-prev,
.hero-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  user-select: none;
}

.hero-swiper-prev {
  left: 20px;
}

.hero-swiper-next {
  right: 20px;
}

.hero-swiper-prev:hover,
.hero-swiper-next:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(219, 1, 2, 0.35);
}

.hero-swiper-prev:focus-visible,
.hero-swiper-next:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .hero-swiper-prev {
    left: 10px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .hero-swiper-next {
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* Swiper Navigation Buttons */
.swiper-prev,
.swiper-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand-white);
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(1, 17, 49, 0.08);
  transition: all 0.25s ease-in-out;
  padding: 0;
  user-select: none;
  outline: none;
}

.swiper-prev:hover,
.swiper-next:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(219, 1, 2, 0.25);
}

.swiper-prev:focus-visible,
.swiper-next:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 2px;
}

.swiper-prev:active,
.swiper-next:active {
  transform: translateY(0);
  background-color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.swiper-prev.swiper-button-disabled,
.swiper-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--brand-gray-light);
  color: var(--brand-gray);
  box-shadow: none;
  transform: none;
}

/* Swiper Pagination styling */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--brand-white);
  border: 2px solid var(--brand-navy);
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-pagination-bullet-active {
  background: var(--brand-yellow) !important;
  border-color: var(--brand-navy);
  opacity: 1;
  width: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/*--------------------------------------------------------------
  7. SECCIÓN DE CATEGORÍAS (CATEGORY CAROUSEL)
--------------------------------------------------------------*/
.category-item-card {
  background: #ffffff;
  border: 1px solid #ECEFF2;
  border-radius: 20px;
  padding: 30px 15px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(1, 17, 49, 0.03);
  cursor: pointer;
  display: block;
}

.category-item-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-red);
  box-shadow: 0 16px 30px rgba(219, 1, 2, 0.12);
}

.category-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.category-item-card:hover .category-icon-wrapper {
  background-color: #FDEDED;
}

.category-icon-img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.category-item-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  margin: 0;
  transition: color 0.3s ease;
}

.category-item-card:hover .category-item-title {
  color: var(--brand-red);
}

.category-item-badge {
  font-size: 0.75rem;
  color: var(--brand-gray);
  margin-top: 4px;
  display: block;
}

/*--------------------------------------------------------------
  8. SECCIÓN DE OFERTAS Y PROMOCIONES (#OFERTAS)
--------------------------------------------------------------*/
.offers-section {
  background-color: var(--brand-bg-light);
  position: relative;
}

.offer-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E6EBF0;
  box-shadow: 0 6px 20px rgba(1, 17, 49, 0.04);
  transition: all 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-red);
  box-shadow: 0 16px 35px rgba(219, 1, 2, 0.12);
}

.offer-thumb-box {
  height: 220px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  border-bottom: 1px solid #f0f3f6;
}

.offer-thumb-img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.offer-card:hover .offer-thumb-img {
  transform: scale(1.06);
}

.offer-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--brand-red);
  color: #ffffff;
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 8px rgba(219, 1, 2, 0.3);
  z-index: 2;
}

.offer-validity-tag {
  font-size: 0.78rem;
  color: var(--brand-gray);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Gran banner promocional */
.promo-highlight-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #031c4f 60%, var(--brand-red) 100%);
  border-radius: 24px;
  color: #ffffff;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(1, 17, 49, 0.15);
}

/*--------------------------------------------------------------
  9. CATÁLOGO GENERAL DE PRODUCTOS (#PRODUCTOS)
--------------------------------------------------------------*/
.catalog-section {
  background: linear-gradient(135deg, #f7f9fc 0%, #edf1f7 100%);

}

.catalog-search-box {
  position: relative;
  max-width: 480px;
}

.catalog-search-box input {
  padding-left: 45px;
  height: 48px;
  border-radius: 50px;
  border: 1px solid var(--brand-gray-light);
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(1, 17, 49, 0.03);
}

.catalog-search-box input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(219, 1, 2, 0.15);
}

.catalog-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--brand-gray);
  pointer-events: none;
}

/* Botones de filtro de categorías */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-category-btn {
  background: var(--brand-bg-light);
  color: var(--brand-navy);
  border: 1px solid var(--brand-gray-light);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}

.catalog-category-btn:hover {
  background: #E8ECEF;
  color: var(--brand-navy);
}

.catalog-category-btn.active {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: 0 4px 12px rgba(1, 17, 49, 0.2);
}

/* Tarjetas de producto */
.product-card {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #ECEFF2 !important;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(1, 17, 49, 0.09) !important;
  border-color: var(--brand-gray-light) !important;
}

.product-thumb-box {
  height: 200px;
  background-color: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
}

.product-thumb-img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb-img {
  transform: scale(1.05);
}

/* Bloques de Categoría en el Catálogo */
.category-block {
  position: relative;
}

.category-block-header {
  border-bottom: 2px solid #ECEFF2;
  padding-bottom: 12px;
}

.btn-cat-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-navy);
  background-color: var(--brand-white);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 6px rgba(1, 17, 49, 0.06);
}

.btn-cat-nav:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
  transform: scale(1.06);
}

.btn-cat-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--brand-gray-light);
  color: var(--brand-gray);
}

.category-products-swiper {
  width: 100%;
  overflow: hidden;
  padding: 8px 0 20px 0;
}

.product-slide-item {
  height: auto;
  display: flex;
  align-items: stretch;
}

/* Grilla en Escritorio (>= 992px) */
@media (min-width: 992px) {
  .category-slider-nav {
    display: none !important;
  }
  .category-products-swiper {
    overflow: visible !important;
  }
  .category-products-swiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    transform: none !important;
    width: 100% !important;
  }
  .category-products-swiper .swiper-slide {
    width: auto !important;
    height: 100% !important;
    margin: 0 !important;
  }
}

/*--------------------------------------------------------------
  10. PRESENTACIÓN DE LA EMPRESA (NOSOTROS - #NOSOTROS)
--------------------------------------------------------------*/
.about-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-bg-light) 100%);
}

.about-feature-box {
  background: #ffffff;
  border: 1px solid #ECEFF2;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 17, 49, 0.02);
}

.about-feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--brand-red);
  box-shadow: 0 12px 25px rgba(219, 1, 2, 0.08);
}

.about-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: #FDEDED;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(1, 17, 49, 0.12);
}

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

.about-badge-float {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border-left: 5px solid var(--brand-yellow);
}

/*--------------------------------------------------------------
  11. NOVEDADES Y CONSEJOS (#NOVEDADES)
--------------------------------------------------------------*/
.news-section {
  background-color: #ffffff;
}

.news-card {
  border: 1px solid #ECEFF2;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 17, 49, 0.03);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(1, 17, 49, 0.08);
  border-color: var(--brand-gray-light);
}

.news-card-img-box {
  height: 200px;
  overflow: hidden;
}

.news-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img-box img {
  transform: scale(1.05);
}

/* Reproductor de Video para Tarjetas de Novedades */
.news-card-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  max-height: 480px;
  background-color: var(--brand-navy);
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.video-player-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000819;
}

.custom-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Botón flotante central de Play */
.video-overlay-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand-red);
  border: 3px solid var(--brand-yellow);
  color: #ffffff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(219, 1, 2, 0.5);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  padding: 0;
  padding-left: 4px;
}

.video-overlay-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--brand-red-dark);
  box-shadow: 0 10px 30px rgba(219, 1, 2, 0.7);
}

.video-overlay-play-btn:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 4px;
}

.video-player-container.is-playing .video-overlay-play-btn {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Barra de Controles Personalizados */
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 12px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(1, 17, 49, 0.6) 30%, rgba(1, 17, 49, 0.96) 100%);
  z-index: 6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-player-container.is-playing.is-inactive .custom-video-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Línea de tiempo y barra de progreso */
.video-progress-container {
  width: 100%;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
  user-select: none;
}

.video-progress-bar {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: visible;
  transition: height 0.15s ease;
}

.video-progress-container:hover .video-progress-bar {
  height: 7px;
}

.video-progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  width: 0%;
}

.video-progress-filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--brand-red);
  border-radius: 4px;
  width: 0%;
}

.video-progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: var(--brand-yellow);
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.video-progress-container:hover .video-progress-handle {
  transform: translate(-50%, -50%) scale(1);
}

/* Botones de Control */
.video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.v-btn:hover {
  color: var(--brand-yellow);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.v-btn:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 1px;
}

.video-time-display {
  font-size: 0.78rem;
  color: #ffffff;
  opacity: 0.9;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Control deslizante de volumen */
.video-volume-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.volume-slider-wrapper {
  width: 55px;
  display: flex;
  align-items: center;
}

.v-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.v-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-yellow);
  cursor: pointer;
  border: 1px solid var(--brand-navy);
  transition: transform 0.15s ease;
}

.v-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.v-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-yellow);
  cursor: pointer;
  border: 1px solid var(--brand-navy);
}

/* Indicador de estado del video */
.video-status-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  pointer-events: none;
}

.video-badge-state {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(1, 17, 49, 0.85);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.video-player-container.is-playing .video-badge-state {
  opacity: 0;
}

/*--------------------------------------------------------------
  12. UBICACIÓN Y HORARIOS (#UBICACION)
--------------------------------------------------------------*/
.location-section {
  background-color: var(--brand-bg-light);
}

.location-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  border: 1px solid #ECEFF2;
  box-shadow: 0 6px 25px rgba(1, 17, 49, 0.04);
}

.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(1, 17, 49, 0.06);
  border: 1px solid var(--brand-gray-light);
  
  
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

/*--------------------------------------------------------------
  13. BOTÓN FLOTANTE DE WHATSAPP
--------------------------------------------------------------*/
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  font-size: 32px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.floating-whatsapp:hover {
  background-color: #1ebd5b;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.5;
  z-index: -1;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
  14. PIE DE PÁGINA (FOOTER)
--------------------------------------------------------------*/
.main-footer {
  background-color: var(--brand-navy);
  color: #c0c6d0;
  font-size: 0.95rem;
}

.main-footer h5 {
  font-family: var(--heading-font);
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.main-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--brand-red);
}

.main-footer a {
  color: #c0c6d0;
  text-decoration: none;
  transition: color 0.25s ease;
}

.main-footer a:hover {
  color: var(--brand-yellow);
}

.footer-bottom {
  background-color: #000c24;
  color: #7b8595;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom a {
  color: #9aa5b5;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/*--------------------------------------------------------------
  15. RESPONSIVE Y MEDIA QUERIES (360px, 390px, 768px, 1024px, 1440px)
--------------------------------------------------------------*/
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

.swiper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
  .location-section .badge {
    white-space: normal;
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 24px 16px;
  }
  .hero-slogan {
    font-size: 2.1rem;
    line-height: 1.2;
  }
  .banner-ad.main-hero-banner {
    min-height: 420px;
    border-radius: 18px;
  }
  .hero-slide {
    min-height: 420px;
    border-radius: 18px;
  }
  .category-products-swiper {
    padding: 4px 0 16px 0;
  }
  .product-thumb-box {
    height: 140px;
  }
  .product-thumb-img {
    max-height: 110px;
  }
  .product-card .card-body {
    padding: 14px;
  }
  .product-card .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
  }
  .product-card .card-text {
    font-size: 0.8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
  }
  .product-card .price-info {
    margin-bottom: 10px !important;
  }
  .product-card .btn {
    font-size: 0.8rem;
    padding: 7px 10px;
  }
  .category-item-card {
    padding: 20px 10px;
  }
  .category-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  .category-icon-img {
    max-width: 32px;
    max-height: 32px;
  }
  .category-item-title {
    font-size: 1rem;
  }
  .floating-whatsapp {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  /* Prevenir desbordamiento horizontal en pantallas pequeñas */
  .promo-highlight-banner {
    padding: 24px 16px !important;
    border-radius: 18px;
  }

  .promo-highlight-banner .btn {
    white-space: normal;
    word-break: break-word;
    font-size: 0.95rem;
    padding: 10px 16px !important;
    width: 100%;
    justify-content: center;
  }

  .news-card-video-box {
    aspect-ratio: 9 / 15;
    max-height: 440px;
  }
}

@media (max-width: 480px) {
  .hero-content .d-flex.flex-wrap.gap-3 a.btn {
    width: 100%;
    justify-content: center;
  }

  #form-contacto-negro .btn-whatsapp-cta,
  #form-contacto-negro button[type="submit"] {
    width: 100%;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-content {
    padding: 30px;
  }
}

@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1440px;
  }
}

.sitio-rapport{
  color: #7b8595 !important;
}

.bi-instagram {
    color: #E1306C;
    transition: all .3s ease;
}

.bi-facebook {
    color: #1877F2;
    transition: all .3s ease;
}

.bi-instagram:hover,
.bi-facebook:hover {
    transform: translateY(-3px);
    opacity: .75;
}