/* ==========================================================================
   TIRE MASTER - Mavelsa Tires Exact Aesthetic Replica
   Black & White High-Contrast Automotive Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Instrument+Sans:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Instrument Sans', 'Inter', sans-serif;

  --color-body-bg: #ffffff;
  --color-text-main: #242424;
  --color-text-muted: #666666;
  --color-text-dim: #888888;
  --color-border: #e6e6e6;
  --color-border-dark: #242424;

  --btn-black: #242424;
  --btn-black-hover: #000000;
  --sale-badge: #dc3545;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1ebe5d;

  --container-max-width: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-body-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* ==========================================================================
   ANNOUNCEMENT BAR (Exact Mavelsa)
   ========================================================================== */
.announcement-bar {
  background-color: #f7f7f8;
  border-bottom: 1px solid #ededed;
  padding: 9px 0;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #242424;
  text-align: center;
}
.announcement-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* ==========================================================================
   HEADER (Exact Mavelsa)
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #ebebeb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Brand Logo Mavelsa Style */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon-svg {
  width: 40px;
  height: 40px;
}
.logo-title-group {
  display: flex;
  flex-direction: column;
}
.logo-brand-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #242424;
  line-height: 1;
}
.logo-brand-subtitle {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e63946;
  margin-top: 3px;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #242424;
  padding: 8px 0;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: #000000;
}
.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #242424;
}

/* Icons on right */
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-icon-btn {
  color: #242424;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-icon-btn:hover {
  color: #000000;
}
.header-wa-pill {
  background: #242424;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-wa-pill:hover {
  background: #000000;
  color: #fff;
}

/* ==========================================================================
   HERO SECTION (Exact Mavelsa: Dark tire photograph with white typography)
   ========================================================================== */
.hero-mavelsa {
  position: relative;
  background-color: #000000;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.9;
}
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 60px 0;
}
.hero-h1 {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 18px;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: #e5e5e5;
  margin-bottom: 28px;
  line-height: 1.5;
}
.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-hero-solid {
  background-color: #242424;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 13px 32px;
  border: 1px solid #3e3e3e;
  border-radius: 0;
  display: inline-block;
}
.btn-hero-solid:hover {
  background-color: #000000;
  border-color: #000000;
}
.btn-hero-trans {
  background-color: rgba(36, 36, 36, 0.65);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 13px 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  display: inline-block;
}
.btn-hero-trans:hover {
  background-color: #242424;
  border-color: #ffffff;
}

/* ==========================================================================
   BUSCADOR DE RODADAS TRADICIONAL
   ========================================================================== */
.finder-bar-section {
  background-color: #f7f7f8;
  border-bottom: 1px solid #e5e5e5;
  padding: 24px 0;
}
.finder-bar-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}
.finder-bar-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #242424;
}
.finder-select {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 11px 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #242424;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  width: 100%;
}
.finder-select:focus {
  border-color: #242424;
}
.btn-finder-search {
  background: #242424;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  height: 44px;
  white-space: nowrap;
}
.btn-finder-search:hover {
  background: #000000;
}

/* ==========================================================================
   BEST SELLERS / PRODUCTOS (Exact Mavelsa Style)
   ========================================================================== */
.section-bestsellers {
  padding: 60px 0 80px;
  background-color: #ffffff;
}
.section-title-mavelsa {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  color: #242424;
  margin-bottom: 45px;
}

/* 4-column Product Grid */
.products-grid-mavelsa {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card-mavelsa {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  padding: 10px;
}

/* Red "OFERTA" Badge */
.badge-oferta {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--sale-badge);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 5;
}
.badge-camion {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #242424;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 6px;
  border-radius: 2px;
  z-index: 5;
}

/* Tire Image Container */
.card-image-wrap {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  cursor: pointer;
  overflow: hidden;
}
.card-image-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.card-mavelsa:hover .card-image-wrap img {
  transform: scale(1.05);
}

/* Brand / Vendor */
.card-vendor {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #777777;
  margin-bottom: 4px;
}

/* Title */
.card-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Measure Chip */
.card-medida-pill {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #444444;
  background: #f1f1f1;
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

/* Price */
.card-price {
  font-family: var(--font-body);
  font-size: 14px;
  color: #242424;
  margin-bottom: 16px;
}
.card-price .price-from {
  color: #777;
  margin-right: 4px;
}
.card-price .price-val {
  font-weight: 700;
  font-size: 15px;
}
.card-price .price-compare {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
  margin-left: 6px;
}

/* Full-width Solid Black Button (Exact Mavelsa) */
.btn-card-black {
  background-color: var(--btn-black);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 14px;
  width: 100%;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  margin-top: auto;
}
.btn-card-black:hover {
  background-color: var(--btn-black-hover);
  color: #ffffff;
}

/* ==========================================================================
   CATÁLOGO PAGE (Exact Screenshot 2)
   ========================================================================== */
.catalog-page-header {
  padding: 40px 0 20px;
  background: #ffffff;
}
.catalog-title-mavelsa {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #242424;
  margin-bottom: 24px;
}

/* Filter toolbar like screenshot 2 */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ebebeb;
}
.toolbar-filters-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #242424;
  margin-right: 6px;
}
.toolbar-select {
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #242424;
  cursor: pointer;
  outline: none;
}
.toolbar-select:focus {
  border-color: #242424;
}

/* ==========================================================================
   SERVICIOS SECTION & PAGE
   ========================================================================== */
.section-services {
  padding: 60px 0 80px;
  background-color: #f7f7f8;
  border-top: 1px solid #ebebeb;
}
.services-grid-mavelsa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-item-box {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.service-item-icon {
  width: 50px;
  height: 50px;
  background: #242424;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-item-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: #242424;
  margin-bottom: 10px;
}
.service-item-p {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ==========================================================================
   FOOTER (Clean Mavelsa B&W)
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #ebebeb;
  padding: 60px 0 30px;
}
.footer-grid-mavelsa {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 35px;
  margin-bottom: 40px;
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #242424;
  margin-bottom: 16px;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-list a {
  font-size: 13px;
  color: #666666;
}
.footer-links-list a:hover {
  color: #000000;
}
.footer-bottom-bar {
  border-top: 1px solid #ebebeb;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888888;
  flex-wrap: wrap;
  gap: 12px;
}

/* Floating WhatsApp Badge */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}
.floating-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: #ffffff;
  border-radius: 4px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f1f1;
  border: none;
  color: #242424;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #242424;
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid-mavelsa {
    grid-template-columns: repeat(3, 1fr);
  }
  .finder-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid-mavelsa {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid-mavelsa {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero-h1 {
    font-size: 30px;
  }
  .products-grid-mavelsa {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #ebebeb;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .services-grid-mavelsa {
    grid-template-columns: 1fr;
  }
  .modal-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .products-grid-mavelsa {
    grid-template-columns: 1fr;
  }
  .finder-bar-grid {
    grid-template-columns: 1fr;
  }
}
/* Logo Oficial Tire Master */
.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .brand-logo-img {
    height: 38px;
    max-width: 170px;
  }
}

/* ==========================================================================
   LÍNEA DE MARCAS / BRAND TICKER (ESTILO MAVELSA TIRES)
   ========================================================================== */
.marcas-section {
  padding: 55px 0 65px;
  background-color: #ffffff;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  overflow: hidden;
  position: relative;
}

.marcas-header {
  text-align: center;
  margin-bottom: 35px;
  padding: 0 20px;
}

.marcas-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #dc3545;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.marcas-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: #242424;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.marcas-subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 55s linear infinite;
  padding: 8px 0;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track-reverse {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScrollReverse 60s linear infinite;
  padding: 8px 0;
  margin-top: 14px;
}

.marquee-track-reverse:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marca-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 8px 18px;
  height: 58px;
  min-width: 140px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.marca-item:hover {
  border-color: #242424;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  background: #fafafa;
}

.marca-item img {
  max-height: 38px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.25s ease;
}

.marca-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .marcas-section { padding: 40px 0; }
  .marcas-title { font-size: 20px; }
  .marca-item { height: 48px; min-width: 110px; padding: 6px 12px; }
  .marca-item img { max-height: 28px; max-width: 90px; }
}
