:root {
  --black: #08080a;
  --black-soft: #131316;
  --black-card: #1a1a1e;
  --white: #ffffff;
  --off-white: #f4f2ef;
  --red: #d4172f;
  --red-bright: #ff2f4d;
  --red-dim: #7a0d1e;
  --gray: #9a9aa0;
  --gray-dim: #58585e;
  --line: rgba(255,255,255,0.08);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--red { color: var(--red); }
.icon--sm { width: 15px; height: 15px; }
.icon--star { width: 15px; height: 15px; fill: var(--red); stroke: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--red-bright); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

.section-head { max-width: 560px; margin-bottom: 56px; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 32px; font-size: 0.98rem; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 8px 24px -8px rgba(212,23,47,0.6); }
.btn--primary:hover { background: var(--red-bright); box-shadow: 0 12px 32px -8px rgba(212,23,47,0.8); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); }
.btn--ghost { border-color: rgba(255,255,255,0.25); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn--full { width: 100%; justify-content: center; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,10,0.25);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.header__logo img { height: 74px; width: auto; }
.header__nav { display: flex; gap: 32px; }
.header__nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.15s ease;
  position: relative;
}
.header__nav a:hover { color: var(--white); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--white);
  padding: 7px 12px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.lang-toggle .icon { width: 15px; height: 15px; }
.lang-toggle:hover { border-color: var(--red); }

/* Hero */
.hero {
  position: relative;
  padding: 170px 0 150px;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: brightness(1.25) contrast(1.05) saturate(1.05);
  transition: opacity 2.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide--1 { background-image: url('../assets/hero/hero-1.jpg'); background-position: 40% top; }
.hero__slide--2 { background-image: url('../assets/hero/hero-2.jpg'); background-position: 55% 28%; }
.hero__slide--3 { background-image: url('../assets/hero/hero-3.jpg'); background-position: 55% 55%; }
.hero__slide--4 { background-image: url('../assets/hero/hero-4.jpg'); background-position: 20% top; }
@media (min-width: 1300px) {
  .hero__slide--1 { background-position: 40% top; }
  .hero__slide--2 { background-position: 52% top; }
  .hero__slide--3 { background-position: 55% 55%; }
  .hero__slide--4 { background-position: 20% 25%; }
}
@media (min-width: 1800px) {
  .hero__slide--1 { background-position: 40% top; }
  .hero__slide--2 { background-position: 52% top; }
  .hero__slide--3 { background-position: 55% 55%; }
  .hero__slide--4 { background-position: 20% 35%; }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.6) 42%, rgba(8,8,10,0.2) 100%),
    linear-gradient(0deg, rgba(8,8,10,0.7), rgba(8,8,10,0.15) 45%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
}
.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero__headline .accent { color: var(--red-bright); font-style: italic; }
.hero__sub {
  font-size: 1.15rem;
  color: var(--off-white);
  opacity: 0.78;
  max-width: 460px;
  margin-bottom: 36px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 28px; }
.hero__proof-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--off-white); }

/* Trust bar */
.trust { background: linear-gradient(90deg, var(--red-dim), var(--red)); padding: 20px 0; position: relative; z-index: 1; }
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  text-align: center;
}
.trust__item { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; }

/* Section dividers */
.section-divider { height: 60px; margin-bottom: -1px; background: var(--black); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.section-divider--dark { background: var(--black-soft); }

/* Services - pest carousel */
.services { padding: 110px 0 100px; position: relative; scroll-margin-top: 100px; }
.pest-carousel { position: relative; }
.pest-carousel__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 4px 20px;
  scrollbar-width: none;
}
.pest-carousel__track::-webkit-scrollbar { display: none; }
.pest-slide {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pest-slide__circle {
  position: relative;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #faf7f0, #e9e3d3);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pest-slide__circle--specialty { box-shadow: 0 14px 30px -10px rgba(212,23,47,0.55), 0 0 0 3px var(--red); }
.pest-slide__circle img { width: 100%; height: 100%; object-fit: cover; }
.pest-slide:hover .pest-slide__circle { transform: translateY(-6px); box-shadow: 0 20px 36px -10px rgba(0,0,0,0.6); }
.pest-slide h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.pest-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}
.pest-carousel__arrow {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--black-card);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pest-carousel__arrow:hover { border-color: var(--red); background: var(--red-dim); }
.pest-carousel__arrow .icon { width: 18px; height: 18px; }
.pest-carousel__arrow--next .icon { transform: scaleX(-1); }
.pest-carousel__dots { display: flex; align-items: center; gap: 8px; }
.pest-carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: none; padding: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.pest-carousel__dot.is-active { background: var(--red); transform: scale(1.25); }

/* Why */
.why { padding: 100px 0; background: var(--black-soft); scroll-margin-top: 100px; }
.why__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.why__timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.why__item { position: relative; padding: 0 20px 0 0; }
.why__num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: var(--red-bright);
  background: var(--black-soft);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  margin-bottom: 22px;
  position: relative; z-index: 1;
}
.why__item h3 { font-size: 1.12rem; margin-bottom: 10px; font-weight: 700; }
.why__item p { color: var(--gray); font-size: 0.9rem; }

/* Segments */
.segments { padding: 100px 0; position: relative; scroll-margin-top: 100px; }
.segments__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.segment-card {
  background: var(--off-white);
  color: var(--black);
  border-radius: 12px;
  padding: 44px 40px;
  transition: transform 0.25s ease;
}
.segment-card:hover { transform: translateY(-4px); }
.segment-card h3 { font-family: var(--font-head); font-size: 1.9rem; margin-bottom: 24px; font-weight: 700; }
.segment-card ul { margin-bottom: 28px; }
.segment-card ul li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.1); font-size: 0.95rem; }
.segment-card--dark { background: var(--black-card); color: var(--white); border: 1px solid var(--line); }
.segment-card--dark ul li { border-bottom-color: var(--line); }
.segment-card__cta { display: inline-block; font-weight: 700; color: var(--red); font-size: 0.9rem; }
.segment-card__cta--light { color: var(--red-bright); }

/* Contact */
.contact { padding: 110px 0 100px; position: relative; scroll-margin-top: 100px; }
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact__lead { color: var(--off-white); opacity: 0.78; margin-bottom: 32px; font-size: 1.05rem; }
.contact__list { display: flex; flex-direction: column; gap: 16px; }
.contact__list li a, .contact__list li span { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.02rem; }
.contact__list a:hover { color: var(--red-bright); }
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--black-card);
  padding: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.contact__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__form label { display: flex; flex-direction: column; gap: 7px; font-size: 0.82rem; color: var(--gray); font-weight: 600; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { outline: none; border-color: var(--red); }
.contact__consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
  color: var(--gray) !important;
  font-weight: 400 !important;
}
.contact__consent input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--red);
}

/* Footer */
.footer { padding: 70px 0 0; border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__qr-row { display: flex; gap: 16px; }
.footer__qr {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  transition: transform 0.15s ease;
}
.footer__qr:hover { transform: translateY(-2px); }
.footer__qr img {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--off-white);
  padding: 4px;
}
.footer__qr span { font-size: 0.78rem; color: var(--gray); opacity: 1; }

/* QR modal */
.qr-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; }
.qr-modal.is-open { display: flex; }
.qr-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }
.qr-modal__box {
  position: relative;
  background: var(--off-white);
  border-radius: 12px;
  padding: 28px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.qr-modal__box img { width: min(340px, 80vw); height: auto; border-radius: 6px; }
.qr-modal__box p { color: var(--black); font-weight: 700; font-size: 1.1rem; }
.qr-modal__close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  font-size: 1.8rem; line-height: 1;
  color: var(--black);
  cursor: pointer;
}
.footer__logo { height: 76px; margin-bottom: 16px; }
.footer__brand p { color: var(--gray); font-size: 0.9rem; max-width: 280px; }
.footer__col h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col span { font-size: 0.92rem; color: var(--off-white); opacity: 0.85; }
.footer__col a:hover { color: var(--red-bright); }
.footer__social { display: flex; align-items: center; gap: 8px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__copy { color: var(--gray-dim); font-size: 0.82rem; }
.footer__credit { color: var(--gray); font-size: 0.75rem; margin-top: 6px; }

/* Floating action buttons */
.float-stack {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.float-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn .icon { width: 24px; height: 24px; }
.float-btn--whatsapp .icon { width: 26px; height: 26px; }
.float-btn--call {
  background: var(--red);
  box-shadow: 0 10px 28px -6px rgba(212,23,47,0.7);
  animation: float-pulse-red 2.4s ease-in-out infinite;
}
.float-btn--call:hover { background: var(--red-bright); }
.float-btn--whatsapp {
  background: #25D366;
  box-shadow: 0 10px 28px -6px rgba(37,211,102,0.7);
  animation: float-pulse-green 2.4s ease-in-out infinite;
}
.float-btn--whatsapp:hover { background: #2fe377; }
@keyframes float-pulse-red {
  0%, 100% { box-shadow: 0 10px 28px -6px rgba(212,23,47,0.7), 0 0 0 0 rgba(212,23,47,0.5); }
  50% { box-shadow: 0 10px 28px -6px rgba(212,23,47,0.7), 0 0 0 10px rgba(212,23,47,0); }
}
@keyframes float-pulse-green {
  0%, 100% { box-shadow: 0 10px 28px -6px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 10px 28px -6px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0); }
}

@media (max-width: 980px) {
  .header__nav { display: none; }
  .why__timeline { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .why__timeline::before { display: none; }
  .segments__grid, .contact__inner { grid-template-columns: 1fr; }
  .contact__form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .float-stack { bottom: 16px; right: 16px; gap: 10px; }
  .float-btn { width: 52px; height: 52px; }
  .float-btn .icon { width: 21px; height: 21px; }
  .why__timeline { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; min-height: 560px; }
  .trust__inner { gap: 18px; }
  .contact__form { padding: 26px; }
  .pest-slide { width: 150px; }
  .pest-slide__circle { width: 135px; height: 135px; }
  .pest-carousel__arrow { width: 38px; height: 38px; }
  .hero__slide--1 { background-image: url('../assets/hero/hero-1-mobile.jpg'); background-position: 15% top; }
}
