/* ===== Tokens ===== */
:root {
  --red: #8b1a1a;
  --red-bright: #a82222;
  --whats: #1f7a3d;
  --whats-bright: #26993f ;
  --charcoal: #1a1a1a;
  --charcoal-2: #222222;
  --charcoal-3: #2c2c2c;
  --off-white: #f5f5f5;
  --gray-line: #3a3a3a;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --sticky-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.5;
  padding-bottom: var(--sticky-h);
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.12;
}

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

button { font-family: var(--font); border: none; background: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  font-weight: 800;
  font-size: 1.05rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }

.btn-call {
  background: var(--red);
  color: var(--off-white);
}
.btn-call:hover { filter: brightness(1.12); }

.btn-whats {
  background: var(--whats);
  color: var(--off-white);
}
.btn-whats:hover { filter: brightness(1.12); }

.cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-row.center { justify-content: center; }

/* ===== Topbar ===== */
.topbar {
  background: #ffffff;
  border-bottom: 4px solid var(--red);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 24px;
}
.topbar-logo {
  height: 120px;
  width: auto;
}
.topbar-call {
  position: absolute;
  right: 24px;
  color: var(--charcoal);
  font-weight: 800;
  font-size: 1.05rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.35) 0%, rgba(15,15,15,0.55) 45%, rgba(10,10,10,0.92) 100%);
}
@media (min-width: 901px) {
  .hero { align-items: center; background: #0f0f0f; }
  .hero-bg { left: 46%; }
  .hero-bg img { object-position: center 30%; }
  .hero-overlay {
    left: 46%;
    background: linear-gradient(90deg, #0f0f0f 0%, rgba(15,15,15,0.35) 22%, rgba(15,15,15,0) 45%);
  }
  .hero-content { padding-top: 80px; }
  .hero h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
  .hero h1, .hero-sub { max-width: 540px; }
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--off-white);
  padding-top: 60px;
  padding-bottom: 80px;
}
.eyebrow {
  display: inline-block;
  background: #c0392b;
  color: var(--off-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 4.4rem);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 640px;
  color: #dcdcdc;
  margin-bottom: 36px;
}

/* ===== Sections ===== */
.section {
  padding: 120px 0;
}
.section-title {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  text-align: center;
  margin-bottom: 56px;
  color: var(--charcoal);
}
.section-title.light { color: var(--off-white); }
.section-title.left { text-align: left; margin-bottom: 20px; }

/* ===== Problem ===== */
.problem { background: var(--charcoal); }
.card-grid { display: grid; gap: 1px; background: var(--gray-line); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.problem-card {
  background: var(--charcoal);
  padding: 44px 32px;
}
.problem-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red-bright);
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}
.problem-card h3 {
  color: var(--off-white);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.problem-card p { color: #a8a8a8; font-size: 0.98rem; }

/* ===== How it works ===== */
.how { background: var(--off-white); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.step { text-align: center; }
.step-num {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; max-width: 260px; margin: 0 auto; }

/* ===== Services ===== */
.services { background: var(--charcoal); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.service-card {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,0.15) 0%, rgba(10,10,10,0.85) 100%);
}
.service-card { min-height: 440px; cursor: pointer; }
.service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.service-card:hover .service-img { transform: scale(1.04); }
.service-group-title {
  color: var(--off-white);
  font-size: 1.4rem;
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 5px solid var(--red-bright);
}
.service-list + .diagram, .service-grid + .service-group-title { margin-top: 56px; }
.service-card:hover .service-overlay { background: linear-gradient(180deg, rgba(15,15,15,0.05) 0%, rgba(10,10,10,0.8) 100%); }
.service-info {
  position: relative;
  z-index: 2;
  padding: 28px;
}
.service-card h3 {
  color: var(--off-white);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.service-cta {
  display: inline-block;
  background: var(--whats);
  color: var(--off-white);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 16px;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--charcoal-3);
  border-left: 4px solid var(--red-bright);
  color: var(--off-white);
  font-weight: 700;
  padding: 20px;
}
.service-list a::after {
  content: '›';
  margin-left: auto;
  color: #25d366;
  font-size: 1.6rem;
  line-height: 1;
}
.service-list a:hover { background: #363636; }

/* ===== Garantia ===== */
.guarantee { background: var(--off-white); padding: 90px 0; }
.guarantee-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.guarantee-seal {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--red);
  border: 6px solid var(--charcoal);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.guarantee-num { font-size: 4.2rem; font-weight: 900; line-height: 1; }
.guarantee-unit { font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.guarantee-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.guarantee-text p { font-size: 1.1rem; color: #444; max-width: 560px; }

/* ===== Stats ===== */
.stats { background: var(--red); padding: 100px 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 900;
  color: var(--off-white);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 14px;
  color: rgba(245,245,245,0.85);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ===== Coverage ===== */
.coverage { background: var(--charcoal); }
.coverage-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.coverage-text p { color: #b8b8b8; font-size: 1.1rem; max-width: 420px; }
.roads {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}
.road-sign {
  display: inline-block;
  background: #1f5c2e;
  color: #ffffff;
  border: 2px solid #ffffff;
  outline: 3px solid #1f5c2e;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 16px;
  margin: 3px;
}
.coverage-inner > * { min-width: 0; }
.coverage-text .btn { white-space: normal; text-align: center; }
.coverage-map { text-align: center; }
.coverage-map img { width: 100%; height: auto; margin: 0 auto; border: 1px solid #333; }

/* ===== Nossa história ===== */
.history { background: var(--charcoal-2); border-top: 1px solid #333; }
.history-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.history-text p {
  color: #c4c4c4;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 620px;
}
.history-media {
  aspect-ratio: 3 / 4;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 6px solid var(--red);
}
.history-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ===== Diagrama ===== */
.diagram {
  margin: 56px auto 0;
  max-width: 760px;
  background: #ffffff;
  padding: 24px;
}
.diagram figcaption {
  font-weight: 900;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 12px;
}
.diagram-img { position: relative; }
.diagram-img img { width: 100%; height: auto; }
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1b2a4a;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram-legend {
  list-style: none;
  counter-reset: pin;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 20px;
}
.diagram-legend li {
  counter-increment: pin;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.diagram-legend li::before {
  content: counter(pin);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1b2a4a;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 150;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { filter: brightness(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--off-white); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* ===== Gallery ===== */
.gallery { background: var(--off-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 0;
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.88) 100%);
  color: var(--off-white);
  font-weight: 700;
  font-size: 0.95rem;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===== Final CTA ===== */
.final-cta {
  background: var(--charcoal);
  border-top: 4px solid var(--red);
  color: var(--off-white);
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 36px;
}
.phone-extenso {
  margin-top: 26px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ccc;
}
.btn-insta {
  margin-top: 40px;
  gap: 12px;
  background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
  color: #ffffff;
  white-space: normal;
}
.btn-insta svg { width: 26px; height: 26px; fill: #ffffff; flex-shrink: 0; }
.btn-insta:hover { filter: brightness(1.1); }

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  color: #aaa;
  padding: 56px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #333;
}
.footer-logo {
  height: 72px;
  width: auto;
  background: #ffffff;
  border-radius: 6px;
  padding: 6px 10px;
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-contact a:hover { color: var(--off-white); }
.footer-copy {
  text-align: center;
  padding-top: 22px;
  font-size: 0.8rem;
  color: #777;
}

/* ===== Sticky mobile CTA ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--charcoal);
  border-top: 2px solid var(--red);
  padding: 10px 12px;
  gap: 10px;
}
.sticky-cta .btn {
  flex: 1;
  padding: 15px 10px;
  font-size: 0.92rem;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .card-grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .guarantee-inner { flex-direction: column; text-align: center; gap: 28px; }
  .guarantee-text p { margin: 0 auto; }
  .roads { justify-content: center; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .coverage-inner { grid-template-columns: 1fr; text-align: center; }
  .coverage-text { order: 2; }
  .section-title.left { text-align: center; }
  .coverage-text p { margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .history-inner { grid-template-columns: 1fr; text-align: center; }
  .history-text p { margin: 0 auto; }
}

@media (max-width: 640px) {
  .topbar-call { display: none; }
  .topbar-logo { height: 84px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .gallery-item { aspect-ratio: 3 / 4; }
  .diagram { padding: 16px 12px; }
  .diagram-legend { grid-template-columns: 1fr; }
  .pin { width: 22px; height: 22px; font-size: 0.7rem; }
  .service-list { grid-template-columns: 1fr; }
  .guarantee-seal { width: 140px; height: 140px; }
  .guarantee-num { font-size: 3.4rem; }
  .hero { display: block; min-height: 0; background: #0f0f0f; }
  .hero-bg { position: relative; inset: auto; height: 112vw; }
  .hero-bg img { object-position: center 35%; }
  .hero-overlay {
    bottom: auto;
    height: 112vw;
    background: linear-gradient(180deg, rgba(15,15,15,0) 55%, #0f0f0f 100%);
  }
  .hero-content { margin-top: -64px; padding-top: 0; padding-bottom: 40px; }
  .hero .cta-row { display: none; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .sticky-cta { display: flex; }
  body { padding-bottom: calc(var(--sticky-h) + 10px); }
  .stats { padding: 72px 0; }
  .whatsapp-float { display: none; }
}
