:root {
  --navy-950: #020b0f;
  --navy-900: #031217;
  --navy-850: #061b24;
  --navy-800: #092a34;
  --gold-650: #9f6e1d;
  --gold-500: #d6a64f;
  --gold-300: #f2c46d;
  --cream: #f5f1e8;
  --paper: #fffaf0;
  --white: #fff;
  --ink: #0b2028;
  --muted: #556064;
  --line-dark: rgba(214, 166, 79, .28);
  --line-light: rgba(3, 18, 23, .14);
  --shadow-dark: 0 20px 54px rgba(0, 0, 0, .27);
  --shadow-light: 0 14px 38px rgba(3, 18, 23, .08);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1240px;
  --radius: 12px;
  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; overflow-x: hidden; color: var(--cream); background: var(--navy-950); font-family: var(--font-body); font-size: 16px; line-height: 1.58; }
body::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ""; opacity: .22; background-image: radial-gradient(rgba(245, 241, 232, .14) .7px, transparent .7px); background-size: 5px 5px; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
.btn, .situation-card, button { cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { position: relative; padding: 62px 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 3000; padding: 10px 16px; color: var(--navy-950); background: var(--gold-300); transform: translateY(-160%); transition: transform 180ms ease; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(214, 166, 79, .17); background: rgba(2, 11, 15, .9); backdrop-filter: blur(18px); transition: background 200ms ease, box-shadow 200ms ease; }
.site-header.is-scrolled { background: rgba(2, 11, 15, .98); box-shadow: 0 12px 36px rgba(0, 0, 0, .22); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-height: 48px; display: grid; align-content: center; line-height: 1.04; text-transform: uppercase; }
.brand-name { color: var(--white); font-size: 1rem; font-weight: 800; }
.brand-area { color: var(--gold-300); font-size: .95rem; }
.brand small { margin-top: 4px; color: rgba(245, 241, 232, .72); font-size: .59rem; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 22px; color: rgba(245, 241, 232, .76); font-size: .82rem; font-weight: 600; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; transition: color 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-300); }

.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 800; line-height: 1.2; text-align: center; text-transform: uppercase; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: var(--navy-950); background: linear-gradient(135deg, var(--gold-300), #e9a72e); box-shadow: 0 12px 28px rgba(214, 166, 79, .22); }
.btn-gold:hover { box-shadow: 0 16px 34px rgba(214, 166, 79, .32); }
.btn-large { min-height: 58px; padding-inline: 28px; font-size: .88rem; }
.btn-full { width: 100%; }
.header-cta { min-height: 48px; padding: 11px 20px; text-transform: none; }

.eyebrow, .authority-label { margin-bottom: 12px; color: var(--gold-300); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dark { color: var(--gold-650); }
.section-head { max-width: 900px; margin-bottom: 30px; }
.section-head h2, .urgency-head h2, .contact-lead h2 { margin-bottom: 12px; font-family: var(--font-heading); font-size: clamp(2.15rem, 3.8vw, 4rem); font-weight: 500; line-height: 1.03; letter-spacing: -.035em; }
.section-head > p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: .96rem; }

.hero { position: relative; min-height: 545px; display: grid; overflow: hidden; background: var(--navy-950); }
.hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(2, 11, 15, .99) 0%, rgba(2, 11, 15, .92) 44%, rgba(2, 11, 15, .26) 75%, rgba(2, 11, 15, .08) 100%), linear-gradient(0deg, rgba(2, 11, 15, .62), transparent 48%), url("assets/dr-pedro-escritorio.jpg"); background-size: cover; background-position: center 24%; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; padding-block: 34px; }
.hero-copy { width: min(790px, 67%); }
.hero h1 { margin-bottom: 16px; color: var(--paper); font-family: var(--font-heading); font-size: clamp(2.65rem, 4.35vw, 4.8rem); font-weight: 500; line-height: .99; letter-spacing: -.044em; }
.hero h1 span { color: var(--gold-300); font-weight: 600; }
.hero-lead { max-width: 720px; margin-bottom: 20px; color: rgba(245, 241, 232, .84); font-size: .98rem; line-height: 1.58; }
.microcopy { margin: 12px 0 0; color: rgba(245, 241, 232, .6); font-size: .74rem; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 0; margin: 14px 0 0; color: rgba(245, 241, 232, .72); font-size: .73rem; font-weight: 700; text-transform: uppercase; }
.hero-topics span { display: inline-flex; align-items: center; }
.hero-topics span + span::before { margin-inline: 10px; color: var(--gold-300); content: "•"; }

.situation-section, .measures-section { color: var(--ink); background: radial-gradient(circle at 85% 10%, rgba(242, 196, 109, .14), transparent 24%), var(--cream); }
.situation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.situation-card { min-height: 260px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(255, 250, 240, .88); box-shadow: 0 7px 22px rgba(3, 18, 23, .04); transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.situation-card:hover { transform: translateY(-4px); border-color: rgba(159, 110, 29, .5); box-shadow: var(--shadow-light); }
.situation-card > span, .measure-card > span { display: block; margin-bottom: 18px; color: var(--gold-650); font-family: var(--font-heading); font-size: 1.45rem; line-height: 1; }
.situation-card h3 { margin-bottom: 9px; font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; line-height: 1.12; }
.situation-card p { margin-bottom: 18px; color: var(--muted); font-size: .87rem; }
.situation-card strong { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-light); color: var(--gold-650); font-size: .68rem; letter-spacing: .015em; text-transform: uppercase; }
.situation-card strong b { font-size: 1.1rem; transition: transform 180ms ease; }
.situation-card:hover strong b { transform: translateX(4px); }

.measures-section { background: var(--paper); }
.measures-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.measure-card { min-height: 220px; padding: 23px; border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--cream); }
.measure-card h3 { margin-bottom: 9px; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.measure-card p { margin-bottom: 0; color: var(--muted); font-size: .85rem; }
.section-action { display: flex; justify-content: center; margin-top: 24px; }

.urgency-section { background: radial-gradient(circle at 12% 5%, rgba(214, 166, 79, .14), transparent 28%), var(--navy-900); }
.urgency-head { display: grid; grid-template-columns: .82fr 1.18fr; column-gap: 72px; align-items: end; margin-bottom: 28px; }
.urgency-head .eyebrow { grid-column: 1 / -1; }
.urgency-head h2 { margin-bottom: 0; }
.urgency-head > p:last-child { margin-bottom: 4px; color: rgba(245, 241, 232, .7); font-size: .94rem; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; padding: 0; list-style: none; }
.process-grid li { min-height: 132px; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line-dark); background: rgba(9, 42, 52, .5); }
.process-grid li > span { color: var(--gold-300); font-family: var(--font-heading); font-size: 1.3rem; }
.process-grid h3 { margin-bottom: 5px; color: var(--paper); font-size: .84rem; letter-spacing: .035em; text-transform: uppercase; }
.process-grid p { margin: 0; color: rgba(245, 241, 232, .66); font-size: .83rem; }
.urgency-action { display: flex; flex-direction: column; align-items: center; text-align: center; }
.urgency-action p { margin: 10px 0 0; color: rgba(245, 241, 232, .54); font-size: .72rem; }

.conversion-section { background: radial-gradient(circle at 82% 12%, rgba(214, 166, 79, .12), transparent 28%), var(--navy-850); }
.conversion-stack { display: grid; gap: 32px; }
.contact-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 48px; align-items: end; }
.contact-lead h2 { max-width: 760px; margin-bottom: 10px; }
.contact-lead > div:first-child > p:last-child { max-width: 720px; margin: 0; color: rgba(245, 241, 232, .7); font-size: 1rem; }
.contact-action { padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(2, 11, 15, .48); box-shadow: var(--shadow-dark); }
.contact-action p { margin: 0 0 16px; color: rgba(245, 241, 232, .76); font-size: .94rem; }
.contact-action .btn { width: 100%; }
.contact-action small { display: block; margin-top: 12px; color: rgba(245, 241, 232, .52); font-size: .72rem; line-height: 1.5; text-align: center; }

.authority-panel { padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(2, 11, 15, .38); }
.authority-label { margin-bottom: 10px; }
.authority-note { max-width: 1040px; margin-bottom: 24px; padding-left: 16px; border-left: 2px solid var(--gold-500); color: rgba(245, 241, 232, .72); font-size: .92rem; line-height: 1.58; }
.authority-professionals { display: grid; gap: 0; }
.professional { display: grid; grid-template-columns: 176px 1fr; gap: 28px; align-items: center; padding-block: 28px; border-top: 1px solid var(--line-dark); }
.professional img { width: 176px; height: 218px; border: 1px solid var(--line-dark); border-radius: 9px; object-fit: cover; object-position: center 20%; }
.professional-secondary img { object-position: center 18%; }
.professional h3 { margin-bottom: 4px; color: var(--paper); font-family: var(--font-heading); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.professional-role { margin-bottom: 8px; color: var(--gold-300); font-size: .92rem; font-weight: 700; }
.professional-oab { margin-bottom: 13px; color: rgba(245, 241, 232, .7); font-size: .84rem; font-weight: 700; }
.professional-description { max-width: 900px; margin: 0 0 14px; color: rgba(245, 241, 232, .68); font-size: .92rem; line-height: 1.58; }
.professional ul { display: grid; gap: 5px; margin: 0; padding: 0; color: rgba(245, 241, 232, .7); font-size: .85rem; list-style: none; }
.professional li::before { margin-right: 6px; color: var(--gold-300); content: "—"; }
.final-whatsapp { width: min(960px, 100%); justify-self: center; padding: 26px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(2, 11, 15, .42); text-align: center; }
.final-whatsapp .btn { width: 100%; }
.final-whatsapp p { max-width: 760px; margin: 14px auto 0; color: rgba(245, 241, 232, .56); font-size: .82rem; line-height: 1.5; }

.site-footer { padding: 46px 0 28px; border-top: 1px solid var(--line-dark); background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-brand { width: fit-content; margin-bottom: 16px; }
.footer-grid p, .footer-grid small, .footer-contact { color: rgba(245, 241, 232, .58); font-size: .74rem; }
.footer-contact { display: grid; align-content: start; gap: 5px; }
.footer-contact strong { margin-bottom: 3px; color: var(--paper); font-size: .85rem; }
.footer-note { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(214, 166, 79, .13); }
.footer-note p { max-width: 880px; margin: 0; color: rgba(245, 241, 232, .44); font-size: .69rem; }
.mobile-cta { display: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 550ms ease, transform 550ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .hero-copy { width: min(720px, 69%); }
  .situation-grid, .measures-grid { grid-template-columns: repeat(2, 1fr); }
  .situation-card, .measure-card { min-height: 210px; }
  .contact-lead { gap: 28px; }
  .professional { grid-template-columns: 140px 1fr; gap: 22px; }
  .professional img { width: 140px; height: 176px; }
}

@media (max-width: 760px) {
  :root { --header-height: 104px; }
  html { scroll-padding-top: 112px; }
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 48px 0; }
  .header-inner { min-height: var(--header-height); gap: 12px; }
  .brand-name { font-size: 1.05rem; }
  .brand-area { font-size: .92rem; }
  .brand small { font-size: .55rem; }
  .header-cta { min-width: 122px; min-height: 48px; padding-inline: 17px; font-size: .8rem; }
  .header-cta svg { display: none; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .urgency-head h2, .contact-lead h2 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.05; }
  .section-head > p:last-child { font-size: .92rem; }
  .btn { width: 100%; padding-inline: 14px; }

  .hero { min-height: auto; padding-top: 194px; }
  .hero-image { height: 258px; background-image: linear-gradient(0deg, var(--navy-950) 0%, rgba(2, 11, 15, .14) 66%), url("assets/dr-pedro-escritorio.jpg"); background-size: auto 288px; background-repeat: no-repeat; background-position: 61% top; }
  .hero-inner { align-items: flex-start; padding: 8px 0 34px; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-bottom: 14px; font-size: clamp(2rem, 9.4vw, 2.65rem); line-height: 1.01; }
  .hero-lead { margin-bottom: 17px; font-size: .92rem; line-height: 1.54; }
  .hero-topics { font-size: .67rem; }
  .hero-topics span + span::before { margin-inline: 7px; }

  .situation-grid, .measures-grid { grid-template-columns: 1fr; }
  .situation-grid, .measures-grid { gap: 10px; }
  .situation-card, .measure-card { min-height: 0; padding: 20px; }
  .situation-card > span, .measure-card > span { margin-bottom: 13px; }
  .situation-card h3 { font-size: 1.4rem; }
  .situation-card p, .measure-card p { font-size: .88rem; }
  .measure-card h3 { font-size: 1.35rem; }

  .urgency-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
  .urgency-head .eyebrow { grid-column: auto; }
  .urgency-head > p:last-child { font-size: .9rem; }
  .process-grid { grid-template-columns: 1fr; gap: 8px; }
  .process-grid li { min-height: 0; padding: 16px; }

  .conversion-stack { gap: 24px; }
  .contact-lead { grid-template-columns: 1fr; gap: 20px; }
  .contact-lead > div:first-child > p:last-child { font-size: 1rem; line-height: 1.55; }
  .contact-action, .authority-panel { padding: 20px; }
  .contact-action p { font-size: 1rem; line-height: 1.55; }
  .authority-note { font-size: 1rem; }
  .professional { grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding-block: 24px; }
  .professional > div { display: contents; }
  .professional img { width: 96px; height: 122px; }
  .professional img { grid-column: 1; grid-row: 1 / span 3; }
  .professional h3, .professional-role, .professional-oab { grid-column: 2; }
  .professional h3 { align-self: end; margin-bottom: 0; font-size: 1.48rem; }
  .professional-role { align-self: center; margin-bottom: 0; font-size: .82rem; }
  .professional-oab { align-self: start; margin-bottom: 0; font-size: .78rem; }
  .professional-description, .professional ul { grid-column: 1 / -1; }
  .professional-description { margin-top: 2px; margin-bottom: 10px; font-size: 1rem; line-height: 1.58; }
  .professional ul { font-size: .9rem; line-height: 1.5; }
  .final-whatsapp { padding: 18px; }
  .final-whatsapp p { font-size: .85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding-top: 38px; }
  .mobile-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1200; display: block; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(214, 166, 79, .26); background: rgba(2, 11, 15, .96); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transform: translateY(110%); transition: opacity 180ms ease, transform 180ms ease; }
  .mobile-cta.is-visible { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-cta .btn { min-height: 56px; }
}

@media (max-width: 430px) {
  .header-cta { min-width: 116px; padding-inline: 14px; }
  .hero { padding-top: 188px; }
  .hero-image { height: 252px; background-size: auto 280px; }
  .professional { grid-template-columns: 88px 1fr; gap: 14px; }
  .professional img { width: 88px; height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
