/* ===== TOKENS ===== */
:root {
  --green: #1f9d55;
  --green-dark: #157a41;
  --blue: #1773c4;
  --blue-dark: #115a9c;
  --ink: #0e1c28;
  --slate: #45525e;
  --muted: #6b7886;
  --bg: #ffffff;
  --bg-alt: #eef5fa;
  --line: #dde8ef;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(15, 28, 23, .08);
  --shadow-sm: 0 4px 16px rgba(15, 28, 23, .06);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo__mark { font-family: "Poppins", sans-serif; line-height: 1.15; }

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

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 8px 22px rgba(31,157,85,.35); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: baseline; gap: 8px; }
.logo__mark { font-weight: 800; font-size: 26px; color: var(--blue); letter-spacing: -.5px; }
.logo__mark span { color: var(--green); }
.logo__sub { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--slate); transition: color .15s; }
.nav a:hover { color: var(--green); }
.nav a.btn { color: var(--white); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: var(--white); text-align: left; padding: 120px 0 80px;
  background: linear-gradient(135deg, #0d4a7a 0%, #1773c4 45%, #1f9d55 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 40%);
}
.hero__art {
  position: absolute; z-index: 1; right: -40px; bottom: 0; top: 0; margin: auto 0;
  height: 88%; width: auto; color: #fff; opacity: .12; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.hero__title { font-size: clamp(38px, 6vw, 66px); font-weight: 800; margin-bottom: 22px; }
.hero__text { font-size: 18px; color: rgba(255,255,255,.92); max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.92); }

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 17px; }

/* ===== GRID / CARDS ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { font-size: 36px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== GALERIA ANTES & DEPOIS ===== */
.gallery { grid-template-columns: 1fr 1fr; }
.gallery .ba img { cursor: zoom-in; }
.gallery .ba {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.gallery .ba:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery .ba img { display: block; width: 100%; height: 240px; object-fit: cover; }
.gallery .ba figcaption,
.video figcaption { padding: 14px 18px; font-weight: 600; color: var(--slate); font-size: 15px; }

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.video {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.video video { display: block; width: 100%; max-height: 460px; background: #000; }

.gallery__cta { text-align: center; margin-top: 40px; }

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

/* ===== PORQUÊ ===== */
.porque { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.porque h2 { margin-bottom: 18px; }
.porque__text > p { color: var(--slate); margin-bottom: 24px; font-size: 17px; }
.checklist { list-style: none; margin-bottom: 28px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--slate); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; background: var(--green); color: #fff; font-size: 13px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 700;
}
.porque__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); }
.stat__num { display: block; font-family: "Poppins", sans-serif; font-size: 40px; font-weight: 800; color: var(--green); }
.stat__label { font-size: 14px; color: var(--muted); }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 28px 20px; text-align: center; }
.step__num {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px;
  background: var(--bg-alt); border: 2px solid var(--blue); color: var(--blue);
  border-radius: 50%; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 22px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== CONTACTO ===== */
.contacto { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contacto h2 { margin-bottom: 14px; }
.contacto__info > p { color: var(--slate); margin-bottom: 28px; }
.contacto__list { list-style: none; display: grid; gap: 20px; }
.contacto__list li { display: flex; gap: 16px; align-items: flex-start; }
.contacto__ic { font-size: 22px; width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--bg-alt); border-radius: 12px; }
.contacto__list a:hover { color: var(--green); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--slate); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 15px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--bg-alt); color: var(--ink); transition: border-color .15s, background .15s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer .logo__mark { color: #4aa3e8; }
.footer .logo__mark span { color: #3fce85; }
.footer__tag { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.6); }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__nav a { color: rgba(255,255,255,.8); font-size: 15px; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; padding-bottom: 28px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 9998; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 16, 24, .9); backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw; max-height: 90vh; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default;
  animation: lb-in .25s ease;
}
@keyframes lb-in { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__close {
  position: absolute; top: 20px; right: 26px; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== EASTER EGGS (🟠 bitcoin) ===== */
.btc-coin {
  position: fixed; top: -40px; z-index: 9999; font-size: 26px; pointer-events: none;
  color: #f7931a; text-shadow: 0 2px 6px rgba(0,0,0,.2);
  animation: btc-fall linear forwards;
}
@keyframes btc-fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: .9; }
}

.btc-toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(140%);
  z-index: 10000; background: #0e1c28; color: #fff;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3); border: 1px solid #f7931a;
  display: flex; align-items: center; gap: 10px; opacity: 0;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4), opacity .4s;
  max-width: 90vw;
}
.btc-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.btc-toast b { color: #f7931a; }

body.satoshi-mode { animation: satoshi-hue 8s linear infinite; }
@keyframes satoshi-hue {
  0%,100% { filter: none; }
  50% { filter: hue-rotate(-18deg) saturate(1.15); }
}
body.satoshi-mode .logo__sub::after { content: " ₿"; color: #f7931a; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .nav__toggle { display: flex; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .porque, .contacto { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid--3, .steps, .form__row, .porque__stats { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__art { display: none; }
  .section { padding: 64px 0; }
}
