/* ==========================================================================
   Ferrari Baterias — Landing Page
   ========================================================================== */

:root {
  --blue-950: #051230;
  --blue-900: #0a2e7a;
  --blue-850: #0c3690;
  --blue-800: #0e3d96;
  --blue-700: #135bc0;
  --blue-600: #1670d6;
  --blue-500: #2e8bef;
  --gold-600: #c68f06;
  --gold-500: #e1aa09;
  --gold-400: #f2c230;
  --gold-300: #f8d666;
  --ink-900: #0b1b33;
  --ink-700: #2c3a52;
  --ink-600: #4a5568;
  --ink-400: #8a93a3;
  --bg-light: #f4f7fc;
  --bg-soft: #eaf0fa;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(10, 27, 64, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 27, 64, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 27, 64, 0.18);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(225, 170, 9, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--ink-600);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.6;
}

.section-head {
  text-align: center;
  margin: 0 auto 44px;
  max-width: 700px;
}

.section-head .section-sub { margin: 0 auto; }

section { padding: 76px 0; }

@media (max-width: 768px) {
  section { padding: 52px 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn svg { flex-shrink: 0; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--blue-950);
  box-shadow: 0 10px 24px rgba(225, 170, 9, 0.35);
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(225, 170, 9, 0.45); }

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--blue-900);
  box-shadow: 0 10px 24px rgba(5, 18, 48, 0.25);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(5, 18, 48, 0.32); }

.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-900);
  box-shadow: 0 4px 18px rgba(5, 18, 48, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}

.brand { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.brand img { height: 46px; width: auto; max-width: none; }

.main-nav { display: flex; gap: 28px; flex-shrink: 1; min-width: 0; }

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-tel svg { color: var(--gold-400); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-tel span { display: none; }
}

@media (max-width: 640px) {
  .btn-header-whatsapp span { display: none; }
  .btn-header-whatsapp { padding: 12px; border-radius: 50%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--blue-900);
  overflow: hidden;
}

.hero picture,
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 90px 0 90px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-badge .stars { color: var(--gold-400); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.hero h1 .highlight { color: var(--gold-400); }

.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }

@media (max-width: 768px) {
  .hero { min-height: 560px; align-items: flex-start; }
  .hero-bg { object-position: top center; }
  .hero-content {
    max-width: 100%;
    padding: 26px 0 0;
  }
  .hero .container { padding: 0 22px; }
  .hero-badge { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.18; margin-bottom: 12px; }
  .hero-sub { max-width: 100%; font-size: 1rem; margin-bottom: 20px; }
}

@media (max-width: 480px) {
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Benefit cards
   ========================================================================== */

.benefits { background: var(--bg-light); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(10, 46, 122, 0.06);
}

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

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-800), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 18px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 8px;
}

.benefit-card p { color: var(--ink-600); font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Marquee (battery brands + manufacturers)
   ========================================================================== */

.marquee-section {
  padding: 56px 0;
  background: var(--white);
}

.marquee-section.alt { background: var(--bg-light); }

.marquee-section .section-head { margin-bottom: 30px; }

.marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee-left 32s linear infinite;
}

.marquee-track.reverse { animation-name: marquee-right; animation-duration: 26s; }

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.logo-card {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 46, 122, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

.logo-card.brand-logo { width: 110px; height: 90px; padding: 18px; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-wrap { overflow-x: auto; }
}

/* ==========================================================================
   Store gallery
   ========================================================================== */

.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid figure {
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img { transform: scale(1.08); }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ==========================================================================
   Premiados carousel
   ========================================================================== */

.premiados {
  background: linear-gradient(180deg, var(--blue-950), var(--blue-900) 60%, var(--blue-950));
  color: var(--white);
}

.premiados .section-title { color: var(--white); }
.premiados .section-sub { color: rgba(255, 255, 255, 0.75); }

.premiados-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.carousel-controls { display: flex; gap: 10px; }

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.carousel-btn:hover { background: rgba(255, 255, 255, 0.2); }

.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.premiado-card {
  flex: 0 0 auto;
  width: min(560px, 82vw);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--blue-900);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premiado-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { background: var(--bg-light); }

.rating-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--white);
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: var(--shadow-sm);
  max-width: 460px;
  margin: 0 auto 44px;
}

.rating-banner .g-logo { font-weight: 800; font-size: 1.3rem; }
.rating-banner .g-blue { color: #4285f4; }
.rating-banner .g-red { color: #ea4335; }
.rating-banner .g-yellow { color: #fbbc05; }
.rating-banner .g-green { color: #34a853; }

.rating-score { font-weight: 800; font-size: 1.3rem; color: var(--blue-900); }
.rating-stars { color: var(--gold-500); letter-spacing: 1px; }
.rating-count { color: var(--ink-600); font-size: 0.9rem; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars { color: var(--gold-500); letter-spacing: 2px; font-size: 0.95rem; }

.testimonial-card p {
  color: var(--ink-700);
  line-height: 1.6;
  font-size: 0.98rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 0.92rem; color: var(--ink-900); }
.author-meta { font-size: 0.8rem; color: var(--ink-400); }

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

/* ==========================================================================
   Location
   ========================================================================== */

.location { background: var(--white); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.location-card {
  background: var(--blue-900);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.location-item { display: flex; gap: 16px; align-items: flex-start; }

.location-item .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}

.location-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.location-item p, .location-item a { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; line-height: 1.55; }
.location-item a:hover { color: var(--gold-400); }

.location-card .btn { margin-top: 6px; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
  border: none;
}

.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 100px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-top img { height: 40px; }

.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.footer-links a:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
  .site-footer { padding-bottom: 110px; }
}

/* ==========================================================================
   Sticky mobile CTA bar
   ========================================================================== */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 -6px 20px rgba(5, 18, 48, 0.15);
  padding: 10px 14px;
  gap: 10px;
}

.mobile-cta-bar .btn { flex: 1; padding: 13px 16px; font-size: 0.92rem; }

@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
}

/* ==========================================================================
   Mobile nav drawer
   ========================================================================== */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--blue-950);
  display: flex;
  flex-direction: column;
  padding: 26px 26px 40px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-top img { height: 40px; }
.mobile-nav-close { background: none; border: none; color: var(--white); cursor: pointer; }

.mobile-nav ul { display: flex; flex-direction: column; gap: 26px; margin-bottom: 34px; }
.mobile-nav a { color: var(--white); font-size: 1.3rem; font-weight: 700; }
.mobile-nav .header-tel { color: var(--white); font-size: 1.05rem; margin-bottom: 20px; }
.mobile-nav .header-tel span { display: inline; }

@media (min-width: 1081px) {
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
}
