/* =========================================
   RESET
========================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================
   VARIABLES
========================================= */

:root {
  --color-principal: #2563eb;
  --color-texto: #333;
  --color-texto-secundario: #666;
}
/* =========================================
   GENERAL
========================================= */

body {
  font-family: "Inter", sans-serif;
  background: #f3f4f6;
  overflow-x: hidden;
}

/* =========================================
   HEADER
========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 18px;

  background: #ffffff;

  padding: 18px 30px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  transition: padding 0.25s ease;
}

header.header-compacto {
  padding: 8px 30px;
}

header.header-compacto .logo img {
  height: 70px;
}

header.header-compacto .buscador input {
  padding: 9px 16px;
  font-size: 15px;
}

header.header-compacto .menu-pc {
  gap: 18px;
}

header.header-compacto .menu-pc i {
  font-size: 1.5rem;
}

header.header-compacto .menu-pc a {
  font-size: 14px;
}

header .menu-pc {
  transition: gap 0.25s ease;
}

header .menu-pc i,
header .menu-pc a {
  transition:
    font-size 0.25s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 120px;
  display: block;

  transition: height 0.25s ease;
}

.buscador {
  flex: 1;
}

.buscador input {
  width: 100%;

  padding: 12px 18px;

  border: 1px solid #dcdcdc;

  border-radius: 10px;

  font-size: 16px;

  outline: none;

  /*transition: 0.2s;*/
  transition: 0.25s ease;
}

.buscador input:focus {
  border-color: var(--color-principal);

  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.15);
}
.menu-pc {
  display: flex;
  gap: 25px;
  white-space: nowrap;
}

.menu-pc i {
  font-size: 1.8rem;
  color: #25d366;
  transition: 0.2s;
}

.menu-pc i:hover {
  transform: scale(1.1);
}
.menu-pc a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-texto);
  font-size: 15px;
  transition: 0.2s;
}

.menu-pc a:hover {
  color: var(--color-principal);
}
.btn-menu {
  display: none;
  width: 50px;
  height: 50px;

  border: none;

  border-radius: 10px;

  background: white;

  cursor: pointer;

  font-size: 28px;

  transition: 0.2s;

  position: relative;

  z-index: 1000;
}

.btn-menu:hover {
  background: #efefef;
}

.menu-lateral button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.menu-lateral .fa-whatsapp {
  color: #25d366;
}

.menu-pc .fa-instagram,
.menu-lateral .fa-instagram {
  color: #e4405f;
}

.menu-pc .fa-location-dot,
.menu-lateral .fa-location-dot {
  color: #ff0000;
}

.menu-pc .fa-clock,
.menu-lateral .fa-clock {
  color: #2563eb;
}

.menu-lateral hr {
  margin: 18px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.menu-lateral i {
  font-size: 18px;
  width: 20px;
}
/* =========================================
   MAIN
========================================= */

main {
  max-width: 1400px;

  margin: auto;

  padding: 30px;
}
/* =========================================
   CATEGORÍAS
========================================= */

.categorias {
  display: flex;

  gap: 28px;

  margin-bottom: 30px;

  overflow: visible;
}

.categorias button {
  background: none;
  border: none;

  padding: 8px 0;

  cursor: pointer;

  font-size: 1rem;
  font-weight: 500;

  color: var(--color-texto-secundario);

  transition: 0.2s;
}

.categorias button:hover {
  color: var(--color-principal);
}

.categorias button.activa {
  color: var(--color-principal);

  border-bottom: 3px solid var(--color-principal);

  font-weight: 600;
}

/* =========================================
   CONTADOR
========================================= */

.contador-resultados {
  margin-bottom: 20px;

  color: #6b7280;

  font-size: 0.95rem;

  font-weight: 500;
}

/* =========================================
   BARRA SUPERIOR
========================================= */

.barra-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 25px;
}

.contador-resultados {
  margin: 0;
  font-size: 16px;
  color: #666;
}

#ordenar {
  padding: 10px 14px;

  border: 1px solid #ddd;
  border-radius: 8px;

  font-size: 15px;
}
/* =========================================
   PRODUCTOS
========================================= */

.productos {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

  gap: 25px;
}
/* =========================================
   TARJETAS
========================================= */

.tarjeta {
  background: white;

  border-radius: 12px;
  padding: 18px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tarjeta:hover {
  transform: translateY(-6px);

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.tarjeta:hover > img {
  transform: scale(1.04);
}

.tarjeta img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 15px;
  margin-bottom: 15px;
  transition: transform 0.25s ease;
}

/* =========================================
   CARRUSEL DE PRODUCTOS
========================================= */

.carrusel-producto {
  position: relative;
  width: 100%;
  height: 210px;
}
/* Contenedor que permite ocultar las imágenes fuera del área visible */
.carrusel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Pista horizontal del carrusel */
.carrusel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

/* Cada imagen ocupa exactamente el espacio visible */
.carrusel-slide {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  flex: 0 0 100%;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

.carrusel-slide img {
  width: auto;
  max-width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 15px;
  margin-bottom: 15px;
  box-sizing: border-box;
}
/* -----------------------------------------
   Flechas
----------------------------------------- */

.carrusel-control {
  border: none;
  cursor: pointer;
  z-index: 2;
}

.carrusel-anterior,
.carrusel-siguiente {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.85);

  color: #333;

  font-size: 24px;
  line-height: 1;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

  opacity: 0;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.carrusel-anterior {
  left: 4px;
}

.carrusel-siguiente {
  right: 4px;
}

/* Mostrar flechas al pasar sobre la tarjeta */

.tarjeta:hover .carrusel-anterior,
.tarjeta:hover .carrusel-siguiente {
  opacity: 1;
}

/* -----------------------------------------
   Indicadores
----------------------------------------- */

.carrusel-indicadores {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 4px;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 5px;

  z-index: 2;
}

.carrusel-punto {
  width: 7px;
  height: 7px;

  padding: 0;

  border-radius: 50%;

  background: #cfcfcf;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.carrusel-punto.activo {
  background: #2563eb;
  transform: scale(1.25);
}

.contenido-tarjeta {
  padding: 0 18px 18px;
}

.tarjeta h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 45px;
}

.marca {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;

  margin-bottom: 10px;
}

.precio {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.9rem;
  font-weight: bold;
  color: #222;
  white-space: nowrap;
}
.codigo {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}
/* =========================================
   MENU LATERAL
========================================= */
.menu-lateral {
  position: fixed;
  top: 0;
  right: -320px;

  width: 300px;
  height: 100vh;

  background: white;

  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);

  padding: 25px;

  transition: 0.3s;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.menu-lateral.abierto {
  right: 0;
}

.menu-lateral h2 {
  margin-bottom: 20px;
}

#categoriasMenu {
  flex: 1;

  overflow-y: auto;
}

.menu-lateral ul {
  list-style: none;
}

.menu-lateral li {
  margin: 12px 0;
  cursor: pointer;
}

.menu-lateral button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;

  border: none;
  border-radius: 8px;

  background: #f3f4f6;

  cursor: pointer;
}
/* =========================================
   OVERLAY
========================================= */

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s;

  z-index: 900;
}

.overlay.activo {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   MODAL UBICACIÓN
========================================= */

.modal {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  z-index: 2000;

  justify-content: center;
  align-items: center;

  padding: 20px;
}

.modal.abierto {
  display: flex;
}

.modal-contenido {
  background: white;

  width: 100%;
  max-width: 900px;
  max-height: 90vh;

  overflow-y: auto;

  border-radius: 16px;

  padding: 30px;

  position: relative;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.cerrar-modal {
  position: absolute;

  top: 18px;
  right: 18px;
  z-index: 20;

  width: 38px;
  height: 38px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;

  background: #f3f4f6;

  color: #666;

  font-size: 26px;

  cursor: pointer;

  transition: 0.2s;
}

.cerrar-modal:hover {
  background: #e5e7eb;

  color: #111;

  transform: rotate(90deg);
}

.modal-contenido h2 {
  font-size: 2rem;

  margin-bottom: 28px;

  display: flex;
  align-items: center;

  gap: 10px;
}

.modal-contenido h2 i {
  color: #ff3b30;
}

.mapa-modal {
  width: 100%;

  display: block;

  border-radius: 12px;

  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.18);
}

.direccion {
  margin-bottom: 25px;
}

.direccion strong {
  display: block;

  margin-bottom: 8px;
}

.horarios {
  margin-bottom: 25px;
}

.horarios h3 {
  margin-bottom: 10px;
}

.btn-maps {
  display: block;

  width: 100%;

  text-align: center;

  background: var(--color-principal);

  color: white;

  text-decoration: none;

  padding: 14px;

  border-radius: 10px;

  font-weight: 600;

  transition: 0.2s;
}

.btn-maps:hover {
  background: #1d4ed8;
}

.modal-grid {
  display: grid;

  grid-template-columns: 1.4fr 1fr;

  gap: 30px;

  align-items: start;
}

.info-modal {
  display: flex;

  flex-direction: column;

  gap: 22px;
}

.info-modal hr {
  border: none;

  border-top: 1px solid #e5e7eb;
}

.direccion h3,
.horarios h3 {
  margin-bottom: 10px;
}

.direccion p,
.horarios p {
  color: #555;

  line-height: 1.6;
}

/* =========================================
   MODAL PRODUCTO
========================================= */

.modal-producto {
  max-width: 900px;
}

.producto-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}

.producto-imagen img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.producto-info h2 {
  margin-bottom: 12px;
}

.modal-marca {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 20px;
}

.modal-precio {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: bold;
  margin: 25px 0;
}

.modal-botones {
  display: flex;
  gap: 15px;
}

.modal-botones button {
  flex: 1;

  padding: 14px;

  border: none;

  border-radius: 10px;

  cursor: pointer;

  font-size: 0.95rem;

  font-weight: 600;

  transition: 0.2s;
}

#btnWhatsappProducto {
  background: #25d366;
  color: white;
}

#btnCompartir {
  background: #2563eb;
  color: white;
}

.modal-botones button:hover {
  filter: brightness(0.92);
}

/* =========================================
   CARRUSEL DEL MODAL DE PRODUCTO
========================================= */

.producto-imagen {
  position: relative;
}

/* -----------------------------------------
   Flechas
----------------------------------------- */

.modal-carrusel-control {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);

  color: #555;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  z-index: 5;
}
.modal-carrusel-control.oculto {
  display: none !important;
}

.modal-carrusel-anterior {
  left: 10px;
}

.modal-carrusel-siguiente {
  right: 10px;
}

/* -----------------------------------------
   Indicadores
----------------------------------------- */

.modal-carrusel-indicadores {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 15px;

  display: flex;
  justify-content: center;

  gap: 6px;

  z-index: 5;
}

.modal-carrusel-punto {
  width: 8px;
  height: 8px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: #ccc;

  cursor: pointer;
}

.modal-carrusel-punto.activo {
  background: #2563eb;

  transform: scale(1.25);
}

/* =========================================
   TRACK DEL CARRUSEL DEL MODAL
========================================= */

.modal-carrusel-viewport {
  width: 100%;
  height: 100%;

  overflow: hidden;
  position: relative;
}

.modal-carrusel-track {
  display: flex;

  width: 100%;
  height: 100%;

  transition: transform 0.3s ease;
}

.modal-carrusel-slide {
  min-width: 100%;
  height: 100%;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-carrusel-slide img {
  width: 100%;
  max-height: 380px;

  object-fit: contain;
}

/* =========================================
   RESPONSIVE
========================================= */

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

  .btn-menu {
    display: block;
  }
  main {
    padding: 15px;
  }
  .tarjeta {
    min-width: 0;
    padding: 12px;
  }
  .tarjeta > img {
    padding: 8px;
  }

  .carrusel-slide img {
    width: auto;
    max-width: 100%;
    height: 210px;
    object-fit: contain;
    padding: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
  }

  .productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .producto-info h2 {
    font-size: 1.7rem;
  }
  /* Categorías en celulares */
  .categorias {
    display: none;
  }
  .precio {
    font-size: 1.1rem;
  }
  header {
    display: grid;

    grid-template-columns: 1fr auto;

    grid-template-areas:
      "logo menu"
      "buscador buscador";

    gap: 12px;
    padding: 16px;
  }

  .logo {
    grid-area: logo;
  }
  .logo img {
    height: 60px;
  }

  .btn-menu {
    grid-area: menu;
    justify-self: end;
  }

  .buscador {
    grid-area: buscador;
  }

  .barra-superior {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .modal {
    padding: 10px;
  }

  .modal-contenido {
    width: 100%;
    max-width: 100%;
    max-height: 95vh;
    padding: 16px;
    border-radius: 12px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .producto-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .producto-imagen img {
    max-height: 240px;
  }

  .modal-precio {
    font-size: 1.5rem;
  }

  .modal-botones {
    flex-direction: column;
  }

  #ordenar {
    width: 100%;
  }
  /* ===========================
   FOOTER CELULAR
  ========================== */

  .footer-contenido {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 28px;

    padding: 30px 24px;
  }

  .footer-logo {
    width: 220px;
  }

  .footer-logo-col {
    width: 100%;
  }

  .footer-descripcion {
    margin-top: 18px;

    font-size: 1rem;
  }

  .footer-separador {
    display: none;
  }

  .footer-col {
    width: 100%;

    gap: 22px;
  }

  .footer-item {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    text-align: left;
  }

  .footer-item i {
    font-size: 2rem;

    min-width: 34px;
  }

  .footer-item span,
  .footer-item div {
    font-size: 1rem;

    line-height: 1.5;
  }

  .footer-inferior {
    padding: 16px 18px;
  }

  .footer-inferior p:first-child {
    font-size: 0.95rem;
  }

  .footer-inferior p:last-child {
    font-size: 0.82rem;

    line-height: 1.5;
  }
  .footer-col {
    padding-top: 20px;

    border-top: 1px solid #e5e5e5;
  }

  .footer-logo-col {
    border-top: none;

    padding-top: 0;
  }

  header.header-compacto {
    padding: 8px 16px;
    gap: 8px;
  }

  header.header-compacto .logo img {
    height: 50px;
  }

  header.header-compacto .buscador input {
    padding: 8px 14px;
    font-size: 16px;
  }

  header.header-compacto .menu-pc {
    gap: 0;
  }
}

/* ==========================================
   BOTÓN FLOTANTE WHATSAPP
========================================== */

#btnWhatsapp {
  position: fixed;

  right: 24px;

  bottom: 24px;

  width: 62px;

  height: 62px;

  border-radius: 50%;

  background: #25d366;

  display: flex;

  justify-content: center;

  align-items: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

  z-index: 900;

  transition:
    transform 0.25s,
    opacity 0.25s;
}

#btnWhatsapp:hover {
  transform: scale(1.08);
}

#btnWhatsapp img {
  width: 34px;

  height: 34px;
}

#btnWhatsapp.oculto {
  opacity: 0;

  pointer-events: none;
}

/* ==========================================
   BOTÓN VOLVER ARRIBA
========================================== */

#btnArriba {
  position: fixed;

  right: 24px;

  bottom: 100px;

  width: 62px;

  height: 62px;

  border-radius: 50%;

  background: #0f6fff;

  color: white;

  text-decoration: none;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 32px;

  font-weight: bold;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.25s,
    transform 0.25s;

  z-index: 900;
}

#btnArriba.visible {
  opacity: 1;

  pointer-events: auto;
}

#btnArriba:hover {
  transform: scale(1.08);
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  margin-top: 40px;

  background: #fff;

  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
}

.footer-contenido {
  max-width: 1300px;

  margin: 0 auto;

  padding: 45px 35px;

  display: grid;

  grid-template-columns: 1.2fr 2px 1.3fr 1fr;

  gap: 55px;

  align-items: center;
}

.footer-logo-col {
  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;
}

.footer-logo {
  width: 300px;

  height: auto;

  margin-bottom: 24px;
}

.footer-descripcion {
  color: #444;

  font-size: 1.1rem;

  line-height: 1.7;
}

.footer-separador {
  width: 2px;

  height: 220px;

  background: #d6d6d6;
}

.footer-col {
  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 28px;
}

.footer-item {
  display: flex;

  align-items: flex-start;

  gap: 18px;
}

.footer-item i {
  font-size: 2.5rem;

  min-width: 46px;
}

.footer-item span,
.footer-item div {
  font-size: 1.08rem;

  line-height: 1.6;

  color: #333;
}

.footer-item .fa-location-dot {
  color: #d62828;
}

.footer-item .fa-whatsapp {
  color: #25d366;
}

.footer-item .fa-instagram {
  color: #e4405f;
}

.footer-item .fa-clock {
  color: #222;
}

.footer-inferior {
  background: #d90416;

  color: #fff;

  text-align: center;

  padding: 18px 20px;
}

.footer-inferior p:first-child {
  font-size: 1rem;

  margin-bottom: 6px;

  font-weight: 600;
}

.footer-inferior p:last-child {
  font-size: 0.92rem;

  line-height: 1.5;
}
/* ==========================================
   BOTÓN MOSTRAR MÁS
========================================== */

.contenedor-mostrar-mas {
  display: flex;
  justify-content: center;
  margin: 35px 0 50px;
}

.btn-mostrar-mas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 240px;

  padding: 14px 30px;

  background: #3b82f6;

  color: white;

  border: none;
  border-radius: 10px;

  cursor: pointer;

  transition: background 0.2s ease;
}

.btn-titulo {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-restantes {
  margin-top: 3px;

  font-size: 0.8rem;

  font-weight: 400;

  opacity: 0.85;
}

.btn-mostrar-mas:hover {
  background: #2563eb;
}

.btn-mostrar-mas.oculto {
  display: none;
}

.sin-resultados {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  grid-column: 1 / -1;
}

.sin-resultados p {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.sin-resultados span {
  font-size: 0.9rem;
  opacity: 0.7;
}
/* =========================================
   CARRUSEL DE MARCAS
========================================= */

.marcas {
  width: 100%;
  height: 72px;
  margin-bottom: 20px;
  overflow: hidden;
}

.marcas-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.marcas-track {
  display: flex;
  align-items: center;
  gap: 45px;
  width: max-content;
  height: 100%;

  animation: desplazamientoMarcas 25s linear infinite;
}

.marca-item {
  width: 105px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: transparent;
  border: none;
  padding: 5px;

  cursor: pointer;
}

.marca-item img {
  max-width: 95px;
  max-height: 48px;

  object-fit: contain;

  transition: transform 0.25s ease;
}

.marca-item:hover img {
  transform: scale(1.08);
}

/* Pausar al pasar el mouse */
@media (hover: hover) and (pointer: fine) {
  .marcas-viewport:hover .marcas-track {
    animation-play-state: paused;
  }
}

/* Movimiento infinito */
@keyframes desplazamientoMarcas {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ==========================================
   FOOTER RESPONSIVE
========================================== */

@media (max-width: 768px) {
  .footer-contenido {
    display: flex;

    flex-direction: column;

    gap: 0;

    padding: 30px 24px;
  }

  .footer-logo-col {
    width: 100%;

    padding-bottom: 24px;
  }

  .footer-logo {
    width: 220px;

    margin-bottom: 20px;
  }

  .footer-descripcion {
    font-size: 1rem;

    line-height: 1.7;
  }

  .footer-separador {
    display: none;
  }

  .footer-col {
    width: 100%;

    gap: 22px;

    padding: 26px 0;

    border-top: 1px solid #e4e4e4;
  }

  .footer-item {
    justify-content: flex-start;

    align-items: center;

    gap: 16px;
  }

  .footer-item i {
    font-size: 2rem;

    min-width: 36px;
  }

  .footer-item span,
  .footer-item div {
    font-size: 1rem;

    line-height: 1.5;
  }

  .footer-inferior {
    padding: 16px;
  }

  .footer-inferior p:first-child {
    font-size: 0.95rem;
  }

  .footer-inferior p:last-child {
    font-size: 0.82rem;

    line-height: 1.5;
  }
  .footer-horarios {
    justify-content: flex-start;
  }
  .marcas {
    height: 62px;
    margin-bottom: 15px;
  }

  .marcas-track {
    gap: 25px;
    animation-duration: 28s;
  }

  .marca-item {
    width: 85px;
    height: 52px;
  }

  .marca-item img {
    max-width: 75px;
    max-height: 40px;
  }
  .carrusel-anterior,
  .carrusel-siguiente {
    opacity: 1;
  }
}
