/* ============================================================
   TRACTOPARTES MARTÍNEZ — Main Stylesheet v2
   ============================================================ */

:root {
  --tpm-red: #CC0000;
  --tpm-red-dark: #A30000;
  --tpm-red-light: #FF1A1A;
  --tpm-black: #1A1A1A;
  --tpm-dark: #222222;
  --tpm-gray-900: #333333;
  --tpm-gray-700: #555555;
  --tpm-gray-500: #888888;
  --tpm-gray-300: #cccccc;
  --tpm-gray-100: #f0f0f0;
  --tpm-white: #ffffff;
  --tpm-bg: #f8f8f8;
  --tpm-shadow: 0 4px 24px rgba(0,0,0,.08);
  --tpm-shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --tpm-shadow-red: 0 8px 30px rgba(204,0,0,.2);
  --tpm-radius: 6px;
  --tpm-radius-lg: 12px;
  --tpm-transition: .3s cubic-bezier(.4,0,.2,1);
  --tpm-font: 'Barlow', sans-serif;
  --tpm-font-heading: 'Barlow Condensed', sans-serif;
}

/* --- AOS FALLBACK: show elements even if AOS fails --- */
[data-aos] { opacity: 1 !important; transform: none !important; }
html.aos-ready [data-aos] { opacity: 0; transform: translateY(30px); }
html.aos-ready [data-aos].aos-animate { opacity: 1 !important; transform: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--tpm-font);
  color: var(--tpm-gray-900);
  background: var(--tpm-white);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tpm-red); text-decoration: none; transition: color var(--tpm-transition); }
a:hover { color: var(--tpm-red-dark); }
::selection { background: var(--tpm-red); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tpm-font-heading);
  font-weight: 700;
  color: var(--tpm-black);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 60px; height: 4px;
  background: var(--tpm-red);
  border-radius: 2px;
}
.section-title.centered::after { left: 50%; transform: translateX(-50%); }
.section-subtitle { color: var(--tpm-gray-500); font-size: 1.05rem; max-width: 600px; }
.text-red { color: var(--tpm-red) !important; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--tpm-black);
  color: #fff;
  font-size: .85rem;
  padding: 8px 0;
  border-bottom: 3px solid var(--tpm-red);
}
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: var(--tpm-red-light); }
.topbar__phone { color: var(--tpm-red-light) !important; font-weight: 700; font-size: .95rem; }
.topbar__whatsapp {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff !important;
  padding: 3px 12px; border-radius: 20px;
  font-weight: 600; font-size: .8rem;
  transition: var(--tpm-transition);
}
.topbar__whatsapp:hover { background: #1da851; transform: scale(1.05); }

/* ===== NAVBAR ===== */
.navbar-tpm {
  background: var(--tpm-white);
  box-shadow: var(--tpm-shadow);
  padding: .6rem 0;
  transition: var(--tpm-transition);
  z-index: 1050;
}
.navbar-tpm.scrolled { padding: .3rem 0; box-shadow: 0 4px 30px rgba(0,0,0,.12); }
.navbar-tpm .navbar-brand img { height: 55px; transition: height var(--tpm-transition); }
.navbar-tpm.scrolled .navbar-brand img { height: 42px; }
.navbar-tpm .nav-link {
  font-family: var(--tpm-font-heading); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--tpm-black) !important; padding: .5rem 1rem !important;
  position: relative; transition: color var(--tpm-transition);
}
.navbar-tpm .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 3px; background: var(--tpm-red);
  transition: all var(--tpm-transition); transform: translateX(-50%);
}
.navbar-tpm .nav-link:hover::after, .navbar-tpm .nav-link.active::after { width: 70%; }
.navbar-tpm .nav-link:hover, .navbar-tpm .nav-link.active { color: var(--tpm-red) !important; }

/* ===== BUTTONS ===== */
.btn-tpm {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--tpm-font-heading); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 28px; border-radius: var(--tpm-radius);
  border: none; cursor: pointer; transition: all var(--tpm-transition); font-size: .95rem;
}
.btn-tpm-red { background: var(--tpm-red); color: #fff; }
.btn-tpm-red:hover { background: var(--tpm-red-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--tpm-shadow-red); }
.btn-tpm-outline { background: transparent; color: var(--tpm-red); border: 2px solid var(--tpm-red); }
.btn-tpm-outline:hover { background: var(--tpm-red); color: #fff; transform: translateY(-2px); }
.btn-tpm-dark { background: var(--tpm-black); color: #fff; }
.btn-tpm-dark:hover { background: var(--tpm-gray-900); color: #fff; transform: translateY(-2px); }
.btn-tpm-sm { padding: 8px 18px; font-size: .85rem; }
.btn-tpm-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ===== HERO ===== */
/* Slider a ancho completo, sin padding ni franjas negras */
.hero-slider { position: relative; background: transparent; overflow: hidden; width: 100%; padding: 0 !important; margin: 0; }
.hero-slide {
  position: relative; min-height: 620px;
  display: flex !important; align-items: center; justify-content: center;
}
.hero-slide__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-slide__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
}
/* Contenido centrado */
.hero-slide__content { position: relative; z-index: 2; color: #fff; text-align: center; width: 100%; }
.hero-slide__title {
  font-family: var(--tpm-font-heading); font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800; text-transform: uppercase; line-height: 1.05;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-slide__title .text-red { color: var(--tpm-red-light); }
.hero-slide__subtitle { font-size: 1.15rem; color: rgba(255,255,255,.9); margin: 1rem auto 1.5rem; max-width: 560px; }
/* Botones centrados y siempre en la misma línea dentro del slider */
.hero-slide__content .d-flex { justify-content: center; flex-wrap: nowrap !important; }
/* Botones del slider más pequeños */
.hero-slider .btn-tpm-lg { padding: 10px 22px; font-size: .9rem; }
.hero-slider .swiper-pagination-bullet { background: #fff; opacity: .5; width: 10px; height: 10px; }
.hero-slider .swiper-pagination-bullet-active { background: var(--tpm-red); opacity: 1; width: 26px; border-radius: 6px; }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative; padding: 80px 0 50px;
  background: linear-gradient(135deg, var(--tpm-black) 0%, #2a2a2a 100%);
  overflow: hidden;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  text-transform: uppercase; color: #fff; position: relative; z-index: 2;
}
.page-header .breadcrumb { position: relative; z-index: 2; }
.page-header .breadcrumb a { color: rgba(255,255,255,.6); }
.page-header .breadcrumb-item.active { color: var(--tpm-red-light); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.page-header__accent { position: absolute; left: 0; bottom: 0; width: 200px; height: 4px; background: var(--tpm-red); }

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: #fff; border-radius: var(--tpm-radius-lg);
  overflow: hidden; box-shadow: var(--tpm-shadow);
  transition: all var(--tpm-transition); height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--tpm-shadow-lg); }
.product-card__img {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--tpm-gray-100);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__img img { transform: scale(1.08); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 14px;
  border-radius: 4px; font-family: var(--tpm-font-heading);
  font-weight: 700; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .04em; color: #fff; z-index: 2;
}
.badge-disponible { background: #28a745; }
.badge-vendido { background: var(--tpm-red); }
.badge-reservado { background: #fd7e14; }
.badge-nuevo { background: #28a745; }
.badge-reman { background: #17a2b8; }
.product-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card__title { font-family: var(--tpm-font-heading); font-weight: 700; font-size: 1.1rem; color: var(--tpm-black); margin-bottom: 6px; }
.product-card__specs { color: var(--tpm-gray-500); font-size: .85rem; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.product-card__specs i { color: var(--tpm-red); font-size: .75rem; }
.product-card__compat { display: inline-block; background: var(--tpm-gray-100); color: var(--tpm-gray-700); padding: 2px 10px; border-radius: 20px; font-size: .78rem; margin-bottom: 10px; }
.product-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--tpm-gray-100); }
.product-card__price { font-family: var(--tpm-font-heading); font-weight: 800; font-size: 1.2rem; color: var(--tpm-red); }
.product-card__price small { font-weight: 500; font-size: .7rem; color: var(--tpm-gray-500); }

/* ===== FILTER BAR ===== */
.filter-bar {
  background: #fff; border: 2px solid var(--tpm-red); border-radius: var(--tpm-radius-lg);
  padding: 20px 24px; margin-bottom: 30px; box-shadow: var(--tpm-shadow);
}
.filter-bar .form-select, .filter-bar .form-control {
  border: 1px solid var(--tpm-gray-300); border-radius: var(--tpm-radius);
  padding: 10px 14px; font-size: .9rem; transition: border-color var(--tpm-transition);
}
.filter-bar .form-select:focus, .filter-bar .form-control:focus { border-color: var(--tpm-red); box-shadow: 0 0 0 3px rgba(204,0,0,.1); }
.results-count { color: var(--tpm-gray-500); font-size: .9rem; }
.results-count strong { color: var(--tpm-black); }

/* ===== CATEGORY CARDS ===== */
.category-card {
  position: relative; border-radius: var(--tpm-radius-lg); overflow: hidden;
  text-align: center; padding: 28px 16px; background: #fff;
  border: 2px solid transparent; box-shadow: var(--tpm-shadow);
  transition: all var(--tpm-transition); cursor: pointer;
}
.category-card:hover { border-color: var(--tpm-red); transform: translateY(-4px); box-shadow: var(--tpm-shadow-red); }
.category-card__icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--tpm-gray-100); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 14px; transition: all var(--tpm-transition);
  font-size: 2rem; color: var(--tpm-gray-700);
}
.category-card:hover .category-card__icon { background: var(--tpm-red); color: #fff; }
.category-card__label { font-family: var(--tpm-font-heading); font-weight: 700; font-size: .95rem; text-transform: uppercase; color: var(--tpm-black); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--tpm-red) 0%, var(--tpm-red-dark) 100%);
  padding: 50px 0; position: relative; overflow: hidden;
}
.stat-item { text-align: center; color: #fff; position: relative; z-index: 2; }
.stat-item__number { font-family: var(--tpm-font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; }
.stat-item__label { font-family: var(--tpm-font-heading); font-size: 1rem; font-weight: 600; text-transform: uppercase; opacity: .9; }
.stat-item__desc { font-size: .85rem; opacity: .7; }

/* ===== TRUST CARDS ===== */
.trust-card {
  text-align: center; padding: 30px 20px; border-radius: var(--tpm-radius-lg);
  background: #fff; box-shadow: var(--tpm-shadow); transition: all var(--tpm-transition);
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--tpm-shadow-lg); }
.trust-card__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(204,0,0,.08); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--tpm-red); font-size: 1.5rem;
}
.trust-card__title { font-family: var(--tpm-font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.trust-card__text { font-size: .88rem; color: var(--tpm-gray-500); }

/* ===== BRAND BAR ===== */
.brand-bar { padding: 40px 0; background: var(--tpm-bg); }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  height: 60px; padding: 10px 20px;
  filter: grayscale(1) opacity(.5); transition: all var(--tpm-transition);
}
.brand-logo:hover { filter: grayscale(0) opacity(1); transform: scale(1.1); }
.brand-logo img { max-height: 40px; }

/* ===== CTA WHATSAPP ===== */
.cta-whatsapp {
  background: var(--tpm-red); padding: 50px 0; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-whatsapp h2 { font-family: var(--tpm-font-heading); color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; text-transform: uppercase; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; padding: 14px 36px;
  border-radius: 50px; font-family: var(--tpm-font-heading);
  font-weight: 700; font-size: 1.1rem; text-transform: uppercase;
  letter-spacing: .04em; transition: all var(--tpm-transition); border: none; cursor: pointer;
}
.btn-whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37,211,102,.4); }
.btn-whatsapp i { font-size: 1.4rem; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5); z-index: 9999;
  transition: all var(--tpm-transition); animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse-wa { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,.5)} 50%{box-shadow:0 4px 30px rgba(37,211,102,.8)} }

/* ===== FOOTER ===== */
.footer { background: var(--tpm-black); color: rgba(255,255,255,.7); padding-top: 60px; }
.footer h5 {
  font-family: var(--tpm-font-heading); color: #fff; font-weight: 700;
  text-transform: uppercase; margin-bottom: 20px; position: relative; padding-bottom: 10px;
}
.footer h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--tpm-red); }
.footer a { color: rgba(255,255,255,.6); transition: all var(--tpm-transition); }
.footer a:hover { color: var(--tpm-red-light); padding-left: 4px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  margin-right: 8px; font-size: .9rem; transition: all var(--tpm-transition);
}
.footer__social a:hover { background: var(--tpm-red); transform: translateY(-3px); padding-left: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; margin-top: 40px; text-align: center; font-size: .85rem; }

/* ===== SERVICE CARDS ===== */
.service-card {
  background: #fff; border-radius: var(--tpm-radius-lg); padding: 35px 25px;
  text-align: center; border: 2px solid var(--tpm-gray-100);
  transition: all var(--tpm-transition); height: 100%;
}
.service-card:hover { border-color: var(--tpm-red); transform: translateY(-6px); box-shadow: var(--tpm-shadow-red); }
.service-card__icon {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--tpm-red); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--tpm-red);
  font-size: 2rem; transition: all var(--tpm-transition);
}
.service-card:hover .service-card__icon { background: var(--tpm-red); color: #fff; }
.service-card__title { font-family: var(--tpm-font-heading); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 10px; }
.service-card__text { font-size: .9rem; color: var(--tpm-gray-500); margin-bottom: 14px; }
.service-card__link { font-family: var(--tpm-font-heading); font-weight: 700; text-transform: uppercase; font-size: .85rem; color: var(--tpm-red); display: inline-flex; align-items: center; gap: 6px; }
.service-card__link:hover { gap: 12px; }

/* ===== BRANCH CARDS ===== */
.branch-card { background: #fff; border-radius: var(--tpm-radius-lg); border: 2px solid var(--tpm-red); overflow: hidden; box-shadow: var(--tpm-shadow); height: 100%; }
.branch-card__header { background: var(--tpm-red); padding: 16px 24px; color: #fff; font-family: var(--tpm-font-heading); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; }
.branch-card__body { padding: 24px; }
.branch-card__item { display: flex; gap: 12px; margin-bottom: 14px; font-size: .92rem; }
.branch-card__item i { color: var(--tpm-red); margin-top: 3px; min-width: 18px; }
.branch-card__map { width: 100%; height: 200px; border: none; border-radius: var(--tpm-radius); }

/* ===== CONTACT INFO CARDS ===== */
.contact-info-card {
  background: #fff; border-radius: var(--tpm-radius-lg); padding: 28px;
  text-align: center; border-top: 4px solid var(--tpm-red);
  box-shadow: var(--tpm-shadow); transition: all var(--tpm-transition); height: 100%;
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--tpm-shadow-lg); }
.contact-info-card__icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.5rem; }

/* ===== ABOUT MISSION/VISION ===== */
.mv-card { background: #fff; border-radius: var(--tpm-radius-lg); padding: 35px 25px; text-align: center; border: 1px solid var(--tpm-gray-100); box-shadow: var(--tpm-shadow); height: 100%; transition: all var(--tpm-transition); }
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--tpm-shadow-lg); }
.mv-card__icon { width: 80px; height: 80px; margin: 0 auto 18px; display:flex;align-items:center;justify-content:center;font-size:2.5rem; }
.mv-card__title { font-family: var(--tpm-font-heading); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 12px; color: var(--tpm-red); }

/* ===== PRODUCT DETAIL ===== */
.product-gallery { border-radius: var(--tpm-radius-lg); overflow: hidden; box-shadow: var(--tpm-shadow); }
.product-gallery__main { aspect-ratio: 4/3; background: var(--tpm-gray-100); position: relative; overflow:hidden; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.product-gallery__thumbs { display: flex; gap: 8px; padding: 8px; background: #fff; }
.product-gallery__thumb { width: 80px; height: 60px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--tpm-transition); }
.product-gallery__thumb.active, .product-gallery__thumb:hover { border-color: var(--tpm-red); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__info { background: #fff; border-radius: var(--tpm-radius-lg); padding: 30px; box-shadow: var(--tpm-shadow); }
.product-detail__title { font-family: var(--tpm-font-heading); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; }
.product-detail__id { color: var(--tpm-gray-500); font-size: .85rem; font-family: monospace; }
.product-detail__price { font-family: var(--tpm-font-heading); font-size: 2rem; font-weight: 800; color: var(--tpm-red); }
.spec-table { width: 100%; }
.spec-table tr { border-bottom: 1px solid var(--tpm-gray-100); }
.spec-table td { padding: 10px 0; font-size: .92rem; }
.spec-table td:first-child { font-weight: 600; color: var(--tpm-gray-700); width: 40%; }

/* ===== FORMS ===== */
.form-tpm .form-control, .form-tpm .form-select { border: 1px solid var(--tpm-gray-300); border-radius: var(--tpm-radius); padding: 12px 16px; font-size: .92rem; transition: all var(--tpm-transition); }
.form-tpm .form-control:focus, .form-tpm .form-select:focus { border-color: var(--tpm-red); box-shadow: 0 0 0 3px rgba(204,0,0,.1); }
.form-tpm label { font-family: var(--tpm-font-heading); font-weight: 600; font-size: .88rem; text-transform: uppercase; margin-bottom: 6px; color: var(--tpm-gray-700); }

/* ===== QUICK SEARCH ===== */
.quick-search { background: #fff; border-radius: var(--tpm-radius-lg); padding: 24px; box-shadow: var(--tpm-shadow-lg); margin-top: -40px; position: relative; z-index: 10; border-top: 4px solid var(--tpm-red); }

/* ===== ABOUT PREVIEW ===== */
.about-preview__img { border-radius: var(--tpm-radius-lg); overflow: hidden; box-shadow: var(--tpm-shadow-lg); }
.about-preview__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ===== PAGINATION ===== */
.pagination-tpm .page-link { color: var(--tpm-gray-700); border: 1px solid var(--tpm-gray-300); padding: 8px 16px; font-family: var(--tpm-font-heading); font-weight: 600; transition: all var(--tpm-transition); }
.pagination-tpm .page-link:hover { background: var(--tpm-red); border-color: var(--tpm-red); color: #fff; }
.pagination-tpm .page-item.active .page-link { background: var(--tpm-red); border-color: var(--tpm-red); }

/* ===== SCHEDULE TABLE ===== */
.schedule-table { width: 100%; font-size: .9rem; }
.schedule-table td { padding: 8px 0; border-bottom: 1px solid var(--tpm-gray-100); }
.schedule-table td:last-child { text-align: right; font-weight: 600; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 94px; right: 24px; width: 44px; height: 44px;
  background: var(--tpm-red); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; opacity: 0; visibility: hidden;
  transition: all var(--tpm-transition); z-index: 9998; border: none; cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--tpm-red-dark); transform: translateY(-3px); }

/* ===== UTILITIES ===== */
.section-padding { padding: 70px 0; }
.section-padding-sm { padding: 50px 0; }
.divider-red { width: 60px; height: 4px; background: var(--tpm-red); border-radius: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hero-slide { min-height: 500px; }
  .quick-search { margin-top: 0; }
}
@media (max-width: 767.98px) {
  .hero-slide { min-height: 420px; }
  .hero-slide__title { font-size: 1.8rem; }
  .hero-slide__subtitle { font-size: 1rem; }
  .hero-slider .btn-tpm-lg { padding: 9px 18px; font-size: .82rem; }
  section { padding: 40px 0; }
  /* El hero no debe tener padding (evita franjas negras) */
  .hero-slider { padding: 0 !important; }
}
@media (max-width: 575.98px) {
  .hero-slide { min-height: 380px; }
  .hero-slide__title { font-size: 1.5rem; }
  /* Botones siempre en la misma línea, uno al lado del otro */
  .hero-slide__content .d-flex { flex-direction: row; flex-wrap: nowrap !important; align-items: center; justify-content: center; gap: 8px !important; }
  .hero-slider .btn-tpm-lg { padding: 8px 12px; font-size: .72rem; letter-spacing: .03em; }
}
@media (max-width: 575.98px) {
  .filter-bar { padding: 14px; }
  .product-card__footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}


.product-card__price {
    font-family: var(--tpm-font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--tpm-red);
}