/* ==========================================================================
   MCG Theme — public site
   Brand tokens from the Firebase app (brandConfig.ts / Tailwind slate + blue).
   ========================================================================== */

:root {
	--navy: #1e3a8a;
	--blue: #1d4ed8;
	--blue-600: #2563eb;
	--blue-50: #eff6ff;
	--accent: #3b82f6;
	--ink: #0f172a;
	--ink-2: #1e293b;
	--text: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #f8fafc;
	--white: #fff;
	--green: #059669;
	--whatsapp: #25d366;
	--radius: 12px;
	--radius-lg: 24px;
	--shadow: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .08);
	--shadow-lg: 0 10px 30px rgb(15 23 42 / .12);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--white); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-lg); }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eyebrow--light { color: #93c5fd; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--outline-light { color: var(--white); border-color: rgb(255 255 255 / .35); }
.btn--outline-light:hover { background: rgb(255 255 255 / .1); color: var(--white); }
.btn--whatsapp { background: var(--whatsapp); color: #053b1d; }
.btn--whatsapp:hover { background: #1ebe5b; color: #053b1d; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.site-logo__img { display: block; height: 46px; width: auto; border-radius: 8px; box-shadow: 0 1px 3px rgb(15 23 42 / .25); }
.site-footer .site-logo__img { height: 72px; border-radius: 10px; box-shadow: none; }
.site-logo__badge { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 900; font-size: 14px; letter-spacing: .02em; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.site-logo__text strong { font-size: 16px; font-weight: 900; letter-spacing: .02em; }
.site-logo__text small { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.site-logo--light, .site-logo--light .site-logo__text small { color: #cbd5e1; }
.site-logo--light .site-logo__text strong { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--blue); }
.site-nav__academy a { color: var(--green); }
.site-nav__actions { display: flex; gap: 8px; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.nav-toggle__bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
	.site-header.is-open .site-nav { display: flex; }
	.site-nav__list { flex-direction: column; gap: 4px; }
	.site-nav__list a { display: block; padding: 10px 4px; font-size: 16px; }
	.site-nav__actions .btn { flex: 1; }
	.site-header.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.site-header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
	.site-header.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgb(59 130 246 / .35), transparent 60%), linear-gradient(160deg, var(--ink) 0%, #111c3d 55%, var(--navy) 100%); color: #cbd5e1; }
.hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero__title { color: var(--white); font-size: clamp(34px, 5.2vw, 60px); font-weight: 900; letter-spacing: -.02em; margin: 12px 0 20px; }
.hero__accent { color: #93c5fd; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.verify-card { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius-lg); padding: 28px; }
.verify-card h2 { color: var(--white); font-size: 22px; margin: 12px 0 8px; }
.verify-card p { margin: 0 0 18px; font-size: 14px; }
.verify-card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgb(16 185 129 / .15); color: #6ee7b7; }
.verify-card__form { display: flex; gap: 8px; }
.verify-card__form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .2); background: rgb(15 23 42 / .5); color: var(--white); font: inherit; font-size: 14px; text-transform: uppercase; }
.verify-card__form input::placeholder { color: #64748b; text-transform: none; }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 32px; }
}
@media (max-width: 480px) {
	.verify-card__form { flex-direction: column; }
	.hero__actions .btn { width: 100%; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 72px 0; }
.section--muted { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.section__lead { color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 640px) { .section { padding: 48px 0; } .section__head { margin-bottom: 32px; } }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.pillar { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; color: inherit; }
.pillar__media { position: relative; aspect-ratio: 16 / 10; background: var(--ink-2); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar__number { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(15 23 42 / .8); color: var(--white); font-size: 12px; font-weight: 800; }
.pillar__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.pillar__title { font-size: 18px; font-weight: 800; color: var(--ink); }
.pillar__desc { font-size: 14px; color: var(--muted); flex: 1; }
.pillar__more { font-size: 13px; font-weight: 700; color: var(--blue); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-decoration: none; color: var(--text); transition: border-color .15s, background-color .15s; }
.cat-card strong { color: var(--ink); }
.cat-card span { font-size: 14px; color: var(--muted); }
.cat-card:hover { border-color: var(--accent); background: var(--blue-50); color: var(--text); }

.metrics { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metrics__grid > div { display: flex; flex-direction: column; gap: 2px; }
.metrics__value { font-size: clamp(26px, 3vw, 36px); font-weight: 900; color: var(--blue); }
.metrics__value--green { color: var(--green); }
.metrics__grid span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.metrics__grid small { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .metrics__grid { grid-template-columns: 1fr 1fr; } }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy), var(--blue)); color: #dbeafe; }
.cta-band h2 { color: var(--white); font-size: 28px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--primary { background: var(--white); color: var(--navy); }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; } }

/* Inner pages ------------------------------------------------------------ */
.page-hero { background: linear-gradient(160deg, var(--ink), var(--navy)); color: #cbd5e1; padding: 64px 0 56px; }
.page-hero--compact { padding: 48px 0 40px; }
.page-hero__title { color: var(--white); font-size: clamp(30px, 4vw, 46px); font-weight: 900; margin: 8px 0 12px; }
.page-hero__lead { max-width: 65ch; font-size: 17px; margin: 0; }
.breadcrumbs { font-size: 13px; }
.breadcrumbs a { color: #93c5fd; text-decoration: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.service-card__link { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.service-card__link:hover { box-shadow: var(--shadow-lg); border-color: #cbd5e1; color: inherit; }
.service-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.service-card__title { font-size: 18px; font-weight: 800; margin: 0; }
.service-card__excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.service-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.service-card__price { color: var(--ink); }
.service-card__more { color: var(--blue); }

.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.service-detail__media { margin: 0 0 24px; }
.service-detail__media img { border-radius: var(--radius-lg); display: block; }
.service-detail__price { font-size: 24px; font-weight: 900; color: var(--ink); margin: 0 0 12px; }
.service-detail__aside .btn + .btn { margin-top: 10px; }
@media (max-width: 900px) { .service-detail { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.card--sticky { position: sticky; top: 96px; }
.check-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.check-list li { padding-left: 24px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state h1 { font-size: 36px; }
.empty-state .btn { margin: 4px; }

.prose { color: var(--text); font-size: 17px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }

.post-summary { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-summary h2 { font-size: 22px; }
.post-summary h2 a { color: var(--ink); text-decoration: none; }
.post-summary__meta { color: var(--muted); font-size: 13px; margin: 0; }

.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--text); }
.nav-links .page-numbers.current { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Contact ---------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; }
.contact__info { display: grid; gap: 12px; }
.info-card { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--text); }
.info-card strong { color: var(--ink); }
a.info-card:hover { border-color: var(--accent); color: var(--text); }
.info-card--whatsapp { border-color: #bbf7d0; background: #f0fdf4; }
.contact__form h2 { font-size: 22px; margin-bottom: 20px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(37 99 235 / .2); }
.field--inline { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.field--inline legend { width: 100%; margin-bottom: 6px; }
.field--inline label { font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); margin: 4px 0 20px; }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; }
.form-status.is-success { color: var(--green); font-weight: 600; }
.form-status.is-error { color: #b91c1c; font-weight: 600; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #94a3b8; padding: 56px 0 0; font-size: 14px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #93c5fd; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand p { margin: 16px 0; max-width: 40ch; }
.site-footer__title { color: var(--white); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--ink-2); font-size: 13px; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-lg); }
.whatsapp-float:hover { color: var(--white); transform: scale(1.05); }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 900px; margin: 0 auto; padding: 16px 20px; border-radius: var(--radius); background: var(--ink); color: #cbd5e1; font-size: 14px; box-shadow: var(--shadow-lg); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #93c5fd; }
.cookie-banner__actions { display: flex; gap: 8px; flex: none; }
.cookie-banner .btn--ghost { color: #e2e8f0; border-color: #475569; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-banner__actions .btn { flex: 1; } }

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