/*
Theme Name: MF Legal
Theme URI: https://mfservicioslegales.com/
Author: Muñoz Frías Consulting
Description: Tema jurídico ligero y personalizado para MF Servicios Legales.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: mf-legal
*/

:root {
  --mf-ink: #18221f;
  --mf-green-950: #0e2d29;
  --mf-green-900: #133a34;
  --mf-green-800: #1b4b43;
  --mf-green-100: #dce9e4;
  --mf-ivory: #f7f3eb;
  --mf-paper: #fffdf8;
  --mf-gold: #b08a45;
  --mf-gold-light: #d8bd84;
  --mf-line: #dfe4df;
  --mf-muted: #5e6a66;
  --mf-white: #ffffff;
  --mf-shadow: 0 24px 70px rgba(14, 45, 41, .12);
  --mf-radius: 20px;
  --mf-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mf-ink);
  background: var(--mf-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mf-green-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--mf-gold); }
button, input, select, textarea { font: inherit; }
button, .mf-button { cursor: pointer; }

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { z-index: 9999; position: fixed; top: 10px; left: 10px; padding: 10px 16px; background: #fff; }
.mf-container { width: min(calc(100% - 40px), var(--mf-container)); margin-inline: auto; }

h1, h2, h3, h4 {
  color: var(--mf-green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.025em;
  margin: 0 0 .65em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3.55rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 1.2em; }
.mf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mf-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.mf-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.mf-lead { font-size: clamp(1.12rem, 1.8vw, 1.35rem); color: var(--mf-muted); max-width: 760px; }
.mf-section { padding: clamp(72px, 10vw, 125px) 0; }
.mf-section--soft { background: var(--mf-ivory); }
.mf-section--green { background: var(--mf-green-950); color: rgba(255,255,255,.82); }
.mf-section--green h2, .mf-section--green h3 { color: #fff; }
.mf-section-head { max-width: 780px; margin-bottom: 48px; }
.mf-section-head--center { text-align: center; margin-inline: auto; }
.mf-section-head--center .mf-lead { margin-inline: auto; }

.mf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid var(--mf-green-900);
  border-radius: 999px;
  background: var(--mf-green-900);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.mf-button:hover, .mf-button:focus { color: #fff; background: var(--mf-gold); border-color: var(--mf-gold); transform: translateY(-2px); }
.mf-button--light { background: #fff; border-color: #fff; color: var(--mf-green-950); }
.mf-button--light:hover, .mf-button--light:focus { color: var(--mf-green-950); background: var(--mf-gold-light); border-color: var(--mf-gold-light); }
.mf-button--ghost { color: var(--mf-green-900); background: transparent; }
.mf-button--ghost:hover, .mf-button--ghost:focus { color: #fff; }

.mf-topbar { background: var(--mf-green-950); color: rgba(255,255,255,.82); font-size: .82rem; }
.mf-topbar .mf-container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 20px; }
.mf-topbar p { margin: 0; }
.mf-topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.mf-site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,253,248,.96); border-bottom: 1px solid rgba(14,45,41,.08); backdrop-filter: blur(16px); }
.admin-bar .mf-site-header { top: 32px; }
.mf-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.mf-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--mf-green-950); text-decoration: none; flex: 0 0 auto; }
.mf-brand:hover, .mf-brand:focus { color: var(--mf-green-950); }
.mf-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--mf-green-950); box-shadow: 0 10px 28px rgba(14,45,41,.2); }
.mf-brand-mark svg { width: 31px; height: 31px; }
.mf-brand-copy { display: flex; flex-direction: column; line-height: 1; }
.mf-brand-copy strong { font-family: Georgia, serif; font-size: 1.25rem; letter-spacing: .035em; }
.mf-brand-copy small { margin-top: 6px; color: var(--mf-muted); font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.mf-nav { margin-left: auto; }
.mf-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.mf-nav a { color: var(--mf-ink); font-size: .86rem; font-weight: 750; text-decoration: none; }
.mf-nav .current-menu-item > a, .mf-nav a:hover, .mf-nav a:focus { color: var(--mf-gold); }
.mf-menu-toggle { display: none; border: 0; background: transparent; width: 48px; height: 48px; padding: 11px; color: var(--mf-green-950); }
.mf-menu-toggle span { display: block; height: 2px; margin: 6px 0; background: currentColor; }

.mf-hero { position: relative; overflow: hidden; background: linear-gradient(125deg, #f5efe3 0%, #fffdf8 55%, #e7eee9 100%); }
.mf-hero::before { content: ""; position: absolute; width: 470px; height: 470px; left: -260px; top: -190px; border: 1px solid rgba(176,138,69,.28); border-radius: 50%; box-shadow: 0 0 0 60px rgba(176,138,69,.05), 0 0 0 120px rgba(176,138,69,.03); }
.mf-hero-grid { min-height: 710px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); align-items: center; gap: clamp(42px, 6vw, 86px); padding-block: 72px; }
.mf-hero-copy { position: relative; z-index: 2; }
.mf-hero h1 { max-width: 720px; }
.mf-hero h1 em { color: var(--mf-gold); font-style: normal; }
.mf-hero .mf-lead { max-width: 650px; }
.mf-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.mf-hero-notes { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; color: var(--mf-muted); font-size: .87rem; font-weight: 700; }
.mf-hero-notes span::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 50%; color: var(--mf-green-800); background: var(--mf-green-100); }
.mf-hero-visual { position: relative; }
.mf-hero-visual::before { content: ""; position: absolute; inset: -18px 24px 24px -18px; border: 1px solid var(--mf-gold-light); border-radius: 28px; }
.mf-hero-visual img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; box-shadow: var(--mf-shadow); }
.mf-hero-card { position: absolute; left: -35px; bottom: 32px; max-width: 265px; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 20px 50px rgba(14,45,41,.18); }
.mf-hero-card strong { display: block; color: var(--mf-green-950); font-family: Georgia, serif; font-size: 1.15rem; }
.mf-hero-card span { color: var(--mf-muted); font-size: .79rem; line-height: 1.4; }

.mf-trust-strip { background: #fff; border-block: 1px solid var(--mf-line); }
.mf-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.mf-trust-item { padding: 30px clamp(18px, 3vw, 38px); border-right: 1px solid var(--mf-line); }
.mf-trust-item:last-child { border-right: 0; }
.mf-trust-item strong { display: block; color: var(--mf-green-950); font-family: Georgia, serif; font-size: 1.12rem; }
.mf-trust-item span { display: block; color: var(--mf-muted); font-size: .85rem; }

.mf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mf-card { position: relative; min-height: 350px; padding: 34px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: #fff; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mf-card:hover { transform: translateY(-6px); border-color: var(--mf-gold-light); box-shadow: var(--mf-shadow); }
.mf-card-number { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 46px; border-radius: 50%; color: var(--mf-gold); background: var(--mf-ivory); font-family: Georgia, serif; }
.mf-card p { color: var(--mf-muted); }
.mf-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 800; text-decoration: none; }
.mf-card-link::after { content: "→"; transition: transform .2s ease; }
.mf-card-link:hover::after { transform: translateX(4px); }

.mf-split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(50px, 8vw, 105px); align-items: center; }
.mf-split--reverse { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.mf-portrait-wrap { position: relative; padding: 0 0 28px 28px; }
.mf-portrait-wrap::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 68%; background: var(--mf-green-900); border-radius: 24px; }
.mf-portrait-wrap img { position: relative; width: 100%; aspect-ratio: 1/1.06; object-fit: cover; object-position: center 18%; border-radius: 24px; box-shadow: var(--mf-shadow); }
.mf-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 30px 0; }
.mf-metric { padding: 18px; border-left: 2px solid var(--mf-gold); background: #fff; }
.mf-metric strong { display: block; color: var(--mf-green-950); font-family: Georgia, serif; font-size: 1.7rem; line-height: 1; }
.mf-metric span { color: var(--mf-muted); font-size: .82rem; }
.mf-checklist { margin: 28px 0; padding: 0; list-style: none; }
.mf-checklist li { position: relative; padding-left: 34px; margin: 12px 0; }
.mf-checklist li::before { content: "✓"; position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mf-green-100); color: var(--mf-green-800); font-size: .78rem; font-weight: 900; }

.mf-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: process; }
.mf-step { position: relative; padding: 32px 26px; border-top: 1px solid rgba(255,255,255,.22); counter-increment: process; }
.mf-step::before { content: "0" counter(process); display: block; margin-bottom: 30px; color: var(--mf-gold-light); font-family: Georgia, serif; font-size: 2rem; }
.mf-step p { color: rgba(255,255,255,.7); font-size: .92rem; }

.mf-collab { padding: clamp(38px,5vw,58px); border: 1px solid var(--mf-line); border-radius: 26px; background: #fff; box-shadow: var(--mf-shadow); }
.mf-collab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mf-collab-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mf-collab-list li { padding: 15px 16px; border-radius: 12px; background: var(--mf-ivory); color: var(--mf-green-950); font-weight: 750; }

.mf-faq { max-width: 880px; margin-inline: auto; }
.mf-faq details { border-bottom: 1px solid var(--mf-line); }
.mf-faq summary { position: relative; padding: 23px 44px 23px 0; color: var(--mf-green-950); font-family: Georgia, serif; font-size: 1.2rem; cursor: pointer; list-style: none; }
.mf-faq summary::-webkit-details-marker { display: none; }
.mf-faq summary::after { content: "+"; position: absolute; right: 4px; top: 21px; color: var(--mf-gold); font-family: sans-serif; font-size: 1.5rem; }
.mf-faq details[open] summary::after { content: "−"; }
.mf-faq details p { padding-right: 40px; color: var(--mf-muted); }

.mf-cta { padding: clamp(50px,7vw,80px); border-radius: 30px; background: var(--mf-green-950); color: rgba(255,255,255,.8); box-shadow: var(--mf-shadow); }
.mf-cta-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.mf-cta h2 { color: #fff; margin-bottom: 12px; }
.mf-cta .mf-actions { justify-content: flex-end; margin: 0; }

.mf-page-hero { padding: clamp(70px,10vw,120px) 0 64px; background: linear-gradient(120deg,var(--mf-ivory),#fff); border-bottom: 1px solid var(--mf-line); }
.mf-page-hero h1 { max-width: 940px; font-size: clamp(2.7rem,5vw,4.75rem); }
.mf-breadcrumbs { margin-bottom: 25px; color: var(--mf-muted); font-size: .8rem; font-weight: 700; }
.mf-breadcrumbs a { text-decoration: none; }
.mf-content-wrap { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: clamp(45px,7vw,90px); align-items: start; }
.mf-entry { min-width: 0; }
.mf-entry h2 { margin-top: 1.35em; }
.mf-entry h3 { margin-top: 1.4em; }
.mf-entry ul, .mf-entry ol { padding-left: 1.25em; }
.mf-entry blockquote { margin: 32px 0; padding: 24px 28px; border-left: 3px solid var(--mf-gold); background: var(--mf-ivory); color: var(--mf-green-950); font-family: Georgia, serif; font-size: 1.16rem; }
.mf-entry .mf-info-box { margin: 30px 0; padding: 25px; border-radius: 16px; background: var(--mf-green-100); }
.mf-entry .mf-note { color: var(--mf-muted); font-size: .9rem; }
.mf-sidebar { position: sticky; top: 132px; padding: 28px; border-radius: 18px; background: var(--mf-green-950); color: rgba(255,255,255,.78); }
.mf-sidebar h3 { color: #fff; }
.mf-sidebar a:not(.mf-button) { color: #fff; }
.mf-sidebar .mf-button { width: 100%; margin-top: 8px; }

.mf-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.mf-post-card { padding: 28px; border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; }
.mf-post-card h2, .mf-post-card h3 { font-size: 1.45rem; }
.mf-post-card a { text-decoration: none; }
.mf-post-meta { color: var(--mf-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.mf-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px,7vw,88px); }
.mf-contact-panel { padding: 34px; border-radius: 22px; background: var(--mf-green-950); color: rgba(255,255,255,.8); }
.mf-contact-panel h2, .mf-contact-panel h3 { color: #fff; }
.mf-contact-panel a { color: #fff; }
.mf-form { padding: clamp(26px,4vw,42px); border: 1px solid var(--mf-line); border-radius: 22px; background: #fff; box-shadow: var(--mf-shadow); }
.mf-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.mf-field--full { grid-column: 1/-1; }
.mf-field label { display: block; margin-bottom: 7px; color: var(--mf-green-950); font-size: .82rem; font-weight: 800; }
.mf-field input, .mf-field select, .mf-field textarea { width: 100%; min-height: 51px; padding: 12px 14px; border: 1px solid #cad3cf; border-radius: 10px; background: #fff; color: var(--mf-ink); }
.mf-field textarea { min-height: 145px; resize: vertical; }
.mf-field input:focus, .mf-field select:focus, .mf-field textarea:focus { outline: 3px solid rgba(176,138,69,.18); border-color: var(--mf-gold); }
.mf-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--mf-muted); }
.mf-checkbox input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; }
.mf-form-notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.mf-form-notice--success { background: #e2f2e8; color: #175c35; }
.mf-form-notice--error { background: #f9e6e2; color: #8d2f20; }
.mf-hp { position: absolute; left: -9999px; }

.mf-site-footer { margin-top: 0; background: #0a211e; color: rgba(255,255,255,.7); }
.mf-footer-main { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 60px; padding: 78px 0 55px; }
.mf-site-footer .mf-brand { color: #fff; margin-bottom: 20px; }
.mf-site-footer .mf-brand-copy small { color: rgba(255,255,255,.55); }
.mf-site-footer h3 { color: #fff; font-family: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.mf-site-footer ul { list-style: none; margin: 0; padding: 0; }
.mf-site-footer li { margin: 8px 0; }
.mf-site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.mf-site-footer a:hover, .mf-site-footer a:focus { color: var(--mf-gold-light); }
.mf-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.mf-footer-bottom p { margin: 0; }

@media (max-width: 1050px) {
  .mf-nav ul { gap: 16px; }
  .mf-nav a { font-size: .8rem; }
  .mf-header-cta { display: none; }
  .mf-hero-grid { grid-template-columns: 1fr 1fr; }
  .mf-content-wrap { grid-template-columns: minmax(0,1fr) 285px; }
}
@media (max-width: 860px) {
  .admin-bar .mf-site-header { top: 46px; }
  .mf-menu-toggle { display: block; }
  .mf-nav { position: absolute; display: none; left: 0; right: 0; top: 100%; padding: 8px 20px 22px; background: var(--mf-paper); border-bottom: 1px solid var(--mf-line); box-shadow: 0 20px 45px rgba(14,45,41,.12); }
  .mf-nav.is-open { display: block; }
  .mf-nav ul { display: block; }
  .mf-nav li { border-bottom: 1px solid var(--mf-line); }
  .mf-nav a { display: block; padding: 13px 4px; font-size: .95rem; }
  .mf-hero-grid { grid-template-columns: 1fr; padding-block: 68px 88px; }
  .mf-hero-visual { width: min(100%,650px); margin-inline: auto; }
  .mf-hero-visual img { aspect-ratio: 4/3; }
  .mf-cards, .mf-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mf-process { grid-template-columns: repeat(2,1fr); }
  .mf-split, .mf-split--reverse, .mf-collab-grid, .mf-contact-grid, .mf-content-wrap { grid-template-columns: 1fr; }
  .mf-sidebar { position: static; }
  .mf-cta-grid { grid-template-columns: 1fr; }
  .mf-cta .mf-actions { justify-content: flex-start; }
  .mf-footer-main { grid-template-columns: 1fr 1fr; }
  .mf-footer-main > :first-child { grid-column: 1/-1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .mf-container { width: min(calc(100% - 28px), var(--mf-container)); }
  .mf-topbar .mf-container { justify-content: center; }
  .mf-topbar p:first-child { display: none; }
  .mf-header-inner { min-height: 76px; }
  .mf-brand-mark { width: 43px; height: 43px; }
  .mf-brand-copy strong { font-size: 1.08rem; }
  .mf-brand-copy small { font-size: .58rem; }
  .mf-hero-grid { min-height: auto; }
  .mf-hero-card { position: relative; left: auto; bottom: auto; max-width: none; margin: -42px 16px 0; }
  .mf-trust-grid, .mf-cards, .mf-post-grid, .mf-process, .mf-metrics, .mf-collab-list, .mf-form-grid { grid-template-columns: 1fr; }
  .mf-trust-item { border-right: 0; border-bottom: 1px solid var(--mf-line); }
  .mf-trust-item:last-child { border-bottom: 0; }
  .mf-card { min-height: 0; }
  .mf-card-number { margin-bottom: 28px; }
  .mf-field--full { grid-column: auto; }
  .mf-footer-main { grid-template-columns: 1fr; gap: 34px; }
  .mf-footer-main > :first-child { grid-column: auto; }
  .mf-footer-bottom { flex-direction: column; }
}

