/* Branding +50 R18 — optimización vertical/responsive para cinco plantillas.
   Principio: compactar espacios innecesarios sin fijar alturas que recorten contenido.
   El contenido mantiene flujo natural y el scroll de página se usa cuando es necesario. */

/* Marco general: reduce márgenes del escenario y conserva ancho fluido. */
.topbar, .stage { width:min(1200px, calc(100% - 40px)); max-width:100%; }
.stage { padding-top:12px; padding-bottom:12px; }
.eyebrow { margin-bottom:0; }
.value-card { min-width:0; }
.profile-panel { min-width:0; }
.identity-row, .primary-actions, .feature-rail, .micro-experience, .contact-strip { min-width:0; }
.value-statement, .profile-role, .panel-lead, .panel-copy { overflow-wrap:anywhere; }

/* Grandes pantallas: un poco menos de altura en las composiciones apiladas. */
@media (min-width:951px) {
  body.territory-minimal .value-card { min-height:580px; }
  body.territory-minimal .portrait-panel { min-height:580px; }
  body.territory-minimal .profile-panel { padding-top:19px; }
  body.territory-minimal .identity-row { padding-top:5px; }
  body.territory-minimal .value-statement { margin-top:8px; line-height:1.45; }
  body.territory-minimal .primary-actions { margin-top:9px; margin-bottom:10px; }
  body.territory-minimal .feature-rail { margin-bottom:8px; }
  body.territory-minimal .micro-experience { padding-top:8px; }

  body.territory-editorial .value-card { grid-template-rows:minmax(630px,auto); min-height:630px; }
  body.territory-editorial .portrait-panel { min-height:630px; }
  body.territory-editorial .profile-panel { padding-top:21px; }
  body.territory-editorial .identity-block h1 { font-size:clamp(40px,3.5vw,53px); }
  body.territory-editorial .value-statement { margin-top:10px; line-height:1.55; }
  body.territory-editorial .primary-actions { margin-top:10px; margin-bottom:10px; }
  body.territory-editorial .feature-rail { margin-bottom:8px; }
  body.territory-editorial .micro-experience { padding-top:9px; }

  /* Expresión contemporánea cambia de hero apilado a tarjeta horizontal en escritorio. */
  body.territory-contemporary .value-card {
    display:grid; grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);
    grid-template-rows:minmax(610px,auto); align-items:stretch; height:auto; min-height:610px;
  }
  body.territory-contemporary .portrait-panel {
    grid-column:1; grid-row:1; width:auto; height:auto; min-height:610px; max-height:none;
    align-self:stretch; flex:none;
  }
  body.territory-contemporary .portrait { width:76%; height:100%; object-position:58% 20%; }
  body.territory-contemporary .portrait-copy { left:5%; right:37%; bottom:45px; }
  body.territory-contemporary .portrait-copy p { font-size:clamp(36px,3.6vw,50px); }
  body.territory-contemporary .portrait-caption { font-size:10px; line-height:1.45; }
  body.territory-contemporary .profile-panel {
    grid-column:2; grid-row:1; display:grid; align-content:start; height:auto; min-height:0;
    padding:18px 20px 0; overflow:visible;
  }
  body.territory-contemporary .profile-panel > * { min-width:0; }
  body.territory-contemporary .identity-row { grid-template-columns:minmax(0,1fr) 82px; gap:10px; padding-top:10px; }
  body.territory-contemporary .identity-block h1 { font-size:clamp(38px,3.6vw,53px); }
  body.territory-contemporary .profile-qr { width:82px; padding:5px 4px; }
  body.territory-contemporary .profile-qr-visual,
  body.territory-contemporary .profile-qr-visual img,
  body.territory-contemporary .profile-qr-visual canvas { width:68px!important; height:68px!important; max-width:68px; }
  body.territory-contemporary .value-statement { grid-column:1/-1; margin-top:9px; font-size:10px; line-height:1.5; }
  body.territory-contemporary .primary-actions { margin:10px 0 9px; }
  body.territory-contemporary .button { min-height:39px; padding-inline:10px; }
  body.territory-contemporary .feature-rail { margin-bottom:9px; gap:6px; }
  body.territory-contemporary .feature-card { padding:8px; }
  body.territory-contemporary .feature-description { font-size:8px; }
  body.territory-contemporary .micro-experience { padding-top:10px; }
  body.territory-contemporary .tabs { margin-top:7px; gap:12px; }
  body.territory-contemporary .tab-panel { min-height:78px; padding:7px 0; }
  body.territory-contemporary .panel-lead { font-size:16px; }
  body.territory-contemporary .panel-copy { font-size:9px; line-height:1.4; }
  body.territory-contemporary .contact-strip { min-height:40px; }

  body.territory-bauhaus .value-card { min-height:600px; }
  body.territory-bauhaus .portrait-panel { min-height:600px; }
  body.territory-bauhaus .profile-panel { padding-top:20px; }
  body.territory-bauhaus .identity-row { padding-top:7px; }
  body.territory-bauhaus .value-statement { margin-top:9px; line-height:1.5; }
  body.territory-bauhaus .primary-actions { margin:10px 0 9px; }
  body.territory-bauhaus .feature-rail { margin-bottom:8px; }
  body.territory-bauhaus .micro-experience { padding-top:8px; }

  body.territory-neo-minimal .profile-panel { padding-top:22px; padding-right:clamp(24px,3vw,42px); }
  body.territory-neo-minimal .profile-topline { padding-bottom:10px; }
  body.territory-neo-minimal .identity-row { padding-top:17px; gap:12px; }
  body.territory-neo-minimal .identity-kicker { margin-bottom:7px; }
  body.territory-neo-minimal .profile-role { margin-top:8px; line-height:1.45; }
  body.territory-neo-minimal .value-statement { margin-top:11px; line-height:1.55; }
  body.territory-neo-minimal .primary-actions { margin:10px 0 10px; gap:7px; }
  body.territory-neo-minimal .button { min-height:39px; }
  body.territory-neo-minimal .feature-rail { margin-bottom:8px; }
  body.territory-neo-minimal .feature-card { padding:8px; }
  body.territory-neo-minimal .micro-experience { padding-top:9px; }
  body.territory-neo-minimal .tabs { margin-top:7px; gap:13px; }
}

/* Escritorio de poca altura: margen más compacto, pero nunca se fija el alto del contenido. */
@media (min-width:691px) and (max-height:800px) {
  .topbar { height:56px; }
  .stage { padding-top:8px; padding-bottom:8px; }
  .stage-footer { padding-top:9px; }
  body.territory-minimal .value-card,
  body.territory-minimal .portrait-panel { min-height:550px; }
  body.territory-minimal .portrait-copy p { font-size:clamp(32px,3.4vw,44px); }
  body.territory-editorial .value-card { grid-template-rows:minmax(600px,auto); min-height:600px; }
  body.territory-editorial .portrait-panel { min-height:600px; }
  body.territory-editorial .portrait-copy p { font-size:clamp(30px,3vw,39px); }
  body.territory-bauhaus .value-card,
  body.territory-bauhaus .portrait-panel { min-height:570px; }
  body.territory-neo-minimal .profile-panel { padding-top:17px; }
}

/* Tablet: mantiene apilamiento donde una tarjeta en dos columnas quedaría demasiado estrecha. */
@media (max-width:950px) and (min-width:691px) {
  .topbar, .stage { width:min(100% - 32px,900px); }
  .stage { padding-top:10px; padding-bottom:10px; }
  body.territory-contemporary .portrait-panel { height:clamp(285px,39vw,335px); min-height:285px; max-height:335px; }
  body.territory-contemporary .portrait-copy { left:4.5%; right:36%; bottom:34px; }
  body.territory-contemporary .portrait-copy p { font-size:clamp(34px,5vw,48px); }
  body.territory-contemporary .profile-panel { display:flex; flex-direction:column; padding:16px 18px 0; }
  body.territory-contemporary .identity-row { grid-template-columns:minmax(0,1fr) 74px; gap:8px; padding-top:10px; }
  body.territory-contemporary .identity-block h1 { font-size:clamp(36px,5.5vw,48px); }
  body.territory-contemporary .profile-qr { width:74px; }
  body.territory-contemporary .profile-qr-visual,
  body.territory-contemporary .profile-qr-visual img,
  body.territory-contemporary .profile-qr-visual canvas { width:60px!important; height:60px!important; max-width:60px; }
  body.territory-contemporary .value-statement { margin-top:9px; font-size:10px; line-height:1.5; }
  body.territory-contemporary .primary-actions { margin:10px 0; }
  body.territory-contemporary .feature-rail { margin-bottom:9px; }
  body.territory-contemporary .micro-experience { padding-top:10px; }
  body.territory-contemporary .tabs { margin-top:6px; }
  body.territory-contemporary .tab-panel { min-height:76px; padding:7px 0; }
  body.territory-contemporary .contact-strip { min-height:40px; }
  body.territory-neo-minimal .value-card { grid-template-columns:minmax(0,1.05fr) minmax(260px,.95fr); }
  body.territory-neo-minimal .profile-panel { padding-top:20px; }
  body.territory-neo-minimal .identity-row { padding-top:13px; }
  body.territory-neo-minimal .value-statement { margin-top:9px; line-height:1.5; }
}

/* Móvil: altura natural, sin recortar imagen, texto, pestañas ni acciones secundarias. */
@media (max-width:690px) {
  html, body { height:auto!important; min-height:100%; overflow-x:clip; }
  body { min-height:100dvh; }
  .topbar { width:calc(100% - 28px); height:56px; min-height:56px; flex:0 0 auto; }
  .topbar-right { gap:7px; }
  .topbar-right .product-label { margin-right:0; max-width:108px; white-space:normal; line-height:1.25; }
  .stage { width:calc(100% - 24px); height:auto!important; min-height:calc(100dvh - 56px); display:block!important; padding:8px 0 16px!important; }
  .eyebrow { font-size:7px; letter-spacing:.8px; line-height:1.35; margin:0 0 7px; }
  .value-card { display:flex!important; flex-direction:column!important; height:auto!important; max-height:none!important; min-height:0!important; flex:0 0 auto!important; overflow:hidden; border-radius:6px; }
  .portrait-panel { position:relative; height:auto!important; min-height:0!important; max-height:none!important; width:auto; margin:0!important; flex:0 0 auto!important; overflow:hidden; }
  .profile-panel { display:flex; flex-direction:column; height:auto!important; min-height:0!important; max-height:none!important; flex:0 0 auto!important; overflow:visible!important; padding:13px 14px 0!important; }
  .profile-topline { min-height:18px; padding-bottom:7px; }
  .identity-row { grid-template-columns:minmax(0,1fr) 66px; align-items:center; gap:7px; padding-top:8px; }
  .identity-kicker { margin-bottom:4px; font-size:7px; line-height:1.25; letter-spacing:.25px; }
  .identity-block h1 { font-size:clamp(31px,8.5vw,39px)!important; line-height:.97; letter-spacing:-1.65px!important; overflow-wrap:normal; }
  .profile-role { margin-top:5px; font-size:9px; line-height:1.32; }
  .profile-qr { width:66px; padding:4px; gap:3px; }
  .profile-qr-visual,.profile-qr-visual img,.profile-qr-visual canvas,.profile-qr-visual .qr-placeholder { width:48px!important; height:48px!important; max-width:48px; }
  .profile-qr-caption,.profile-qr-state { font-size:6px; line-height:1.2; }
  .value-statement { margin-top:8px!important; font-size:10px!important; line-height:1.45!important; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
  .primary-actions { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:6px; margin:10px 0 10px!important; }
  .button { min-width:0; min-height:42px!important; padding:0 8px!important; gap:5px; font-size:9px; line-height:1.2; }
  .button svg { width:14px; height:14px; flex:0 0 14px; }
  .feature-rail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:6px; margin:0 0 10px!important; }
  .feature-card { grid-template-columns:24px minmax(0,1fr) 8px; gap:5px; min-height:0; padding:8px 6px!important; align-items:start; }
  .feature-icon { width:23px; height:23px; }
  .feature-kicker { font-size:6px; line-height:1.25; letter-spacing:.3px; }
  .feature-title { font-size:9px; line-height:1.25; overflow-wrap:anywhere; }
  .feature-description { display:none!important; }
  .feature-card .feature-status { display:block!important; margin-top:4px; font-size:7px; line-height:1.25; }
  .feature-arrow { font-size:13px; }
  .micro-experience { display:flex; flex:0 0 auto; flex-direction:column; min-height:0; padding-top:9px!important; }
  .micro-heading { font-size:7px; letter-spacing:.8px; }
  .tabs { display:flex; flex-wrap:wrap!important; gap:10px 13px; margin-top:7px!important; }
  .tab { flex:0 0 auto; padding-bottom:7px; font-size:9px!important; line-height:1.25; }
  .tab-panel { display:block!important; flex:0 0 auto!important; height:auto!important; min-height:0!important; max-height:none!important; overflow:visible!important; padding:8px 0!important; }
  .panel-lead { font-size:15px!important; line-height:1.25; }
  .panel-copy { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; margin-top:5px; font-size:9px!important; line-height:1.45!important; }
  .tab-panel[data-panel="proof"] .panel-copy { -webkit-line-clamp:2; }
  .skill-chips { gap:4px; margin-top:6px; }
  .skill-chips span { padding:4px 6px; font-size:8px; line-height:1.2; }
  .perspective-words { flex-wrap:wrap; gap:4px 6px; margin-top:6px; font-size:7px; }
  .contact-strip { display:flex; flex:0 0 auto; min-height:42px; margin-top:8px; gap:7px; padding-top:8px; }
  .contact-strip-label { max-width:48%; font-size:6px; line-height:1.3; letter-spacing:.25px; }
  .quick-links { gap:4px; }
  .quick-links a,.quick-links button { width:26px; height:26px; }
  .stage-footer { display:grid; grid-template-columns:1fr auto; gap:7px 9px; padding:12px 2px 0; margin-top:0; }
  .stage-footer p { grid-column:1/-1; grid-row:2; text-align:left; font-size:9px; line-height:1.45; }
  .footer-brand { font-size:13px; }
  .footer-note { grid-column:2; grid-row:1; font-size:6px; letter-spacing:.6px; }

  body.territory-minimal .portrait-panel { height:clamp(270px,76vw,310px)!important; min-height:270px!important; }
  body.territory-minimal .portrait-copy { left:19px; right:18px; bottom:36px; }
  body.territory-minimal .portrait-copy p { max-width:11ch; font-size:clamp(31px,8.4vw,39px); line-height:.99; margin:8px 0 7px; }
  body.territory-minimal .portrait-caption { font-size:9px; line-height:1.35; }
  body.territory-minimal .orbit-caption { left:18px; bottom:13px; }
  body.territory-minimal .profile-panel { padding:13px 14px 0!important; }

  body.territory-editorial .portrait-panel { order:0; height:clamp(360px,98vw,405px)!important; min-height:360px!important; }
  body.territory-editorial .portrait { top:52px; left:17px; right:17px; bottom:auto; width:calc(100% - 34px); height:calc(100% - 190px); object-position:50% 34%; }
  body.territory-editorial .portrait-panel::after { left:17px; right:17px; top:47px; }
  body.territory-editorial .portrait-topline { left:17px; right:17px; top:12px; }
  body.territory-editorial .portrait-copy { left:19px; right:19px; bottom:35px; }
  body.territory-editorial .portrait-copy p { max-width:10ch; font-size:clamp(28px,7.7vw,34px); line-height:1.02; margin:7px 0; }
  body.territory-editorial .portrait-caption { font-size:9px; line-height:1.35; }
  body.territory-editorial .profile-panel { order:1; padding:13px 14px 0!important; }
  body.territory-editorial .identity-row { grid-template-columns:minmax(0,1fr) 62px; }
  body.territory-editorial .identity-block h1 { font-size:clamp(31px,8.4vw,39px)!important; }
  body.territory-editorial .profile-qr { width:62px; }
  body.territory-editorial .profile-qr-visual,body.territory-editorial .profile-qr-visual img,body.territory-editorial .profile-qr-visual canvas { width:46px!important; height:46px!important; max-width:46px; }
  body.territory-editorial .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }

  body.territory-contemporary .portrait-panel { order:0; height:clamp(280px,76vw,315px)!important; min-height:280px!important; max-height:none!important; }
  body.territory-contemporary .portrait { left:auto; right:0; width:72%; height:100%; object-position:59% 17%; }
  body.territory-contemporary .portrait-copy { left:4.5%; right:34%; bottom:35px; }
  body.territory-contemporary .portrait-copy p { font-size:clamp(31px,8vw,38px); line-height:.98; letter-spacing:-.055em; margin:9px 0 7px; }
  body.territory-contemporary .portrait-caption { font-size:8px; line-height:1.35; }
  body.territory-contemporary .profile-panel { order:1; display:flex; padding:13px 14px 0!important; }
  body.territory-contemporary .identity-row { grid-template-columns:minmax(0,1fr) 62px; }
  body.territory-contemporary .identity-block h1 { font-size:clamp(31px,8.4vw,39px)!important; }
  body.territory-contemporary .profile-qr { width:62px; }
  body.territory-contemporary .profile-qr-visual,body.territory-contemporary .profile-qr-visual img,body.territory-contemporary .profile-qr-visual canvas { width:46px!important; height:46px!important; max-width:46px; }
  body.territory-contemporary .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  body.territory-contemporary .button-primary { font-size:9px; }

  body.territory-bauhaus .portrait-panel { height:clamp(270px,74vw,305px)!important; min-height:270px!important; }
  body.territory-bauhaus .portrait-copy { left:18px; right:16px; bottom:35px; }
  body.territory-bauhaus .portrait-copy p { max-width:10ch; font-size:clamp(31px,8vw,38px); line-height:.98; margin:8px 0 7px; }
  body.territory-bauhaus .portrait-caption { font-size:9px; line-height:1.35; }
  body.territory-bauhaus .profile-panel { padding:13px 14px 0!important; }
  body.territory-bauhaus .identity-row { grid-template-columns:minmax(0,1fr) 62px; }
  body.territory-bauhaus .identity-block h1 { font-size:clamp(31px,8.4vw,39px)!important; }
  body.territory-bauhaus .profile-qr { width:62px; }
  body.territory-bauhaus .profile-qr-visual,body.territory-bauhaus .profile-qr-visual img,body.territory-bauhaus .profile-qr-visual canvas { width:46px!important; height:46px!important; max-width:46px; }
  body.territory-bauhaus .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }

  body.territory-neo-minimal .portrait-panel { height:clamp(260px,68vw,300px)!important; min-height:260px!important; max-height:none!important; margin:7px 7px 0!important; }
  body.territory-neo-minimal .portrait { inset:6px; width:calc(100% - 12px); height:calc(100% - 12px); }
  body.territory-neo-minimal .portrait-overlay { inset:6px; }
  body.territory-neo-minimal .portrait-topline { left:18px; right:18px; top:20px; }
  body.territory-neo-minimal .portrait-copy { left:19px; right:17px; bottom:32px; }
  body.territory-neo-minimal .portrait-copy p { max-width:11ch; margin:8px 0 7px; font-size:clamp(28px,7.6vw,34px); line-height:1; }
  body.territory-neo-minimal .portrait-caption { font-size:8px; line-height:1.35; }
  body.territory-neo-minimal .orbit-caption { left:18px; bottom:14px; }
  body.territory-neo-minimal .profile-panel { order:1; padding:14px 14px 0!important; }
  body.territory-neo-minimal .identity-row { grid-template-columns:minmax(0,1fr) 62px; padding-top:9px; }
  body.territory-neo-minimal .identity-block h1 { font-size:clamp(31px,8.4vw,39px)!important; letter-spacing:-1.5px!important; }
  body.territory-neo-minimal .profile-qr { width:62px; }
  body.territory-neo-minimal .profile-qr-visual,body.territory-neo-minimal .profile-qr-visual img,body.territory-neo-minimal .profile-qr-visual canvas { width:46px!important; height:46px!important; max-width:46px; }
  body.territory-neo-minimal .value-statement { line-height:1.45!important; }
  body.territory-neo-minimal .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}

@media (max-width:390px) {
  .topbar { width:calc(100% - 20px); }
  .topbar-right { gap:5px; }
  .topbar-right .product-label { max-width:90px; font-size:6px; }
  .brand-copy, .brand-divider { display:none; }
  .stage { width:calc(100% - 20px); }
  .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .primary-actions { gap:5px; }
  .button { padding-inline:6px!important; font-size:8px; }
  .feature-card { grid-template-columns:23px minmax(0,1fr) 7px; }
  .feature-title { font-size:9px; }
  body.territory-editorial .portrait-panel { height:360px!important; }
  body.territory-editorial .portrait { height:calc(100% - 180px); }
  body.territory-editorial .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  body.territory-contemporary .portrait-panel { height:280px!important; }
  body.territory-contemporary .portrait-copy { right:31%; }
  body.territory-contemporary .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  body.territory-bauhaus .portrait-panel { height:270px!important; }
  body.territory-bauhaus .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  body.territory-neo-minimal .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}

@media (max-width:350px) {
  .feature-rail,
  body.territory-editorial .feature-rail,
  body.territory-contemporary .feature-rail,
  body.territory-bauhaus .feature-rail,
  body.territory-neo-minimal .feature-rail { grid-template-columns:1fr!important; }
}

@media (max-width:340px) {
  .primary-actions { grid-template-columns:1fr!important; }
  .identity-block h1 { font-size:29px!important; }
  .portrait-index { display:none; }
  body.territory-minimal .portrait-copy { right:14px; }
  body.territory-contemporary .portrait-copy { right:28%; }
}

@media (prefers-reduced-motion:reduce) {
  .value-card, .feature-card, .portrait-panel, .button { transition:none!important; }
}


/* Respeta el estado accesible de las pestañas: display:block!important no debe mostrar paneles inactivos. */
body .tab-panel[hidden] { display:none!important; }

/* QR en móvil: prioriza el módulo visual y una etiqueta legible, no texto comprimido. */
@media (max-width:690px) {
  .identity-row { grid-template-columns:minmax(0,1fr) 72px; }
  .profile-qr { width:72px!important; min-height:0; padding:5px 4px!important; gap:4px!important; }
  .profile-qr-visual,
  .profile-qr-visual img,
  .profile-qr-visual canvas,
  .profile-qr-visual .qr-placeholder { width:54px!important; height:54px!important; max-width:54px; }
  .profile-qr-caption { font-size:0!important; line-height:1!important; letter-spacing:0!important; }
  .profile-qr-caption::after { content:"VER CV"; display:block; font-size:7px; line-height:1.2; letter-spacing:.3px; font-weight:800; }
  .profile-qr-state { display:none!important; }
  body.territory-editorial .portrait-panel { height:clamp(340px,88vw,360px)!important; min-height:340px!important; }
  body.territory-editorial .portrait { object-position:52% 14%; }
}
@media (max-width:390px) {
  .identity-row { grid-template-columns:minmax(0,1fr) 70px; }
  .profile-qr { width:70px!important; }
  .profile-qr-visual,
  .profile-qr-visual img,
  .profile-qr-visual canvas,
  .profile-qr-visual .qr-placeholder { width:52px!important; height:52px!important; max-width:52px; }
  body.territory-editorial .portrait-panel { height:340px!important; min-height:340px!important; }
  body.territory-editorial .portrait { height:calc(100% - 68px)!important; object-position:52% 5%!important; }
}


/* Segunda pasada visual R18: alturas hero ajustadas y pie compacto en teléfono. */
@media (max-width:690px) {
  body.territory-minimal .portrait-panel { height:clamp(255px,68vw,280px)!important; min-height:255px!important; }
  body.territory-minimal .portrait { object-position:56% 8%!important; }
  body.territory-editorial .portrait-panel { height:clamp(330px,85vw,350px)!important; min-height:330px!important; }
  body.territory-editorial .portrait { height:calc(100% - 68px)!important; object-position:52% 5%!important; }
  body.territory-contemporary .portrait-panel { height:clamp(255px,67vw,270px)!important; min-height:255px!important; }
  body.territory-contemporary .portrait { object-position:59% 13%!important; }
  body.territory-bauhaus .portrait-panel { height:clamp(255px,66vw,270px)!important; min-height:255px!important; }
  body.territory-bauhaus .portrait { object-position:56% 8%!important; }
  body.territory-neo-minimal .portrait-panel { height:clamp(250px,65vw,265px)!important; min-height:250px!important; }
  body.territory-neo-minimal .portrait { object-position:56% 10%!important; }
  .stage-footer { display:flex!important; align-items:center; justify-content:space-between; gap:8px; padding-top:8px!important; }
  .stage-footer p, .stage-footer .footer-note { display:none!important; }
}

/* R18: modo móvil compacto para teléfonos habituales, sin altura fija ni clipping. */
@media (max-width:690px) {
  body.territory-minimal .portrait-panel { height:clamp(245px,64vw,260px)!important; min-height:245px!important; }
  body.territory-editorial .portrait-panel { height:clamp(295px,78vw,320px)!important; min-height:295px!important; }
  body.territory-contemporary .portrait-panel { height:clamp(245px,63vw,260px)!important; min-height:245px!important; }
  body.territory-bauhaus .portrait-panel { height:clamp(245px,63vw,260px)!important; min-height:245px!important; }
  body.territory-neo-minimal .portrait-panel { height:clamp(245px,63vw,260px)!important; min-height:245px!important; }
  .profile-topline { min-height:0!important; padding-bottom:4px!important; }
  .identity-row { padding-top:4px!important; }
  .value-statement { margin-top:6px!important; }
  .primary-actions { margin:8px 0 8px!important; }
  .feature-rail { margin-bottom:6px!important; }
  .feature-card { padding-top:7px!important; padding-bottom:7px!important; }
  .feature-card .feature-status { margin-top:3px!important; }
  .micro-experience { padding-top:6px!important; }
  .tabs { margin-top:5px!important; }
  .tab { padding-bottom:6px!important; }
  .tab-panel { padding:6px 0!important; }
  .contact-strip { min-height:39px!important; margin-top:5px!important; padding-top:5px!important; }
  .stage-footer { display:none!important; }
}

/* En Editorial, compacta el titular móvil para que conserve la cara despejada. */
@media (max-width:690px) {
  body.territory-editorial .photo-kicker { padding:5px 7px; font-size:6px; letter-spacing:.65px; }
  body.territory-editorial .portrait-copy p { max-width:14ch; font-size:clamp(27px,6.9vw,31px); line-height:1.02; margin:6px 0 5px; }
}
@media (max-width:690px) {
  body.territory-editorial .portrait-panel::before {
    content:""; position:absolute; z-index:2; top:52px; left:17px; right:17px; bottom:16px;
    pointer-events:none;
    background:linear-gradient(180deg,transparent 38%,rgba(41,70,56,.12) 60%,rgba(24,48,36,.72) 100%);
  }
}


/* R18 final polish: reclaim a little mobile height without hiding active content. */
@media (max-width:690px) {
  .stage { padding-bottom:10px!important; }

  /* Editorial: shorter cover while keeping the headline, descriptor and face inside the image. */
  body.territory-editorial .portrait-panel { height:clamp(265px,70vw,280px)!important; min-height:265px!important; }
  body.territory-editorial .portrait { height:calc(100% - 62px)!important; object-position:52% 5%!important; }
  body.territory-editorial .portrait-copy { bottom:28px!important; }
  body.territory-editorial .orbit-caption { bottom:8px!important; }
  body.territory-editorial .portrait-panel::before { top:45px; bottom:10px; }

  /* Contemporary minimal: reduce ornamental spacing rather than shrinking the type aggressively. */
  body.territory-neo-minimal .portrait-panel { height:clamp(238px,61vw,250px)!important; min-height:238px!important; }
  body.territory-neo-minimal .portrait-copy { bottom:27px!important; }
  body.territory-neo-minimal .profile-panel { padding-top:10px!important; }
  body.territory-neo-minimal .identity-row { padding-top:2px!important; }
  body.territory-neo-minimal .value-statement { margin-top:3px!important; line-height:1.4!important; }
  body.territory-neo-minimal .primary-actions { margin:6px 0!important; }
  body.territory-neo-minimal .feature-rail { gap:5px!important; margin-bottom:5px!important; }
  body.territory-neo-minimal .feature-card { padding-top:6px!important; padding-bottom:6px!important; }
  body.territory-neo-minimal .micro-experience { padding-top:4px!important; }
  body.territory-neo-minimal .contact-strip { min-height:36px!important; margin-top:3px!important; padding-top:4px!important; }
}

/* R18 compact tuning for common 360×800 phones. Keep content visible; reclaim spacing before shrinking type. */
@media (min-width:351px) and (max-width:380px) {
  .stage { padding-top:6px!important; padding-bottom:4px!important; }
  .eyebrow { margin-bottom:5px!important; }
  .profile-panel { padding-top:11px!important; }
  .profile-topline { padding-bottom:2px!important; }
  .identity-row { padding-top:2px!important; }
  .primary-actions { margin:6px 0!important; }
  .feature-rail { margin-bottom:4px!important; }
  .micro-experience { padding-top:4px!important; }
  .tabs { margin-top:4px!important; }
  .tab-panel { padding:5px 0!important; }
  .contact-strip { min-height:36px!important; margin-top:3px!important; padding-top:4px!important; }
  body.territory-editorial .portrait-panel { height:255px!important; min-height:255px!important; }
  body.territory-editorial .portrait { height:calc(100% - 58px)!important; }
  body.territory-contemporary .portrait-panel { height:240px!important; min-height:240px!important; }
  body.territory-bauhaus .portrait-panel { height:235px!important; min-height:235px!important; }
  body.territory-neo-minimal .portrait-panel { height:225px!important; min-height:225px!important; }
  body.territory-neo-minimal .portrait-copy { bottom:24px!important; }
  body.territory-neo-minimal .profile-panel { padding-top:8px!important; }
  body.territory-neo-minimal .identity-row { padding-top:0!important; }
  body.territory-neo-minimal .value-statement { margin-top:1px!important; }
  body.territory-neo-minimal .primary-actions { margin:4px 0!important; }
  body.territory-neo-minimal .micro-experience { padding-top:3px!important; }
  body.territory-neo-minimal .contact-strip { min-height:34px!important; margin-top:2px!important; padding-top:3px!important; }
}
