/* =========================================================
   ENCABEZADO DE PÁGINAS INTERIORES (.page-head)
   Pieza nueva, maqueta aprobada por Julian el 17/11/2026 (04_marca/maqueta-estructura.html).
   Mismo lenguaje que el hero de la demo: banda negra, cinta celeste con chevrons,
   título condensado en mayúsculas que sube por línea y bajada gris.
   A = banda negra (por defecto) · B = foto con la sombra del hero (.page-head--foto) ·
   C = transparente, usa el fondo del contenedor (.page-head--transparente).
   Pestaña Estilo del widget (03/12/2026): sus reglas van con {{WRAPPER}} (0,4,0) y siempre ganan.
   Las de acá que comparten propiedad con el panel quedan en 0,1,0 o menos (:where()).
   Posición vertical de la foto: --alv-foto-y, la escribe el control "Posición de la foto"
   del widget (CSS de Elementor por dispositivo); sin valor = centro.
   ========================================================= */
.page-head{position:relative;isolation:isolate;overflow:hidden;background:var(--black);color:var(--white);padding:calc(78px + clamp(56px,9vw,120px)) 0 clamp(48px,7vw,88px)}
.page-head__bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:60% var(--alv-foto-y,50%);transform:scale(1.04);transition:transform 1.6s var(--ease)}
.page-head__shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,.86) 0%,rgba(0,0,0,.55) 45%,rgba(0,0,0,.15) 80%),linear-gradient(0deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.3) 60%,rgba(0,0,0,.2) 100%)}
.page-head.is-revealed .page-head__bg{transform:none}
/* C = transparente: sin fondo propio, se ve el del contenedor de Elementor (rellenos y alturas iguales a A) */
.page-head.page-head--transparente{background:none}

/* Migas de pan */
.crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:8px;list-style:none;margin:0 0 26px;padding:0;font-size:.9rem;color:#B9C1C8}
.crumbs li{display:inline-flex;align-items:center;gap:8px}
.crumbs li+li::before{content:"";width:6px;height:10px;background:var(--sky);clip-path:polygon(0 0,100% 50%,0 100%,0 75%,55% 50%,0 25%)}
.crumbs a{text-decoration:none;transition:color .3s}
.crumbs a:hover{color:var(--white)}
.crumbs :where([aria-current]){color:var(--white);font-weight:600}

/* Cinta: mismas reglas que .ribbon del hero (hero.css), acotadas a la banda */
.page-head .ribbon{display:inline-flex;align-items:center;gap:10px;margin:0 0 22px}
:where(.page-head) .ribbon__band{position:relative;padding:8px 26px 8px 16px;background:var(--sky);color:var(--black);font-weight:700;font-size:.95rem;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%,8px 50%)}

/* Título y bajada */
.page-head__row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px 56px}
.page-head__title{margin:0;font-size:clamp(2.8rem,6.6vw,6.4rem);font-stretch:72%;font-variation-settings:"wdth" 72;font-weight:900;line-height:.9;letter-spacing:-.005em;text-transform:uppercase}
.page-head__title .line{display:block;overflow:hidden;padding:.14em 0 .04em;margin:-.14em 0 -.04em}
.page-head__lead{margin:0;max-width:44ch;font-size:clamp(1.02rem,1.4vw,1.18rem);color:rgba(255,255,255,.82)}

/* Entrada (encabezado.js agrega .is-revealed): igual que el hero. Sin JS se ve todo. */
.page-head.is-listo .page-head__title .line>span{display:block;transform:translateY(120%);opacity:0;transition:transform 1.15s var(--ease),opacity .4s}
.page-head.is-listo .ribbon,.page-head.is-listo .page-head__lead,.page-head.is-listo .crumbs{opacity:0;transform:translateY(14px);transition:opacity .7s .35s,transform .9s .35s var(--ease)}
.page-head.is-revealed .page-head__title .line>span,.page-head.is-revealed .ribbon,.page-head.is-revealed .page-head__lead,.page-head.is-revealed .crumbs{opacity:1;transform:none}
.page-head.is-revealed .page-head__title .line:nth-child(2)>span{transition-delay:.1s}
.page-head.is-revealed .page-head__title .line:nth-child(3)>span{transition-delay:.2s}

@media (max-width:640px){
  :where(.page-head) .ribbon__band{font-size:.8rem;white-space:nowrap}
  .page-head .ribbon .chevrons{display:none}
  /* En celular los renglones del título corren seguidos (balanceados) para que no queden
     palabras sueltas; la entrada es solo con opacidad (transform no aplica a inline). */
  .page-head__title{text-wrap:balance}
  .page-head .page-head__title .line,.page-head.is-listo .page-head__title .line>span{display:inline;padding:0;margin:0;overflow:visible}
}
