/* ===== Tokens ===== */
:root {
  --bg: #090c12;
  --bg-alt: #0d1119;
  --surface: #12161f;
  --surface-2: #171c27;
  --border: #232a38;
  --text: #f4f6fa;
  --text-muted: #9aa3b2;
  --accent: #22c3ee;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(34, 195, 238, 0.12);
  --whatsapp: #25d366;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }

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

.text-accent { color: var(--accent); }

.icon svg { width: 22px; height: 22px; }
.icon--accent { color: var(--accent); }
.icon--lg svg { width: 34px; height: 34px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #051018;
  box-shadow: 0 8px 24px -8px rgba(34, 195, 238, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(34, 195, 238, 0.75); }
.btn--sm { padding: 10px 20px; font-size: 0.8rem; }
.btn--lg { padding: 18px 32px; font-size: 0.95rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-top: 14px;
}
.link-arrow span { transition: transform 0.15s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 12, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__img {
  height: 44px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}
.nav-toggle span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.section__head p { font-weight: 600; font-size: 0.95rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 140px;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(90deg, rgba(9, 12, 18, 0.96) 0%, rgba(9, 12, 18, 0.8) 32%, rgba(9, 12, 18, 0.2) 62%, rgba(9, 12, 18, 0) 100%);
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 620px; }
.hero__title {
  max-width: 620px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  text-transform: uppercase;
}
.hero__subtitle {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
}
.hero__features {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px;
  margin: 34px 0 38px;
}
.hero__features li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 110px;
}

/* ===== Image placeholders ===== */
.img-placeholder {
  position: relative;
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #3a4459;
  overflow: hidden;
}
.img-placeholder svg { width: 34px; height: 34px; }
.img-placeholder::after {
  content: attr(data-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4b5568;
  text-align: center;
  padding: 0 12px;
  text-transform: none;
}
.img-placeholder--goal { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; border-bottom: none; }
.goal-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.img-placeholder--plan { aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; border-bottom: none; }
.plan-card__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.img-placeholder--half {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  flex: 1;
}
.img-placeholder--half em {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== Goal grid ===== */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.goal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.goal-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.goal-card__body h3 { font-size: 0.95rem; margin-top: 4px; }
.goal-card__body p { font-size: 0.82rem; color: var(--text-muted); flex: 1; }

/* ===== Solution ===== */
.solution__lead {
  max-width: 720px;
  margin: -24px auto 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.solution-item h3 { font-size: 1.05rem; letter-spacing: 0.01em; }
.solution-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.solution__cta { margin-top: 40px; text-align: center; }

/* ===== Method ===== */
.method__head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}
.method__head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.method__lead p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.method__lead p:last-child { margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.step:hover { border-color: var(--accent); transform: translateY(-4px); }
.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step__icon svg { width: 28px; height: 28px; }
.step__num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.step h3 { font-size: 1.05rem; letter-spacing: 0.01em; }
.step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.callout {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 195, 238, 0.35);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.callout p { font-size: 0.95rem; color: var(--text); }

/* ===== Carousel ===== */
.carousel { position: relative; display: flex; align-items: center; gap: 16px; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel.is-static .carousel__arrow { display: none; }
.carousel.is-static .carousel__track { flex: 1; justify-content: center; }

.case-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 4 * 20px) / 5);
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.case-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.before-after { display: flex; gap: 8px; }
.before-after__item {
  position: relative;
  flex: 1;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.before-after__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after__item em {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.case-card__name { font-size: 0.95rem; margin-top: 14px; }
.case-card__quote {
  flex: 1;
  margin-top: 6px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
}
.case-card__more { align-self: flex-start; text-align: left; }
.carousel__track .case-card__label { min-height: 2.6em; }

/* ===== Case modal ===== */
html.is-modal-open,
html.is-modal-open body { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.8);
  backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: var(--accent); color: #051018; }
.modal__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 32px;
}
.modal__body .case-card__label { display: block; padding-right: 44px; }
.modal__name { font-size: 1.35rem; margin-bottom: 20px; }
.modal__photos { max-width: 380px; margin-bottom: 24px; }
.modal__story p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.modal__story p + p { margin-top: 14px; }

.carousel__arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow:hover { background: var(--accent); color: #051018; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.carousel__dots[hidden] { display: none; }
.carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.15s ease, width 0.15s ease;
}
.carousel__dots button.is-active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ===== Plans ===== */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.plan-card--highlight { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-card--photo-side {
  position: relative;
  min-height: 420px;
}
.plan-card--photo-side .plan-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0;
  z-index: 0;
}
.plan-card--photo-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 44%, transparent 56%);
  z-index: 1;
}
.plan-card--photo-side .plan-card__body {
  position: relative;
  z-index: 2;
  max-width: 52%;
}
.plan-card__body { padding: 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-card__body h3 { font-size: 1.15rem; margin-top: 6px; }
.plan-card__lead { font-weight: 700; font-size: 0.95rem; }
.plan-card__body > p:not(.plan-card__lead) { color: var(--text-muted); font-size: 0.88rem; }

.checklist { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 4px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.check-ico { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.checklist li div { display: flex; flex-direction: column; gap: 2px; }
.checklist li strong { font-size: 0.88rem; }
.checklist li span { font-size: 0.78rem; color: var(--text-muted); }

.digital-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.digital-row .checklist { flex: 1 1 0; min-width: 0; margin: 0; gap: 12px; }
.digital-row .checklist li strong { font-size: 0.82rem; }
.digital-row .checklist li span { font-size: 0.72rem; }
.digital-row__phone {
  flex: 0 0 auto;
  width: 92px;
  height: 280px;
  border-radius: 12px;
  object-fit: cover;
}
.digital-row__cta {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.digital-row__cta .plan-card__price { margin: 0; }
.digital-row__cta .price-value { font-size: 1.6rem; }
.digital-row__cta .btn--block {
  white-space: normal;
  font-size: 0.72rem;
  padding: 12px 10px;
  text-align: center;
  line-height: 1.3;
}

.plan-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 16px 0 6px;
}
.price-label { font-size: 0.8rem; color: var(--text-muted); }
.price-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.price-value small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }

/* ===== WhatsApp bar ===== */
.whats-bar { padding: 56px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.whats-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.whats-bar .icon--lg { color: var(--whatsapp); flex-shrink: 0; }
.whats-bar__text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 240px; }
.whats-bar__text span { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Footer ===== */
.footer { padding: 48px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__tagline { color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover { background: var(--accent); color: #051018; }
.mobile-only { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { flex: 0 0 calc((100% - 2 * 20px) / 3); }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .header.is-open .header__inner {
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "nav nav"
      "cta cta";
  }
  .header.is-open .header__inner > .logo { grid-area: logo; }
  .header.is-open .header__inner > .nav-toggle { grid-area: toggle; }
  .header.is-open .nav {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    padding: 16px 24px 8px;
  }
  .header.is-open .nav a { padding: 10px 0; width: 100%; }
  .header.is-open .header__cta {
    grid-area: cta;
    display: inline-flex;
    margin: 4px 24px 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }

  .hero {
    position: static;
    min-height: 0;
    padding: 0 0 56px;
    display: block;
    overflow: visible;
  }
  .header {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
    transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  }
  .header.is-scrolled,
  .header.is-open {
    background: rgba(9, 12, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border);
  }
  .hero__banner {
    position: relative;
    inset: auto;
    margin-top: -76px;
    aspect-ratio: 5 / 4;
    overflow: hidden;
  }
  .hero__banner::after {
    background-image: linear-gradient(90deg, rgba(9, 12, 18, 0.88) 0%, rgba(9, 12, 18, 0.55) 28%, rgba(9, 12, 18, 0.15) 52%, rgba(9, 12, 18, 0) 68%);
  }
  .hero__photo {
    object-position: 68% center;
  }
  .hero__inner { display: block; }
  .hero__title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: calc(100% + 16px);
    z-index: 3;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 0, 0, 0.4);
  }
  .hero__content { max-width: 100%; padding-top: 0; display: flow-root; }
  .hero__subtitle { margin-top: -7.56px; }
  .hero__features { grid-template-columns: repeat(2, auto); }

  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: 1fr; }
  .method__head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .case-card { flex: 0 0 calc((100% - 20px) / 2); }
  .plans { grid-template-columns: 1fr; }
  .digital-row { flex-direction: column; align-items: stretch; }
  .digital-row .checklist { flex: none; }
  .digital-row__phone { width: 160px; height: 220px; align-self: center; }
  .digital-row__cta { flex: none; }
  .callout { flex-direction: column; text-align: center; }
  .mobile-only { display: inline; }
}

@media (max-width: 540px) {
  .section { padding: 64px 0; }
  .goal-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .case-card { flex: 0 0 85%; }
  .modal { padding: 12px; }
  .modal__dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .modal__body { padding: 24px 20px; }
  .hero__features { grid-template-columns: repeat(2, auto); }
  .whats-bar__inner { flex-direction: column; align-items: flex-start; }
  .whats-bar .btn { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }

  .plan-card--photo-side { min-height: 400px; }
  .plan-card--photo-side .plan-card__body { padding: 20px 16px; gap: 8px; max-width: 78%; }
  .plan-card--photo-side .plan-card__body h3 { font-size: 1rem; }
  .plan-card--photo-side .plan-card__lead { font-size: 0.85rem; }
  .plan-card--photo-side .plan-card__body > p:not(.plan-card__lead) { font-size: 0.78rem; }
  .plan-card--photo-side .price-value { font-size: 1.5rem; }
  .plan-card--photo-side .btn--block { padding: 12px 10px; font-size: 0.7rem; white-space: normal; text-align: center; }
}
