:root {
  --bg: #ffffff;
  --white: #ffffff;
  --ink: #141414;
  --muted: #6f6f6f;
  --line: #d8d8d8;
  --panel: #ffffff;
  --dark: #2e2e34;
  --red: #df102d;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: 100%;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #ededed;
}

.main-nav {
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
}

.brand img {
  height: 52px;
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 6px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 700;
  color: #3f3f3f;
}

.nav-links a:hover {
  color: #000;
}

.account-wrap {
  margin-left: auto;
  position: relative;
}

.account-btn {
  border: 0;
  background: transparent;
  color: #4b4b4b;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 168px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  display: none;
  padding: 8px;
}

.account-menu.open {
  display: grid;
  gap: 4px;
}

.account-menu button {
  border: 0;
  background: #f6f6f6;
  border-radius: 8px;
  height: 34px;
  font: 600 12px "Montserrat", sans-serif;
  cursor: pointer;
}

.account-menu button:hover {
  background: #ececec;
}

.hero {
  position: relative;
  height: min(46vw, 500px);
  min-height: 320px;
  background: #111;
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide video,
.hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-one {
  background: linear-gradient(130deg, #273645, #6d0f1f);
}

.hero-two {
  background: linear-gradient(120deg, #1d242c, #4d4f55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 28%, rgba(0, 0, 0, 0.72) 100%), url("imagen/marcas.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: var(--white);
  padding: 24px;
  gap: 8px;
}

.hero-overlay h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

.hero-overlay p {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.pill-btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 18px;
  font: 700 11px "Montserrat", sans-serif;
  background: var(--white);
  color: #111;
  cursor: pointer;
}

.pill-btn.red {
  background: var(--red);
  color: var(--white);
}

.pill-btn.light {
  border: 1px solid #111;
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  font-size: 24px;
  line-height: 0;
  cursor: pointer;
}

.hero-arrow.left {
  left: 20px;
}

.hero-arrow.right {
  right: 20px;
}

.hero-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pause-chip {
  width: 24px;
  height: 16px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active {
  background: #fff;
}

.explore {
  padding: 42px 24px;
  background: #fff;
}

.explore h2,
.guide h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 800;
}

.segment-tabs {
  margin: 30px auto 20px;
  width: min(880px, 100%);
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tab {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #4f4f4f;
  font: 700 11px "Montserrat", sans-serif;
  padding: 0 0 8px;
  cursor: pointer;
}

.tab.is-active {
  color: #111;
  border-color: #111;
}

.vehicle-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-card {
  border-radius: 6px;
  overflow: hidden;
  background: #a3a398;
  min-height: 244px;
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vehicle-badge {
  width: fit-content;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
}

.vehicle-year {
  margin: 8px 0 6px;
  font-size: 11px;
  font-weight: 700;
}

.vehicle-name {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}

.vehicle-copy {
  margin: 8px 0 0;
  font-size: 13px;
  color: #2a2a2a;
}

.vehicle-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.vehicle-price {
  font-size: 30px;
  font-weight: 700;
}

.vehicle-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vehicle-cta a {
  font-size: 11px;
  font-weight: 800;
}

.explore-pagination {
  margin: 18px auto 0;
  width: min(240px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.explore-pagination span {
  font-size: 12px;
  font-weight: 700;
}

.round-nav {
  width: 36px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.explore-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.text-link {
  font-size: 12px;
  font-weight: 700;
}

.guide {
  background: #fff;
  padding: 64px 24px 72px;
}

.guide h2 {
  color: #111;
  margin: 0 0 52px;
  text-align: center;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 800;
}

.guide-icons {
  margin: 0 auto;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.guide-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 0;
  border-left: 1px solid #e0e0e0;
  padding: 32px 20px 28px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  transition: background 160ms;
}

.guide-tile:first-child {
  border-left: 0;
}

.guide-tile:hover {
  background: #f7f7f7;
}

.guide-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}

.guide-label {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.full-banner {
  position: relative;
  background: var(--panel);
  padding: 26px 0;
}

.banner-image {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  border-radius: 26px;
  height: min(48vw, 530px);
  min-height: 260px;
  overflow: hidden;
}

.placeholder-city {
  background: #d9d9d9 url("imagen/Vehiculo_toyota.svg.png") center center / cover no-repeat;
}

.banner-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 24px;
  width: min(1240px, calc(100% - 48px));
  color: #fff;
  font-size: clamp(38px, 11vw, 140px);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.media-carousel {
  background: #fff;
  padding: 56px 20px 36px;
}

.media-stage {
  position: relative;
  margin: 0 auto;
  width: min(860px, 100%);
  height: min(34vw, 340px);
  min-height: 220px;
}

.media-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 250ms ease;
}

.media-item.is-active {
  opacity: 1;
}

.media-image {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

.desert {
  background: url("imagen/Rav4.png") center 75%/cover no-repeat;
  border-radius: 14px;
}

.mountain {
  background: url("imagen/Hilux.png") center 72%/cover no-repeat;
  border-radius: 14px;
}

.sunset {
  background: url("imagen/Carmiami.png") center 60%/cover no-repeat;
}

.street {
  background: url("imagen/Rav4b.png") center 72%/cover no-repeat;
}

.trail {
  background: url("imagen/Pradon.png") center 52%/cover no-repeat;
}

.media-nav {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.line-dots {
  display: flex;
  gap: 8px;
}

.line-dots button {
  width: 14px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  padding: 0;
}

.line-dots button.active {
  width: 56px;
  background: #111;
}

.discover {
  background: #fff;
  padding: 52px 24px 0;
}

.discover h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 800;
}

.discover-tabs {
  margin: 22px auto 0;
  width: min(880px, 100%);
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 0;
}

.discover-tabs .tab {
  padding-bottom: 10px;
  font-size: 13px;
}

.service-spot {
  background: #fff;
  padding: 22px 24px 28px;
}

.service-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  background: #3f3d42;
  color: #fff;
  min-height: 205px;
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.service-card-image {
  background: linear-gradient(130deg, #2a2a2a, #555);
  min-height: 205px;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  gap: 8px;
}

.service-card h3 {
  margin: 5px 0;
  font-size: clamp(24px, 4vw, 42px);
}

.service-card p {
  max-width: 640px;
  margin: 0 0 16px;
  font-size: 13px;
}

.mini-label {
  margin: 0;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.stories {
  background: #fff;
  padding: 22px 24px 36px;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.story-card {
  min-height: 290px;
  border-radius: 2px;
  overflow: hidden;
  background: #999;
  position: relative;
}

.story-image {
  position: absolute;
  inset: 0;
}

.fog {
  background: linear-gradient(180deg, #e4e4e4, #3f3f3f);
}

.gray {
  background: linear-gradient(180deg, #ececec, #363636);
}

.dark {
  background: linear-gradient(180deg, #dedede, #2a2a2a);
}

.story-copy {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
}

.story-copy h4 {
  margin: 4px 0 10px;
  font-size: 35px;
  line-height: 1.05;
}

.site-footer {
  background: #fff;
  padding: 26px 24px 34px;
  border-top: 1px solid #ddd;
}

.footer-top-links {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-top-links a {
  font-size: 11px;
  font-weight: 700;
}

.social-row {
  width: min(1120px, 100%);
  margin: 16px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.footer-grid h5 {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  font-size: 11px;
  color: #434343;
  margin-bottom: 6px;
}

.footer-bottom {
  width: min(1120px, 100%);
  margin: 26px auto 0;
  border-top: 1px solid #ddd;
  padding-top: 16px;
  text-align: center;
}

.footer-brand img {
  height: 26px;
  width: auto;
}

.footer-bottom p {
  margin: 10px 0 0;
  font-size: 11px;
  color: #636363;
}

.sabemos {
  background: #fff;
  padding: 28px 24px 36px;
  text-align: center;
}

.sabemos-label {
  margin: 0 0 8px;
  font-size: 11px;
  color: #5f5f5f;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sabemos h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .guide-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-tile { border-left: 0; border-top: 1px solid #e0e0e0; padding: 24px 14px; }
  .guide-tile:nth-child(odd) { border-left: 0; }
  .guide-tile:nth-child(even) { border-left: 1px solid #e0e0e0; }
  .guide-tile:first-child, .guide-tile:nth-child(2) { border-top: 0; }
  .service-card { grid-template-columns: 1fr; }
  .service-card-image { min-height: 140px; }
  .discover-tabs { gap: 12px; }
}

@media (max-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stories {
    grid-template-columns: 1fr;
  }

  .story-copy h4 {
    font-size: clamp(30px, 6vw, 44px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .main-nav {
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    padding: 8px 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    order: 4;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid #efefef;
    margin-top: 8px;
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 8px 0;
  }

  .account-wrap {
    margin-left: 0;
    margin-right: 8px;
  }

  .hero-overlay h1 {
    font-size: clamp(26px, 6vw, 36px);
  }

  .hero-overlay p {
    font-size: 16px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .guide-space {
    height: 120px;
  }

  .banner-image,
  .banner-title {
    width: calc(100% - 20px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
