/* Culebra · Cabecera única, aplicada a todas las familias interiores.
   Una estructura, dos estados: foto real o superficie de color de la gama.
   No crea imágenes, no transforma fondos en fotos y no altera la portada. */
:root{
 --pg27-hero-paper:#f6f3ee;
 --pg27-hero-paper-alt:#f1ede6;
 --pg27-hero-ink:#3b261b;
 --pg27-hero-blue:#285068;
}
/* Fundamentos compartidos; se respetan las proporciones ya aprobadas por familia. */
body.pg2027-body :is(.pg27-sector-hero,.pg27-editorial-hero,.pg-interior-hero,.pg-workshops-hero){
 background:var(--pg27-hero-paper);
 color:var(--pg27-hero-ink);
 box-sizing:border-box;
}
body.pg2027-body :is(.pg27-sector-hero,.pg27-editorial-hero,.pg-interior-hero,.pg-workshops-hero) h1{
 font-family:"Playfair Display",Georgia,serif;
 font-weight:500;
 letter-spacing:-.025em;
 color:var(--pg27-hero-ink);
 max-width:100%;
 overflow-wrap:normal;
 text-wrap:pretty;
}
body.pg2027-body :is(.pg27-sector-hero,.pg27-editorial-hero,.pg-interior-hero,.pg-workshops-hero) :is(p,.pg-interior-lead){
 max-width:100%;
}
body.pg2027-body :is(.pg27-sector-hero,.pg27-editorial-hero,.pg-interior-hero,.pg-workshops-hero) :is(img,picture){
 max-width:100%;
}
/* Sin foto: fondo de papel, columna de texto útil y márgenes laterales reales. */
body.pg2027-body .pg-interior .pg-interior-hero{
 min-height:clamp(225px,26vw,355px);
 padding-block:clamp(32px,4.5vw,62px);
 margin:0;
 background:var(--pg27-hero-paper);
}
body.pg2027-body .pg-interior .pg-interior-hero>.pg-shell{
 width:min(calc(100% - 40px),1220px);
 margin-inline:auto;
}
body.pg2027-body .pg-interior .pg-interior-hero .pg-interior-lead{
 width:100%;
 max-width:100%;
}
body.pg2027-body .pg-interior .pg-interior-hero .pg-breadcrumb{
 margin-bottom:clamp(14px,2vw,26px);
}
/* Talleres: mismo fondo y jerarquía, sin inventar una fotografía.
   El panel auxiliar conserva contenido útil, no suplanta una imagen. */
body.pg2027-body .pg-workshops .pg-workshops-hero{
 background:var(--pg27-hero-paper);
 border-radius:0;
 padding:clamp(30px,4.5vw,58px);
 gap:clamp(22px,4vw,58px);
 margin-bottom:clamp(24px,3vw,40px);
}
body.pg2027-body .pg-workshops .pg-workshops-hero aside{
 background:var(--pg27-hero-paper-alt);
 border:1px solid rgba(59,38,27,.075);
 border-radius:7px;
 box-shadow:none;
}
body.pg2027-body .pg-workshops .pg-workshops-hero>div>p:not(.pg-eyebrow){
 max-width:100%;
}
/* Directorio de artesanos: mismo sistema, cabecera sin foto de relleno.
   Sin tocar las tarjetas del listado ya aprobado. */
/* ÚNICA cabecera Petit Comité: a sangre desde el menú,
   migas dentro, contenedor interior alineado con resto de la página. */
body.pg2027-body .pg-member-page.pg-comite-hub>.pg-comite-intro{
 display:block;width:100%;max-width:none;box-sizing:border-box;
 background:var(--pg27-hero-linen);
 border-radius:0;border:0;
 padding:clamp(29px,4.3vw,57px) 0 clamp(36px,4.5vw,61px);
 gap:0;margin:0 0 clamp(20px,3vw,36px);
}
body.pg2027-body .pg-member-page.pg-comite-hub>.pg-comite-intro>.pg-comite-hero-inner{
 width:min(calc(100% - 40px),1220px);max-width:1220px;margin-inline:auto;
}
body.pg2027-body .pg-member-page.pg-comite-hub .pg-comite-hero-grid{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.88fr);
 gap:clamp(22px,4vw,55px);align-items:center;
}
body.pg2027-body .pg-member-page.pg-comite-hub .pg-comite-intro .pg-member-breadcrumb{
 padding:0;margin:0 0 clamp(22px,2.5vw,32px);
}
body.pg2027-body .pg-member-page.pg-comite-hub .pg-comite-hero-grid>div:last-child p{
 max-width:100%;
}
@media(max-width:900px){
 body.pg2027-body .pg-member-page.pg-comite-hub .pg-comite-hero-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
 body.pg2027-body .pg-member-page.pg-comite-hub>.pg-comite-intro>.pg-comite-hero-inner{width:calc(100% - 32px)}
 body.pg2027-body .pg-member-page.pg-comite-hub>.pg-comite-intro{padding:28px 0 34px}
}
body.pg2027-body .pg-member-page.pg-comite-hub .pg-comite-intro h1{
 font-family:"Playfair Display",Georgia,serif;
 font-weight:500;color:var(--pg27-hero-ink);
}
body.pg2027-body .pg-member-page.pg-comite-hub .pg-comite-intro>div:last-child p{
 max-width:100%;
}
/* Fichas artesanas: imagen real, sin recortar personas. */
body.pg2027-body .pg-member-page.pg27-editorial-master .pg27-editorial-hero{
 background:var(--pg27-hero-paper);
}
body.pg2027-body .pg-member-page.pg27-editorial-master .pg27-editorial-cover img{
 height:auto;max-height:560px;object-fit:contain;object-position:center;
}
/* Artículos y oficios con foto: preservarla entera; sin foto no aparece hueco. */
body.pg2027-body .pg27-editorial-master .pg27-editorial-hero{
 background:var(--pg27-hero-paper);
}
body.pg2027-body .pg27-editorial-master .pg27-editorial-hero-grid:not(:has(.pg27-editorial-cover)){
 grid-template-columns:minmax(0,1fr);
}
body.pg2027-body .pg27-editorial-master .pg27-editorial-cover img{
 object-fit:contain;
 object-position:center;
}
/* Tienda en cuatro idiomas: exactamente la misma cabecera de la familia interior.
   Sin fotografía: plano crema de la gama, sin imagen ficticia ni cambio de catálogo. */
body.pg2027-body .pg-shop .pg-shop-hero{
 background:var(--pg27-hero-paper);
 color:var(--pg27-hero-ink);
 margin:0 0 clamp(28px,4vw,52px);
 padding:clamp(34px,4.8vw,65px) 0;
 width:100%;
 border:0;
}
body.pg2027-body .pg-shop .pg-shop-hero-inner{
 width:min(calc(100% - 40px),1220px);
 max-width:1220px;
 margin-inline:auto;
}
body.pg2027-body .pg-shop .pg-shop-hero h1{
 font:500 clamp(2.3rem,4.5vw,4.4rem)/1.13 "Playfair Display",Georgia,serif;
 letter-spacing:-.025em;
 color:var(--pg27-hero-ink);
 text-align:left;
 max-width:100%;
 margin:clamp(10px,1.5vw,18px) 0;
 text-wrap:pretty;
}
body.pg2027-body .pg-shop .pg-shop-hero>div>p:not(.pg-eyebrow){
 max-width:72ch;
 margin:0;
 text-align:left;
 font:400 clamp(.97rem,1.1vw,1.08rem)/1.75 "Work Sans",sans-serif;
 color:#62574f;
}
body.pg2027-body .pg-shop .pg-shop-hero>div>.pg-eyebrow{text-align:left}
body.pg2027-body .pg-shop .pg-shop-hero a{color:var(--pg27-hero-blue);text-underline-offset:3px}
@media(max-width:700px){
 body.pg2027-body .pg-shop .pg-shop-hero{padding:30px 0;margin-bottom:28px}
 body.pg2027-body .pg-shop .pg-shop-hero-inner{width:calc(100% - 32px)}
}
/* Cabeceras comerciales con foto: el sistema aprobado no cambia. */
body.pg2027-body .pg27-sector-page .pg27-sector-hero,
body.pg2027-body .pg27-sector-page .pg27-sector-copy{
 background:var(--pg27-hero-paper);
}
@media(max-width:700px){
 body.pg2027-body .pg-workshops .pg-workshops-hero{padding:24px 20px;gap:20px}
 body.pg2027-body .pg-interior .pg-interior-hero{min-height:0}
 body.pg2027-body .pg-interior .pg-interior-hero>.pg-shell{width:calc(100% - 32px)}
}
/* Culebra · RITMO DE PAPELES. Variación CURADA por tipología, no aleatoria.
   La primera sección y el hero nunca deben fusionarse visualmente.
   Misma gama en ES/CA/EN/FR; no afecta imágenes ni tarjetas destakdos.
   Tonos: blanco de taller, crema original, lino y arena muy clara. */
:root{
 --pg27-hero-white:#ffffff;
 --pg27-hero-linen:#f1ede6;
 --pg27-hero-sand:#eee7dd;
}
/* Blog: cabecera blanca frente a archivo cálido; la foto conserva su encuadre. */
body.pg2027-body .pg27-blog-archive .pg27-blog-hero{
 background:var(--pg27-hero-white);
 border-bottom:0;
}
/* Comercio: tienda crema y contacto lino/blanco según la sección posterior. */
body.pg2027-body .pg-shop .pg-shop-hero{
 background:var(--pg27-hero-linen);
}
body.pg2027-body .pg-b2b-page .pg-lead-hero.pg-shell,
body.pg2027-body .pg-b2b-page .pg-lead-hero-copy{
 background:var(--pg27-hero-linen);
}
body.pg2027-body .pg-contact-page .pg-contact-hero.pg-shell{
 background:var(--pg27-hero-sand);
}
/* Oficios e interiores: alternar por tipo, no por idioma ni por sesión. */
body.pg2027-body .pg27-sector-hotel .pg27-sector-hero,
body.pg2027-body .pg27-sector-hotel .pg27-sector-copy,
body.pg2027-body .pg27-sector-web .pg27-sector-hero,
body.pg2027-body .pg27-sector-web .pg27-sector-copy{
 background:var(--pg27-hero-white);
}
body.pg2027-body .pg27-sector-restaurant .pg27-sector-hero,
body.pg2027-body .pg27-sector-restaurant .pg27-sector-copy{
 background:var(--pg27-hero-linen);
}
body.pg2027-body .pg27-sector-unique .pg27-sector-hero,
body.pg2027-body .pg27-sector-unique .pg27-sector-copy{
 background:var(--pg27-hero-sand);
}
body.pg2027-body .pg-workshops .pg-workshops-hero{
 background:var(--pg27-hero-linen);
}
/* Talleres: cabecera ÚNICA a sangre, sin franja superior,
   con migas dentro. Mantener intactos los textos y el panel lateral. */
body.pg2027-body .pg-workshops>.pg-workshops-hero{
 display:block;width:100%;max-width:none;box-sizing:border-box;
 padding:clamp(30px,4.5vw,58px) 0 clamp(36px,5vw,66px);
 margin:0 0 clamp(22px,3vw,38px);gap:0;border:0;border-radius:0;
 background:var(--pg27-hero-linen);
}
body.pg2027-body .pg-workshops>.pg-workshops-hero>.pg-workshops-hero-inner{
 width:min(calc(100% - 40px),1220px);max-width:1220px;margin-inline:auto;
}
body.pg2027-body .pg-workshops .pg-workshops-hero .pg-workshops-breadcrumb{
 display:flex;align-items:center;flex-wrap:wrap;gap:10px;
 padding:0;margin:0 0 clamp(20px,2.5vw,32px);
 font:.75rem/1.6 "Work Sans",sans-serif;
}
body.pg2027-body .pg-workshops .pg-workshops-hero-grid{
 display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.65fr);
 align-items:center;gap:clamp(22px,4vw,58px);
}
body.pg2027-body .pg-workshops .pg-workshops-hero-grid>div>p:not(.pg-eyebrow){
 max-width:730px;font-size:1rem;line-height:1.8;color:#62564d;
}
@media(max-width:950px){
 body.pg2027-body .pg-workshops .pg-workshops-hero-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
 body.pg2027-body .pg-workshops>.pg-workshops-hero{
  padding:27px 0 37px;gap:0;
 }
 body.pg2027-body .pg-workshops>.pg-workshops-hero>.pg-workshops-hero-inner{
  width:calc(100% - 32px);
 }
}
body.pg2027-body .pg-member-page.pg-comite-hub .pg-comite-intro{
 background:var(--pg27-hero-linen);
}
/* El fondo del texto sigue siendo claro; se mantienen contraste y jerarquía. */
/* CULEBRA · Canonical header proportions for service and B2B pages.
   Content left, pure color on right, no unneeded media, same height in all locales. */
/* Referencia aprobada: Piezas únicas. Altura mínima única y contenido adaptable.
   No forzar 50/50 en páginas sin foto ni en las fichas de compra. */
:root{
 --pg27-interior-hero-height:clamp(285px,27vw,355px);
 /* H1 canónico: referencia Piezas únicas, sin cambios en la home. */
 --pg27-interior-h1:clamp(2.2rem,3.3vw,3.5rem);
 --pg27-interior-h1-mobile:clamp(2.05rem,7vw,3.1rem);
}
/* Un único contrato H1, aplicado SOLO a las cabeceras interiores.
   Respeta la home y los títulos funcionales de productos, carrito y checkout. */
body.pg2027-body main:not(.pg-home) :is(
 .pg27-sector-hero,.pg27-editorial-hero,.pg-interior-hero,.pg-shop-hero,
 .pg-comite-intro,.pg-workshops-hero,.pg-lead-hero,.pg-contact-hero,
 .pg27-blog-hero,.pg-history-hero,.pg-usa-hero,.pg-usa-form-head,
 .pg-commercial-split-hero
) h1{
 font-family:"Playfair Display",Georgia,serif!important;
 font-size:var(--pg27-interior-h1)!important;
 font-weight:500!important;line-height:1.12!important;
 letter-spacing:-.025em!important;
}
@media(max-width:700px){
 body.pg2027-body main:not(.pg-home) :is(
  .pg27-sector-hero,.pg27-editorial-hero,.pg-interior-hero,.pg-shop-hero,
  .pg-comite-intro,.pg-workshops-hero,.pg-lead-hero,.pg-contact-hero,
  .pg27-blog-hero,.pg-history-hero,.pg-usa-hero,.pg-usa-form-head,
  .pg-commercial-split-hero
 ) h1{font-size:var(--pg27-interior-h1-mobile)!important}
}

body.pg2027-body :is(.pg-interior .pg-interior-hero,.pg-shop .pg-shop-hero,.pg-workshops>.pg-workshops-hero,.pg-member-page.pg-comite-hub>.pg-comite-intro,.pg-b2b-page>.pg-lead-hero,.pg-contact-page>.pg-contact-hero,.pg27-blog-archive .pg27-blog-hero,.pg-history .pg-history-hero,.pg27-sector-page .pg27-sector-hero,.pg-usa-express .pg-usa-hero){min-height:var(--pg27-interior-hero-height);box-sizing:border-box}
@media(max-width:830px){body.pg2027-body :is(.pg-interior .pg-interior-hero,.pg-shop .pg-shop-hero,.pg-workshops>.pg-workshops-hero,.pg-member-page.pg-comite-hub>.pg-comite-intro,.pg-b2b-page>.pg-lead-hero,.pg-contact-page>.pg-contact-hero,.pg27-blog-archive .pg27-blog-hero,.pg-history .pg-history-hero,.pg27-sector-page .pg27-sector-hero,.pg-usa-express .pg-usa-hero){min-height:0}}

@media(min-width:831px){
 body.pg2027-body .pg27-sector-page .pg27-sector-hero{display:grid!important;grid-template-columns:50% 50%!important;min-height:var(--pg27-interior-hero-height)!important;height:auto!important;padding:0!important;gap:0!important}
 body.pg2027-body .pg27-sector-page .pg27-sector-copy{padding:clamp(24px,3vw,42px) clamp(24px,3.4vw,46px)!important;padding-left:max(4vw,calc((100vw - 1180px)/2))!important;max-width:100%!important;min-width:0!important}
 body.pg2027-body .pg27-sector-page .pg27-sector-visual{display:block!important;min-height:100%!important;height:auto!important;background:#E9E2D8!important}
 body.pg2027-body .pg27-sector-restaurant .pg27-sector-visual{background:#E5DBCF!important}
 body.pg2027-body .pg27-sector-unique .pg27-sector-visual{background:#EBDFCF!important}
 body.pg2027-body .pg27-sector-web .pg27-sector-visual{background:#E4E8E5!important}
 body.pg2027-body .pg27-sector-page .pg27-sector-hero h1{font-size:clamp(2.2rem,3.3vw,3.5rem)!important;line-height:1.12!important}
 body.pg2027-body .pg27-sector-page .pg27-sector-lead{font-size:clamp(.95rem,1.08vw,1.06rem)!important;line-height:1.55!important;max-width:52ch!important;margin-bottom:17px!important}
 body.pg2027-body .pg-b2b-page .pg-lead-hero.pg-shell{display:grid!important;grid-template-columns:50% 50%!important;width:100%!important;max-width:none!important;min-height:var(--pg27-interior-hero-height)!important;height:auto!important;margin:0!important;padding:0!important;align-items:stretch!important;gap:0!important;background:#F1EDE6!important}
 body.pg2027-body .pg-b2b-page .pg-lead-hero-copy{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;max-width:100%!important;margin:0!important;padding:clamp(23px,3vw,38px) clamp(22px,3vw,42px)!important;padding-left:max(4vw,calc((100vw - 1180px)/2))!important;background:#F1EDE6!important}
 body.pg2027-body .pg-b2b-page .pg-lead-hero-image{display:block!important;margin:0!important;padding:0!important;min-height:100%!important;background:#E5DBCF!important;box-shadow:none!important}
 body.pg2027-body .pg-b2b-page .pg-lead-hero-image>img,body.pg2027-body .pg-b2b-page .pg-lead-hero-image>figcaption{display:none!important}
 body.pg2027-body .pg-b2b-page .pg-lead-hero h1{font-size:clamp(2.1rem,3.2vw,3.4rem)!important;line-height:1.12!important;margin:10px 0!important}
 body.pg2027-body .pg-b2b-page .pg-lead-intro{font-size:clamp(.94rem,1vw,1.04rem)!important;line-height:1.55!important;margin-bottom:13px!important}
}
@media(max-width:830px){
 body.pg2027-body .pg27-sector-page .pg27-sector-hero{display:block!important;min-height:0!important}
 body.pg2027-body .pg27-sector-page .pg27-sector-visual{display:none!important}
 body.pg2027-body .pg-b2b-page .pg-lead-hero.pg-shell{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;background:#F1EDE6!important}
 body.pg2027-body .pg-b2b-page .pg-lead-hero-copy{width:100%!important;padding:clamp(25px,5vw,42px) 4vw!important;background:#F1EDE6!important}
 body.pg2027-body .pg-b2b-page .pg-lead-hero-image{display:none!important}
}

/* CULEBRA · Contrato único de medios en cabecera interior.
   El editor elige fotografía en el cuadro "Cabecera interior" de WordPress.
   Sin selección, dos superficies de la misma gama con contraste suave.
   No modifica la HOME ni fichas de producto / checkout. */
:root{
 --pg27-interior-hero-left:#f6f3ee;
 --pg27-interior-hero-right:#e6ddd1;
}
@media(min-width:831px){
 body.pg2027-body :is(
   .pg-interior .pg-interior-hero,
   .pg-shop .pg-shop-hero,
   .pg-workshops>.pg-workshops-hero,
   .pg-member-page.pg-comite-hub>.pg-comite-intro,
   .pg27-blog-archive .pg27-blog-hero,
   .pg-contact-page>.pg-contact-hero
 ){
   position:relative;isolation:isolate;
   background-color:var(--pg27-interior-hero-left)!important;
   background-image:linear-gradient(90deg,var(--pg27-interior-hero-left) 0 50%,var(--pg27-interior-hero-right) 50% 100%)!important;
   background-size:100% 100%!important;
   background-position:center!important;background-repeat:no-repeat!important;
 }
 /* La imagen se recorta sin deformarse: cover sobre la mitad derecha. */
 body.pg2027-body.pg27-has-interior-hero-image :is(
   .pg-interior .pg-interior-hero,
   .pg-shop .pg-shop-hero,
   .pg-workshops>.pg-workshops-hero,
   .pg-member-page.pg-comite-hub>.pg-comite-intro,
   .pg27-blog-archive .pg27-blog-hero,
   .pg-contact-page>.pg-contact-hero
 )::before{
   content:"";display:block;position:absolute;inset:0 0 0 auto;width:50%;height:100%;
   background:var(--pg27-interior-photo) center/cover no-repeat;
   pointer-events:none;z-index:0;
 }
 body.pg2027-body.pg27-has-interior-hero-image :is(
   .pg-interior .pg-interior-hero,
   .pg-shop .pg-shop-hero,
   .pg-workshops>.pg-workshops-hero,
   .pg-member-page.pg-comite-hub>.pg-comite-intro,
   .pg27-blog-archive .pg27-blog-hero,
   .pg-contact-page>.pg-contact-hero
 )> *{position:relative;z-index:1}
 /* En Club y Talleres, ningún párrafo ni CTA aparece sobre una foto. */
 body.pg2027-body.pg27-has-interior-hero-image .pg-comite-hero-grid,
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops-hero-grid{
   display:grid!important;grid-template-columns:50% 50%!important;
   grid-template-rows:auto auto;column-gap:0!important;row-gap:12px!important;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg-comite-hero-grid>div,
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops-hero-grid>div,
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops-hero-grid>aside{
   grid-column:1!important;min-width:0;max-width:90%!important;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg-comite-hero-grid>div:nth-child(2),
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops-hero-grid>aside{
   grid-row:2!important;
 }
 body.pg2027-body .pg-shop .pg-shop-hero{
   --pg27-interior-hero-left:#f1ede6;
   --pg27-interior-hero-right:#e6dbcd;
 }
 body.pg2027-body .pg-workshops>.pg-workshops-hero{
   --pg27-interior-hero-left:#f1ede6;
   --pg27-interior-hero-right:#e6ddcf;
 }
 body.pg2027-body .pg-member-page.pg-comite-hub>.pg-comite-intro{
   --pg27-interior-hero-left:#f1ede6;
   --pg27-interior-hero-right:#e8dfd3;
 }
 body.pg2027-body .pg-contact-page>.pg-contact-hero{
   --pg27-interior-hero-left:#eee7dd;
   --pg27-interior-hero-right:#e3dbcd;
 }
 /* Los contenedores de texto no invaden la zona reservada a fotografía. */
 body.pg2027-body .pg-shop .pg-shop-hero-inner> :is(h1,p:not(.pg-eyebrow)){
   max-width:min(100%,540px)!important;
 }
 body.pg2027-body .pg-interior .pg-interior-hero>.pg-shell> :is(h1,p.pg-interior-lead){
   max-width:min(100%,550px)!important;
 }
 body.pg2027-body .pg27-blog-archive .pg27-blog-hero>.pg-shell> :is(h1,p:not(.pg-eyebrow)){
   max-width:min(100%,550px)!important;
 }
}
/* Servicios y regalos de empresa tienen ya una celda exclusiva para medios. */
body.pg2027-body .pg27-sector-page .pg27-sector-visual{
 background-image:var(--pg27-interior-photo,none)!important;
 background-position:center center!important;
 background-size:cover!important;
 background-repeat:no-repeat!important;
}
body.pg2027-body .pg-b2b-page .pg-lead-hero-image{
 background-image:var(--pg27-interior-photo,none)!important;
 background-position:center center!important;
 background-size:cover!important;
 background-repeat:no-repeat!important;
}
/* USA Express mantiene su composición e icono antorcha hasta elegir una foto.
   Al elegirla, la zona derecha muestra esa foto, sin cambiar la etiqueta. */
body.pg2027-body.pg27-has-interior-hero-image .pg-usa-express .pg-usa-hero-media{
 background-image:var(--pg27-interior-photo)!important;
 background-position:center center!important;
 background-size:cover!important;
 background-repeat:no-repeat!important;
 min-height:var(--pg27-interior-hero-height);
}
body.pg2027-body.pg27-has-interior-hero-image .pg-usa-express .pg-usa-hero-media>*{
 opacity:0!important;pointer-events:none!important;
}
@media(max-width:830px){
 body.pg2027-body.pg27-has-interior-hero-image .pg-usa-express .pg-usa-hero-media{
  min-height:210px!important;height:210px!important;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg-usa-express .pg-usa-hero-media>*{display:none!important}
}
@media(min-width:831px){
 body.pg2027-body .pg-contact-page>.pg-contact-hero> :is(h1,p:not(.pg-eyebrow)){
  max-width:min(100%,550px)!important;
 }
}
/* Historia y portadas editoriales preservan su fotografía actual hasta que
   se seleccione expresamente otra en el editor de la página. */
body.pg2027-body.pg27-has-interior-hero-image .pg-history-hero-palette,
body.pg2027-body.pg27-has-interior-hero-image .pg27-editorial-cover{
 background-image:var(--pg27-interior-photo)!important;
 background-position:center!important;background-size:cover!important;
 background-repeat:no-repeat!important;
}
body.pg2027-body.pg27-has-interior-hero-image :is(.pg-history-hero-palette,.pg27-editorial-cover)>img{
 visibility:hidden!important;
}
@media(max-width:830px){
 /* Sin foto: cabecera compacta y limpia, sin una mitad vacía vertical. */
 body.pg2027-body :is(.pg-interior .pg-interior-hero,.pg-shop .pg-shop-hero,.pg-workshops>.pg-workshops-hero,.pg-member-page.pg-comite-hub>.pg-comite-intro,.pg27-blog-archive .pg27-blog-hero,.pg-contact-page>.pg-contact-hero){
   background-image:none!important;
 }
 /* Con imagen elegida, aparece tras el contenido, no detrás de las letras. */
 body.pg2027-body.pg27-has-interior-hero-image :is(.pg-interior .pg-interior-hero,.pg-shop .pg-shop-hero,.pg-workshops>.pg-workshops-hero,.pg-member-page.pg-comite-hub>.pg-comite-intro,.pg27-blog-archive .pg27-blog-hero,.pg-contact-page>.pg-contact-hero)::after{
   content:"";display:block;width:100%;height:210px;
   background:var(--pg27-interior-photo) center/cover no-repeat;
   margin-top:18px;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg27-sector-page .pg27-sector-visual,
 body.pg2027-body.pg27-has-interior-hero-image .pg-b2b-page .pg-lead-hero-image{
   display:block!important;height:210px!important;min-height:210px!important;
 }
}

/* CULEBRA VIGENTE: foto real solo en cabeceras de contenido con selector activo.
   Se evita que el párrafo de Talleres invada la mitad fotográfica. */
@media(min-width:831px){
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops>.pg-workshops-hero{
  position:relative!important;isolation:isolate;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops>.pg-workshops-hero::before{
  content:""!important;position:absolute!important;top:0!important;right:0!important;
  bottom:0!important;left:auto!important;width:50%!important;height:100%!important;
  background-image:var(--pg27-interior-photo)!important;
  background-size:cover!important;background-position:center!important;
  display:block!important;pointer-events:none!important;z-index:0!important;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops>.pg-workshops-hero>.pg-workshops-hero-inner{
  position:relative!important;z-index:1!important;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops .pg-workshops-hero-grid{
  grid-template-columns:minmax(0,50%) minmax(0,50%)!important;
  gap:0!important;align-items:start!important;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops .pg-workshops-hero-grid>div{
  grid-column:1!important;min-width:0!important;width:100%!important;
  max-width:none!important;padding-right:clamp(18px,3vw,42px)!important;
  box-sizing:border-box!important;
 }
 body.pg2027-body.pg27-has-interior-hero-image .pg-workshops .pg-workshops-hero-grid>aside{
  grid-column:1!important;min-width:0!important;max-width:calc(100% - 24px)!important;
 }
}

