/**
 * Banner de páginas (inc/page-hero.php).
 * Legibilidad: capa en degradado marino más oscura abajo (donde va el texto) + sombra suave en el título.
 * Marca: azul #2e47ab · marino #0b1f33 · naranja #f7931e · Poppins / Montserrat.
 */
.tqph {
    position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 58vh, 560px);
    overflow: hidden; background: #0b1f33; color: #fff; isolation: isolate;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.tqph.is-plain { min-height: 300px; background: linear-gradient(135deg, #0b1f33 0%, #1f3284 100%); }
.tqph__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* Capa: deja ver la foto arriba y oscurece la franja del texto (contraste AA para texto blanco) */
.tqph__shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(11, 31, 51, .10) 0%, rgba(11, 31, 51, .25) 35%, rgba(11, 31, 51, .78) 78%, rgba(11, 31, 51, .92) 100%),
        linear-gradient(90deg, rgba(11, 31, 51, .55) 0%, rgba(11, 31, 51, 0) 65%);
}
.tqph.is-plain .tqph__shade { display: none; }
.tqph__inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 120px 24px 34px; }
.tqph__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.tqph__crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.tqph__crumbs a:hover { border-bottom-color: #f7931e; color: #fff; }
.tqph__crumbs [aria-current] { overflow: hidden; max-width: 60vw; white-space: nowrap; text-overflow: ellipsis; }
.tqph .tqph__title {
    max-width: 880px; margin: 0 0 12px; padding: 0; font-family: 'Poppins', sans-serif; font-weight: 800;
    font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.5px; color: #fff; text-align: left; text-transform: none;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .35);
}
.tqph__sub { max-width: 720px; margin: 0 0 20px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; font-weight: 500; color: #eef2f8; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.tqph__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.tqph .tqph__btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: #f7931e; color: #fff;
    font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(247, 147, 30, .35); transition: background .15s, transform .15s;
}
.tqph .tqph__btn:hover { background: #e07b06; color: #fff; transform: translateY(-1px); }
.tqph .tqph__btn.is-ghost { background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .85); box-shadow: none; backdrop-filter: blur(4px); }
.tqph .tqph__btn.is-ghost:hover { background: rgba(255, 255, 255, .22); }
.tqph__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); list-style: none; }
.tqph__trust li { display: flex; align-items: center; margin: 0; font-size: 13.5px; font-weight: 600; color: #e6ebf3; }
.tqph__trust i { margin-right: 7px; color: #f7931e; }
.tqph__trust a { color: inherit; text-decoration: none; }
.tqph__trust a:hover { color: #fff; text-decoration: underline; }
.tqph-anchor { display: block; position: relative; top: -110px; height: 0; visibility: hidden; }
/* Móvil: la foto va como franja visible arriba y el texto debajo, sobre fondo marino (siempre legible) */
@media (max-width: 767px) {
    .tqph { display: block; min-height: 0; }
    .tqph.is-plain { min-height: 0; }
    .tqph__img { position: relative; inset: auto; z-index: 0; display: block; height: 240px; }
    .tqph__shade { inset: 0 0 auto 0; height: 240px; z-index: 1; background: linear-gradient(180deg, rgba(11, 31, 51, 0) 50%, rgba(11, 31, 51, .9) 100%); }
    .tqph__inner { position: relative; z-index: 2; margin-top: -44px; padding: 0 16px 24px; }
    .tqph.is-plain .tqph__inner { margin-top: 0; padding-top: 28px; }
    .tqph__sub { font-size: 15px; }
    .tqph .tqph__btn { flex: 1 1 100%; justify-content: center; }
    .tqph__trust { gap: 6px 14px; }
    .tqph__trust li { font-size: 12.5px; }
}
