:root {
  --navy: #1a2b3f;
  --navy-2: #13202f;
  --ink: #26323f;
  --muted: #5d6875;
  --taupe: #8a7d63;
  --taupe-soft: #efe9de;
  --bg: #f8f6f2;
  --white: #fff;
  --line: #e4ded3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 43, 63, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 400 16px/1.7 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }

.sprite { position: absolute; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.5em; border-radius: 999px; font: 500 .95rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--taupe-soft); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(26,43,63,.05); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--navy); }
.brand-mark { font: 700 1.7rem/1 var(--serif); }
.brand-name { font: 500 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn) { text-decoration: none; font-size: .93rem; color: var(--muted); }
.nav > a:not(.btn):hover { color: var(--navy); }

/* Hero */
.hero { background: var(--white); padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 100px); text-align: center; border-bottom: 1px solid var(--line); }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(440px, 88%); margin-bottom: 1.5rem; }
.hero h1 { max-width: 24ch; font-weight: 500; }
.hero .actions { justify-content: center; margin-top: .8rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

/* About */
.about-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(26,43,63,.18); }
.about-text .lead { font: 600 1.5rem/1.3 var(--serif); color: var(--navy); }
.about-text blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--taupe); font: italic 500 1.4rem/1.4 var(--serif); color: var(--navy); }
.about-text .btn { margin-top: .6rem; }

/* Services */
.services { background: var(--white); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2rem 1.6rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6cdbd; }
.card-wide { grid-column: 1 / -1; background: var(--navy); border-color: var(--navy); color: #d7dee6; }
.card-wide h3 { color: var(--white); }
.card-wide .card-num { color: rgba(255,255,255,.35); }
.card-num { font: 600 .8rem/1 var(--sans); letter-spacing: .15em; color: var(--taupe); display: block; margin-bottom: 1rem; }
.card h3 sup { font-size: .6em; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { position: relative; padding-left: 1.5em; margin-bottom: .55em; }
.card li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7em; height: 1.5px; background: var(--taupe); }
.card .checks { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
.card .checks li::before { content: "✓"; width: auto; height: auto; background: none; top: 0; color: #c9b995; font-weight: 600; }
.card-note { margin: 1.2rem 0 0; font-size: .85rem; color: #9fb0c2; }
.card-note a { color: var(--white); }

/* Articles */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-body p { color: var(--muted); }
.post-link { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 500; font-size: .92rem; color: var(--navy); }
.post:hover .post-link { color: var(--taupe); }

/* CTA */
.cta { background: var(--navy); color: #c9d3de; padding: clamp(64px, 9vw, 100px) 0; text-align: center; }
.cta h2 { color: var(--white); }
.cta p { font-size: 1.1rem; }
.cta .actions { justify-content: center; margin-top: 1.6rem; }

/* Partner */
.partner { background: var(--white); padding: 56px 0; text-align: center; border-bottom: 1px solid var(--line); }
.partner-in { display: flex; flex-direction: column; align-items: center; }
.partner-logo { display: block; width: min(300px, 75%); opacity: .9; transition: opacity .2s, transform .2s; }
.partner-logo:hover { opacity: 1; transform: scale(1.03); }
.partner-note { margin: 1.2rem 0 0; font-size: .82rem; color: var(--muted); }

/* Footer */
.footer { padding: 32px 0; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); transition: background .2s, color .2s; }
.social a:hover { background: var(--navy); color: var(--white); }
.copy { margin: 0; font-size: .85rem; color: var(--muted); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 30px; height: 30px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .post:hover { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .about-in { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin-inline: auto; }
  .posts { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .nav > a:not(.btn) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card .checks { grid-template-columns: 1fr; }
  .card { padding: 1.6rem 1.4rem 1.3rem; }
  .hero .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hero .btn { justify-content: center; }
  .footer-in { flex-direction: column; text-align: center; }
}
