/* ==========================================================================
   MH Soluciones Contables & Tributarias — hoja de estilos
   ========================================================================== */
:root {
    --mh-navy: #0e2a52;
    --mh-navy-2: #163a6b;
    --mh-gold: #c9a227;
    --mh-gold-2: #e0b94a;
    --mh-ink: #1b2733;
    --mh-muted: #5b6779;
    --mh-bg: #ffffff;
    --mh-soft: #f6f8fc;
    --mh-line: #e6ebf3;
    --mh-radius: 18px;
    --mh-radius-sm: 12px;
    --mh-shadow: 0 18px 40px rgba(14, 42, 82, .10);
    --mh-shadow-sm: 0 8px 24px rgba(14, 42, 82, .08);
    --mh-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --mh-font-head: 'Sora', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--mh-font);
    color: var(--mh-ink);
    background: var(--mh-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--mh-font-head); line-height: 1.15; margin: 0 0 .5rem; color: var(--mh-navy); letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.mh-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ----- Botones ----- */
.mh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
    border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.mh-btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.mh-btn-primary { background: var(--mh-navy); color: #fff; box-shadow: 0 10px 24px rgba(14, 42, 82, .25); }
.mh-btn-primary:hover { background: var(--mh-navy-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 42, 82, .30); }
.mh-btn-ghost { background: #fff; color: var(--mh-navy); border-color: var(--mh-line); box-shadow: var(--mh-shadow-sm); }
.mh-btn-ghost:hover { border-color: var(--mh-navy); transform: translateY(-2px); }
.mh-btn-light { background: #fff; color: var(--mh-navy); }
.mh-btn-light:hover { background: var(--mh-gold-2); color: var(--mh-navy); transform: translateY(-2px); }

/* ----- Barra de navegación ----- */
.mh-nav { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.mh-nav.is-scrolled { box-shadow: 0 8px 24px rgba(14, 42, 82, .08); border-color: var(--mh-line); }
.mh-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.mh-brand { display: flex; align-items: center; gap: .65rem; }
.mh-brand-logo { width: 34px; height: 46px; object-fit: contain; border-radius: 6px; }
.mh-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.mh-brand-text strong { font-family: var(--mh-font-head); font-size: 1.15rem; color: var(--mh-navy); }
.mh-brand-text small { font-size: .72rem; letter-spacing: .02em; color: var(--mh-muted); }
.mh-links { display: flex; align-items: center; gap: 1.6rem; }
.mh-links > a:not(.mh-btn) { font-weight: 600; font-size: .95rem; color: var(--mh-ink); position: relative; padding: .25rem 0; }
.mh-links > a:not(.mh-btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--mh-gold); transition: width .2s ease; }
.mh-links > a:not(.mh-btn):hover::after { width: 100%; }
.mh-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--mh-line); border-radius: 10px; cursor: pointer; }
.mh-burger span { width: 18px; height: 2px; background: var(--mh-navy); border-radius: 2px; }

/* ----- Hero ----- */
.mh-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0e2a52 0%, #1c4a8a 60%, #2a5fa8 100%); color: #fff; padding: 72px 0 96px; }
.mh-hero-bg { position: absolute; inset: 0; background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .16), transparent 42%),
    radial-gradient(circle at 10% 95%, rgba(201, 162, 39, .35), transparent 46%);
    pointer-events: none; }
.mh-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.mh-eyebrow { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); font-size: .8rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 1.2rem; }
.mh-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; margin-bottom: 1rem; }
.mh-lead { color: rgba(255, 255, 255, .86); font-size: 1.12rem; max-width: 34rem; margin-bottom: 1.6rem; }
.mh-lead strong { color: #fff; }
.mh-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.mh-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; color: rgba(255, 255, 255, .82); font-size: .88rem; }
.mh-trust li { position: relative; padding-left: 1.3rem; }
.mh-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--mh-gold-2); font-weight: 800; }

.mh-hero-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; padding: 1.6rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .18); }
.mh-hero-card-head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.mh-hero-card-head img { width: 40px; height: 54px; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.mh-hero-card-head strong { display: block; font-family: var(--mh-font-head); font-size: 1rem; color: #fff; }
.mh-hero-card-head span { font-size: .82rem; color: rgba(255, 255, 255, .75); }
.mh-hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding: 1.1rem 0; }
.mh-metric { text-align: center; }
.mh-metric strong { display: block; font-family: var(--mh-font-head); font-size: 1.3rem; color: #fff; }
.mh-metric span { font-size: .72rem; color: rgba(255, 255, 255, .72); }
.mh-hero-badge { text-align: center; padding: .55rem; border-radius: 10px; background: rgba(201, 162, 39, .18); border: 1px solid rgba(224, 185, 74, .45); color: var(--mh-gold-2); font-weight: 700; font-size: .82rem; }

/* ----- Secciones ----- */
.mh-section { padding: 84px 0; }
.mh-section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.mh-kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mh-gold); margin-bottom: .7rem; }
.mh-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.mh-section-head p { color: var(--mh-muted); font-size: 1.05rem; margin: 0; }

/* ----- Tarjetas ----- */
.mh-grid { display: grid; gap: 1.3rem; }
.mh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mh-card { background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 1.8rem; box-shadow: var(--mh-shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mh-card:hover { transform: translateY(-5px); box-shadow: var(--mh-shadow); border-color: #d5deeb; }
.mh-card h3 { font-size: 1.12rem; margin: .9rem 0 .4rem; }
.mh-card p { color: var(--mh-muted); font-size: .95rem; margin: 0; }
.mh-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(14, 42, 82, .08), rgba(201, 162, 39, .14)); color: var(--mh-navy); }
.mh-icon svg { width: 26px; height: 26px; }

/* ----- Nosotros ----- */
.mh-about { background: var(--mh-soft); }
.mh-about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.mh-about-visual { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.mh-about-badge { width: 220px; height: 220px; border-radius: 50%; background: linear-gradient(145deg, #fff, #eaf0f9); border: 8px solid #fff; box-shadow: var(--mh-shadow); display: flex; align-items: center; justify-content: center; }
.mh-about-badge img { width: 92px; height: 128px; object-fit: contain; border-radius: 10px; }
.mh-about-quote { max-width: 300px; text-align: center; font-style: italic; color: var(--mh-navy); font-size: 1.02rem; font-weight: 600; }
.mh-about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.mh-about-copy p { color: var(--mh-muted); }
.mh-checks { margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.mh-checks li { position: relative; padding-left: 1.9rem; font-weight: 600; color: var(--mh-ink); }
.mh-checks li::before { content: "✓"; position: absolute; left: 0; top: -.05rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(201, 162, 39, .18); color: var(--mh-navy); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; }

/* ----- Pasos ----- */
.mh-step { background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 1.9rem 1.8rem; box-shadow: var(--mh-shadow-sm); position: relative; overflow: hidden; }
.mh-step::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--mh-navy), var(--mh-gold)); }
.mh-step-num { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--mh-navy); color: #fff; font-family: var(--mh-font-head); font-weight: 800; margin-bottom: 1rem; }
.mh-step h3 { font-size: 1.1rem; }
.mh-step p { color: var(--mh-muted); font-size: .95rem; margin: 0; }

/* ----- CTA band ----- */
.mh-cta { background: linear-gradient(120deg, #0e2a52, #1c4a8a); color: #fff; padding: 56px 0; }
.mh-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.mh-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3rem; }
.mh-cta p { color: rgba(255, 255, 255, .82); margin: 0; }

/* ----- Contacto ----- */
.mh-contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.mh-contact-card { background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 1.4rem; box-shadow: var(--mh-shadow-sm); display: flex; flex-direction: column; gap: .35rem; transition: transform .18s ease, box-shadow .18s ease; }
a.mh-contact-card:hover { transform: translateY(-4px); box-shadow: var(--mh-shadow); }
.mh-contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mh-muted); font-weight: 700; }
.mh-contact-card strong { font-family: var(--mh-font-head); font-size: 1.02rem; color: var(--mh-navy); word-break: break-word; }

/* ----- Footer ----- */
.mh-footer { background: #0a2042; color: rgba(255, 255, 255, .8); padding: 46px 0 30px; }
.mh-footer-inner { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 2rem; align-items: start; }
.mh-footer-brand { display: flex; align-items: center; gap: .8rem; }
.mh-footer-brand img { width: 38px; height: 52px; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.mh-footer-brand strong { display: block; color: #fff; font-family: var(--mh-font-head); }
.mh-footer-brand span { font-size: .85rem; color: rgba(255, 255, 255, .66); }
.mh-footer-links { display: flex; flex-direction: column; gap: .5rem; }
.mh-footer-links a { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .92rem; }
.mh-footer-links a:hover { color: var(--mh-gold-2); }
.mh-footer-legal { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: rgba(255, 255, 255, .6); text-align: right; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
    .mh-hero-grid { grid-template-columns: 1fr; }
    .mh-hero-card { max-width: 460px; }
    .mh-about-grid { grid-template-columns: 1fr; }
    .mh-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .mh-contact-grid { grid-template-columns: repeat(2, 1fr); }
    .mh-footer-inner { grid-template-columns: 1fr 1fr; }
    .mh-footer-legal { text-align: left; grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .mh-links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .4rem; padding: 1rem 24px 1.4rem; background: #fff; border-bottom: 1px solid var(--mh-line); box-shadow: 0 18px 30px rgba(14, 42, 82, .10); display: none; }
    .mh-links.is-open { display: flex; }
    .mh-links > a:not(.mh-btn) { padding: .6rem 0; border-bottom: 1px solid var(--mh-line); }
    .mh-links .mh-btn { margin-top: .4rem; }
    .mh-burger { display: flex; }
    .mh-nav { position: sticky; }
    .mh-section { padding: 60px 0; }
    .mh-grid-3 { grid-template-columns: 1fr; }
    .mh-contact-grid { grid-template-columns: 1fr; }
    .mh-footer-inner { grid-template-columns: 1fr; }
    .mh-trust { gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
