:root {
  --bg-main: #090d14;
  --bg-panel: #0f1722;
  --line: #212b3a;
  --text: #f3f6fb;
  --muted: #a3b0c4;
  --accent: #ea2231;
  --accent-soft: #ff565f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 5%, #1d2c42 0%, transparent 32%),
    radial-gradient(circle at 88% 0%, #311622 0%, transparent 30%),
    linear-gradient(160deg, #05070d, #0b1119 45%, #070b11);
  min-height: 100vh;
}

.title-rounded {
  font-family: "Baloo 2", system-ui, sans-serif;
  letter-spacing: 0.4px;
}

.page-shell {
  width: 100%;
  margin: 0;
  border-left: 1px solid #1a2636;
  border-right: 1px solid #1a2636;
  background: linear-gradient(180deg, rgba(12, 19, 30, 0.9), rgba(8, 13, 20, 0.95));
  backdrop-filter: blur(8px);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 1rem;
  background: linear-gradient(to right, rgba(15, 21, 31, 0.9), rgba(10, 14, 20, 0.95));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff1a2d, #7f161f);
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #e8edf7;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  border-bottom-color: var(--accent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-toggle {
  display: none;
  border: 1px solid #3d4f6b;
  color: var(--text);
  background: #1a2433;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #334055;
  border-radius: 999px;
  overflow: hidden;
  background: #111925;
}

.search-box input {
  width: 110px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0.45rem 0.65rem;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.search-box button,
.lang {
  border: 0;
  color: var(--text);
  background: #1a2433;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.lang {
  border-radius: 999px;
  font-size: 0.75rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 215px 1fr;
  min-width: 0;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d141f, #0b111b);
  padding: 1rem 0.85rem;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 14, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1090;
}

.sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.filter-block {
  margin-bottom: 1rem;
  border-bottom: 1px dashed #2b3342;
  padding-bottom: 0.85rem;
}

.filter-block h3 {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.filter-block label {
  display: block;
  color: #c4cedd;
  font-size: 0.82rem;
  margin: 0.3rem 0;
}

.main-area {
  padding: 0.8rem;
  min-width: 0;
}

.hero {
  border-radius: 18px;
  min-height: 430px;
  border: 1px solid #273246;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(6, 10, 18, 0.2), rgba(6, 10, 18, 0.76)),
    url("imagenes/honda_carnovi1.png");
  background-size: cover;
  background-position: center;
  position: relative;
  transition: background-image 0.5s ease;
}

.hero-overlay {
  padding: 1.2rem 1.3rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(4, 8, 15, 0.42), rgba(4, 8, 15, 0.16) 35%, rgba(4, 8, 15, 0.6));
  min-height: 430px;
}

.eyebrow {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.12rem;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  text-transform: uppercase;
}

.hero-copy {
  margin: 0.55rem auto;
  max-width: 680px;
  color: #d0d9e8;
  font-size: 1rem;
}

.hero-cta {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.35rem;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2c3d, #bb1120);
}

.btn-secondary {
  background: linear-gradient(135deg, #484f59, #30353c);
}

.hero-dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.dot {
  width: 38px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: #909eb6;
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

.promo-video {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background-image: linear-gradient(160deg, rgb(9 16 26 / 0%), rgb(8 14 23 / 34%)), url(imagenes/carnovi_honda_sales.png);
  background-size: cover;
  background-position: center;
}

.promo-video-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.promo-video-head h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
}

.video-audio-toggle {
  border: 1px solid #3a4d68;
  background: linear-gradient(130deg, #1f2b3e, #152031);
  color: #f3f7ff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.35px;
  cursor: pointer;
}

.video-audio-toggle.is-on {
  background: linear-gradient(130deg, #ff3f4f, #ba1a2a);
  border-color: #ff6d78;
}

.promo-video-frame {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden; 
  border: 1px solid #2a374a;
  background: #060a10;
}

.video-cover-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.video-cover-image.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 1px solid #ff7f88;
  border-radius: 999px;
  background: linear-gradient(130deg, rgba(234, 34, 49, 0.95), rgba(150, 13, 23, 0.95));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.25s ease;
}

.video-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.video-play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.promo-video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.featured {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(11, 17, 26, 0.86);
  min-width: 0;
}

.featured-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured-head h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.featured-nav button {
  border: 0;
  background: #212f44;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  cursor: pointer;
}

.cards {
  --featured-gap: 0.8rem;
  margin-top: 0.8rem;
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: var(--featured-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.cards::-webkit-scrollbar {
  height: 8px;
}

.cards::-webkit-scrollbar-thumb {
  background: #2b3b55;
  border-radius: 999px;
}

.cards::-webkit-scrollbar-track {
  background: #0f1622;
}

.car-card {
  flex: 0 0 calc((100% - var(--featured-gap)) / 2);
  min-width: 0;
  scroll-snap-align: start;
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 44%) 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(165deg, #161f2e, #131a24);
  border: 1px solid #2a3448;
  border-radius: 14px;
  padding: 0.8rem;
}

.car-card img {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
  border-radius: 12px;
}
 
.rank {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--accent);
  font-weight: 800;
  border-radius: 8px;
  font-size: 0.8rem;
  padding: 0.2rem 0.38rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.card-body p {
  margin: 0.35rem 0 0;
  color: #dce6f8;
  font-size: 0.86rem;
  line-height: 1.35;
}

.card-body {
  min-width: 0;
}

.fav {
  border: 0;
  background: transparent;
  color: #ff5362;
  font-size: 1.28rem;
  cursor: pointer;
  align-self: start;
}

.brands-section {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(224, 231, 240, 0.95), rgba(211, 220, 233, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 8px, rgba(255, 255, 255, 0.1) 8px 16px);
}

.brands-toggle {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  animation: brands-vibrate 1.8s linear infinite;
}

.brands-toggle .title-rounded {
  color: #101827;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.brands-arrow {
  color: #101827;
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.brands-section.is-open .brands-arrow {
  transform: rotate(180deg);
}

.brands-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.brands-section.is-open .brands-content {
  max-height: 700px;
  opacity: 1;
}

.brands-content p {
  margin: 0.5rem 0 0.8rem;
  color: #2f3d52;
  font-size: 0.92rem;
}

@keyframes brands-vibrate {
  0% {
    transform: translateX(0);
  }

  3% {
    transform: translateX(-1px) rotate(-0.6deg);
  }

  6% {
    transform: translateX(1px) rotate(0.6deg);
  }

  9% {
    transform: translateX(-1px) rotate(-0.4deg);
  }

  12% {
    transform: translateX(1px) rotate(0.4deg);
  }

  15% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(0);
  }
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.brand-chip {
  border: 1px solid #95a6bf;
  background: linear-gradient(180deg, #ffffff, #e9eef5);
  color: #0f1928;
  border-radius: 12px;
  padding: 0.8rem 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-chip:hover {
  transform: translateY(-2px);
  border-color: #ea2231;
  box-shadow: 0 10px 18px rgba(17, 25, 40, 0.18);
}

.brand-chip:active {
  transform: translateY(0);
}

.city-flyer {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0d1522;
}

.city-flyer img {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1rem;
  margin-top: 0.9rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(52, 16, 26, 0.4), transparent 30%),
    linear-gradient(150deg, #0a1019, #0b1220 45%, #0c1a2a);
  color: #d6dfee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 1rem;
}

.footer-block {
  background: rgba(15, 24, 37, 0.82);
  border: 1px solid #27364d;
  border-radius: 14px;
  padding: 0.9rem;
}

.footer-block h3 {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.footer-brand p,
.footer-links p {
  margin: 0;
  color: #bdcbdf;
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-links ul {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
}

.footer-links li {
  margin: 0.35rem 0;
}

.footer-links a,
.map-link {
  color: #e5edf9;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover,
.map-link:hover {
  color: #ff7b84;
}

.footer-contact {
  border-top: 1px dashed #304462;
  padding-top: 0.5rem;
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.footer-copy {
  margin: 0.8rem 0 0;
  border-top: 1px solid #2b3a52;
  padding-top: 0.7rem;
  text-align: center;
  color: #acbbd1;
  font-size: 0.83rem;
}

.socials {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #22334a;
  border: 1px solid #334866;
  color: white;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .filter-block {
    margin-bottom: 0;
  }

  .brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-sidebar-width: min(84vw, 320px);
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .topbar,
  .content-grid,
  .footer {
    transition: transform 0.28s ease;
    will-change: transform;
  }

  body.sidebar-push-open .topbar,
  body.sidebar-push-open .content-grid,
  body.sidebar-push-open .footer {
    transform: translateX(var(--mobile-sidebar-width));
  }

  .actions {
    width: 100%;
    justify-content: center;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    gap: 0.75rem;
  }

  .promo-video-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--mobile-sidebar-width);
    height: 100vh;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    overflow-y: auto;
    z-index: 1100;
    transform: translateX(calc(-1 * var(--mobile-sidebar-width) - 8px));
    transition: transform 0.28s ease;
    grid-template-columns: 1fr;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .cards {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .car-card {
    flex: 0 0 88%;
    grid-template-columns: 1fr;
  }

  .car-card img {
    height: 210px;
  }

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-map {
    grid-column: auto;
  }
}
