/* ============================================
   AutoConforto — Landing Page (Mobile-first)
   ============================================ */

:root {
  --bg: #0b1020;
  --bg-2: #0f1530;
  --fg: #f7f8ff;
  --muted: #9aa3bf;
  --card: #161c38;
  --card-2: #1b2244;
  --border: rgba(120, 140, 200, 0.18);
  --primary: #3b82f6;
  --primary-glow: #60a5fa;
  --primary-foreground: #ffffff;
  --whatsapp: #22c55e;
  --whatsapp-foreground: #ffffff;

  --gradient-hero: linear-gradient(135deg, #0b1020 0%, #15214a 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
  --gradient-radial: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.28), transparent 60%);
  --gradient-card: linear-gradient(180deg, #1a2143 0%, #131838 100%);

  --shadow-glow: 0 0 40px rgba(59,130,246,0.4);
  --shadow-elegant: 0 20px 60px -20px rgba(0,0,0,0.7);
  --shadow-card: 0 8px 30px -8px rgba(0,0,0,0.5);

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --header-h: 64px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; cursor: pointer; color: inherit; }
iframe { border: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }

/* Helpers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container--narrow { max-width: 920px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.muted { color: var(--muted); }
.mb-lg { margin-bottom: 2.5rem; }
.mt-xl { margin-top: 2.5rem; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }
.btn--sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.btn--lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
.btn--block { display: flex; width: 100%; }
.btn--whatsapp { background: var(--whatsapp); color: var(--whatsapp-foreground); }
.btn--whatsapp:hover { box-shadow: var(--shadow-glow); }
.btn--outline {
  background: rgba(22,28,56,0.6);
  border: 1px solid var(--border);
  color: var(--fg);
  backdrop-filter: blur(8px);
}
.btn--outline:hover { border-color: var(--primary); }

@media (min-width: 640px) {
  .btn--lg { padding: 1rem 2rem; font-size: 1rem; }
}
@media (min-width: 768px) {
  .btn--lg { font-size: 1.0625rem; }
}

/* ============= HEADER ============= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(11,16,32,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.brand__logo {
  height: 36px; width: 36px; border-radius: 50%;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.brand__text { line-height: 1.05; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav--desktop { display: none; }
.nav--desktop a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav--desktop a:hover { color: var(--fg); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.phone-link {
  display: none;
  align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted);
}
.phone-link:hover { color: var(--fg); }

.menu-toggle {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: rgba(22,28,56,0.6);
  border-radius: var(--radius-full);
  color: var(--fg);
  transition: border-color 0.2s;
}
.menu-toggle:hover { border-color: var(--primary); }
.menu-toggle .ico-close { display: none; }
.menu-toggle[aria-expanded="true"] .ico-menu { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }

.nav--mobile {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(11,16,32,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.nav--mobile.open { max-height: 480px; opacity: 1; }
.nav__list { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; }
.nav__list a {
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius);
  color: rgba(247,248,255,0.9);
  transition: background 0.2s;
}
.nav__list a:hover { background: var(--card); color: var(--fg); }
.nav__phone {
  display: flex !important; align-items: center; gap: 0.5rem;
  color: var(--muted) !important; font-size: 0.875rem; margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .header__actions .btn--whatsapp { display: inline-flex; }
}
@media (min-width: 1024px) {
  .header__inner { padding-top: 0.875rem; padding-bottom: 0.875rem; }
  .brand__logo { height: 40px; width: 40px; }
  .brand__name { font-size: 1.125rem; }
  .brand__tag { font-size: 10px; }
  .nav--desktop { display: flex; align-items: center; gap: 1.5rem; }
  .menu-toggle { display: none; }
  .nav--mobile { display: none; }
}
@media (min-width: 1280px) {
  .nav--desktop { gap: 2rem; }
  .phone-link { display: inline-flex; }
}

/* ============= HERO ============= */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 1.5rem) 0 3rem;
}
.hero__bg, .hero__radial, .hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero__bg { background: var(--gradient-hero); }
.hero__radial { background: var(--gradient-radial); }
.hero__grid-bg {
  opacity: 0.04;
  background-image:
    linear-gradient(var(--fg) 1px, transparent 1px),
    linear-gradient(90deg, var(--fg) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__content { order: 2; animation: fadeUp 0.6s ease-out; }
.hero__media { order: 1; position: relative; animation: fadeUp 0.6s ease-out; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.1);
  color: var(--primary-glow);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 1rem;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--whatsapp);
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 7vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.9375rem;
}
.hero__lead strong { color: var(--fg); font-weight: 600; }

.hero__cta {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero__cta .btn { width: 100%; }

.hero__benefits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.hero__benefits li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem;
}
.hero__benefits svg { color: var(--primary-glow); }
.hero__benefits span {
  font-size: 11px; line-height: 1.3; color: var(--muted);
}

.hero__glow {
  position: absolute; inset: -1rem; border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  opacity: 0.2;
  filter: blur(60px);
  pointer-events: none;
}
.hero__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elegant);
}
.hero__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11,16,32,0.6) 60%, transparent 100%);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero__caption p { font-size: 0.8125rem; font-weight: 500; }

.stars { display: inline-flex; gap: 0.0625rem; color: var(--primary-glow); font-size: 0.875rem; line-height: 1; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 4rem; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .hero__cta .btn { width: auto; }
  .hero__lead { font-size: 1rem; }
  .hero__benefits span { font-size: 12px; }
  .hero__caption p { font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .hero { padding: calc(var(--header-h) + 4rem) 0 6rem; }
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero__content { order: 1; }
  .hero__media { order: 2; }
  .hero__lead { font-size: 1.125rem; }
  .hero__benefits { gap: 1rem; padding-top: 1.5rem; margin-top: 2.5rem; }
  .hero__benefits span { font-size: 0.875rem; }
}

/* ============= SECTIONS ============= */
.section {
  position: relative;
  padding: 4rem 0;
}
.section--alt {
  background: rgba(22,28,56,0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.diff__radial {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--gradient-radial); opacity: 0.6;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-glow);
  margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.5vw, 3rem);
}
.section__lead {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 36rem;
}

.grid { display: grid; gap: 1rem; }
.grid--2-loc { grid-template-columns: 1fr; gap: 2rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--5 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .section { padding: 5rem 0; }
  .eyebrow { font-size: 0.8125rem; }
  .section__lead { font-size: 1rem; }
  .grid { gap: 1.25rem; }
  .grid--3, .grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--5 { grid-template-columns: repeat(5, 1fr); }
  .grid--2-loc { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* Cards */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.6);
  box-shadow: var(--shadow-glow);
}
@media (min-width: 640px) { .card { padding: 1.5rem; } }

.service__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: rgba(59,130,246,0.1);
  color: var(--primary-glow);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.3);
  margin-bottom: 1rem;
  transition: background 0.3s, color 0.3s;
}
.card:hover .service__icon {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
}
.service__title { font-size: 1.125rem; font-weight: 600; }
.service__desc { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.service__link {
  display: inline-block; margin-top: 1rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary-glow);
}
.service__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Reviews */
.review {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.review:hover { border-color: rgba(59,130,246,0.5); box-shadow: var(--shadow-glow); }
.review__quote {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-family: var(--font-display); font-size: 3rem; line-height: 1;
  color: rgba(59,130,246,0.2);
}
.review__text {
  margin-top: 1rem;
  font-size: 0.875rem; line-height: 1.6;
  color: rgba(247,248,255,0.9);
}
.review__author {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.review__author strong { font-weight: 600; }
.review__author p { font-size: 0.75rem; color: var(--muted); }

/* Differentials */
.diff {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s;
}
.diff:hover { border-color: rgba(59,130,246,0.6); }
.diff__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.diff h3 { font-size: 1rem; font-weight: 600; }
.diff p { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }

/* Rating pill */
.rating-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.rating-pill .stars { font-size: 0.875rem; }

/* Offer */
.offer {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  border: 1px solid rgba(59,130,246,0.4);
  box-shadow: var(--shadow-elegant);
  color: var(--primary-foreground);
  text-align: center;
}
.offer__blob {
  position: absolute; width: 256px; height: 256px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(60px);
  pointer-events: none;
}
.offer__blob--tr { top: -80px; right: -80px; }
.offer__blob--bl { bottom: -80px; left: -80px; }
.offer__content { position: relative; }
.offer__chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}
.offer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.5vw, 3rem);
}
.offer__title u { text-decoration-color: rgba(255,255,255,0.4); }
.offer__lead {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  opacity: 0.9;
}
.offer__cta {
  margin-top: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.offer__cta .btn { width: 100%; }
.offer__hint { font-size: 0.875rem; opacity: 0.85; }

@media (min-width: 640px) {
  .offer { padding: 2.5rem; }
  .offer__cta { flex-direction: row; justify-content: center; }
  .offer__cta .btn { width: auto; }
  .offer__lead { font-size: 1.0625rem; }
}
@media (min-width: 768px) {
  .offer { padding: 4rem; }
}

/* Location */
.info-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list__icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(59,130,246,0.1);
  color: var(--primary-glow);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.3);
}
.info-list strong { display: block; font-weight: 600; }
.info-list p { font-size: 0.875rem; color: var(--muted); }

.map {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
}
.map iframe {
  width: 100%;
  height: 300px;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.8);
}
@media (min-width: 640px) { .map iframe { height: 380px; } }
@media (min-width: 1024px) { .map iframe { height: 100%; min-height: 460px; } }

/* ============= FOOTER ============= */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(22,28,56,0.4);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer__about { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.socials { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.socials a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--fg);
  transition: border-color 0.2s, color 0.2s;
}
.socials a:hover { border-color: var(--primary); color: var(--primary-glow); }
.footer__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-glow);
}
.footer__list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.footer__hours { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--muted);
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ============= WHATSAPP FLOAT ============= */
.wa-float {
  position: fixed;
  bottom: 1rem; right: 1rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--whatsapp-foreground);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-elegant);
  z-index: 50;
  animation: pulseGlow 2s ease-in-out infinite;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50% { box-shadow: 0 0 0 16px rgba(34,197,94,0); }
}
@media (min-width: 640px) {
  .wa-float { bottom: 1.5rem; right: 1.5rem; width: 64px; height: 64px; }
  .wa-float svg { width: 32px; height: 32px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Focus styles */
:focus-visible { outline: 2px solid var(--primary-glow); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Social icons (image-based) */
.socials a img {
  width: 20px; height: 20px;
  filter: invert(1) brightness(1.2);
  transition: filter 0.2s;
}
.socials a:hover img {
  filter: invert(63%) sepia(95%) saturate(1500%) hue-rotate(195deg) brightness(100%) contrast(95%);
}
