/*
Theme Name: Herrera Consultores
Theme URI: https://herreraconsultores.com.ec
Author: Herrera Consultores
Description: Tema corporativo liviano para servicios contables, auditoría y consultoría.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: herrera-consultores
*/

:root {
  --hc-blue: #006985;
  --hc-blue-dark: #004d63;
  --hc-blue-soft: #eaf5f7;
  --hc-cyan: #39a9c4;
  --hc-gray: #777a7c;
  --hc-ink: #16343d;
  --hc-muted: #5d7077;
  --hc-line: #d8e5e8;
  --hc-white: #ffffff;
  --hc-surface: #f6fafb;
  --hc-shadow: 0 20px 55px rgba(16, 66, 79, 0.12);
  --hc-radius: 24px;
  --hc-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--hc-ink);
  background: var(--hc-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--hc-max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 18px; top: 18px; z-index: 9999; padding: 10px 16px; background: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 229, 232, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img, .custom-logo { display: block; width: 330px; max-height: 74px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 27px; }
.main-nav a { color: var(--hc-ink); text-decoration: none; font-size: 0.94rem; font-weight: 650; }
.main-nav a:hover { color: var(--hc-blue); }
.nav-cta { padding: 11px 18px; color: white !important; background: var(--hc-blue); border-radius: 999px; }
.nav-cta:hover { background: var(--hc-blue-dark); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--hc-blue); font-size: 1.6rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 94px;
  background: linear-gradient(135deg, #f7fbfc 0%, #fff 47%, #edf7f9 100%);
}

.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -260px; top: -210px; border: 70px solid rgba(0, 105, 133, .07); }
.hero::after { width: 260px; height: 260px; left: -170px; bottom: -130px; background: rgba(57, 169, 196, .08); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--hc-blue); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--hc-cyan); border-radius: 2px; }
h1, h2, h3 { margin-top: 0; line-height: 1.13; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(2.65rem, 5.7vw, 5.2rem); letter-spacing: -.048em; }
h1 span { color: var(--hc-blue); }
.hero-copy > p:not(.eyebrow) { max-width: 680px; margin: 0 0 34px; color: var(--hc-muted); font-size: 1.18rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 12px 23px; border: 2px solid var(--hc-blue); border-radius: 999px; color: white; background: var(--hc-blue); text-decoration: none; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 105, 133, .22); background: var(--hc-blue-dark); }
.button.secondary { color: var(--hc-blue); background: transparent; }
.button.secondary:hover { color: white; background: var(--hc-blue); }

.hero-panel { position: relative; padding: 34px; color: white; background: linear-gradient(145deg, var(--hc-blue-dark), var(--hc-blue)); border-radius: 32px; box-shadow: var(--hc-shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; }
.hero-panel > * { position: relative; }
.hero-panel h2 { margin-bottom: 22px; font-size: 1.45rem; }
.focus-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.focus-list li { display: flex; align-items: center; gap: 13px; padding: 13px 14px; background: rgba(255,255,255,.1); border-radius: 13px; }
.focus-list span { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; color: var(--hc-blue-dark); background: white; border-radius: 50%; font-size: .86rem; font-weight: 900; }

.trust-bar { border-block: 1px solid var(--hc-line); background: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 25px 20px; text-align: center; border-right: 1px solid var(--hc-line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--hc-blue); font-size: 1rem; }
.trust-item small { color: var(--hc-muted); }

.section { padding: 96px 0; }
.section-soft { background: var(--hc-surface); }
.section-heading { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-heading h2 { margin-bottom: 18px; font-size: clamp(2.15rem, 4vw, 3.5rem); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--hc-muted); font-size: 1.08rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; min-height: 300px; padding: 30px; overflow: hidden; background: white; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(0,105,133,.34); box-shadow: var(--hc-shadow); }
.service-number { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 26px; color: white; background: var(--hc-blue); border-radius: 15px; font-weight: 850; }
.service-card:nth-child(2n) .service-number { background: var(--hc-gray); }
.service-card h3 { margin-bottom: 13px; font-size: 1.25rem; }
.service-card p { margin: 0; color: var(--hc-muted); font-size: .96rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 76px; }
.audit-visual { position: relative; min-height: 490px; padding: 38px; overflow: hidden; color: white; background: linear-gradient(155deg, #16343d 0%, #006985 100%); border-radius: 32px; box-shadow: var(--hc-shadow); }
.audit-visual::after { content: "HC"; position: absolute; right: -12px; bottom: -67px; color: rgba(255,255,255,.08); font-size: 12rem; font-weight: 900; letter-spacing: -.12em; }
.audit-visual h3 { position: relative; z-index: 1; max-width: 320px; font-size: 2rem; }
.audit-lines { position: relative; z-index: 1; margin-top: 54px; display: grid; gap: 15px; }
.audit-line { padding: 15px 17px; border-left: 4px solid var(--hc-cyan); background: rgba(255,255,255,.1); border-radius: 0 12px 12px 0; }
.split-copy h2 { margin-bottom: 19px; font-size: clamp(2.1rem, 4vw, 3.3rem); letter-spacing: -.035em; }
.split-copy > p { color: var(--hc-muted); }
.check-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; color: white; background: var(--hc-blue); border-radius: 50%; font-size: .78rem; font-weight: 900; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: steps; }
.process-card { counter-increment: steps; padding: 29px 24px; background: white; border-top: 4px solid var(--hc-blue); border-radius: 0 0 18px 18px; box-shadow: 0 12px 35px rgba(16, 66, 79, .08); }
.process-card::before { content: "0" counter(steps); display: block; margin-bottom: 26px; color: var(--hc-cyan); font-size: 1.9rem; font-weight: 850; }
.process-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.process-card p { margin: 0; color: var(--hc-muted); font-size: .92rem; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 28px; }
.value-main { padding: 48px; color: white; background: var(--hc-blue); border-radius: 28px; }
.value-main h2 { max-width: 600px; font-size: clamp(2rem, 4vw, 3.2rem); }
.value-main p { color: rgba(255,255,255,.83); }
.value-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-item { padding: 26px; background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: 20px; }
.value-item h3 { color: var(--hc-blue); font-size: 1rem; }
.value-item p { margin-bottom: 0; color: var(--hc-muted); font-size: .9rem; }

.cta { padding: 0 0 96px; }
.cta-box { position: relative; overflow: hidden; padding: 62px; color: white; background: linear-gradient(120deg, var(--hc-ink), var(--hc-blue-dark)); border-radius: 32px; text-align: center; }
.cta-box::before { content: ""; position: absolute; width: 300px; height: 300px; right: -130px; top: -180px; border: 40px solid rgba(255,255,255,.08); border-radius: 50%; }
.cta-box h2 { position: relative; max-width: 790px; margin: 0 auto 15px; font-size: clamp(2rem, 4vw, 3.25rem); }
.cta-box p { position: relative; max-width: 680px; margin: 0 auto 28px; color: rgba(255,255,255,.78); }
.cta-box .button { position: relative; color: var(--hc-blue-dark); background: white; border-color: white; }

.site-footer { padding: 52px 0 28px; color: rgba(255,255,255,.75); background: #102f38; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 52px; padding-bottom: 38px; }
.footer-logo { width: 300px; padding: 11px 14px; background: white; border-radius: 12px; }
.footer-copy { max-width: 470px; margin-top: 18px; }
.footer-title { color: white; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: 25px; border-top: 1px solid rgba(255,255,255,.13); font-size: .86rem; }

.page-shell { min-height: 65vh; padding: 80px 0; }
.page-shell h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-content { max-width: 820px; }

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 76px; }
  .hero-panel { max-width: 630px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .86rem; }
  .brand img, .custom-logo { width: 250px; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 0; }
  .container { width: min(calc(100% - 28px), var(--hc-max)); }
  .header-inner { min-height: 74px; }
  .brand img, .custom-logo { width: 225px; max-height: 58px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 14px; right: 14px; top: 72px; flex-direction: column; align-items: stretch; padding: 20px; background: white; border: 1px solid var(--hc-line); border-radius: 16px; box-shadow: var(--hc-shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 8px 4px; }
  .nav-cta { text-align: center; }
  .hero { padding: 60px 0 68px; }
  h1 { font-size: 2.65rem; }
  .hero-grid { gap: 42px; }
  .hero-panel { padding: 28px 22px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--hc-line); }
  .section { padding: 70px 0; }
  .service-grid, .process-grid, .value-items { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .split { gap: 42px; }
  .audit-visual { min-height: 420px; }
  .value-main { padding: 35px 28px; }
  .cta { padding-bottom: 70px; }
  .cta-box { padding: 48px 24px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Hyfinance-inspired corporate layout — Herrera palette preserved */
.topbar { color: rgba(255,255,255,.9); background: linear-gradient(90deg, var(--hc-blue-dark), var(--hc-blue)); font-size: .78rem; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-contact { display: flex; gap: 26px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: relative; top: auto; background: #fff; backdrop-filter: none; }
.header-inner { min-height: 94px; }
.main-nav { gap: 32px; }
.main-nav a { font-size: .82rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.nav-cta { padding: 14px 20px; border-radius: 3px; }

.hero { min-height: 620px; display: grid; align-items: center; padding: 86px 0; color: #fff; background: linear-gradient(108deg, rgba(0,77,99,.98) 0 55%, rgba(0,105,133,.92) 55% 100%); }
.hero::before { width: 660px; height: 660px; right: -190px; top: -80px; border: 100px solid rgba(57,169,196,.16); }
.hero::after { width: 560px; height: 560px; left: auto; right: 17%; bottom: -410px; background: transparent; border: 1px solid rgba(255,255,255,.14); }
.hero-grid { grid-template-columns: 1.12fr .72fr; gap: 85px; }
.hero .eyebrow { color: #73d0e3; }
.hero h1 { max-width: 740px; color: #fff; font-size: clamp(3rem,5.5vw,5.1rem); }
.hero h1 span { color: #fff; }
.hero-copy > p:not(.eyebrow) { color: rgba(255,255,255,.82); }
.button { min-height: 52px; border-radius: 3px; text-transform: uppercase; letter-spacing: .045em; font-size: .8rem; }
.hero .button { color: var(--hc-blue-dark); background: #fff; border-color: #fff; }
.hero .button.secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.6); }
.hero .button.secondary:hover { color: var(--hc-blue-dark); background: #fff; }
.hero-panel { padding: 38px; color: var(--hc-ink); background: rgba(255,255,255,.97); border-radius: 4px; }
.hero-panel::before { inset: 0 auto auto 0; width: 92px; height: 6px; background: var(--hc-cyan); border: 0; border-radius: 0; }
.hero-panel h2 { color: var(--hc-blue-dark); font-size: 1.75rem; }
.focus-list { gap: 0; }
.focus-list li { padding: 15px 4px; background: transparent; border-bottom: 1px solid var(--hc-line); border-radius: 0; color: var(--hc-muted); }
.focus-list li:last-child { border-bottom: 0; }
.focus-list span { color: #fff; background: var(--hc-blue); border-radius: 3px; }

.trust-bar { position: relative; z-index: 3; width: min(calc(100% - 40px), var(--hc-max)); margin: -34px auto 0; border: 0; box-shadow: var(--hc-shadow); }
.trust-grid { width: 100%; }
.trust-item { min-height: 118px; display: grid; grid-template-columns: 42px 1fr; align-content: center; column-gap: 14px; padding: 22px; text-align: left; background: #fff; }
.trust-item strong, .trust-item small { grid-column: 2; }
.trust-icon { grid-column: 1; grid-row: 1 / span 2; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--hc-blue); border-radius: 3px; }
.trust-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.section { padding: 90px 0; }
.section-heading { margin-bottom: 46px; }
.section-heading h1, .section-heading h2 { color: var(--hc-blue-dark); }
.service-grid { gap: 20px; }
.service-card { min-height: 320px; padding: 30px; border: 0; border-radius: 3px; box-shadow: 0 10px 34px rgba(16,66,79,.08); }
.service-card::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 4px; background: var(--hc-cyan); transition: right .25s ease; }
.service-card:hover::after { right: 0; }
.service-number, .service-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 25px; color: #fff; background: var(--hc-blue); border-radius: 3px; font-weight: 850; }
.service-card:nth-child(2n) .service-number, .service-card:nth-child(2n) .service-icon { background: var(--hc-gray); }
.service-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { color: var(--hc-blue-dark); font-size: 1.35rem; }
.service-card .button.secondary { min-height: 0; padding: 0; border: 0; color: var(--hc-blue); font-size: .75rem; }
.service-card .button.secondary:hover { color: var(--hc-blue-dark); background: transparent; box-shadow: none; transform: none; }

.value-grid { gap: 0; box-shadow: var(--hc-shadow); }
.value-main { min-height: 455px; display: flex; flex-direction: column; justify-content: center; padding: 55px; border-radius: 3px 0 0 3px; background: linear-gradient(145deg, var(--hc-blue-dark), var(--hc-blue)); }
.value-items { padding: 28px; background: var(--hc-surface); grid-template-columns: 1fr 1fr; gap: 14px; }
.value-main, .value-items, .value-item { min-width: 0; }
.value-main a, .value-item a { overflow-wrap: anywhere; }
.value-item { position: relative; padding: 25px 22px 22px 64px; border: 0; border-radius: 2px; background: #fff; }
.value-item::before { content: "✓"; position: absolute; top: 25px; left: 22px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--hc-cyan); font-size: .75rem; font-weight: 900; }

.audit-visual { border-radius: 3px; }
.audit-line { border-radius: 0; }
.process-card { border-radius: 0; }
.cta-box { border-radius: 3px; }
.page-shell { padding: 0; }
.site-footer { background: #102f38; }
main > .section.section-soft:first-child { position: relative; overflow: hidden; padding: 78px 0; color: #fff; background: linear-gradient(108deg, var(--hc-blue-dark), var(--hc-blue)); }
main > .section.section-soft:first-child::after { content: ""; position: absolute; right: -90px; top: -145px; width: 410px; height: 410px; border: 75px solid rgba(57,169,196,.18); border-radius: 50%; }
main > .section.section-soft:first-child .container { position: relative; z-index: 1; }
main > .section.section-soft:first-child .section-heading { margin-bottom: 0; }
main > .section.section-soft:first-child .eyebrow { color: #7bd3e5; }
main > .section.section-soft:first-child h1 { color: #fff; }
main > .section.section-soft:first-child .section-heading p:last-child { color: rgba(255,255,255,.82); }
.audit-line { position: relative; padding-left: 53px; }
.audit-line::before { content: "✓"; position: absolute; left: 16px; top: 50%; width: 24px; height: 24px; display: grid; place-items: center; transform: translateY(-50%); color: var(--hc-blue-dark); background: #fff; font-size: .72rem; font-weight: 900; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { background: linear-gradient(125deg, var(--hc-blue-dark), var(--hc-blue)); }
  .hero-panel { max-width: 650px; }
  .main-nav { gap: 16px; }
}

@media (max-width: 760px) {
  .topbar-inner { padding: 8px 0; flex-direction: column; align-items: flex-start; gap: 2px; }
  .topbar-contact { flex-direction: column; gap: 2px; }
  .site-header { position: relative; }
  .header-inner { min-height: 82px; }
  .main-nav { top: 80px; border-radius: 3px; }
  .hero { min-height: auto; padding: 68px 0 88px; }
  .hero h1 { font-size: 2.75rem; }
  .trust-bar { width: min(calc(100% - 28px), var(--hc-max)); margin-top: -28px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--hc-line) !important; }
  .trust-item:last-child { border-bottom: 0 !important; }
  .value-main { min-height: auto; border-radius: 3px 3px 0 0; }
  .value-items { grid-template-columns: 1fr; }
}
