/*
  Contafaq — refinamiento visual frío y mobile-first
  Paleta clara, sin naranja, con jerarquía editorial más contenida.
*/
:root{
  --editorial-ink:#172d3d;
  --editorial-ink-2:#384e5d;
  --editorial-paper:#edf7f8;
  --editorial-paper-2:#ffffff;
  --editorial-teal:#2278B5;
  --editorial-teal-soft:#E8F2FA;
  --editorial-coral:#6EA8D2;
  --editorial-line:rgba(23,45,61,.14);
  --editorial-line-light:rgba(255,255,255,.2);
}

body.editorial-site{
  background:#fff;
  color:var(--editorial-ink);
}
body.editorial-site .container{width:min(1260px,calc(100% - 56px))}
body.editorial-site .section{padding:104px 0}
body.editorial-site .topbar{background:#f6fbfb;color:#587078}
body.editorial-site .site-header{background:rgba(255,255,255,.93)}
body.editorial-site .navbar{height:76px}
body.editorial-site .brand img{width:176px}
body.editorial-site .nav-links{gap:18px;font-size:.73rem}
body.editorial-site .nav-links a{padding:28px 0 25px}
body.editorial-site .btn{border-radius:10px}
body.editorial-site .btn-primary{background:#276a99}
body.editorial-site .btn-primary:hover{background:#1f5982}
body.editorial-site .btn-quote{background:#183346;border-color:#183346;border-radius:10px}
body.editorial-site .mobile-toggle{border-radius:10px}
.section-number{color:#4881aa}

/* Hero */
.editorial-hero{
  background:
    radial-gradient(circle at 78% 25%,rgba(109,166,207,.22),transparent 34%),
    linear-gradient(rgba(46,113,160,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(46,113,160,.045) 1px,transparent 1px),
    #f5fbfb;
  background-size:auto,74px 74px,74px 74px,auto;
}
.editorial-hero:before{display:none}
.editorial-hero-shell{padding:24px 0 0}
.editorial-hero-topline{
  grid-template-columns:1fr auto auto;
  padding-bottom:18px;
  color:#688087;
  font-size:.64rem;
}
.editorial-hero-layout{
  grid-template-columns:minmax(0,1fr) minmax(420px,.86fr);
  gap:72px;
  min-height:610px;
  align-items:center;
}
.editorial-hero-copy{padding:64px 0 70px}
.hero-kicker{margin-bottom:20px;color:#2d6c99;font-size:.68rem}
.editorial-hero h1{
  max-width:690px;
  gap:4px;
  font-size:clamp(3.05rem,4.7vw,4.85rem);
  line-height:.99;
  letter-spacing:-.058em;
}
.editorial-hero h1 em{
  margin-top:22px;
  color:#3b5b71;
  font-family:inherit;
  font-size:.27em;
  line-height:1.45;
  letter-spacing:.015em;
  font-style:normal;
  font-weight:680;
}
.editorial-hero-lower{
  grid-template-columns:1fr;
  max-width:620px;
  margin-top:26px;
  padding-top:23px;
}
.editorial-hero-lower p{max-width:560px;color:#587079;font-size:.98rem;line-height:1.72}
.editorial-hero-lower .hero-actions{display:flex;align-items:center;gap:24px;margin-top:6px}
.editorial-hero-lower .editorial-text-link{margin:0}
.editorial-hero-photo{
  margin:60px 0 62px;
  padding:14px 14px 0;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(36,96,138,.17);
  box-shadow:0 30px 70px rgba(34,73,101,.16);
}
.editorial-hero-photo:before{
  top:-18px;right:-18px;width:48%;height:45%;
  background:#bfd7e8;
}
.editorial-hero-photo img{
  height:430px;
  clip-path:none;
  border-radius:4px;
  filter:saturate(.9) contrast(1.02);
}
.editorial-photo-index{
  top:28px;left:auto;right:28px;
  width:52px;height:52px;
  background:rgba(255,255,255,.94);
  color:#276089;
  border:1px solid rgba(39,96,137,.3);
  border-radius:50%;
}
.editorial-hero-photo figcaption{
  position:relative;
  right:auto;bottom:auto;
  width:100%;
  padding:17px 5px 18px;
  background:transparent;
  border:0;
}
.editorial-hero-photo figcaption span{color:#2c6c9a}
.editorial-hero-photo figcaption strong{font-size:.9rem;color:#384d5c}
.editorial-hero-rail{display:none}
.editorial-hero-metrics{
  margin:0;
  background:rgba(255,255,255,.78);
  border:1px solid var(--editorial-line);
  border-bottom:0;
}
.editorial-hero-metrics>div{min-height:92px;padding:18px 24px}
.editorial-hero-metrics b{color:#2e6e9b;font-size:1.45rem}

/* About */
.editorial-manifesto{background:#fff}
.editorial-manifesto-grid{
  grid-template-columns:62px minmax(0,.95fr) minmax(420px,1fr);
  gap:54px;
}
.manifesto-year{display:none}
.manifesto-copy{grid-column:2}
.manifesto-photo{grid-column:3}
.manifesto-index{padding-right:16px}
.manifesto-index span{color:#4b86af}
.manifesto-copy h2{font-size:clamp(2.45rem,3.7vw,3.7rem)}
.manifesto-photo img{height:500px;border-radius:2px}
.manifesto-photo:after{border-color:#8cb7d6}
.manifesto-photo figcaption{background:rgba(22,51,71,.9)}

/* Clients */
.logo-ledger{padding:72px 0;background:#eef7f8;color:var(--editorial-ink);border-block:1px solid var(--editorial-line)}
.logo-ledger-head{border-bottom-color:var(--editorial-line)}
.logo-ledger-head h2{color:var(--editorial-ink)}
.logo-ledger-head p{color:#5c747c}
.logo-ledger-track{border-left-color:var(--editorial-line)}
.logo-ledger-track figure{border-right-color:var(--editorial-line)}
.logo-ledger-track img{filter:none}
.logo-ledger-track figcaption{color:#627980}

/* Team */
.editorial-team{background:#fff}
.editorial-team-grid{grid-template-columns:1.15fr repeat(3,.68fr);gap:20px}
.editorial-team-intro{padding:34px 42px 40px 0}
.editorial-team-intro h2{font-size:clamp(2.45rem,3.8vw,3.85rem)}
.editorial-portrait img{height:405px;filter:saturate(.86) contrast(1.02)}
.portrait-b{margin-top:42px}
.portrait-c{margin-top:84px}

/* Industries */
.industry-index{background:#f4fafa}
.industry-index-layout{gap:72px}
.industry-index-sticky h2{font-size:clamp(2.45rem,3.8vw,3.9rem)}
.industry-index-row>span{color:#4881a9}
.industry-index-row:hover{background:#e8f0f6}

/* Process */
.process-ledger{background:#173245}
.process-ledger .section-number{color:#8bb7d7}
.process-ledger-intro h2{font-size:clamp(2.55rem,4vw,4.1rem)}
.process-ledger-list b{color:#8bb7d7}

/* Pricing */
.pricing-ledger{background:#fff}
.pricing-ledger-head h2{font-size:clamp(2.55rem,4vw,4.15rem)}
.pricing-ledger-row:hover{background:#f0f8f8}
.pricing-ledger-row.featured:before{background:#2f6f9c}

/* Testimonials */
.editorial-testimonials{background:#eef7f8}
.testimonial-mark{color:#cfe1ed}
.testimonial-feature h2{font-size:clamp(2.25rem,3.55vw,3.65rem)}

/* Contact */
.editorial-contact{padding-bottom:74px;background:#fff}
.editorial-contact-grid{
  background:#dce8f1;
  color:var(--editorial-ink);
  border:1px solid rgba(34,88,126,.16);
}
.editorial-contact .eyebrow,.editorial-contact .section-number{color:#2c6c99}
.editorial-contact .eyebrow:before{background:#2c6c99}
.editorial-contact h2{color:var(--editorial-ink);font-size:clamp(2.5rem,4vw,4.1rem)}
.editorial-contact-details p{color:#526674}
.editorial-contact-details a{color:#173245}
.contact-arrow{border-color:rgba(23,50,69,.35);color:#244b67}
.contact-arrow:hover{background:#244b67;color:#fff}
body.editorial-site .editorial-footer{background:#142e40}

/* Inner pages */
body.editorial-site .page-hero:after{background:#76aacf}
body.editorial-site .page-hero:before{background:linear-gradient(90deg,rgba(241,249,250,.98) 0%,rgba(241,249,250,.9) 50%,rgba(241,249,250,.15) 100%)}

@media(max-width:1050px){
  .editorial-hero-layout{grid-template-columns:1fr 1fr;gap:42px}
  .editorial-hero-copy{grid-column:1;padding:52px 0 58px}
  .editorial-hero-photo{grid-column:2;margin:44px 0}
  .editorial-hero-photo img{height:400px}
  .editorial-manifesto-grid{grid-template-columns:52px 1fr 1fr;gap:34px}
}

@media(max-width:860px){
  body.editorial-site .container{width:calc(100% - 36px)}
  body.editorial-site .section{padding:82px 0}
  .editorial-hero-layout{grid-template-columns:1fr;gap:0}
  .editorial-hero-copy{grid-column:1;padding:48px 0 28px}
  .editorial-hero-photo{grid-column:1;margin:20px 0 36px}
  .editorial-hero h1{font-size:clamp(2.85rem,9vw,4rem)}
  .editorial-hero-photo img{height:420px}
  .editorial-manifesto-grid{grid-template-columns:48px 1fr;gap:28px}
  .manifesto-copy,.manifesto-photo{grid-column:2}
  .logo-ledger-track{grid-template-columns:repeat(3,1fr)}
  .editorial-team-grid{grid-template-columns:1fr 1fr}
  .editorial-team-intro{grid-column:1/-1}
  .portrait-c{margin-top:0}
}

@media(max-width:620px){
  body.editorial-site .container{width:calc(100% - 28px)}
  body.editorial-site .section{padding:66px 0}
  body.editorial-site .topbar{display:none}
  body.editorial-site .navbar{height:64px}
  body.editorial-site .brand img{width:145px}

  .editorial-hero-shell{padding-top:0}
  .editorial-hero-topline{display:none}
  .editorial-hero-copy{padding:38px 0 22px}
  .hero-kicker{margin-bottom:14px;font-size:.6rem;letter-spacing:.14em}
  .editorial-hero h1{
    max-width:100%;
    font-size:clamp(2.45rem,11.5vw,3.15rem);
    line-height:1.01;
    letter-spacing:-.052em;
  }
  .editorial-hero h1 em{
    margin-top:17px;
    font-size:.36em;
    line-height:1.42;
    letter-spacing:0;
  }
  .editorial-hero-lower{margin-top:20px;padding-top:18px}
  .editorial-hero-lower p{font-size:.94rem;line-height:1.65}
  .editorial-hero-lower .hero-actions{display:grid;grid-template-columns:1fr;gap:15px;width:100%;margin-top:4px}
  .editorial-hero-lower .btn{width:100%;justify-content:center}
  .editorial-hero-lower .editorial-text-link{justify-self:center;margin-top:2px}
  .editorial-hero-photo{
    margin:16px -14px 28px;
    padding:8px 8px 0;
    border-left:0;border-right:0;
    box-shadow:0 20px 46px rgba(34,73,101,.14);
  }
  .editorial-hero-photo:before{display:none}
  .editorial-hero-photo img{height:285px;border-radius:2px}
  .editorial-photo-index{top:20px;right:20px;width:44px;height:44px}
  .editorial-hero-photo figcaption{padding:13px 7px 14px}
  .editorial-hero-photo figcaption strong{font-size:.83rem}
  .editorial-hero-metrics{
    grid-template-columns:repeat(2,1fr);
    margin:0;
    border-bottom:1px solid var(--editorial-line);
  }
  .editorial-hero-metrics>div{
    min-height:94px;
    padding:15px 14px;
    grid-template-columns:1fr;
    gap:7px;
    border-right:1px solid var(--editorial-line)!important;
    border-bottom:1px solid var(--editorial-line)!important;
  }
  .editorial-hero-metrics>div:nth-child(2n){border-right:0!important}
  .editorial-hero-metrics>div:nth-child(n+3){border-bottom:0!important}
  .editorial-hero-metrics b{font-size:1.25rem}
  .editorial-hero-metrics span{font-size:.69rem}

  .editorial-manifesto-grid{grid-template-columns:1fr;gap:28px}
  .manifesto-index{display:none}
  .manifesto-copy,.manifesto-photo{grid-column:1}
  .manifesto-copy h2,
  .editorial-team-intro h2,
  .industry-index-sticky h2,
  .process-ledger-intro h2,
  .pricing-ledger-head h2,
  .editorial-contact h2{font-size:clamp(2.05rem,9.6vw,2.7rem);line-height:1.05}
  .manifesto-photo img{height:330px}

  .logo-ledger{padding:54px 0}
  .logo-ledger-head{gap:16px}
  .logo-ledger-track{
    display:flex;
    width:calc(100% - 28px);
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    border-top:1px solid var(--editorial-line);
    border-left:0;
    scrollbar-width:none;
  }
  .logo-ledger-track::-webkit-scrollbar{display:none}
  .logo-ledger-track figure{
    flex:0 0 72%;
    scroll-snap-align:start;
    border-left:1px solid var(--editorial-line);
    border-right:0;
    border-top:0!important;
  }
  .logo-ledger-track figure:last-child{grid-column:auto;width:auto;border-left:1px solid var(--editorial-line)}
  .logo-ledger-track img{width:160px}

  .editorial-team-grid{grid-template-columns:1fr;gap:26px}
  .editorial-team-intro{grid-column:1;padding:0 0 8px}
  .editorial-portrait,.portrait-b,.portrait-c{margin:0}
  .editorial-portrait img{height:340px}
  .editorial-portrait div{padding-top:11px}

  .industry-index-layout,.process-ledger-layout{gap:38px}
  .industry-index-row{min-height:auto;padding:20px 0}
  .process-ledger-list li{padding:18px 0}

  .pricing-ledger-head{gap:14px;margin-bottom:30px}
  .pricing-ledger-row{padding:24px 0}
  .pricing-ledger-row:hover{padding:24px 10px}

  .testimonial-feature h2{font-size:clamp(1.9rem,8.8vw,2.5rem);line-height:1.16}
  .editorial-contact{padding-bottom:34px}
  .editorial-contact-grid{padding:34px 22px;border-radius:2px}
  .contact-arrow{width:62px;height:62px}
}


/* Integrated accounting-flow infographic */
.process-infographic{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 92% 8%,rgba(93,155,199,.14),transparent 32%),
    linear-gradient(180deg,#f7fbfc 0%,#edf7f8 100%);
  color:var(--editorial-ink);
}
.process-infographic:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.32;
  background-image:linear-gradient(rgba(38,89,126,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(38,89,126,.08) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,#000,transparent 78%);
}
.process-infographic>.container{position:relative;z-index:1}
.process-infographic-head{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:clamp(36px,7vw,110px);
  align-items:end;
  margin-bottom:44px;
}
.process-infographic-head>div{display:grid;grid-template-columns:auto 1fr;column-gap:18px;align-items:center}
.process-infographic-head .section-number{grid-row:1/span 2;align-self:start;margin-top:3px;color:#2e6f9d}
.process-infographic-head .eyebrow{margin:0 0 13px}
.process-infographic-head h2{
  grid-column:2;
  max-width:840px;
  margin:0;
  color:#122f44;
  font-size:clamp(2.35rem,4.2vw,4.7rem);
  line-height:1.02;
  letter-spacing:-.055em;
}
.process-infographic-head>p{
  max-width:520px;
  margin:0 0 7px;
  color:#586c7a;
  font-size:1.04rem;
  line-height:1.75;
}
.process-infographic-figure{
  margin:0;
  padding:14px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(43,98,137,.17);
  box-shadow:0 32px 90px rgba(30,67,94,.14);
  backdrop-filter:blur(14px);
}
.process-infographic-canvas{
  position:relative;
  display:block;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(32,81,116,.12);
}
.process-infographic-canvas img{
  display:block;
  width:100%;
  height:auto;
  transition:transform .55s cubic-bezier(.2,.8,.2,1),filter .4s ease;
}
.process-infographic-canvas:hover img{transform:scale(1.008);filter:saturate(1.04)}
.process-infographic-open{
  position:absolute;
  right:22px;
  bottom:22px;
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:13px 17px;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(12,46,70,.88);
  color:#fff;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:0 14px 32px rgba(9,33,50,.24);
  backdrop-filter:blur(10px);
}
.process-infographic-open b{font-size:1rem}
.process-infographic-figure figcaption{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  padding:19px 10px 5px;
}
.process-infographic-figure figcaption>span{
  color:#0f3f61;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.process-infographic-figure figcaption p{margin:0;color:#607981;font-size:.9rem}
.process-infographic-figure figcaption .editorial-text-link{white-space:nowrap}
.process-mobile-list{display:none}
.process-infographic-figure-detail{margin-top:40px}
.workflow-grid-mobile{display:none!important}

@media(max-width:860px){
  .process-infographic-head{grid-template-columns:1fr;gap:20px;margin-bottom:30px}
  .process-infographic-head>p{max-width:680px}
  .process-infographic-figure figcaption{grid-template-columns:1fr auto;gap:8px 20px}
  .process-infographic-figure figcaption p{grid-column:1}
  .process-infographic-figure figcaption .editorial-text-link{grid-column:2;grid-row:1/span 2}
}

@media(max-width:620px){
  .process-infographic{padding:66px 0!important}
  .process-infographic:before{background-size:48px 48px}
  .process-infographic-head{margin-bottom:24px}
  .process-infographic-head>div{grid-template-columns:1fr}
  .process-infographic-head .section-number{display:none}
  .process-infographic-head .eyebrow{margin-bottom:12px}
  .process-infographic-head h2{
    grid-column:1;
    font-size:clamp(2.02rem,9.5vw,2.75rem);
    line-height:1.04;
    letter-spacing:-.045em;
  }
  .process-infographic-head>p{font-size:.95rem;line-height:1.65}
  .process-infographic-figure{padding:7px;box-shadow:0 20px 54px rgba(30,67,94,.15)}
  .process-infographic-canvas{aspect-ratio:1.18/1;background:#fff}
  .process-infographic-canvas img{width:100%;height:100%;object-fit:contain}
  .process-infographic-open{
    right:9px;
    bottom:9px;
    padding:10px 12px;
    font-size:.69rem;
  }
  .process-infographic-figure figcaption{display:block;padding:15px 7px 8px}
  .process-infographic-figure figcaption>span{display:block;margin-bottom:7px}
  .process-infographic-figure figcaption p{font-size:.82rem;line-height:1.55}
  .process-infographic-figure figcaption .editorial-text-link{display:none}
  .process-mobile-list{
    display:grid;
    gap:10px;
    margin:20px 0 0;
    padding:0;
    list-style:none;
  }
  .process-mobile-list li{
    display:grid;
    grid-template-columns:44px 1fr;
    gap:13px;
    align-items:start;
    padding:16px;
    background:rgba(255,255,255,.88);
    border:1px solid rgba(43,98,137,.15);
    box-shadow:0 8px 24px rgba(31,70,98,.06);
  }
  .process-mobile-list li>b{
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#e2edf5;
    color:#175886;
    font-size:.75rem;
  }
  .process-mobile-list li>span{display:grid;gap:4px}
  .process-mobile-list strong{color:#122f44;font-size:.95rem}
  .process-mobile-list small{color:#607981;font-size:.78rem;line-height:1.45}
  .workflow-grid-mobile{display:grid!important;margin-top:20px}
  .infographic-detail-section .process-infographic-figure{margin-top:26px}
}

/* Centered infographic detail layout */
.infographic-detail-section .section-header{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.infographic-detail-section .section-header p{
  margin-left:auto;
  margin-right:auto;
}
.infographic-detail-section .process-infographic-figure{
  width:min(var(--container),calc(100% - 48px));
  margin:40px auto 0;
  box-sizing:border-box;
}
@media(max-width:620px){
  .infographic-detail-section .process-infographic-figure{
    width:min(100% - 28px,var(--container));
    margin:26px auto 0;
  }
}
