:root {
  --red: #e2231a;
  --red-dark: #b81b14;
  --black: #0b0b0d;
  --dark: #151517;
  --grey-100: #f6f6f7;
  --grey-300: #e4e4e7;
  --text: #101114;
  --muted: #666a72;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 52px;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.menu a {
  position: relative;
  padding: 0.4rem 0.1rem;
  color: #3a3a3f;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 0.2s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.menu a.active,
.menu a:hover {
  color: var(--red);
}

.menu a.active::after,
.menu a:hover::after {
  transform: scaleX(1);
}

/* Buttons */

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 1rem 2rem;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(226, 35, 26, 0.32);
}

.button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.link-button {
  border-color: var(--black);
  color: var(--black);
  background: transparent;
}

.link-button:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.link-button.light {
  border-color: var(--black);
  color: var(--black);
}

.link-button.light:hover {
  background: var(--black);
  color: var(--white);
}

/* Hero banner */

.hero-banner {
  position: relative;
  background: var(--white);
  color: var(--text);
  overflow: hidden;
  min-height: min(640px, 88vh);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--grey-300);
}

.hero-banner-inner {
  position: relative;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(24px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 2.5rem;
  align-items: center;
}

.hero-banner-inner.single {
  grid-template-columns: minmax(0, 720px);
}

.hero-eyebrow {
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  margin: 0 0 1.1rem;
}

.hero-text h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-image {
  position: relative;
  max-width: 100%;
  max-height: 380px;
  width: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-text {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-fade .hero-text,
.hero-fade .hero-image {
  opacity: 0;
  transform: translateY(8px);
}

.hero-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 3;
  pointer-events: none;
}

.hero-arrow {
  pointer-events: all;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--black);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.hero-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--grey-300);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dots button.active {
  background: var(--red);
  transform: scale(1.25);
}

/* Sections */

.section {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) 24px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.8rem;
}

.section-kicker {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
  margin-bottom: 1.1rem;
}

.section h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section p {
  max-width: 720px;
  color: var(--muted);
}

/* Benefits */

.benefits-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit-card {
  text-align: center;
  padding: 2.2rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--grey-300);
  background: var(--white);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}

.benefit-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(226, 35, 26, 0.1);
  color: var(--red);
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
}

.benefit-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Generic cards */

.cards {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 2rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--grey-300);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}

.card h3 {
  margin-top: 0;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card p {
  color: var(--muted);
}

.section-dark {
  max-width: none;
  width: 100%;
  padding: 0;
  background: var(--black);
  color: var(--white);
}

.section-dark .section-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) 24px;
}

.section-dark p,
.section-dark .card p {
  color: rgba(255, 255, 255, 0.65);
}

.section-dark .card {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Lead form */

.lead-form {
  max-width: 640px;
  display: grid;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 20px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.form-field input,
.form-field select {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--grey-300);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--red);
}

.lead-form .button {
  justify-self: start;
  border: none;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 680px) {
  .lead-form {
    /* Deja libre la esquina inferior derecha: ahí flotan siempre los botones
       fijos de WhatsApp/llamada y sin este margen tapan el campo y roban el tap. */
    padding-right: calc(2rem + 46px);
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Branches */

.branch-search {
  max-width: 420px;
  margin-bottom: 2rem;
}

.branch-search input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.branch-search input:focus {
  outline: none;
  border-color: var(--red);
}

.branch-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.branch-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid var(--grey-300);
  background: var(--white);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.branch-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}

.branch-badge {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(226, 35, 26, 0.1);
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.branch-card h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.branch-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.branch-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.branch-actions .link-button {
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
}

.branch-empty {
  padding: 1.6rem;
  color: var(--muted);
  border: 1px dashed var(--grey-300);
  border-radius: 16px;
}

/* Footer */

.footer {
  background: var(--black);
  border-top: none;
  padding: 2.4rem 24px;
  margin-top: auto;
}

.footer .footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer small {
  color: #9a9aa2;
}

.footer a {
  color: var(--white);
  font-weight: 600;
}

.footer a:hover {
  color: var(--red);
}

/* Fixed actions */

.fixed-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 60;
}

.fixed-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.fixed-actions a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.fixed-actions a.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fixed-actions a.is-disabled:hover {
  background: var(--black);
  transform: none;
}

/* Catalog */

.catalog-wrapper {
  display: grid;
  gap: 1.5rem;
}

.catalog-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-count {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-select {
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.catalog-select:focus {
  outline: none;
  border-color: var(--red);
}

.catalog-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--grey-300);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--grey-100);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-body {
  padding: 1.6rem 1.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.product-card h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card .meta {
  display: grid;
  gap: 0.5rem;
}

.product-card .meta span {
  font-size: 0.88rem;
  color: var(--muted);
}

.product-card h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.product-card h3 a:hover {
  color: var(--red);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-top: 1px dashed var(--grey-300);
  padding-top: 0.9rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: gap 0.2s ease;
}

.product-link:hover {
  gap: 0.6rem;
}

/* Model detail page */

.breadcrumb {
  max-width: 1300px;
  margin: 0 auto 2rem;
  padding: 0 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--red);
}

.model-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 2.5rem;
  align-items: start;
}

.model-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--grey-100);
}

.gallery-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}

.gallery-arrow {
  pointer-events: all;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--black);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.model-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.model-gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--grey-100);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.model-gallery-thumbs img:hover {
  opacity: 1;
}

.model-gallery-thumbs img.active {
  border-color: var(--red);
  opacity: 1;
}

.model-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.model-info h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.model-lead {
  margin: 0;
  color: var(--muted);
}

.model-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 0.7rem 1.2rem;
}

.model-meta-grid span {
  font-size: 0.9rem;
  color: var(--muted);
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.model-description {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey-300);
}

.model-description h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 1rem;
}

.model-description p {
  color: var(--muted);
  max-width: 900px;
}

@media (max-width: 900px) {
  .model-detail {
    grid-template-columns: 1fr;
  }
}

.product-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.6rem 1.6rem;
  margin-top: auto;
}

.product-actions .button,
.product-actions .link-button {
  padding: 0.75rem 1.3rem;
  font-size: 0.78rem;
}

/* Responsive */

@media (max-width: 1300px) {
  .menu {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .hero-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-wrap {
    order: -1;
  }

  .benefits-grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .navbar {
    padding: 16px 18px;
    flex-wrap: wrap;
  }

  .menu {
    gap: 1.2rem;
  }

  .hero-banner {
    min-height: auto;
  }

  .hero-banner-inner {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-arrows {
    display: none;
  }

  .fixed-actions {
    right: 16px;
    bottom: 16px;
  }

  .benefits-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
