/* Extensiones del sitio: trabajos, consultas y páginas de servicios. */
:root{--mg-navy:#173b6d;--mg-ink:#0f172a;--mg-red:#dc2626;--mg-line:#e2e8f0;--mg-muted:#475569}
[hidden]{display:none!important}
.mg-skip{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mg-skip:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;padding:12px 18px;clip:auto;background:#fff;color:#173b6d;z-index:100}
.mg-wrap{width:min(1180px,100% - 40px);margin-inline:auto}
.mg-section{padding:76px 0;border-bottom:1px solid var(--mg-line);background:#fff}
.mg-eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--mg-navy);margin:0 0 12px}
.mg-heading{font-size:clamp(28px,3.5vw,38px);line-height:1.2;letter-spacing:-.035em;font-weight:800;color:var(--mg-ink);margin:0 0 14px}
.mg-intro{max-width:680px;line-height:1.75;color:var(--mg-muted);margin:0 0 30px}
.mg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.mg-work{border:1px solid var(--mg-line);border-radius:18px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.mg-photo-button{display:block;width:100%;position:relative;text-align:left;border:0;background:#e2e8f0;padding:0;cursor:zoom-in}
.mg-photo-button img{width:100%;height:235px;object-fit:cover;transition:transform .2s}
.mg-photo-button:hover img{transform:scale(1.025)}
.mg-photo-label{position:absolute;bottom:14px;right:14px;color:white;background:#0f172ae6;padding:7px 11px;border-radius:8px;font-size:12px;font-weight:700}
.mg-work-body{padding:24px;display:flex;flex-direction:column;gap:12px;flex:1}
.mg-work h3{margin:0;color:var(--mg-ink);font-size:20px;font-weight:800;line-height:1.35}
.mg-work p{font-size:14px;line-height:1.7;margin:0;color:var(--mg-muted)}
.mg-work a{margin-top:auto;padding-top:8px}
.mg-tag{align-self:flex-start;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--mg-navy);background:#eff6ff;border:1px solid #dbeafe;border-radius:6px;padding:5px 8px}
.mg-text-link,.mg-detail-link{color:var(--mg-navy);font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.mg-detail-link{display:inline-block;margin:0 0 16px;font-size:12px}
.mg-text-link:hover,.mg-detail-link:hover{color:#b91c1c}
.mg-dialog{width:min(1040px,calc(100% - 28px));max-height:92vh;padding:0;border:0;border-radius:18px;background:#0f172a;color:white;box-shadow:0 24px 80px #0008}
.mg-dialog::backdrop{background:#020617db}
.mg-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;font-size:14px}
.mg-dialog-head button{border:1px solid #64748b;background:transparent;color:#fff;border-radius:8px;min-width:44px;min-height:44px;font-size:22px;cursor:pointer}
.mg-dialog img{width:100%;max-height:75vh;object-fit:contain;background:#020617}
.mg-quote-header{padding:32px;background:var(--mg-ink);color:#fff}
.mg-quote-header h2{font-size:clamp(26px,3vw,32px);line-height:1.25;font-weight:800;margin:10px 0}
.mg-quote-header p{color:#cbd5e1;font-size:14px;max-width:640px;line-height:1.7}
.mg-quote-body{padding:32px}
.mg-fieldset{border:0;padding:0;margin:0 0 28px;min-width:0}
.mg-fieldset legend{float:none;width:100%;font-weight:800;font-size:17px;color:var(--mg-ink);padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid var(--mg-line)}
.mg-step{display:inline-grid;place-items:center;background:#eff6ff;border:1px solid #dbeafe;color:var(--mg-navy);width:28px;height:28px;border-radius:8px;font-size:13px;margin-right:8px}
.mg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.mg-field{min-width:0}
.mg-field-wide{grid-column:1/-1}
.mg-field label{display:block;font-size:13px;font-weight:700;color:#334155;margin-bottom:8px}
.mg-field label span{font-size:12px;color:#64748b;font-weight:400}
.mg-field input,.mg-field select,.mg-field textarea{width:100%;max-width:100%;background:#f8fafc;color:var(--mg-ink);border:1px solid #cbd5e1;border-radius:10px;padding:12px 14px;font:inherit;font-size:14px}
.mg-field input:focus,.mg-field select:focus,.mg-field textarea:focus{outline:2px solid var(--mg-navy);outline-offset:2px;background:#fff}
.mg-field textarea{resize:vertical;min-height:115px}
.mg-field input[type=file]{font-size:12px;padding:10px}
.mg-field input::file-selector-button{border:0;border-radius:6px;background:#e2e8f0;color:var(--mg-ink);padding:8px;cursor:pointer;margin-right:10px}
.mg-help{color:#64748b;font-size:12px;line-height:1.6;margin:8px 0 0}
.mg-preview{display:flex;gap:12px;align-items:center;margin-top:10px;color:var(--mg-muted);font-size:12px;overflow-wrap:anywhere}
.mg-preview img{height:60px;width:80px;object-fit:cover;border:1px solid var(--mg-line);border-radius:6px}
.mg-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.7;color:var(--mg-muted);margin:20px 0}
.mg-consent input{width:18px;height:18px;flex-shrink:0;margin-top:2px;accent-color:var(--mg-navy)}
.mg-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;border-top:1px solid var(--mg-line);padding-top:22px}
.mg-button{display:inline-flex;justify-content:center;align-items:center;gap:10px;border:1px solid #b91c1c;border-radius:10px;padding:14px 22px;background:var(--mg-red);color:white!important;font-size:14px;line-height:1.5;font-weight:800;text-decoration:none;cursor:pointer;min-height:48px;transition:background .15s}
.mg-button:hover{background:#b91c1c}
.mg-button:disabled{opacity:.7;cursor:wait}
.mg-button-light{border-color:#cbd5e1;background:#fff;color:var(--mg-ink)!important}
.mg-button-light:hover{background:#f1f5f9}
.mg-whatsapp-link{font-size:13px;font-weight:700;color:#047857;text-decoration:underline;text-underline-offset:4px}
.mg-message{border:1px solid #fecaca;background:#fff1f2;color:#9f1239;padding:18px;border-radius:12px;font-size:14px;line-height:1.7;margin:0 0 22px}
.mg-success{border-color:#a7f3d0;background:#ecfdf5;color:#065f46}
.mg-success h3{font-weight:800;font-size:23px;margin-bottom:12px}
.mg-reference{font-family:ui-monospace,monospace;font-weight:800;font-size:18px;overflow-wrap:anywhere}
.mg-hidden-field{display:none}
.mg-service-page{background:#fff;color:var(--mg-ink);font-family:Inter,system-ui,sans-serif}
.mg-site-header{border-bottom:1px solid var(--mg-line);background:#fff;position:sticky;top:0;z-index:10}
.mg-header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.mg-logo{width:245px;max-width:45vw;height:auto}
.mg-page-nav{display:flex;align-items:center;gap:24px;font-size:14px;font-weight:600}
.mg-page-nav a:hover{text-decoration:underline;text-underline-offset:5px}
.mg-breadcrumb{display:flex;flex-wrap:wrap;gap:9px;font-size:12px;color:#64748b;margin:0 0 32px}
.mg-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.mg-service-hero{background:#f8fafc;padding:32px 0 72px;border-bottom:1px solid var(--mg-line)}
.mg-hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:56px;align-items:center}
.mg-service-hero h1{font-size:clamp(32px,4.4vw,54px);font-weight:900;letter-spacing:-.045em;line-height:1.12;margin:14px 0 24px}
.mg-service-hero h1 span{color:var(--mg-navy)}
.mg-service-hero p{color:var(--mg-muted);font-size:16px;line-height:1.8;margin-bottom:24px}
.mg-hero-photo{margin:0;overflow:hidden;background:#e2e8f0;border-radius:18px;border:1px solid var(--mg-line)}
.mg-hero-photo img{width:100%;height:380px;object-fit:cover}
.mg-hero-photo figcaption{font-size:12px;color:var(--mg-muted);background:white;padding:14px 18px}
.mg-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.mg-two-col{display:grid;grid-template-columns:1.3fr 1fr;gap:60px;align-items:start}
.mg-prose p{color:var(--mg-muted);line-height:1.85;margin-bottom:18px}
.mg-prose h2{font-size:28px;line-height:1.3;letter-spacing:-.025em;font-weight:800;margin-bottom:20px}
.mg-panel{background:#f8fafc;border:1px solid var(--mg-line);padding:28px;border-radius:16px}
.mg-panel h2,.mg-panel h3{font-size:19px;font-weight:800;margin-bottom:16px}
.mg-list{list-style:none;margin:0;padding:0}
.mg-list li{position:relative;padding-left:22px;margin:12px 0;color:var(--mg-muted);line-height:1.75;font-size:14px}
.mg-list li::before{content:'✓';position:absolute;left:0;color:#047857;font-weight:800}
.mg-process{counter-reset:step;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.mg-process article{border-top:2px solid var(--mg-line);padding-top:22px}
.mg-process article::before{counter-increment:step;content:'0' counter(step);font-size:13px;font-weight:800;color:var(--mg-red)}
.mg-process h3{font-size:19px;font-weight:800;margin:14px 0 12px}
.mg-process p{font-size:14px;line-height:1.8;color:var(--mg-muted)}
.mg-faq details{padding:20px 0;border-bottom:1px solid var(--mg-line)}
.mg-faq summary{cursor:pointer;font-weight:700;line-height:1.6}
.mg-faq p{font-size:14px;color:var(--mg-muted);line-height:1.8;padding-top:12px;max-width:800px}
.mg-cta-panel{background:var(--mg-ink);color:white;border-radius:20px;padding:40px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.mg-cta-panel h2{font-size:28px;line-height:1.3;font-weight:800;margin-bottom:12px}
.mg-cta-panel p{max-width:640px;color:#cbd5e1;font-size:14px;line-height:1.8}
.mg-related{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:24px}
.mg-site-footer{background:#020617;color:#cbd5e1;padding:44px 0;font-size:13px;line-height:1.9}
.mg-footer-grid{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap}
.mg-site-footer a{text-decoration:underline;text-underline-offset:4px}
.mg-site-footer img{width:230px;height:auto;margin-bottom:18px}
.mg-privacy{max-width:760px;margin:auto;padding:60px 20px}
.mg-privacy h1{font-size:36px;font-weight:800;margin:20px 0 30px}
.mg-privacy h2{font-size:22px;font-weight:700;margin:28px 0 14px}
.mg-privacy p,.mg-privacy li{font-size:15px;line-height:1.85;color:var(--mg-muted);margin:12px 0}
@media(max-width:900px){.mg-grid{grid-template-columns:1fr 1fr}.mg-hero-grid,.mg-two-col{grid-template-columns:1fr;gap:32px}.mg-page-nav{gap:16px}.mg-page-nav .mg-nav-optional{display:none}.mg-hero-photo img{height:340px}.mg-cta-panel{display:block}.mg-cta-panel .mg-button{margin-top:24px}.mg-work:last-child{grid-column:1/-1;max-width:570px}.mg-section{padding:56px 0}}
@media(max-width:600px){.mg-wrap{width:calc(100% - 32px)}.mg-grid,.mg-fields,.mg-process{grid-template-columns:1fr}.mg-work:last-child{grid-column:auto}.mg-photo-button img{height:240px}.mg-quote-body,.mg-quote-header{padding:24px 20px}.mg-header-inner{min-height:76px;gap:12px}.mg-logo{width:190px;max-width:49vw}.mg-page-nav{font-size:12px}.mg-page-nav .mg-button{font-size:12px;padding:10px 13px;min-height:42px}.mg-service-hero{padding-bottom:44px}.mg-hero-photo img{height:290px}.mg-cta-panel{padding:28px}.mg-cta-panel h2{font-size:25px}.mg-form-actions>*{width:100%;text-align:center}.mg-section{padding:48px 0}.mg-work-body{padding:22px}.mg-dialog-head{padding:10px 14px}.mg-process{gap:28px}.mg-breadcrumb{margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){.mg-photo-button img,.mg-button{transition:none}}
