/* licenciasdefuncionamiento.com.mx
   Estilo editorial: papel, tinta, líneas finas. Azul PaperworkLab solo como acento. */
:root {
  /* Base cálida tipo papel + colores de marca PaperworkLab */
  --paper: #F7F4EE;     /* fondo principal */
  --sand: #EEE8DC;      /* secciones alternas */
  --white: #FFFFFF;
  --ink: #111827;       /* texto principal */
  --ink-2: #454E60;     /* texto secundario */
  --ink-3: #7A8395;     /* texto terciario */
  --rule: #D9D2C3;      /* líneas */
  --rule-2: #E7E1D5;
  --navy: #1A2B5C;      /* marca PaperworkLab */
  --navy-dk: #111D42;
  --night: #0C1530;     /* pie de página */
  --blue: #3D8BFF;      /* azul eléctrico PaperworkLab (acentos sobre oscuro) */
  --blue-ink: #1F5FD1;  /* azul para texto sobre claro (contraste AA) */
  --blue-tint: #EAF1FE;
  --on-navy: #F3F5FB;
  --on-navy-2: #B9C3DD;
  --on-navy-3: #8794B8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: #CFE0FD; color: var(--navy-dk); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.hdr { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.hdr .wrap { display: flex; align-items: center; height: 76px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { font: 500 15px/1.15 var(--sans); letter-spacing: -0.01em; }
.logo small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav a, .nav .dd > button { font: 400 15px var(--sans); color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.nav a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--ink); }
.nav .dd > button svg { width: 14px; height: 14px; }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 20px); left: -24px; width: 340px; background: var(--white); border: 1px solid var(--rule); padding: 8px 0; display: none; box-shadow: 0 12px 30px -18px rgba(0,0,0,.25); }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: flex; gap: 14px; padding: 10px 24px; font-size: 14.5px; color: var(--ink); }
.dd-menu a:hover { background: var(--paper); }
.dd-menu a i { font: normal 12px/1.9 var(--mono); color: var(--ink-3); }
.hdr-cta { display: flex; align-items: center; gap: 20px; }
.hdr-cta .tel { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.hdr-cta .tel:hover { color: var(--ink); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); width: 44px; height: 44px; cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }
.m-cta { display: none; }
@media (max-width: 1040px) { .hdr-cta .tel { display: none; } }
@media (max-width: 900px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: grid; }
  .hdr.open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 16px 24px; max-height: calc(100vh - 76px); overflow: auto; }
  .hdr.open .nav > a, .hdr.open .nav .dd > button { padding: 16px 0; border-bottom: 1px solid var(--rule-2); font-size: 17px; color: var(--ink); width: 100%; justify-content: space-between; }
  .hdr.open .dd-menu { position: static; width: auto; border: 0; box-shadow: none; background: none; padding: 4px 0 8px; }
  .hdr.open .dd:not(.open) .dd-menu { display: none; }
  .hdr.open .dd-menu a { padding: 10px 0; }
  .hdr.open .m-cta { display: grid; gap: 10px; margin-top: 20px; }
}

/* ---------- Botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 15px/1 var(--sans); padding: 16px 24px; border-radius: 3px; border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-dk); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 12px 18px; font-size: 14px; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--paper); }
.btn-out-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-out-w:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-wa { background: #1E9E50; border-color: #1E9E50; }
.btn-wa:hover { background: #188943; }
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--navy); }
.arrow-link svg { width: 16px; height: 16px; transition: transform .15s; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Estructura de secciones ---------- */
.label { font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.sec { padding: 112px 0; border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .sec { padding: 72px 0; } }
.sec-grid { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.sec-grid > .label { padding-top: 10px; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; gap: 18px; } .sec-grid > .label { padding-top: 0; } }
.h2 { font-size: clamp(34px, 4.4vw, 54px); max-width: 860px; }
.intro { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 680px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 0; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
.hero h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.025em; margin-top: 22px; }
.hero h1 em { font-style: italic; }
.hero .intro { font-size: 20px; margin-top: 30px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.hero-actions .link { font-size: 15px; }
.toc-box { background: var(--white); border: 1px solid var(--rule); }
.toc-box h2 { font: 500 13px var(--sans); padding: 18px 24px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; letter-spacing: 0; color: var(--ink-2); }
.toc-box a { display: grid; grid-template-columns: 34px 1fr 16px; gap: 10px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--rule-2); text-decoration: none; font-size: 15.5px; transition: background .12s; }
.toc-box a:last-child { border-bottom: 0; }
.toc-box a:hover { background: var(--paper); }
.toc-box a i { font: normal 12px var(--mono); color: var(--ink-3); }
.toc-box a svg { width: 15px; height: 15px; color: var(--ink-3); }
.toc-box a:hover svg { color: var(--navy); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } .hero { padding-top: 56px; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px; border-top: 1px solid var(--ink); }
.facts div { padding: 26px 28px 30px 0; border-right: 1px solid var(--rule); }
.facts div + div { padding-left: 28px; }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font: 400 40px/1 var(--serif); letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); max-width: 230px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; margin-top: 64px; } .facts div { padding: 22px 16px 24px 0 !important; border-right: 0; border-bottom: 1px solid var(--rule); } .facts div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--rule); } .facts div:nth-child(even) { padding-left: 16px !important; } }

/* ---------- Bloques de texto a dos columnas ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
.cols p { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.cols p + p { margin-top: 16px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; } }

/* ---------- Tabla de unidades / comparativa ---------- */
.tbl { margin-top: 56px; border-top: 1px solid var(--ink); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--rule); }
.tbl th { font: 400 12.5px var(--mono); color: var(--ink-3); padding-top: 16px; padding-bottom: 16px; }
.tbl td { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.tbl td.name { font: 400 28px/1.15 var(--serif); color: var(--ink); width: 22%; }
.tbl td.name small { display: block; font: 400 13px var(--sans); color: var(--ink-3); margin-top: 6px; }
.tbl td ul li { padding-left: 16px; position: relative; }
.tbl td ul li::before { content: "–"; position: absolute; left: 0; color: var(--ink-3); }
.tbl.cmp td:first-child { color: var(--ink); font-weight: 500; width: 30%; }
.tbl.cmp td:last-child { color: var(--ink); }
.tbl.cmp th:last-child, .tbl.cmp td:last-child { background: var(--white); padding-left: 24px; }
@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl tr { display: block; border-bottom: 1px solid var(--rule); padding: 20px 0; }
  .tbl td { display: block; border: 0; padding: 4px 0; width: auto !important; }
  .tbl td.name { font-size: 24px; margin-bottom: 8px; }
  .tbl.cmp td:last-child { padding: 10px 12px; margin-top: 8px; }
  .tbl.cmp td[data-h]::before { content: attr(data-h); display: block; font: 400 11.5px var(--mono); color: var(--ink-3); margin-bottom: 2px; }
}

/* ---------- Proceso ---------- */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 24px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps i { font: normal 12.5px var(--mono); color: var(--ink-3); }
.steps h3 { font-size: 24px; margin: 18px 0 12px; }
.steps p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; } .steps h3 { margin: 0 0 6px; font-size: 22px; } .steps p { grid-column: 2; } }

/* ---------- Sectores ---------- */
.sectors { font: 400 clamp(26px, 3.2vw, 40px)/1.35 var(--serif); letter-spacing: -0.01em; color: var(--ink); max-width: 1000px; }
.sectors span { color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; font: 400 22px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; max-width: 760px; }

/* ---------- Cierre ---------- */
.closing { background: var(--navy); color: #fff; padding: 104px 0; }
.closing-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; }
.closing h2 { font-size: clamp(36px, 4.6vw, 58px); }
.closing p { color: var(--on-navy-2); font-size: 18px; margin-top: 22px; max-width: 560px; line-height: 1.6; }
.closing .label { color: var(--blue); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-dl { border-top: 1px solid rgba(255,255,255,.3); }
.contact-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 15.5px; }
.contact-dl dt { color: var(--on-navy-3); font: 400 12.5px/1.9 var(--mono); }
.contact-dl dd { margin: 0; }
.contact-dl a { color: #fff; text-decoration: none; }
.contact-dl a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .closing-grid { grid-template-columns: 1fr; gap: 48px; } .closing { padding: 72px 0; } }

/* ---------- Páginas internas ---------- */
.crumbs { font: 400 12.5px var(--mono); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding: 64px 0 80px; }
.ph-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; margin-top: 40px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; }
.page-head .intro { margin-top: 26px; }
@media (max-width: 960px) { .ph-grid { grid-template-columns: 1fr; gap: 40px; } .page-head { padding: 40px 0 56px; } }
.ficha { background: var(--white); border: 1px solid var(--rule); }
.ficha h2 { font: 500 13px var(--sans); color: var(--ink-2); padding: 16px 22px; border-bottom: 1px solid var(--rule); letter-spacing: 0; }
.ficha dl { margin: 0; }
.ficha dl div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--rule-2); font-size: 15px; }
.ficha dt { font: 400 12.5px/1.9 var(--mono); color: var(--ink-3); }
.ficha dd { margin: 0; color: var(--ink); }
.ficha .act { padding: 18px 22px 22px; display: grid; gap: 10px; }
.ficha .act .btn { width: 100%; }

.doc { display: grid; grid-template-columns: 3fr 6fr 3fr; gap: 56px; padding: 88px 0 112px; border-top: 1px solid var(--rule); align-items: start; }
@media (max-width: 1100px) { .doc { grid-template-columns: 8fr 4fr; } .doc-nav { display: none; } }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; padding: 56px 0 72px; gap: 48px; } }
.doc-nav { position: sticky; top: 108px; }
.doc-nav p { margin-bottom: 14px; }
.doc-nav a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--ink-3); text-decoration: none; }
.doc-nav a:hover, .doc-nav a.on { color: var(--ink); }
.doc-nav a.on { text-decoration: underline; text-underline-offset: 4px; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 72px 0 20px; scroll-margin-top: 110px; display: flex; gap: 16px; align-items: baseline; }
.prose h2 i { font: normal 13px var(--mono); color: var(--ink-3); letter-spacing: 0; }
.prose > h2:first-child { margin-top: 0; }
.prose p { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); margin-bottom: 18px; }
.prose p.first { font-size: 21px; line-height: 1.6; color: var(--ink); font-family: var(--serif); }
.items { border-top: 1px solid var(--ink); }
.items li { display: grid; grid-template-columns: 32px 1fr; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 16.5px; line-height: 1.55; }
.items li::before { content: attr(data-n); font: 400 12.5px/2 var(--mono); color: var(--ink-3); }
.items.bul li::before { content: "–"; font: 400 16px/1.55 var(--sans); }
.note { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); font-style: italic; font-family: var(--serif); font-size: 17px; }
.how li { display: grid; grid-template-columns: 32px 1fr; gap: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.how li:first-child { border-top: 1px solid var(--ink); }
.how li::before { content: attr(data-n); font: 400 12.5px/2 var(--mono); color: var(--ink-3); grid-row: span 2; }
.how b { font-weight: 500; font-size: 16.5px; }
.how span { color: var(--ink-2); font-size: 15.5px; margin-top: 2px; }
.cost { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.cost div { padding: 20px 24px 22px 0; }
.cost div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.cost b { font: 400 22px var(--serif); display: block; margin-bottom: 8px; }
.cost p { font-size: 15.5px !important; line-height: 1.6 !important; margin: 0 !important; }
@media (max-width: 640px) { .cost { grid-template-columns: 1fr; } .cost div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

.side { position: sticky; top: 108px; display: grid; gap: 24px; }
.side-box { background: var(--navy); color: #fff; padding: 28px; }
.side-box h3 { font-size: 26px; line-height: 1.15; }
.side-box p { color: var(--on-navy-2); font-size: 15px; margin-top: 12px; line-height: 1.55; }
.side-box .btn { width: 100%; margin-top: 10px; }
.side-box .btn:first-of-type { margin-top: 24px; }
.side-rel p { margin-bottom: 10px; }
.side-rel a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--rule); text-decoration: none; font-size: 15.5px; }
.side-rel a:last-child { border-bottom: 1px solid var(--rule); }
.side-rel a svg { width: 15px; height: 15px; color: var(--ink-3); }
.side-rel a:hover { color: var(--navy); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; padding: 80px 0 112px; border-top: 1px solid var(--rule); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 56px; padding: 48px 0 72px; } }
.form { display: grid; gap: 22px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-radius: 2px; padding: 14px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .fields-2 { grid-template-columns: 1fr; } }
.form .fine { font-size: 13.5px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.ftr { background: var(--night); color: #A3ADC6; padding: 80px 0 32px; font-size: 14.5px; }
.ftr-grid { display: grid; grid-template-columns: 4fr 3fr 3fr 3fr; gap: 40px; }
.ftr h4 { font: 400 12.5px var(--mono); color: var(--on-navy-3); margin: 0 0 18px; font-weight: 400; }
.ftr li { margin-bottom: 10px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr .logo span { color: #fff; }
.ftr .logo small { color: var(--on-navy-3); }
.ftr .about { margin-top: 20px; max-width: 340px; line-height: 1.65; }
.ftr .about a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ftr-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid #1F2A4A; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: #7C8089; }
.ftr-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #1E9E50; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.wa:hover { background: #188943; }
.wa svg { width: 27px; height: 27px; }
@media (max-width: 640px) { .wa { right: 14px; bottom: 14px; } }

.sec-grid .full { grid-column: 1 / -1; }
.sec-grid .full .steps { margin-top: 24px; }
.closing h2 { margin-top: 18px; }
.ph-grid { align-items: start; }
.page-head h1 { margin-top: 18px; }
.ph-grid > div:first-child { padding-top: 24px; }
@media (max-width: 960px) { .ph-grid > div:first-child { padding-top: 0; } }
.contact > *, .fields-2 > *, .ph-grid > *, .hero-grid > * { min-width: 0; }

/* ---------- Fotografía ---------- */
figure { margin: 0; }
figure img { width: 100%; height: 100%; object-fit: cover; background: var(--rule-2); }
.hero-grid { align-items: stretch; }
.hero-text { padding-top: 24px; }
.hero-photo { position: relative; min-height: 560px; display: flex; flex-direction: column; }
.hero-photo img { flex: 1; min-height: 0; }
.hero-photo figcaption { font: 400 13px/1.5 var(--mono); color: var(--ink-3); padding-top: 14px; max-width: 420px; }
@media (max-width: 960px) { .hero-photo { min-height: 0; } .hero-photo img { aspect-ratio: 4 / 3; height: auto; } }

.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; margin-top: 64px; }
.tcard { text-decoration: none; display: flex; flex-direction: column; }
.tcard figure { aspect-ratio: 4 / 3; overflow: hidden; }
.tcard img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tcard:hover img { transform: scale(1.04); }
.tcard i { font: normal 12.5px var(--mono); color: var(--ink-3); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink); }
.tcard h3 { font-size: 24px; margin: 10px 0 8px; line-height: 1.15; }
.tcard p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.tcard:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (max-width: 1100px) { .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tgrid { grid-template-columns: 1fr; gap: 40px; } }

.band { border-top: 1px solid var(--rule); padding: 0 0 96px; }
.band figure { height: clamp(320px, 52vw, 640px); }
.band-cap { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; margin-top: 28px; }
.band-cap p:last-child { font: 400 clamp(24px, 2.6vw, 34px)/1.3 var(--serif); letter-spacing: -0.01em; max-width: 880px; }
@media (max-width: 900px) { .band-cap { grid-template-columns: 1fr; gap: 12px; } .band { padding-bottom: 64px; } }

.mosaic { display: grid; grid-template-columns: 5fr 4fr 4fr; grid-template-rows: 300px 300px; gap: 16px; margin-top: 64px; }
.mosaic figure { position: relative; overflow: hidden; }
.mosaic .m0 { grid-row: 1 / span 2; }
.mosaic .m3 { grid-column: 2 / span 2; }
.mosaic figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 10px 16px 0 0; font: 400 20px/1.2 var(--serif); }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; gap: 10px; } .mosaic .m0 { grid-column: 1 / -1; grid-row: auto; } .mosaic .m3 { grid-column: 1 / -1; } .mosaic figcaption { font-size: 16px; padding: 8px 12px 0 0; } }

.svc-photo { height: clamp(240px, 38vw, 480px); margin-bottom: 0; }
.svc-photo figcaption { font: 400 12.5px var(--mono); color: var(--ink-3); padding: 12px 0 0; }
.svc-photo + .doc, .wrap:has(.svc-photo) + .wrap .doc { border-top: 0; }
.svc-photo { margin-bottom: 40px; }
.svc-photo { height: auto; }
.svc-photo img { height: clamp(240px, 38vw, 480px); }
.band figure { height: auto; }
.band figure img { height: clamp(320px, 52vw, 640px); }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .mosaic figure { grid-row: auto !important; grid-column: auto; aspect-ratio: 1; }
  .mosaic .m0, .mosaic .m3 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}


/* ---------- Paleta: acentos de marca y ritmo de secciones ---------- */
.sec.alt { background: var(--sand); border-top-color: var(--rule); }
.sec.alt .tbl.cmp th:last-child, .sec.alt .tbl.cmp td:last-child { background: var(--white); }
.label { color: var(--blue-ink); }
.hero .label, .page-head .label { color: var(--blue-ink); }
.crumbs { color: var(--ink-3); }
.facts { border-top-color: var(--navy); }
.facts b { color: var(--navy); }
.toc-box a i, .dd-menu a i, .steps i, .items li::before, .how li::before, .prose h2 i, .tcard i { color: var(--blue-ink); }
.tcard i { border-top-color: var(--navy); }
.tbl, .steps, .items, .faq, .how li:first-child, .cost { border-top-color: var(--navy) !important; }
.tbl td.name { color: var(--navy); }
.tbl.cmp th:last-child { color: var(--blue-ink); }
.tbl.cmp th:last-child, .tbl.cmp td:last-child { background: var(--blue-tint); }
.faq summary::after { color: var(--blue-ink); }
.link { text-decoration-color: rgba(31,95,209,.35); }
.link:hover { text-decoration-color: var(--blue-ink); color: var(--blue-ink); }
.arrow-link, .side-rel a:hover { color: var(--blue-ink); }
.toc-box a:hover svg, .side-rel a:hover svg { color: var(--blue-ink); }
.btn-line:hover { background: var(--navy); border-color: var(--navy); }
.btn-line { color: var(--navy); border-color: var(--navy); }
.sectors { color: var(--navy); }
.hero h1 em, .page-head h1 em { color: var(--navy); }
.mosaic figcaption { background: var(--paper); color: var(--navy); }
.sec.alt .mosaic figcaption { background: var(--sand); }
.closing h2 { color: var(--on-navy); }
.side-box h3 { color: var(--on-navy); }
.ftr-bottom { color: var(--on-navy-3); }
.ficha h2, .toc-box h2 { background: var(--navy); color: var(--on-navy); border-bottom-color: var(--navy); }
.toc-box h2 span:last-child { color: var(--blue); }
.doc-nav a.on, .doc-nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--blue); }
