:root{
    --bg:#FAFAF8;
    --ink:#171717;
    --navy:#30343B;
    --wine:#4A202A;
    --wine-light:#682F3B;
    --gray:#5C5A5B;
    --sand:#E8E7E4;
    --cream:#FAFAF8;
    --wine-06: rgba(74,32,42,.06);
    --wine-10: rgba(74,32,42,.10);
    --navy-06: rgba(48,52,59,.06);
    --line: rgba(23,23,23,.10);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
    --maxw: 1180px;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:var(--font-sans);
    font-size:16px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  img,svg{display:block; max-width:100%;}
  a{color:inherit; text-decoration:none;}
  ul{list-style:none;}
  .wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}

  :focus-visible{outline:2px solid var(--wine); outline-offset:3px;}

  .eyebrow{
    font-family:var(--font-mono);
    font-size:12px;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--wine);
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
  }
  .eyebrow::before{
    content:"";
    width:22px;
    height:1px;
    background:var(--wine);
    display:inline-block;
  }

  h1,h2,h3{
    font-family:var(--font-sans);
    font-weight:800;
    letter-spacing:-0.02em;
    line-height:1.08;
    color:var(--ink);
  }
  h2{font-size:clamp(28px,3.6vw,42px);}
  h3{font-size:19px; letter-spacing:-0.01em;}
  p{color:var(--gray);}
  .lede{font-size:18px; line-height:1.65; max-width:56ch;}

  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-family:var(--font-sans);
    font-weight:600;
    font-size:14.5px;
    padding:14px 26px;
    border-radius:3px;
    cursor:pointer;
    transition:transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    white-space:nowrap;
    border:1px solid transparent;
  }
  .btn:hover{transform:translateY(-1px);}
  .btn-primary{background:var(--wine); color:var(--cream);}
  .btn-primary:hover{background:var(--wine-light);}
  .btn-ghost{border-color:var(--line); color:var(--ink); background:transparent;}
  .btn-ghost:hover{border-color:var(--wine); color:var(--wine);}
  .btn-invert{background:var(--cream); color:var(--wine);}
  .btn-invert:hover{background:#fff;}
  .btn-sm{padding:10px 18px; font-size:13px;}

  /* ---------- NAV ---------- */
  header{
    position:sticky; top:0; z-index:50;
    background:rgba(250,250,248,.86);
    backdrop-filter:saturate(160%) blur(10px);
    border-bottom:1px solid var(--line);
  }
  nav{
    max-width:var(--maxw); margin:0 auto; padding:18px 32px;
    display:flex; align-items:center; justify-content:space-between;
  }
  .logo{display:flex; flex-direction:column; line-height:1;}
  .logo .name{font-size:15px; font-weight:800; letter-spacing:-.01em;}
  .logo .role{
    font-family:var(--font-mono); font-size:9.5px; letter-spacing:.12em;
    color:var(--gray); text-transform:uppercase; margin-top:4px;
  }
  .nav-links{display:flex; align-items:center; gap:36px;}
  .nav-links a{
    font-size:14px; font-weight:500; color:var(--navy); position:relative;
  }
  .nav-links a::after{
    content:""; position:absolute; left:0; right:0; bottom:-6px; height:1px;
    background:var(--wine); transform:scaleX(0); transform-origin:left;
    transition:transform .2s ease;
  }
  .nav-links a:hover::after{transform:scaleX(1);}
  .nav-cta{display:flex; align-items:center; gap:22px;}
  @media (max-width:860px){ .nav-links{display:none;} }

  /* ---------- HERO ---------- */
  .hero{padding:88px 0 72px;}
  .hero-grid{
    display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center;
  }
  .hero h1{font-size:clamp(34px,5vw,58px); margin-bottom:22px;}
  .hero h1 .accent{color:var(--wine);}
  .hero-cta{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}

  .diagram-card{
    border:1px solid var(--line);
    border-radius:4px;
    background:#fff;
    padding:36px 28px 26px;
  }
  .diagram-caption{
    font-family:var(--font-mono); font-size:11px; letter-spacing:.08em;
    color:var(--gray); text-align:center; margin-top:18px; text-transform:uppercase;
  }
  .rota-svg text{font-family:var(--font-sans);}
  .rota-letter{font-weight:800; fill:var(--wine);}
  .rota-label{font-family:var(--font-mono); font-size:9.5px; letter-spacing:.05em; fill:var(--gray); text-transform:uppercase;}

  @media (max-width:860px){
    .hero-grid{grid-template-columns:1fr; gap:44px;}
  }

  /* ---------- STAT / CREDIBILITY BAND ---------- */
  .band{background:var(--navy); color:var(--cream); padding:52px 0;}
  .band-grid{
    display:grid; grid-template-columns:auto 1fr auto; gap:48px; align-items:center;
  }
  .band-stat{display:flex; align-items:baseline; gap:14px;}
  .band-stat .num{font-family:var(--font-mono); font-size:52px; font-weight:600; color:#fff; line-height:1;}
  .band-stat .desc{font-size:13.5px; color:rgba(250,250,248,.72); max-width:22ch; line-height:1.5;}
  .band-divider{width:1px; height:52px; background:rgba(250,250,248,.18); justify-self:center;}
  .band-source{font-family:var(--font-mono); font-size:11px; color:rgba(250,250,248,.5); margin-top:6px;}
  .band-badge{
    justify-self:end; display:flex; align-items:center; gap:12px;
    border:1px solid rgba(250,250,248,.25); border-radius:999px; padding:8px 8px 8px 16px;
  }
  .band-badge span{font-size:13px; font-weight:500;}
  .band-badge a{
    background:var(--cream); color:var(--wine); font-size:12px; font-weight:600;
    padding:8px 14px; border-radius:999px; white-space:nowrap;
  }
  @media (max-width:900px){
    .band-grid{grid-template-columns:1fr; gap:24px; text-align:left;}
    .band-divider{display:none;}
    .band-badge{justify-self:start;}
  }

  /* ---------- SECTIONS ---------- */
  section{padding:100px 0;}
  .section-head{max-width:640px; margin-bottom:56px;}

  /* SOBRE */
  .pillars{
    display:grid; grid-template-columns:repeat(3,1fr); margin-top:52px;
    border-top:1px solid var(--line);
  }
  .pillar{padding:28px 28px 0 0; border-right:1px solid var(--line);}
  .pillar:last-child{border-right:none;}
  .pillar .tag{font-family:var(--font-mono); font-size:11px; color:var(--wine); letter-spacing:.08em; text-transform:uppercase; margin-bottom:10px; display:block;}
  .pillar h3{margin-bottom:8px;}
  .pillar p{font-size:14.5px;}
  @media (max-width:760px){
    .pillars{grid-template-columns:1fr;}
    .pillar{border-right:none; border-bottom:1px solid var(--line); padding:28px 0;}
  }

  /* MÉTODO ROTA */
  .metodo{background:var(--sand);}
  .rota-steps{
    display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin-top:56px;
    position:relative;
  }
  .rota-step{
    padding:0 26px 0 0; position:relative;
  }
  .rota-step + .rota-step{padding-left:26px; border-left:1px solid var(--line);}
  .rota-step .letter{
    font-family:var(--font-mono); font-size:38px; font-weight:600; color:var(--wine); line-height:1;
    margin-bottom:18px; display:block;
  }
  .rota-step h3{margin-bottom:10px;}
  .rota-step p{font-size:14px;}
  .rota-step .items{margin-top:14px; font-size:13px; color:var(--gray);}
  .rota-step .items li{padding:3px 0; position:relative; padding-left:14px;}
  .rota-step .items li::before{content:"–"; position:absolute; left:0; color:var(--wine);}
  @media (max-width:900px){
    .rota-steps{grid-template-columns:1fr; gap:36px;}
    .rota-step + .rota-step{padding-left:0; border-left:none; border-top:1px solid var(--line); padding-top:36px;}
  }

  /* DIAGNÓSTICO CTA */
  .diag{
    background:var(--wine); color:var(--cream); text-align:center;
  }
  .diag .wrap{max-width:760px;}
  .diag .eyebrow{color:rgba(250,250,248,.75);}
  .diag .eyebrow::before{background:rgba(250,250,248,.5);}
  .diag h2{color:#fff;}
  .diag p{color:rgba(250,250,248,.78); margin:22px auto 0; font-size:17px; max-width:52ch;}
  .diag .hero-cta{justify-content:center; margin-top:36px;}

  /* SERVIÇOS */
  .servicos-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
    background:var(--line); border:1px solid var(--line); margin-top:52px;
  }
  .servico-card{
    background:var(--bg); padding:32px 28px; transition:background .18s ease;
  }
  .servico-card:hover{background:var(--wine-06);}
  .servico-card .fmt{
    font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
    color:var(--gray); margin-bottom:14px; display:block;
  }
  .servico-card h3{margin-bottom:10px;}
  .servico-card p{font-size:14px;}
  @media (max-width:860px){ .servicos-grid{grid-template-columns:1fr;} }

  /* SISTEMA LORENA */
  .lorena-sec{
    background:var(--navy); color:var(--cream);
  }
  .lorena-inner{
    display:grid; grid-template-columns:1fr auto; gap:48px; align-items:center;
  }
  .lorena-badge{
    display:inline-block; font-family:var(--font-mono); font-size:11px; letter-spacing:.1em;
    text-transform:uppercase; color:var(--wine-light); background:rgba(250,250,248,.9);
    padding:6px 12px; border-radius:999px; margin-bottom:20px; font-weight:600;
  }
  .lorena-sec h2{color:#fff; max-width:14ch;}
  .lorena-sec p{color:rgba(250,250,248,.72); margin-top:18px; max-width:50ch; font-size:16px;}
  .lorena-photo{
    width:min(320px,34vw); aspect-ratio:4/5; border:1px solid rgba(250,250,248,.25);
    background:linear-gradient(145deg,rgba(250,250,248,.1),rgba(250,250,248,.025));
    overflow:hidden; position:relative;
  }
  .lorena-photo img{width:100%; height:100%; object-fit:cover; object-position:center;}
  @media (max-width:800px){ .lorena-inner{grid-template-columns:1fr;} }
  @media (max-width:800px){ .lorena-photo{width:min(100%,360px);} }

  /* CHAT JURÍDICO */
  .cj-card{
    display:grid; grid-template-columns:auto 1fr auto; gap:32px; align-items:center;
    border:1px solid var(--line); border-radius:4px; padding:36px 40px; margin-top:52px;
  }
  .cj-mark{
    width:56px; height:56px; border-radius:50%; background:var(--wine-06);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-mono); font-weight:700; color:var(--wine); font-size:18px;
  }
  .cj-card h3{margin-bottom:6px;}
  .cj-card p{font-size:14.5px; max-width:56ch;}
  @media (max-width:760px){
    .cj-card{grid-template-columns:1fr; text-align:left;}
  }

  /* FOOTER */
  footer{background:var(--ink); color:var(--cream); padding:72px 0 28px;}
  .footer-top{
    display:flex; justify-content:space-between; align-items:flex-start; gap:40px;
    padding-bottom:44px; border-bottom:1px solid rgba(250,250,248,.12);
    flex-wrap:wrap;
  }
  .footer-tagline{font-size:24px; font-weight:700; letter-spacing:-.01em; max-width:14ch; line-height:1.25;}
  .social-row{display:flex; gap:12px;}
  .social-btn{
    width:42px; height:42px; border-radius:50%; border:1px solid rgba(250,250,248,.2);
    display:flex; align-items:center; justify-content:center;
    transition:background .18s ease, border-color .18s ease;
  }
  .social-btn:hover{background:var(--wine); border-color:var(--wine);}
  .social-btn svg{width:17px; height:17px; fill:var(--cream);}
  .footer-bottom{
    display:flex; justify-content:space-between; align-items:center; padding-top:26px;
    font-size:12.5px; color:rgba(250,250,248,.5); flex-wrap:wrap; gap:12px;
  }
  .footer-bottom a{color:rgba(250,250,248,.7);}
  .footer-bottom a:hover{color:#fff;}
  .footer-links{display:flex; gap:18px; flex-wrap:wrap;}

  /* ---------- PÁGINAS INTERNAS ---------- */
  .page-hero{padding:82px 0 64px; border-bottom:1px solid var(--line);}
  .page-hero h1{font-size:clamp(36px,5vw,58px); max-width:14ch; margin-bottom:22px;}
  .page-content{padding:72px 0 100px;}
  .article-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
  .article-card{background:var(--bg); padding:30px 28px; min-height:250px; display:flex; flex-direction:column;}
  .article-card .fmt{font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--wine); margin-bottom:28px;}
  .article-card h2{font-size:23px; margin-bottom:14px;}
  .article-card p{font-size:14.5px;}
  .article-card .status{margin-top:auto; padding-top:28px; font-family:var(--font-mono); font-size:11px; color:var(--gray); text-transform:uppercase; letter-spacing:.08em;}
  .blog-layout{display:grid; grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr); gap:54px; align-items:start;}
  .blog-articles .article-grid{grid-template-columns:1fr;}
  .social-sidebar{min-width:0;}
  .social-heading{margin-bottom:24px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px;}
  .social-heading h2{font-size:clamp(26px,3vw,34px);}
  .social-carousel{min-width:0;}
  .social-carousel-track{display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; cursor:grab; padding-bottom:2px;}
  .social-carousel-track::-webkit-scrollbar{display:none;}
  .social-carousel-track.dragging{cursor:grabbing; scroll-behavior:auto; user-select:none;}
  .social-carousel-slide{flex:0 0 calc((100% - 14px)/2); scroll-snap-align:start;}
  .social-embed{background:#fff; border:1px solid var(--line); overflow:hidden;}
  .social-source{display:block; padding:12px 14px; border-bottom:1px solid var(--line); font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--wine);}
  .social-media-frame{display:block; width:100%; height:430px; border:0; background:#fff;}
  .carousel-controls{display:flex; gap:8px; padding-bottom:2px;}
  .carousel-button{width:40px; height:40px; border:1px solid var(--line); background:transparent; color:var(--ink); font-size:19px; cursor:pointer; transition:background .18s ease,color .18s ease,border-color .18s ease;}
  .carousel-button:hover{background:var(--wine); color:var(--cream); border-color:var(--wine);}
  .carousel-dots{display:flex; justify-content:center; gap:7px; margin-top:15px;}
  .carousel-dots span{width:6px; height:6px; border-radius:50%; background:rgba(23,23,23,.18); transition:width .2s ease,background .2s ease;}
  .carousel-dots span.active{width:20px; border-radius:999px; background:var(--wine);}
  .social-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px;}
  .legal{max-width:780px;}
  .legal h2{font-size:26px; margin:42px 0 14px;}
  .legal h2:first-child{margin-top:0;}
  .legal p,.legal li{color:var(--gray); margin-bottom:12px;}
  .legal ul{list-style:disc; padding-left:22px;}
  .legal a{color:var(--wine); text-decoration:underline; text-underline-offset:3px;}
  .cookie-banner{position:fixed; left:20px; bottom:20px; z-index:90; width:min(440px,calc(100% - 40px)); background:var(--ink); color:var(--cream); padding:22px; box-shadow:0 14px 44px rgba(23,23,23,.26); border:1px solid rgba(250,250,248,.15);}
  .cookie-banner p{color:rgba(250,250,248,.72); font-size:13.5px; margin-bottom:16px;}
  .cookie-actions{display:flex; gap:10px; flex-wrap:wrap;}
  .cookie-actions .btn{padding:10px 16px; font-size:12.5px;}
  @media (max-width:980px){.blog-layout{grid-template-columns:1fr; gap:72px;}.article-grid{grid-template-columns:1fr;}.nav-cta .btn{display:none;}}
  @media (max-width:700px){.social-carousel-slide{flex-basis:100%;}.social-media-frame{height:520px;}.social-heading{align-items:center;}}

  .reveal{opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease;}
  .reveal.in{opacity:1; transform:translateY(0);}
  @media (prefers-reduced-motion: reduce){
    .reveal{opacity:1; transform:none; transition:none;}
    html{scroll-behavior:auto;}
  }

  /* ---------- WHATSAPP FLUTUANTE ---------- */
  .whatsapp-float{
    position:fixed; right:22px; bottom:22px; z-index:80;
    width:58px; height:58px; border-radius:50%;
    background:#25D366; box-shadow:0 6px 20px rgba(23,23,23,.22);
    display:flex; align-items:center; justify-content:center;
    transition:transform .18s ease, box-shadow .18s ease;
  }
  .whatsapp-float:hover{transform:translateY(-2px) scale(1.04); box-shadow:0 10px 26px rgba(23,23,23,.28);}
  .whatsapp-float svg{width:30px; height:30px; fill:#fff;}
  .whatsapp-float:focus-visible{outline:2px solid var(--wine); outline-offset:3px;}
  @media (max-width:600px){
    .whatsapp-float{right:16px; bottom:16px; width:52px; height:52px;}
    .whatsapp-float svg{width:26px; height:26px;}
  }
