/* =========================================================
   SmartWay — Hoja de estilos principal
   ========================================================= */

:root {
  --sw-orange: #f2711c;
  --sw-orange-dark: #d85f10;
  --sw-orange-light: #ff9142;
  --sw-black: #16161a;
  --sw-dark: #1e1e22;
  --sw-gray-bg: #f4f2f0;
  --sw-gray-text: #6c6c72;
  --sw-white: #ffffff;
  --sw-radius: 14px;
  --sw-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --sw-shadow-strong: 0 20px 45px rgba(0, 0, 0, 0.25);
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--sw-dark);
  background: var(--sw-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.text-orange { color: var(--sw-orange) !important; }
.bg-orange { background-color: var(--sw-orange) !important; }

.section-pad { padding: 5.5rem 0; }
@media (max-width: 767.98px) {
  .section-pad { padding: 3.25rem 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sw-orange);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--sw-orange);
  border-radius: 3px;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn-sw {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sw-orange);
  color: var(--sw-white);
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(242, 113, 28, 0.35);
  transition: all 0.25s ease;
}
.btn-sw:hover {
  background: var(--sw-orange-dark);
  color: var(--sw-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(242, 113, 28, 0.45);
}
.btn-sw-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--sw-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn-sw-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sw-white);
  border-color: var(--sw-white);
}
.btn-sw-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sw-black);
  color: var(--sw-white);
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn-sw-dark:hover {
  background: #000;
  color: var(--sw-white);
  transform: translateY(-2px);
}

/* =========================================================
   NAVBAR
   ========================================================= */
#mainNav {
  padding: 1.1rem 0;
  background: transparent;
  transition: all 0.35s ease;
}
/* En mobile el menú desplegable queda encima del contenido; con fondo transparente
   se confunde con lo que hay detrás, así que ahí siempre lleva fondo negro sólido. */
@media (max-width: 991.98px) {
  #mainNav {
    background: rgba(22, 22, 26, 0.97);
  }
  #mainNav .navbar-collapse {
    background: var(--sw-black);
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow-strong);
  }
}
#mainNav.scrolled {
  padding: 0.65rem 0;
  background: rgba(22, 22, 26, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.navbar-brand.sw-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.75rem;
  color: var(--sw-white);
  letter-spacing: 0.5px;
}
.navbar-brand.sw-logo span { color: var(--sw-orange); }
.navbar-brand.sw-logo sup {
  font-size: 0.8rem;
  font-style: normal;
  top: -0.9em;
}
.navbar-logo-img {
  height: 30px;
  width: auto;
  display: block;
}
/* En el inicio, el logo del navbar se oculta mientras se ve el logo grande del hero,
   y aparece al hacer scroll para no duplicarlo. */
.navbar-logo-conditional {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#mainNav.scrolled .navbar-logo-conditional {
  opacity: 1;
}
.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
  margin-bottom: 0.85rem;
}
#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}
#mainNav .nav-link.active,
#mainNav .nav-link:hover {
  color: var(--sw-white);
}
#mainNav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--sw-orange);
  border-radius: 2px;
}
#mainNav .navbar-toggler {
  border: none;
  color: var(--sw-white);
  font-size: 1.5rem;
}
.nav-phone {
  color: var(--sw-white);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: #0e0e11 url("../img/fondo-llantas.png") center center / cover no-repeat;
  overflow: hidden;
}
.hero .tire-pattern {
  display: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,12,0.92) 15%, rgba(10,10,12,0.55) 60%, rgba(10,10,12,0.25) 90%);
}
.hero .container { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block;
  color: var(--sw-orange-light);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.hero h1.brand-hero {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--sw-white);
  font-style: italic;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}
.hero h1.brand-hero span { color: var(--sw-orange); }
.hero-logo-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
.hero p.lead-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-title-page h1 {
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  color: var(--sw-white);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #232327 0%, var(--sw-black) 70%);
  overflow: hidden;
}
.page-hero .tire-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: repeating-radial-gradient(circle at 20% 60%, transparent 0, transparent 22px, rgba(255,255,255,0.07) 23px, rgba(255,255,255,0.07) 25px);
  background-size: 600px 600px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-photo {
  min-height: 34vh;
  background-image:
    linear-gradient(120deg, rgba(18,18,21,0.82) 0%, rgba(10,10,12,0.72) 70%),
    url("../img/servicios-header.png");
  background-size: cover;
  background-position: center 55%;
}
.page-hero-photo .tire-pattern { display: none; }
.breadcrumb-sw a { color: rgba(255,255,255,0.6); }
.breadcrumb-sw span { color: var(--sw-orange); }

/* Floating stat chip on hero */
.hero-stat-chip {
  position: absolute;
  right: 6%;
  bottom: 12%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--sw-radius);
  padding: 1.25rem 1.75rem;
  color: var(--sw-white);
  z-index: 2;
}
.hero-stat-chip .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sw-orange);
  line-height: 1;
}

/* =========================================================
   STAT STRIP
   ========================================================= */
.stat-strip {
  background: var(--sw-orange);
  color: var(--sw-white);
  padding: 2.75rem 0;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--sw-white);
  line-height: 1;
}
.stat-item .lbl {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.4rem;
}

/* =========================================================
   IMAGE PLACEHOLDER BLOCKS (swap with real photography)
   ========================================================= */
.ph-block {
  position: relative;
  border-radius: var(--sw-radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: rgba(255,255,255,0.85);
  background:
    linear-gradient(160deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15)),
    repeating-linear-gradient(135deg, #3a3a40 0 14px, #2c2c31 14px 28px);
}
.ph-block.orange-tone {
  background:
    linear-gradient(160deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05)),
    repeating-linear-gradient(135deg, var(--sw-orange-light) 0 14px, var(--sw-orange) 14px 28px);
}
.ph-block .ph-label {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.catalog-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: #111 url("../img/catalogo-banner.png") center 25% / cover no-repeat;
  overflow: hidden;
}
.catalog-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.25) 0%, rgba(10,10,12,0.75) 100%);
}
.catalog-banner .container {
  position: relative;
  z-index: 2;
}
.ph-block .ph-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.18);
}

/* =========================================================
   QUIENES SOMOS
   ========================================================= */
.about-photo-wrap { position: relative; }
.about-photo-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  display: block;
}
.service-photo-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  display: block;
}
.about-stat-card {
  position: absolute;
  right: -1.25rem;
  bottom: -1.75rem;
  background: var(--sw-orange);
  color: var(--sw-white);
  border-radius: var(--sw-radius);
  padding: 1.75rem;
  min-width: 210px;
  box-shadow: var(--sw-shadow-strong);
}
@media (max-width: 575.98px) {
  .about-stat-card { position: static; margin-top: 1rem; }
}
.about-stat-card .lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.about-stat-card .num { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; line-height: 1; margin: 0.15rem 0; }
.about-stat-card .sub { font-size: 0.85rem; opacity: 0.9; }

/* =========================================================
   FEATURE / ICON CARDS
   ========================================================= */
.icon-card {
  background: var(--sw-white);
  border-radius: var(--sw-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: var(--sw-shadow);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sw-shadow-strong);
}
.icon-card .icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(242, 113, 28, 0.12);
  color: var(--sw-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}
.icon-card h5 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.icon-card p { color: var(--sw-gray-text); font-size: 0.92rem; margin-bottom: 0; }

/* =========================================================
   CATALOGO DE LLANTAS
   ========================================================= */
.catalog-tabs {
  display: inline-flex;
  gap: 0.5rem;
  background: var(--sw-gray-bg);
  padding: 0.4rem;
  border-radius: 999px;
}
.catalog-tabs .nav-link {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sw-dark);
}
.catalog-tabs .nav-link.active {
  background: var(--sw-orange);
  color: var(--sw-white);
}

.brand-card {
  background: var(--sw-white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--sw-radius);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.brand-card:hover {
  box-shadow: var(--sw-shadow);
  transform: translateY(-4px);
}
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 1.1rem;
  letter-spacing: 0.3px;
}
.brand-logo-img {
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin-bottom: 1.1rem;
}
.tire-model-row {
  display: flex;
  gap: 0.75rem;
}
.tire-model {
  flex: 1;
  text-align: center;
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 0.85rem 0.5rem 0.65rem;
}
.tire-model .tire-icon {
  font-size: 1.6rem;
  color: var(--sw-dark);
  margin-bottom: 0.4rem;
  display: block;
}
.tire-model .tire-photo {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 0.4rem;
  display: block;
}
.tire-model .model-name {
  font-weight: 600;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.5rem;
  min-height: 2.1em;
}
.badge-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--sw-orange);
  color: var(--sw-white);
  text-transform: uppercase;
}
.badge-type.traccion { background: var(--sw-black); }

/* =========================================================
   SERVICIOS — bloques alternos
   ========================================================= */
.service-block:nth-child(even) { background: var(--sw-gray-bg); }
.service-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.service-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  color: var(--sw-dark);
  font-size: 0.97rem;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.service-list li:last-child { border-bottom: none; }
.service-list i {
  color: var(--sw-orange);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

/* =========================================================
   SUCURSALES / CONTACTO
   ========================================================= */
.branch-card {
  background: var(--sw-white);
  border-radius: var(--sw-radius);
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--sw-shadow);
}
.branch-card .map-frame {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  filter: grayscale(15%);
}
.branch-card .branch-body { padding: 1.5rem; }
.branch-card h5 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.branch-card .badge-matriz {
  background: var(--sw-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.branch-card address {
  color: var(--sw-gray-text);
  font-size: 0.9rem;
  margin: 0.5rem 0 0.75rem;
}
.branch-card .phone-link {
  color: var(--sw-dark);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.branch-card .phone-link i { color: var(--sw-orange); }

.contact-form-wrap {
  background: var(--sw-white);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-strong);
  padding: 2.5rem;
}
.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.75rem 1rem;
  font-size: 0.93rem;
}
.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
  border-color: var(--sw-orange);
  box-shadow: 0 0 0 0.2rem rgba(242, 113, 28, 0.15);
}
.contact-form-wrap label { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.35rem; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: var(--sw-gray-bg);
  text-align: center;
  padding: 4rem 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(120deg, var(--sw-orange) 0%, var(--sw-orange-dark) 100%);
  color: var(--sw-white);
  padding: 4rem 0 1.5rem;
  position: relative;
}
.site-footer .footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 2rem;
}
.site-footer h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.site-footer p, .site-footer a {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-divider {
  border-color: rgba(255,255,255,0.3);
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  color: rgba(255,255,255,0.85);
}
.social-icons { display: flex; gap: 0.65rem; margin-top: 1rem; }
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}
.social-icons a:hover {
  background: #fff;
  color: var(--sw-orange);
  text-decoration: none;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sw-black);
  color: var(--sw-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sw-orange); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: sw-pulse 2.4s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@keyframes sw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Marquee de marcas */
.brand-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-marquee-track {
  display: inline-flex;
  gap: 3.5rem;
  align-items: center;
  animation: sw-scroll 28s linear infinite;
}
.brand-marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--sw-gray-text);
  opacity: 0.75;
}
.brand-marquee-track img {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.brand-marquee:hover .brand-marquee-track img {
  opacity: 0.9;
  filter: grayscale(40%);
}
@keyframes sw-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.rounded-sw { border-radius: var(--sw-radius) !important; }
.shadow-sw { box-shadow: var(--sw-shadow) !important; }
