/* =====================================================================
   custom.css — Estilos personalizados mobilsinaloa.com.mx
   No modificar archivos originales de la plantilla (Sandbox 3.4.1).
   ===================================================================== */

/* ---------------------------------------------------------------------
   Variables de marca Mobil
   --------------------------------------------------------------------- */
:root {
  --mobil-blue: #0033A0;
  --mobil-blue-line: #0f5fbf;
  --mobil-red: #E4002B;
  --mobil-gray-text: #5c5c5c;
  --mobil-nav-text: #333333;
  --mobil-topbar-bg: #ededed;
  --mobil-topbar-text: #4a4a4a;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.header-mobil {
  position: relative;
  width: 100%;
  z-index: 1030;
}

/* ---------- Barra superior de utilidades ---------- */
.topbar-mobil {
  background-color: var(--mobil-topbar-bg);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
}

.topbar-links a,
.topbar-location {
  color: var(--mobil-topbar-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar-links a {
  margin-right: 1.75rem;
}

.topbar-links a:last-child {
  margin-right: 0;
}

.topbar-links a:hover,
.topbar-location:hover {
  color: var(--mobil-blue);
}

.topbar-tools {
  gap: 1.25rem;
}

.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.topbar-social img {
  width: 22px;
  height: 22px;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.topbar-social a:hover img {
  opacity: 0.75;
  transform: translateY(-1px);
}

.topbar-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-location img {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- Navegación principal ---------- */
.navbar-mobil {
  background-color: #ffffff;
  padding: 0.9rem 0 0.85rem;
}

/* Línea azul inferior: con el mismo ancho que el contenedor del navbar */
.navbar-mobil > .container-lg {
  border-bottom: 4px solid var(--mobil-blue-line);
  padding-bottom: 0.85rem;
}

/* Marca: logo + separador + etiqueta "Combustibles" */
.brand-mobil {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
}

.brand-logo {
  width: auto;
  height: 42px;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 34px;
  background-color: #cfcfcf;
}

.brand-label {
  color: var(--mobil-gray-text);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

/* Enlaces del menú */
.navbar-mobil .navbar-nav {
  gap: 0.5rem;
}

.navbar-mobil .nav-link {
  color: var(--mobil-nav-text);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.15;
  padding: 0.4rem 0.85rem;
  text-align: center;
  transition: color 0.2s ease;
}

.navbar-mobil .nav-link:hover,
.navbar-mobil .nav-link.active {
  color: var(--mobil-red);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991.98px) {
  .brand-label {
    font-size: 1.25rem;
  }

  .brand-logo {
    height: 36px;
  }

  .navbar-mobil .navbar-nav {
    gap: 0;
    padding-top: 0.5rem;
  }

  /* Menú dentro del offcanvas oscuro de la plantilla (móvil/tablet) */
  .navbar-mobil .offcanvas-body .nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .navbar-mobil .offcanvas-body .nav-link:hover,
  .navbar-mobil .offcanvas-body .nav-link.active {
    color: #ffffff;
  }
}

@media (max-width: 575.98px) {
  .topbar-links a {
    margin-right: 1rem;
  }

  .topbar-location span {
    display: none;
  }
}

/* =====================================================================
   SECCIÓN 1 — SLIDER PRINCIPAL
   ===================================================================== */
.seccion-1 {
  padding: 2.25rem 0 2.75rem;
}

/* Imagen a todo el ancho del contenedor (mismo ancho que el header) */
.slider-mobil .swiper img {
  width: 100%;
  display: block;
}

/* Fila de controles en flujo normal, debajo de la imagen */
.slider-mobil .swiper-controls {
  position: relative !important;
  top: auto;
  left: auto;
  width: 100%;
  height: 3rem;
  margin-top: 1.5rem;
  pointer-events: all;
}

/* Flechas: finas, grises, pegadas a los extremos de la sección */
.slider-mobil .swiper-navigation {
  position: static;
}

.slider-mobil .swiper-button {
  position: absolute;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: transparent;
  box-shadow: none;
  color: #9aa1ab;
  transition: color 0.2s ease;
}

.slider-mobil .swiper-button:hover {
  background: transparent;
  color: var(--mobil-blue);
}

.slider-mobil .swiper-button:after {
  font-size: 2rem;
}

.slider-mobil .swiper-button.swiper-button-prev {
  left: 0;
  right: auto;
}

.slider-mobil .swiper-button.swiper-button-next {
  right: 0;
  left: auto;
}

/* Dots centrados en la fila de controles */
.slider-mobil .swiper-pagination {
  position: absolute !important;
  top: 50%;
  bottom: auto;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
}

/* Texto descriptivo centrado bajo el slider */
.slider-mobil-desc {
  margin: 1.5rem auto 0;
  text-align: center;
}

@media (max-width: 575.98px) {
  .slider-mobil .swiper-button {
    width: 2.25rem;
  }

  .slider-mobil .swiper-button:after {
    font-size: 1.5rem;
  }
}

/* =====================================================================
   TEXTO GENERAL DEL SITIO
   ===================================================================== */
.txt-parrafo {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.7;
}

/* =====================================================================
   BOTONES PERSONALIZADOS
   ===================================================================== */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mobil-blue);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-custom:hover {
  background-color: var(--mobil-red);
  color: #ffffff;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer-mobil {
  background-color: #2f3437;
  padding: 2.25rem 0;
}

.footer-mobil-inner {
  gap: 1.5rem 2rem;
}

/* ---------- Marcas ---------- */
.footer-brands {
  gap: 2.25rem;
}

.footer-logo-main img {
  height: 34px;
  width: auto;
  display: block;
  /* Renderiza el logo en blanco sobre el fondo oscuro */
  filter: brightness(0) invert(1);
}

.footer-subbrands {
  gap: 1.5rem;
}

.footer-subbrands img {
  height: 20px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ---------- Legal ---------- */
.footer-legal-links a {
  color: #ffffff;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.5rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0.6rem 0 0;
}

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

  .footer-legal {
    text-align: left;
  }
}
