:root {
  --olive: #3d4a34;
  --olive-dark: #2c3626;
  --olive-mid: #5a6b4e;
  --sage: #6b7f5a;
  --sage-soft: #8a9a72;
  --cream: #f7f4ee;
  --cream-deep: #efe8dc;
  --sand: #e8e2d4;
  --paper: #fffdf8;
  --ink: #2a261f;
  --ink-soft: #5c564c;
  --muted: #8a8378;
  --brass: #c4a574;
  --brass-deep: #a67c52;
  --line: rgba(42, 38, 31, 0.1);
  --shadow: 0 18px 50px rgba(42, 38, 31, 0.08);
  --radius: 18px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea,
select {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}

h1,
h2,
h3,
.serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--olive);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(61, 74, 52, 0.22);
}

.btn-primary:hover {
  background: var(--olive-dark);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(61, 74, 52, 0.28);
  color: var(--olive);
}

.btn-ghost:hover {
  background: var(--olive);
  color: var(--paper);
}

.btn-light {
  background: var(--paper);
  color: var(--olive);
}

.btn-whatsapp {
  background: #215c3b;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1a4a2f;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img,
.logo-mark {
  height: 44px;
  width: auto;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--olive);
  color: var(--cream);
  display: grid;
  place-items: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-text small {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

.site-footer .logo-text strong {
  color: #fff;
}

.site-footer .logo-text small {
  color: var(--brass);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--olive);
  transition: width 0.3s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 28s var(--ease) infinite alternate;
}

.hero-media video {
  z-index: 1;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 28, 22, 0.72) 0%, rgba(26, 28, 22, 0.38) 52%, rgba(26, 28, 22, 0.18) 100%),
    linear-gradient(180deg, rgba(26, 28, 22, 0.18) 0%, rgba(26, 28, 22, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  padding: 80px 0 90px;
}

.hero h1 {
  color: #fffdf8;
  max-width: 14ch;
  margin: 18px 0 18px;
}

.hero .lead {
  color: rgba(255, 253, 248, 0.86);
  max-width: 48ch;
}

.hero-note {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.92rem;
}

.hero-note strong {
  display: block;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.bg-paper {
  background: var(--paper);
}

.bg-olive {
  background: var(--olive-dark);
  color: var(--cream);
}

.bg-olive h2,
.bg-olive h3 {
  color: var(--paper);
}

.bg-sand {
  background: var(--sand);
}

/* Cards */
.grid-3,
.grid-2,
.grid-4,
.grid-6 {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(42, 38, 31, 0.12);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 22px 22px 24px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 18px;
  font-size: 0.82rem;
  color: var(--sage);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--olive);
}

/* Differentials */
.diff-item {
  padding: 28px 26px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.diff-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--brass-deep);
  margin-bottom: 10px;
}

.diff-item h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.diff-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 26px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--olive);
  margin-bottom: 18px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.step-n {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--brass-deep);
  margin-bottom: 8px;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split img,
.split .frame {
  width: 100%;
  border-radius: 24px;
  min-height: 420px;
  object-fit: cover;
}

.frame {
  background:
    linear-gradient(180deg, rgba(42, 38, 31, 0.08), rgba(42, 38, 31, 0.28)),
    var(--sand);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  text-align: center;
  padding: 40px;
  border: 1px dashed rgba(61, 74, 52, 0.28);
}

.placeholder-slot {
  border: 1px dashed rgba(61, 74, 52, 0.3);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(61, 74, 52, 0.03) 8px,
    rgba(61, 74, 52, 0.03) 16px
  );
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-size: 0.88rem;
}

/* Crediario process */
.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.process-item {
  background: var(--paper);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--line);
}

.process-item span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--paper);
  font-size: 0.85rem;
}

.process-item p {
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-card,
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-list div strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 12px;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}

.cta-stack {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

/* Footer */
.site-footer {
  background: #1f231c;
  color: rgba(247, 244, 238, 0.78);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
  font-weight: 500;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(247, 244, 238, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 0.86rem;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #215c3b;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(33, 92, 59, 0.35);
  transition: transform 0.3s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.ticker-track span {
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pay-grid,
.persona-grid,
.proof-grid {
  display: grid;
  gap: 18px;
}

.pay-grid {
  grid-template-columns: repeat(4, 1fr);
}

.persona-grid,
.proof-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pay-card,
.persona-card,
.proof-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.pay-card::after,
.persona-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(196, 165, 116, 0.16);
  transition: transform 0.5s var(--ease);
}

.pay-card:hover,
.persona-card:hover,
.proof-card:hover,
.diff-item:hover,
.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.pay-card:hover::after,
.persona-card:hover::after {
  transform: scale(1.4);
}

.pay-card h3,
.persona-card h3,
.proof-card h3 {
  margin: 10px 0 8px;
  font-size: 1.4rem;
}

.icon-blob {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--olive);
}

.proof-card {
  min-height: 210px;
  padding: 0;
}

.proof-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.proof-card .proof-body {
  padding: 22px 22px 24px;
}

.proof-stars {
  color: var(--brass-deep);
  letter-spacing: 3px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.story-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 260px;
}

.story-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.story-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.media-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.media-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 253, 248, 0.92);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
}

.gallery-stack {
  display: grid;
  gap: 16px;
}

.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

.cta-pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(33, 92, 59, 0.22); }
  50% { box-shadow: 0 10px 34px rgba(33, 92, 59, 0.42); }
}

.page-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 10% 20%, rgba(196, 165, 116, 0.18), transparent 40%),
    var(--cream);
}

.page-hero h1 {
  max-width: 16ch;
  margin: 12px 0 14px;
}

.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.5rem;
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 18px;
}

.reveal {
  animation: rise 0.8s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .grid-6,
  .steps,
  .process,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav,
  .header-cta .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .header-cta .btn-whatsapp {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 86vh;
  }

  .section {
    padding: 68px 0;
  }

  .process,
  .pay-grid,
  .persona-grid,
  .proof-grid,
  .gallery-row,
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .logo-text strong {
    font-size: 1.15rem;
  }

  .logo-text small {
    letter-spacing: 0.12em;
  }
}

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