/* Diseño del Manual de Reloj (oct-2026) dentro del sitio de Manuales: el mismo del Manual de Flota
   (docs/flota/manual-flota.css), limitado a .mf. La página la arma tools/reloj/armar_pagina.py desde
   fuentes/reloj/index.html: no editar reloj/index.md a mano. */
.mf {
  --navy: #1F4E96; --navy-900: #0E2A57; --navy-50: #EEF3FB; --navy-100: #DCE6F6;
  --amber: #F5B800; --amber-50: #FFF8E1; --amber-700: #8A6400;
  --green: #12823B; --green-50: #E9F7EE; --red: #C62828;
  --ink: #1B2230; --ink-2: #3D4757; --muted: #6A7486; --line: #E2E7EF;
  font-size: 16px; line-height: 1.65; color: var(--ink);
}
/* Material agrega su propio título: la portada ya lo trae */
.md-content__inner > h1:first-child { display: none; }

.md-typeset .mf b, .md-typeset .mf strong { font-weight: 700; color: var(--ink); }
.md-typeset .mf p { margin: 0 0 14px; }
.md-typeset .mf a { color: var(--navy); }

/* Botón de PDF por rol, arriba a la derecha */
.md-typeset .mf .manual-actions { float: none; display: flex; justify-content: flex-end; margin: 0 0 14px; }
.md-typeset .mf .pmenu__item { text-decoration: none; }

/* ---------- Portada ---------- */
.md-typeset .mf .cover { position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 46px 46px 40px; margin-bottom: 34px;
  background: radial-gradient(900px 520px at 85% -10%, #3A6DBE 0%, var(--navy) 46%, var(--navy-900) 100%); }
.md-typeset .mf .cover::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 56px solid rgba(255,255,255,.06); }
.md-typeset .mf .cover .marca { display: inline-flex; align-items: center; gap: 14px; }
.md-typeset .mf .cover .marca img { height: 54px; width: auto; background: #fff; border-radius: 12px; padding: 7px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.md-typeset .mf .cover .marca span { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; padding-left: 14px; border-left: 2px solid rgba(255,255,255,.35); }
.md-typeset .mf .cover h1 { color: #fff; font-size: 54px; line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 26px 0 12px; }
.md-typeset .mf .cover .sub { font-size: 19px; opacity: .88; max-width: 600px; margin: 0; color: #fff; }
.md-typeset .mf .cover .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.md-typeset .mf .cover .meta span { background: rgba(255,255,255,.13); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; }
.md-typeset .mf .cover .fict { position: relative; z-index: 1; margin: 24px 0 0; font-size: 13px; opacity: .7; color: #fff; }

/* ---------- Capítulos y títulos ---------- */
.md-typeset .mf section.cap { margin-top: 64px; }
.md-typeset .mf .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.md-typeset .mf .kicker b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px; letter-spacing: 0; }
.md-typeset .mf h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 4px 0 10px; color: var(--ink); }
.md-typeset .mf .lead { font-size: 18px; color: var(--ink-2); margin: 0 0 22px; }
.md-typeset .mf h3 { font-size: 21px; letter-spacing: -.01em; font-weight: 800; margin: 38px 0 8px; color: var(--ink); }
.md-typeset .mf h4 { font-size: 16px; font-weight: 800; margin: 20px 0 4px; }
.md-typeset .mf ul.lista { margin: 0 0 16px; padding-left: 20px; }
.md-typeset .mf ul.lista li { margin: 4px 0; }
.md-typeset .mf ul.lista li::marker { color: var(--navy); }
.md-typeset .mf .ui { display: inline-block; font-weight: 700; font-size: .92em; color: var(--navy-900); background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 6px; padding: 0 6px; line-height: 1.5; white-space: nowrap; }
.md-typeset .mf .ruta { font-weight: 700; color: var(--ink); }
.md-typeset .mf .ruta i { font-style: normal; color: var(--muted); padding: 0 4px; }

/* Pasos numerados */
.md-typeset .mf ol.pasos { list-style: none; counter-reset: p; margin: 6px 0 20px; padding: 0; }
.md-typeset .mf ol.pasos > li { counter-increment: p; position: relative; padding: 0 0 14px 46px; margin: 0; }
.md-typeset .mf ol.pasos > li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.md-typeset .mf ol.pasos > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--navy-100); }

/* Avisos */
.md-typeset .mf .nota { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; border-radius: 12px; padding: 14px 18px; margin: 16px 0 20px; font-size: 15.5px; }
.md-typeset .mf .nota p:last-child { margin: 0; }
.md-typeset .mf .nota .i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.md-typeset .mf .nota .i svg { width: 17px; height: 17px; }
.md-typeset .mf .nota .tit { display: block; font-weight: 800; margin-bottom: 2px; }
.md-typeset .mf .nota.info { background: var(--navy-50); border: 1px solid var(--navy-100); } .md-typeset .mf .nota.info .i { background: var(--navy); color: #fff; }
.md-typeset .mf .nota.ojo { background: var(--amber-50); border: 1px solid #F3DD92; } .md-typeset .mf .nota.ojo .i { background: var(--amber); color: #3a2d00; }
.md-typeset .mf .nota.tip { background: var(--green-50); border: 1px solid #BFE5CB; } .md-typeset .mf .nota.tip .i { background: var(--green); color: #fff; }

/* Figuras: captura grande, borde fino, sin marco blanco */
.md-typeset .mf { counter-reset: fig; }
.md-typeset .mf figure.fig { display: block; margin: 20px 0 26px; width: auto; max-width: none; counter-increment: fig; }
.md-typeset .mf figure.fig .marco { border: 1px solid #D5DCE6; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px -14px rgba(16,24,40,.28); }
.md-typeset .mf figure.fig .marco a { display: block; }
.md-typeset .mf figure.fig .marco img { display: block; width: 100%; height: auto; margin: 0; }
.md-typeset .mf figure.fig.chica .marco { max-width: 460px; margin: 0 auto; }
.md-typeset .mf figure.fig.media .marco { max-width: 600px; margin: 0 auto; }
.md-typeset .mf figure.fig.mini .marco { max-width: 240px; margin: 0 auto; }
.md-typeset .mf figure.fig figcaption { font-size: 13.5px; color: var(--muted); margin: 10px auto 0; text-align: center; max-width: none; }
.md-typeset .mf figure.fig figcaption::before { content: "Figura " counter(fig) " · "; font-weight: 700; color: var(--ink-2); }

/* Video relacionado */
.md-typeset .mf .video { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 18px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.md-typeset .mf .video .play { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.md-typeset .mf .video .play svg { width: 11px; height: 11px; margin-left: 2px; }
.md-typeset .mf .video b { color: var(--ink); }

/* Tablas */
.md-typeset .mf .tabla { display: table; width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 22px; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.md-typeset .mf .tabla th { text-align: left; background: var(--navy); color: #fff; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; padding: 11px 14px; border: 0; }
.md-typeset .mf .tabla td { padding: 11px 14px; border: 0; border-top: 1px solid var(--line); vertical-align: top; }
.md-typeset .mf .tabla tr:nth-child(even) td { background: #FAFBFD; }
.md-typeset .mf .tabla td:first-child { font-weight: 700; white-space: nowrap; }
.md-typeset .mf .si { color: var(--green); font-weight: 800; } .md-typeset .mf .no { color: #A0A7B4; font-weight: 700; } .md-typeset .mf .lect { color: var(--amber-700); font-weight: 800; }

/* Tarjetas y chips */
.md-typeset .mf .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 20px; }
.md-typeset .mf .card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; border-top: 4px solid var(--navy); }
.md-typeset .mf .card.am { border-top-color: var(--amber); }
.md-typeset .mf .card .tag { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.md-typeset .mf .card h4 { margin: 4px 0 6px; font-size: 19px; }
.md-typeset .mf .card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.md-typeset .mf .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.md-typeset .mf .chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: #fff; border: 1px solid var(--line); }
.md-typeset .mf .chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Preguntas frecuentes */
.md-typeset .mf details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; box-shadow: none; font-size: inherit; padding: 0; }
.md-typeset .mf details.faq summary { cursor: pointer; list-style: none; padding: 15px 48px 15px 18px; font-weight: 700; position: relative; background: none; border: 0; }
.md-typeset .mf details.faq summary::before { display: none; }
.md-typeset .mf details.faq summary::-webkit-details-marker { display: none; }
.md-typeset .mf details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 24px; font-weight: 500; color: var(--navy); background: none; -webkit-mask: none; mask: none; transform: none; width: auto; height: auto; }
.md-typeset .mf details.faq[open] summary::after { content: "–"; }
.md-typeset .mf details.faq .r { padding: 0 18px 14px; color: var(--ink-2); }
.md-typeset .mf details.faq .r p:last-child { margin: 0; }

/* Lista de videos */
.md-typeset .mf .videos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.md-typeset .mf .videos > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.md-typeset .mf .videos .n { width: 32px; height: 32px; border-radius: 9px; background: var(--navy-50); color: var(--navy); font-weight: 800; display: grid; place-items: center; flex: none; }
.md-typeset .mf .videos .tx { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.md-typeset .mf .videos .tx small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.md-typeset .mf .videos .d { font-size: 13px; color: var(--muted); font-weight: 700; }
.md-typeset .mf .pie-doc { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media screen and (max-width: 760px) {
  .md-typeset .mf .cover { padding: 30px 22px 26px; border-radius: 16px; }
  .md-typeset .mf .cover h1 { font-size: 38px; }
  .md-typeset .mf h2 { font-size: 27px; }
  .md-typeset .mf .duo, .md-typeset .mf .videos { grid-template-columns: 1fr; }
  .md-typeset .mf .tabla { display: block; overflow-x: auto; font-size: 14px; }
}
/* Imprimir desde el navegador (lo normal es bajar el PDF ya armado del botón) */
@media print {
  .md-typeset .mf .manual-actions { display: none; }
  .md-typeset .mf section.cap { break-before: page; margin-top: 0; }
  .md-typeset .mf figure.fig, .md-typeset .mf .nota, .md-typeset .mf .card, .md-typeset .mf details.faq { break-inside: avoid; }
  .md-typeset .mf figure.fig .marco { box-shadow: none; }
  .md-typeset .mf .cover, .md-typeset .mf .kicker b, .md-typeset .mf ol.pasos > li::before, .md-typeset .mf .tabla th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Ajustes sobre los estilos generales del sitio */
.md-typeset .mf h2 { border: 0; padding: 0; }
.md-typeset .mf h2::before, .md-typeset .mf h2::after { display: none; }
.md-typeset .mf details.pmenu { border: 0; box-shadow: none; background: none; padding: 0; margin: 0; overflow: visible; font-size: inherit; }
.md-typeset .mf details.pmenu > summary { padding: .34rem .7rem; border-radius: var(--r-md, 8px); }
.md-typeset .mf details.pmenu > summary::before { display: none; }
