/* ============================================================
   BUSINTE — Asesoría Contable y Tributaria (Ecuador)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root{
  --ink:#21213D;
  --navy:#2A2A52;
  --navy-deep:#15152B;
  --gold:#C89B34;
  --gold-deep:#9C7A28;
  --paper:#F5F6FA;
  --white:#FFFFFF;
  --line:#DFE1EA;
  --line-dark:rgba(255,255,255,0.16);
  --muted:#5B5E72;
  --muted-light:rgba(255,255,255,0.72);
  --container:1180px;
  --radius:10px;
  --shadow-md:0 20px 48px rgba(21,21,43,0.14);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Public Sans', -apple-system, sans-serif;
  color:var(--ink);
  background:var(--white);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:'Source Serif 4', Georgia, serif;
  font-weight:600;
  line-height:1.14;
  margin:0 0 0.5em;
  color:var(--navy);
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}
:focus-visible{
  outline:2px solid var(--gold-deep);
  outline-offset:3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:14px 26px;
  border-radius:999px;
  font-family:'Public Sans',sans-serif;
  font-weight:600;
  font-size:0.98rem;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn-gold{
  background:var(--gold);
  color:var(--navy-deep);
}
.btn-gold:hover{ background:#B98F30; transform:translateY(-1px); }
.btn-ghost-light{
  background:transparent;
  border-color:var(--line-dark);
  color:var(--white);
}
.btn-ghost-light:hover{ border-color:var(--gold); color:var(--gold); }
.btn-ghost-dark{
  background:transparent;
  border-color:var(--navy);
  color:var(--navy);
}
.btn-ghost-dark:hover{ background:var(--navy); color:var(--white); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--white);
  border-bottom:1px solid var(--line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:82px;
}
.brand img{ height:34px; width:auto; }
.main-nav{ display:flex; align-items:center; gap:40px; }
.main-nav ul{ display:flex; gap:32px; }
.main-nav a{
  font-weight:600; font-size:0.97rem; color:var(--navy);
  padding:6px 0; border-bottom:2px solid transparent;
}
.main-nav a:hover, .main-nav a.active{ border-bottom-color:var(--gold); }
.header-actions{ display:flex; align-items:center; gap:22px; }
.nav-toggle{
  display:none;
  width:42px; height:42px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--white);
  align-items:center; justify-content:center;
  cursor:pointer;
}
.nav-toggle svg{ width:22px; height:22px; color:var(--navy); }
.nav-toggle .icon-close{ display:none; }
.site-header.nav-open .nav-toggle .icon-menu{ display:none; }
.site-header.nav-open .nav-toggle .icon-close{ display:block; }

/* ---------- Hero ---------- */
.hero{
  background:
    radial-gradient(720px 420px at 88% -10%, rgba(200,155,52,0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), #101024);
  color:var(--white);
  padding:88px 0 96px;
  overflow:hidden;
}
.hero .container{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.hero-eyebrow{
  color:var(--gold);
  font-weight:600;
  font-size:0.95rem;
  margin-bottom:18px;
  display:block;
}
.hero h1{
  color:var(--white);
  font-size:clamp(2.1rem, 3.6vw, 3.15rem);
  margin-bottom:22px;
}
.hero-lede{
  color:var(--muted-light);
  font-size:1.12rem;
  max-width:44ch;
  margin-bottom:34px;
}
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }
.hero-trust{
  display:flex; flex-wrap:wrap;
  color:var(--muted-light);
  font-size:0.88rem;
  padding-top:26px;
  border-top:1px solid var(--line-dark);
}
.hero-trust span{ padding:0 22px; border-left:1px solid var(--line-dark); }
.hero-trust span:first-child{ padding-left:0; border-left:none; }
.hero-trust strong{ color:var(--white); font-weight:600; }

.hero-figure{ position:relative; }
.hero-figure-frame{
  position:relative;
  border-radius:4px;
  overflow:hidden;
  transform:rotate(1.4deg);
  box-shadow:var(--shadow-md);
  border-top:5px solid var(--gold);
}
.hero-figure-frame img{ width:100%; height:400px; object-fit:cover; }
.hero-figure-tag{
  position:absolute;
  left:-18px; bottom:-22px;
  background:var(--white);
  color:var(--navy);
  padding:16px 22px;
  border-radius:4px;
  box-shadow:var(--shadow-md);
  transform:rotate(-1.4deg);
  max-width:230px;
}
.hero-figure-tag .lbl-strong{
  font-family:'Source Serif 4',serif;
  font-size:1.08rem;
  font-weight:600;
  color:var(--navy);
  display:block;
  margin-bottom:4px;
}
.hero-figure-tag .lbl{ font-size:0.85rem; color:var(--muted); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  background:linear-gradient(180deg, var(--navy-deep), #14142B);
  color:var(--white);
  padding:64px 0 68px;
}
.page-hero-eyebrow{ color:var(--gold); font-weight:600; font-size:0.95rem; display:block; margin-bottom:14px; }
.page-hero h1{ color:var(--white); font-size:clamp(1.9rem, 3vw, 2.7rem); margin-bottom:16px; }
.page-hero p{ color:var(--muted-light); max-width:56ch; font-size:1.06rem; }

/* ---------- Section scaffolding ---------- */
.section{ padding:92px 0; }
.section-alt{ background:var(--paper); }
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(1.7rem, 2.6vw, 2.25rem); }
.section-head p{ color:var(--muted); font-size:1.05rem; }

/* ---------- Editorial service list (Inicio) ---------- */
.service-list{ border-top:1px solid var(--line); }
.service-row{
  display:grid;
  grid-template-columns:2fr 3fr auto;
  gap:32px;
  align-items:baseline;
  padding:30px 0;
  border-bottom:1px solid var(--line);
}
.service-row h3{ font-size:1.35rem; margin:0; }
.service-row p{ color:var(--muted); margin:0; font-size:1rem; }
.service-row .row-link{
  font-weight:600; color:var(--navy);
  border-bottom:1.5px solid var(--gold);
  white-space:nowrap;
  padding-bottom:2px;
}
.service-row .row-link:hover{ color:var(--gold-deep); }

/* ---------- Why columns ---------- */
.why-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
}
.why-col{
  padding:0 36px;
  border-left:1px solid var(--line);
}
.why-col:first-child{ padding-left:0; border-left:none; }
.why-col:last-child{ padding-right:0; }
.why-col h3{ font-size:1.2rem; }
.why-col p{ color:var(--muted); }

/* ---------- Split image/text ---------- */
.split{
  display:grid;
  grid-template-columns:0.92fr 1.08fr;
  gap:64px;
  align-items:center;
}
.split.reverse .split-figure{ order:2; }
.split.reverse .split-copy{ order:1; }
.split-figure img{
  width:100%; height:420px; object-fit:cover;
  border-radius:4px;
  border-bottom:5px solid var(--gold);
}
.split-copy h2{ font-size:clamp(1.6rem,2.4vw,2.1rem); }
.split-copy p{ color:var(--muted); font-size:1.05rem; }
.split-copy .btn{ margin-top:10px; }

/* ---------- Testimonials ---------- */
.quote-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
}
.quote-mark{
  font-family:'Source Serif 4',serif;
  font-size:3.4rem;
  color:var(--gold);
  line-height:1;
  display:block;
  margin-bottom:6px;
}
.quote-block p{
  font-family:'Source Serif 4',serif;
  font-size:1.28rem;
  font-style:italic;
  color:var(--navy);
  line-height:1.5;
  margin-bottom:18px;
}
.quote-cite{ font-size:0.92rem; color:var(--muted); font-weight:600; }
.quote-cite span{ font-weight:400; color:var(--muted); }

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg, var(--navy-deep), var(--navy));
  color:var(--white);
  padding:76px 0;
  text-align:center;
}
.cta-band h2{ color:var(--white); font-size:clamp(1.7rem,2.8vw,2.3rem); margin-bottom:14px; }
.cta-band p{ color:var(--muted-light); max-width:52ch; margin:0 auto 32px; font-size:1.06rem; }
.cta-band .hero-ctas{ justify-content:center; margin-bottom:0; }

/* ---------- Service detail (Servicios page) ---------- */
.service-detail{
  padding:70px 0;
  border-bottom:1px solid var(--line);
}
.service-detail .container{
  display:grid;
  grid-template-columns:0.95fr 1.05fr;
  gap:60px;
}
.service-detail .sd-index{
  font-family:'Source Serif 4',serif;
  color:var(--gold-deep);
  font-size:1rem;
  font-weight:600;
  margin-bottom:12px;
  display:block;
}
.service-detail h2{ font-size:clamp(1.5rem,2.2vw,1.9rem); }
.service-detail .sd-lede{ color:var(--muted); font-size:1.06rem; margin-bottom:26px; }
.sd-list{ border-top:1px solid var(--line); }
.sd-list li{
  padding:14px 0;
  border-bottom:1px solid var(--line);
  display:flex; gap:12px; align-items:flex-start;
  color:var(--ink);
}
.sd-list svg{ width:18px; height:18px; flex-shrink:0; margin-top:3px; color:var(--gold-deep); }

/* ---------- Values (Nosotros) ---------- */
.values-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  margin-top:48px;
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:60px;
}
.contact-info h3{ font-size:1.3rem; margin-bottom:22px; }
.contact-item{
  display:flex; gap:14px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
.contact-item:first-of-type{ border-top:1px solid var(--line); }
.contact-item svg{ width:20px; height:20px; color:var(--gold-deep); flex-shrink:0; margin-top:2px; }
.contact-item .ci-label{ font-size:0.85rem; color:var(--muted); margin-bottom:2px; }
.contact-item .ci-value{ font-weight:600; color:var(--navy); }
.contact-form{
  background:var(--paper);
  border-radius:6px;
  padding:40px;
  border-top:4px solid var(--gold);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field{ margin-bottom:22px; }
.field label{ display:block; font-size:0.88rem; font-weight:600; color:var(--navy); margin-bottom:7px; }
.field input, .field textarea{
  width:100%;
  border:none;
  border-bottom:1.5px solid var(--line);
  background:transparent;
  padding:9px 2px;
  font-family:'Public Sans',sans-serif;
  font-size:1rem;
  color:var(--ink);
}
.field input:focus, .field textarea:focus{
  outline:none;
  border-bottom-color:var(--gold-deep);
}
.field textarea{ resize:vertical; min-height:100px; }
.form-note{ font-size:0.85rem; color:var(--muted); margin-top:16px; }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-deep);
  color:var(--muted-light);
  padding:64px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 0.85fr 1fr;
  gap:48px;
  padding-bottom:48px;
  border-bottom:1px solid var(--line-dark);
}
.footer-brand{ font-family:'Source Serif 4',serif; font-size:1.5rem; font-weight:600; }
.footer-brand .b1{ color:var(--white); }
.footer-brand .b2{ color:var(--gold); }
.footer-grid p{ margin-top:14px; max-width:34ch; }
.footer-col h4{ color:var(--white); font-family:'Public Sans',sans-serif; font-weight:600; font-size:0.95rem; margin-bottom:16px; }
.footer-col li{ margin-bottom:11px; }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding:22px 0; font-size:0.85rem; flex-wrap:wrap; gap:10px;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float{
  position:fixed; right:24px; bottom:24px; z-index:200;
  width:58px; height:58px; border-radius:50%;
  background:var(--gold);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(21,21,43,0.32);
  transition:transform .18s ease, background-color .18s ease;
}
.wa-float:hover{ transform:translateY(-3px); background:#B98F30; }
.wa-float svg{ width:28px; height:28px; color:var(--navy-deep); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:980px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-figure{ order:-1; max-width:480px; }
  .split, .split.reverse{ grid-template-columns:1fr; }
  .split .split-figure, .split.reverse .split-figure{ order:-1; }
  .split .split-copy, .split.reverse .split-copy{ order:1; }
  .service-detail .container{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid .footer-brand-col{ grid-column:1 / -1; }
}
@media (max-width:760px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.nav-open .main-nav{
    display:flex;
    position:absolute; top:82px; left:0; right:0;
    background:var(--navy-deep);
    flex-direction:column; align-items:flex-start;
    padding:24px 28px 32px; gap:20px;
  }
  .site-header.nav-open .main-nav ul{ flex-direction:column; gap:18px; width:100%; }
  .site-header.nav-open .main-nav a{ color:var(--white); font-size:1.05rem; }
  .site-header.nav-open .header-actions{ flex-direction:column; align-items:flex-start; width:100%; }
  .section{ padding:64px 0; }
  .service-row{ grid-template-columns:1fr; gap:8px; }
  .service-row .row-link{ margin-top:6px; }
  .why-grid{ grid-template-columns:1fr; gap:32px; }
  .why-col{ padding:0; border-left:none; border-top:1px solid var(--line); padding-top:28px; }
  .why-col:first-child{ border-top:none; padding-top:0; }
  .quote-grid{ grid-template-columns:1fr; gap:36px; }
  .values-row{ grid-template-columns:1fr; gap:32px; }
  .form-row{ grid-template-columns:1fr; }
  .contact-form{ padding:28px; }
  .footer-grid{ grid-template-columns:1fr; gap:36px; }
  .hero-figure-tag{ left:12px; max-width:200px; }
}
