/* =========================================================
   PREGUNTAS FRECUENTES (2026-11-05)
   Prototipo: https://claude.ai/artifact/CsP2hyp87CFg584Smm1ekL
   Todo cuelga de .pf-page. Los <button> llevan display/align/padding
   explícitos por la trampa de styles.css (button { display:inline-flex }).
   ========================================================= */
.pf-page {
    --pf-azul: #004A90;
    --pf-azul-noche: #041638;
    --pf-amarillo: #ffd60a;
    --pf-magenta: #D42E7D;
    --pf-magenta-osc: #b8236a;
    --pf-tinta: #111827;
    --pf-gris: #5b6474;
    --pf-linea: #e3e7ee;
    --pf-suave: #f4f6fa;
    --pf-celeste: #eef4fb;
    color: var(--pf-tinta);
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
.pf-page h1, .pf-page h2, .pf-page h3 { font-family: inherit; color: var(--pf-tinta); letter-spacing: 0; text-wrap: balance; }
.pf-page :focus-visible { outline: 3px solid var(--pf-amarillo); outline-offset: 2px; border-radius: 6px; }
.pf-page button { font-family: inherit; cursor: pointer; }
.pf-page [hidden] { display: none !important; }

/* ---------- Encabezado ---------- */
.pf-hero { background: var(--pf-suave); border-bottom: 1px solid var(--pf-linea); padding: 40px 0 34px; }
.pf-migas { display: flex; gap: 8px; font-size: 14px; color: var(--pf-gris); margin: 0 0 14px; padding: 0; list-style: none; }
.pf-migas a { color: var(--pf-gris); text-decoration: none; }
.pf-migas a:hover { color: var(--pf-azul); }
.pf-hero h1 { font-size: 40px; line-height: 1.1; font-weight: 900; margin: 0 0 8px; }
.pf-bajada { color: var(--pf-gris); font-size: 18px; margin: 0 0 24px; max-width: 60ch; }

.pf-buscador { position: relative; max-width: 720px; }
.pf-buscador > svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--pf-azul); pointer-events: none; }
.pf-buscador input {
    width: 100%; font: inherit; font-size: 18px; height: auto; line-height: 1.3;
    padding: 18px 110px 18px 56px; border: 2px solid var(--pf-linea); border-radius: 14px;
    background: #fff; color: var(--pf-tinta); box-shadow: 0 6px 20px rgba(4, 22, 56, .06);
    -webkit-appearance: none; appearance: none;
}
.pf-buscador input::-webkit-search-cancel-button { display: none; }
.pf-buscador input:focus { outline: none; border-color: var(--pf-amarillo); box-shadow: 0 0 0 4px rgba(255, 214, 10, .25); }
.pf-buscador .pf-limpiar {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    border: 0; background: var(--pf-suave); color: var(--pf-gris); border-radius: 8px;
    padding: 8px 12px; font-size: 14px; font-weight: 700; line-height: 1;
    display: none; align-items: center; justify-content: center;
}
.pf-buscador.pf-con-texto .pf-limpiar { display: flex; }

.pf-sugeridas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; font-size: 14px; color: var(--pf-gris); }
.pf-sugeridas button {
    border: 1px solid var(--pf-linea); background: #fff; color: var(--pf-tinta); border-radius: 999px;
    padding: 7px 14px; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.pf-sugeridas button:hover { border-color: var(--pf-azul); color: var(--pf-azul); }

/* ---------- Temas ---------- */
.pf-temas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 32px 0 0; }
.pf-tema {
    border: 1px solid var(--pf-linea); background: #fff; border-radius: 14px; padding: 18px 16px;
    text-align: left; display: grid; gap: 8px; align-content: start; justify-items: start; color: var(--pf-tinta);
    line-height: 1.25; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pf-tema:hover { border-color: var(--pf-azul); box-shadow: 0 8px 20px rgba(0, 74, 144, .10); transform: translateY(-2px); }
.pf-tema.pf-activo { border-color: var(--pf-azul); background: var(--pf-celeste); box-shadow: inset 0 0 0 1px var(--pf-azul); }
.pf-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--pf-celeste); color: var(--pf-azul); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-ico svg { width: 22px; height: 22px; }
.pf-tema.pf-activo .pf-ico { background: var(--pf-azul); color: #fff; }
.pf-tema strong { font-size: 15px; }
.pf-tema small { color: var(--pf-gris); font-size: 13px; }

/* ---------- Más consultadas (magenta del botón Buscar) ---------- */
.pf-top { margin: 36px 0 0; }
.pf-sec-titulo { font-size: 22px; font-weight: 900; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pf-sec-titulo small { font-weight: 400; color: var(--pf-gris); font-size: 14px; }
.pf-top-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pf-top-card {
    border-radius: 14px; background: var(--pf-magenta); color: #fff; text-decoration: none;
    padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
    min-height: 124px; box-shadow: 0 6px 16px rgba(212, 46, 125, .18); transition: background .15s, transform .15s;
}
.pf-top-card:hover { background: var(--pf-magenta-osc); color: #fff; transform: translateY(-2px); }
.pf-top-card span { font-size: 16px; font-weight: 700; line-height: 1.3; }
.pf-top-card em { font-style: normal; font-size: 13px; font-weight: 900; color: #fff; opacity: .9; }
.pf-top-card:hover em { opacity: 1; text-decoration: underline; text-decoration-color: var(--pf-amarillo); text-underline-offset: 3px; }

/* ---------- Cuerpo ---------- */
.pf-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 40px 0 72px; align-items: start; }
.pf-grupo { margin-bottom: 36px; scroll-margin-top: 80px; }
.pf-grupo h2 { font-size: 24px; font-weight: 900; margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.pf-grupo h2 .pf-ico { width: 34px; height: 34px; border-radius: 9px; }
.pf-grupo h2 .pf-ico svg { width: 18px; height: 18px; }
.pf-grupo > p { margin: 0 0 14px; color: var(--pf-gris); }

.pf-preg { border: 1px solid var(--pf-linea); border-radius: 12px; margin-bottom: 10px; background: #fff; scroll-margin-top: 80px; transition: border-color .15s, box-shadow .15s; }
.pf-preg[open] { border-color: #b9cbe2; box-shadow: 0 8px 24px rgba(4, 22, 56, .07); }
.pf-preg.pf-resaltada { animation: pf-resaltar 1.6s ease-out; }
@keyframes pf-resaltar { 0% { box-shadow: 0 0 0 4px rgba(255, 214, 10, .8); } 100% { box-shadow: 0 8px 24px rgba(4, 22, 56, .07); } }
.pf-preg summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--pf-tinta); }
.pf-preg summary::-webkit-details-marker { display: none; }
.pf-preg summary::marker { content: ""; }
.pf-preg summary:hover { color: var(--pf-azul); }
.pf-mas { margin-left: auto; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--pf-suave); color: var(--pf-azul); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.pf-mas svg { width: 14px; height: 14px; }
.pf-preg[open] .pf-mas { transform: rotate(45deg); background: var(--pf-azul); color: #fff; }

.pf-resp { padding: 0 20px 18px; color: #2b3445; }
.pf-rt { max-width: 72ch; }
.pf-rt p { margin: 0 0 10px; font-size: 16px; color: #2b3445; }
.pf-rt a { color: var(--pf-azul); text-decoration: underline; }
.pf-rt ul { margin: 0 0 12px; padding-left: 22px; list-style: disc; }
.pf-rt ul li { display: list-item; list-style: disc; margin-bottom: 4px; }
.pf-rt ol.pf-pasos { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: pf-paso; display: grid; gap: 8px; }
.pf-rt ol.pf-pasos li { counter-increment: pf-paso; display: flex; gap: 12px; align-items: baseline; margin: 0; }
.pf-rt ol.pf-pasos li::before {
    content: counter(pf-paso); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: var(--pf-amarillo); color: #082a5e; font-weight: 900; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center; transform: translateY(-1px);
}
.pf-dato { display: inline-block; background: var(--pf-celeste); color: var(--pf-azul); font-weight: 900; border-radius: 6px; padding: 1px 8px; }
.pf-nota { background: var(--pf-suave); border-left: 3px solid var(--pf-azul); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: 15px; margin: 0 0 12px; }
.pf-nota-alerta { border-left-color: var(--pf-magenta); }
.pf-page mark.pf-hit { background: rgba(255, 214, 10, .55); color: inherit; border-radius: 3px; padding: 0; }

.pf-resp-pie { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; border-top: 1px solid var(--pf-linea); padding-top: 14px; margin-top: 6px; }
.pf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1;
    border-radius: 999px; padding: 12px 20px; font-weight: 900; font-size: 14px; text-decoration: none; border: 0;
}
.pf-btn-azul { background: var(--pf-azul); color: #fff; }
.pf-btn-azul:hover { background: #003a73; color: #fff; }
.pf-btn-mg { background: var(--pf-magenta); color: #fff; }
.pf-btn-mg:hover { background: var(--pf-magenta-osc); color: #fff; }
.pf-btn-borde { background: #fff; color: var(--pf-azul); box-shadow: inset 0 0 0 1.5px var(--pf-azul); }
.pf-btn-borde:hover { background: var(--pf-celeste); color: var(--pf-azul); }
.pf-resp-acc { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--pf-gris); flex-wrap: wrap; }
.pf-lnk { border: 0; background: none; color: var(--pf-gris); font-size: 13px; padding: 4px 0; display: inline-flex; gap: 6px; align-items: center; justify-content: center; line-height: 1; }
.pf-lnk:hover { color: var(--pf-azul); }
.pf-lnk svg { width: 14px; height: 14px; }
.pf-voto { display: inline-flex; gap: 6px; align-items: center; }
.pf-voto button { border: 1px solid var(--pf-linea); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--pf-tinta); display: flex; align-items: center; justify-content: center; line-height: 1; }
.pf-voto button:hover { border-color: var(--pf-azul); }
.pf-voto a { color: var(--pf-azul); text-decoration: underline; }
.pf-gracias { color: #1f7a3a; font-weight: 700; }

.pf-resultado { font-size: 15px; color: var(--pf-gris); margin: 0 0 16px; display: none; }
.pf-resultado .pf-lnk { display: inline-flex; font-size: 15px; color: var(--pf-azul); font-weight: 700; }
.pf-vacio { border: 2px dashed var(--pf-linea); border-radius: 14px; padding: 32px; text-align: center; display: none; }
.pf-vacio h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.pf-vacio p { margin: 0 0 16px; color: var(--pf-gris); }

/* ---------- Lateral ---------- */
.pf-lateral { position: sticky; top: 70px; display: grid; gap: 16px; }
.pf-card-ayuda { background: var(--pf-azul-noche); color: #fff; border-radius: 16px; padding: 24px; position: relative; overflow: hidden; }
.pf-card-ayuda::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #ffd60a, #e6197d, #2ea3ff); }
.pf-card-ayuda h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; color: #fff; }
.pf-card-ayuda p { margin: 0 0 18px; color: #c4cee0; font-size: 15px; }
.pf-canal { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px 14px; color: #fff; text-decoration: none; margin-bottom: 10px; }
.pf-canal:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.pf-ci { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-ci svg { width: 18px; height: 18px; }
.pf-ci-am { background: var(--pf-amarillo); }
.pf-ci-mg { background: var(--pf-magenta); }
.pf-canal strong { display: block; font-size: 15px; color: #fff; }
.pf-canal small { display: block; color: #c4cee0; font-size: 13px; line-height: 1.35; }
.pf-horario { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 16px; padding-top: 14px; font-size: 14px; color: #c4cee0; display: grid; gap: 4px; }
.pf-horario b { color: #fff; }
.pf-card-nuevo { border: 1px solid var(--pf-linea); border-radius: 16px; padding: 22px; background: #fff; }
.pf-card-nuevo h3 { margin: 0 0 12px; font-size: 17px; font-weight: 900; }
.pf-card-nuevo ol { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: pf-n; font-size: 15px; }
.pf-card-nuevo li { counter-increment: pf-n; display: flex; gap: 10px; align-items: baseline; }
.pf-card-nuevo li::before {
    content: counter(pf-n); width: 22px; height: 22px; border-radius: 50%; background: var(--pf-amarillo); color: #082a5e;
    font-weight: 900; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transform: translateY(-1px);
}
.pf-card-nuevo .pf-btn { width: 100%; }

/* ---------- Aviso "Link copiado" ---------- */
.pf-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 9999;
    background: var(--pf-azul-noche); color: #fff; padding: 12px 20px; border-radius: 999px;
    font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    max-width: calc(100% - 32px); word-break: break-all;
}
.pf-toast.pf-ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .pf-temas { grid-template-columns: repeat(3, 1fr); }
    .pf-top-grid { grid-template-columns: repeat(3, 1fr); }
    .pf-cuerpo { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
    .pf-lateral { top: 20px; }
}
@media (max-width: 860px) {
    .pf-cuerpo { grid-template-columns: 1fr; padding-top: 28px; }
    .pf-lateral { position: static; }
    .pf-top-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-hero { padding: 28px 0 26px; }
    .pf-hero h1 { font-size: 30px; }
    .pf-bajada { font-size: 16px; }
    .pf-grupo, .pf-preg { scroll-margin-top: 20px; }
}
@media (max-width: 520px) {
    .pf-temas { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pf-tema { padding: 14px 12px; }
    .pf-top-grid { grid-template-columns: 1fr; }
    .pf-top-card { min-height: 0; flex-direction: row; align-items: center; }
    .pf-top-card em { flex-shrink: 0; }
    .pf-buscador input { font-size: 16px; padding: 15px 90px 15px 50px; }
    .pf-buscador > svg { left: 16px; }
    .pf-preg summary { font-size: 16px; padding: 16px; }
    .pf-resp { padding: 0 16px 16px; }
    .pf-resp-acc { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-page * { transition: none !important; animation: none !important; }
}
