:root {
  --bg: #f3f6f8;
  --bg-elevated: #ffffff;
  --ink: #10233a;
  --ink-soft: #4a6075;
  --line: #d5dee8;
  --brand: #0b3d5c;
  --accent: #e8a317;
  --accent-deep: #c8870a;
  --whatsapp: #1fa855;
  --whatsapp-deep: #178c44;
  --hero-ink: #f7fbff;
  --shadow: 0 18px 40px rgba(16, 35, 58, 0.08);
  --radius: 14px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 163, 23, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(11, 61, 92, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 248, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(243, 246, 248, 0.92);
  border-bottom-color: rgba(213, 222, 232, 0.9);
  box-shadow: 0 8px 24px rgba(16, 35, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo span {
  color: var(--accent-deep);
  margin-left: 0.2em;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--brand);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 168, 85, 0.28);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-deep);
  box-shadow: 0 14px 28px rgba(31, 168, 85, 0.36);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--hero-ink);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-header {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--hero-ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 28, 45, 0.9) 18%, rgba(11, 61, 92, 0.78) 55%, rgba(7, 28, 45, 0.62) 100%),
    url("images/car-battery.svg") right 8% center / min(46vw, 520px) auto no-repeat,
    linear-gradient(145deg, #071c2d, #0b3d5c 55%, #164d6f);
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-energy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 35%, rgba(232, 163, 23, 0.22), transparent 28%),
    radial-gradient(circle at 20% 70%, rgba(31, 168, 85, 0.12), transparent 25%);
  animation: energyPulse 4.5s ease-in-out infinite;
}

.hero-float {
  position: absolute;
  z-index: 1;
  width: min(34vw, 280px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  opacity: 0.92;
  pointer-events: none;
  transition: translate 0.2s ease-out;
}

.hero-float img {
  width: 100%;
  height: auto;
}

.hero-float-1 {
  top: 18%;
  right: 8%;
  animation: floatA 6s ease-in-out infinite;
}

.hero-float-2 {
  top: 48%;
  right: 26%;
  width: min(24vw, 190px);
  animation: floatB 7.5s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4.5rem;
  max-width: 720px;
  animation: riseIn 0.9s ease both;
}

.brand-mark {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--accent);
  animation: riseIn 0.8s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 14ch;
  animation: riseIn 0.9s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
  color: rgba(247, 251, 255, 0.86);
  max-width: 42ch;
  animation: riseIn 1s ease 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 1.05s ease 0.2s both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: -0.6rem 0 1.5rem;
  color: rgba(247, 251, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
  animation: riseIn 1s ease 0.16s both;
}

.hero-meta a {
  color: var(--accent);
  border-bottom: 1px solid rgba(232, 163, 23, 0.4);
}

.hero-meta a:hover {
  color: #ffd36a;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.categories {
  padding: 2.5rem 0 1rem;
}

.category-strip {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.category-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(11, 61, 92, 0.1);
}

.category-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 61, 92, 0.22);
  animation: chipPop 0.35s ease;
}

.products {
  padding: 1.5rem 0 3.5rem;
}

.products-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.product-grid.is-exiting {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.product {
  --i: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}

.product.is-visible,
.product-grid.is-animating .product {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 0.05s);
}

.product:hover {
  box-shadow: 0 26px 48px rgba(16, 35, 58, 0.16);
  border-color: rgba(11, 61, 92, 0.28);
}

.product-visual {
  --mx: 50%;
  --my: 50%;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(145deg, #071c2d 0%, #0b3d5c 55%, #164d6f 100%);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s ease;
}

.product:hover .product-image {
  transform: scale(1.1);
}

.product-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.28),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: soft-light;
}

.product:hover .product-shine {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: rgba(7, 28, 45, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.product-body {
  padding: 1.15rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.product-brand {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink);
}

.product-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.product-specs {
  margin: 0.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-specs li {
  background: #eef3f7;
  color: var(--brand);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.product:hover .product-specs li {
  background: #e4edf5;
}

.product .btn {
  margin-top: 0.35rem;
  width: 100%;
}

.why {
  padding: 1rem 0 4.5rem;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.why-list li {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.3rem;
  transition: transform 0.25s ease, padding-left 0.25s ease;
}

.why-list li:hover {
  transform: translateX(6px);
}

.why-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.why-list strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
}

.why-list span {
  color: var(--ink-soft);
  max-width: 48ch;
}

.visit {
  padding: 1rem 0 4.5rem;
}

.visit-layout {
  display: grid;
  gap: 1.4rem;
}

.visit-details {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.visit-block h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.visit-block p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.visit-area {
  margin-top: 0.45rem !important;
  color: var(--accent-deep) !important;
  font-weight: 700;
}

.visit-phone {
  display: inline-block;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.visit-phone:hover {
  color: var(--whatsapp);
  transform: translateY(-1px);
}

.visit-note {
  margin-top: 0.4rem !important;
  font-size: 0.92rem;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-map {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 61, 92, 0.22);
}

.btn-map:hover {
  background: #0a3149;
}

.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 320px;
  background: #dce6ef;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.site-footer {
  background: #071c2d;
  color: rgba(247, 251, 255, 0.82);
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.footer-contact {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  max-width: 42ch;
}

.footer-contact a {
  color: var(--accent);
}

.footer-contact a:hover {
  color: #ffd36a;
}

.logo-footer {
  color: #fff;
}

.logo-footer span {
  color: var(--accent);
}

.footer-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(247, 251, 255, 0.55);
}

.fab-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(31, 168, 85, 0.4);
  animation: pulseFab 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, background 0.25s ease;
}

.fab-whatsapp:hover {
  background: var(--whatsapp-deep);
  transform: scale(1.08) rotate(-8deg);
  animation: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes energyPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-14px) rotate(-1deg);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@keyframes chipPop {
  0% {
    transform: scale(0.94);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulseFab {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(31, 168, 85, 0.4);
  }
  50% {
    box-shadow: 0 14px 36px rgba(31, 168, 85, 0.62), 0 0 0 10px rgba(31, 168, 85, 0.12);
  }
}

@media (max-width: 899px) {
  .hero-float {
    display: none;
  }

  .hero-bg {
    background:
      linear-gradient(120deg, rgba(7, 28, 45, 0.92) 10%, rgba(11, 61, 92, 0.82) 100%),
      url("images/car-battery.svg") center 28% / min(78vw, 360px) auto no-repeat,
      linear-gradient(145deg, #071c2d, #0b3d5c 55%, #164d6f);
  }
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content {
    padding-bottom: 5.5rem;
  }

  .visit-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }

  .visit-map,
  .visit-map iframe {
    min-height: 100%;
    height: 100%;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 1.4fr auto;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .product,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
