/* PETIT GAUDÍ 2027 — Jerarquía editorial H1–H4 · diseño maestro.
   Aplicación: artículos, perfiles de artesanos y fichas de pieza única.
   Es puramente visual: nunca cambia etiquetas HTML ni niveles SEO.
   Diseño: una única línea de sección cálida + trazo corto azul petróleo.
   Compatible con ES/CAT/EN/FR y con la plantilla 60/40. */

/* H1 · el título principal (un único H1 semántico por vista). */
.pg27-editorial-master .pg27-editorial-hero-copy h1{
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(2.35rem,4.8vw,4.55rem);
  font-weight:500;
  line-height:1.13;
  letter-spacing:-.028em;
  color:#41322b;
  border:0;
}
.pg2027-body.single-product .pg-woo-standard .summary h1.product_title{
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(2rem,3.5vw,3.25rem);
  font-weight:500;
  line-height:1.17;
  letter-spacing:-.028em;
  color:#41322b;
}

/* H2 · inicia una sección real, con separación visible pero discreta. */
.pg27-editorial-master .pg27-editorial-body h2,
.pg27-editorial-master .pg-member-section-head>h2,
.pg2027-body.single-product .pg-woo-standard .woocommerce-tabs .panel h2,
.pg2027-body.single-product .pg-woo-standard .related>h2{
  position:relative;
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(1.62rem,2.45vw,2.28rem);
  font-weight:500;
  line-height:1.27;
  letter-spacing:-.014em;
  color:#285068;
  border:0;
  border-top:1px solid #ded6cb;
  padding:clamp(16px,2vw,22px) 0 0;
  margin:clamp(34px,4.1vw,52px) 0 clamp(13px,1.5vw,19px);
  scroll-margin-top:110px;
}
.pg27-editorial-master .pg27-editorial-body h2::before,
.pg27-editorial-master .pg-member-section-head>h2::before,
.pg2027-body.single-product .pg-woo-standard .woocommerce-tabs .panel h2::before,
.pg2027-body.single-product .pg-woo-standard .related>h2::before{
  content:"";
  position:absolute;
  top:-2px;
  left:0;
  display:block;
  width:44px;
  max-width:20%;
  height:3px;
  background:#285068;
  border-radius:0;
}
/* Dentro de una fila 60/40 la línea pertenece al texto y no invade la foto. */
.pg27-editorial-master .pg27-editorial-body .wp-block-columns h2:first-child,
.pg27-editorial-master .pg27-editorial-body .pg27-section-columns h2:first-child{
  margin-top:0!important;
}
.pg27-editorial-master .pg27-editorial-body .wp-block-columns>.wp-block-column h2{
  max-width:100%;
}

/* H3 · contenido subordinado, sin segundo separador horizontal. */
.pg27-editorial-master .pg27-editorial-body h3,
.pg2027-body.single-product .pg-woo-standard .woocommerce-tabs .panel h3{
  position:relative;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  font:650 clamp(.99rem,1.16vw,1.18rem)/1.44 "Work Sans",Arial,sans-serif;
  color:#41322b;
  letter-spacing:-.012em;
  margin:clamp(22px,2.5vw,33px) 0 11px;
  padding:0 0 0 14px;
  border:0;
  border-left:3px solid #285068;
}
.pg27-editorial-master .pg-member-three h3{
  font:650 clamp(1.06rem,1.28vw,1.2rem)/1.35 "Work Sans",Arial,sans-serif;
  color:#41322b;
  margin:10px 0;
  padding:0;
  border:0;
}

/* H4 · detalle informativo, sin convertirlo en un H2 visual. */
.pg27-editorial-master .pg27-editorial-body h4,
.pg2027-body.single-product .pg-woo-standard .woocommerce-tabs .panel h4{
  font:700 clamp(.80rem,.9vw,.92rem)/1.4 "Work Sans",Arial,sans-serif;
  color:#625247;
  letter-spacing:.075em;
  text-transform:uppercase;
  margin:clamp(18px,2vw,26px) 0 9px;
  padding:0;
  border:0;
}
/* Texto corrido: la lectura no salta ni deja huecos artificiales. */
.pg27-editorial-master .pg27-editorial-body :is(h2,h3,h4)+p,
.pg2027-body.single-product .pg-woo-standard .woocommerce-tabs .panel :is(h2,h3,h4)+p{
  margin-top:0;
}
@media(max-width:780px){
 .pg27-editorial-master .pg27-editorial-body h2,
 .pg27-editorial-master .pg-member-section-head>h2,
 .pg2027-body.single-product .pg-woo-standard .woocommerce-tabs .panel h2,
 .pg2027-body.single-product .pg-woo-standard .related>h2{
   margin-top:28px;
   padding-top:17px;
   font-size:clamp(1.5rem,6vw,1.96rem);
 }
 .pg27-editorial-master .pg27-editorial-body h2::before,
 .pg27-editorial-master .pg-member-section-head>h2::before,
 .pg2027-body.single-product .pg-woo-standard .woocommerce-tabs .panel h2::before,
 .pg2027-body.single-product .pg-woo-standard .related>h2::before{
   width:36px;
 }
 .pg27-editorial-master .pg27-editorial-hero-copy h1{
   font-size:clamp(2.1rem,8.5vw,3.1rem);
 }
}
@media(prefers-reduced-motion:reduce){
 .pg27-editorial-master :is(h1,h2,h3,h4),
 .pg2027-body.single-product .pg-woo-standard :is(h1,h2,h3,h4){transition:none}
}

/* PREGUNTAS FRECUENTES · El H2 abre la sección una sola vez.
   Las preguntas son H3 anidados, en dos columnas si el texto lo permite. */
.pg27-editorial-master .pg27-editorial-body h2.pg27-faq-title{
 margin-bottom:clamp(24px,3vw,34px)!important;
}
.pg27-editorial-master .pg27-editorial-body .wp-block-columns.pg27-faq-grid{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:start;
 column-gap:clamp(26px,4vw,55px);
 row-gap:22px;
 width:100%;
 margin:0 0 clamp(25px,3.4vw,42px)!important;
 padding:0;
 border:0;
}
.pg27-editorial-master .pg27-editorial-body .pg27-faq-grid>.wp-block-column{
 min-width:0;
 max-width:100%;
 flex-basis:auto!important;
 padding:0;
}
.pg27-editorial-master .pg27-editorial-body .pg27-faq-grid h3{
 display:block;
 font:650 clamp(1.02rem,1.18vw,1.19rem)/1.45 "Work Sans",Arial,sans-serif!important;
 color:#41322b;
 margin:0 0 12px!important;
 padding:0!important;
 border:0!important;
 letter-spacing:-.008em;
}
.pg27-editorial-master .pg27-editorial-body .pg27-faq-grid h3::before,
.pg27-editorial-master .pg27-editorial-body .pg27-faq-grid h3::after{content:none!important}
.pg27-editorial-master .pg27-editorial-body .pg27-faq-grid p{
 max-width:58ch!important;
 margin:0!important;
}
@media(max-width:680px){
 .pg27-editorial-master .pg27-editorial-body .wp-block-columns.pg27-faq-grid{
  grid-template-columns:1fr!important;
  row-gap:25px;
 }
}

/* Contrato editorial: etiqueta + título son una sola cabecera.
   El separador H2 no puede interponerse entre ambos.
   Los H2 sin etiqueta conservan el separador normal. */
.pg27-editorial-master .pg-member-section-head > .pg-eyebrow + h2,
.pg27-editorial-master .pg27-editorial-body .pg-eyebrow + h2,
.pg27-editorial-master .pg27-editorial-body .pg-member-section-head > .pg-eyebrow + h2{
 border-top:0!important;
 padding-top:0!important;
 margin-top:0!important;
}
.pg27-editorial-master .pg-member-section-head > .pg-eyebrow + h2::before,
.pg27-editorial-master .pg27-editorial-body .pg-eyebrow + h2::before,
.pg27-editorial-master .pg27-editorial-body .pg-member-section-head > .pg-eyebrow + h2::before{
 content:none!important;
 display:none!important;
}


