/* NATECO · Adaptación de la portada ACF a bloques nativos.
   Se carga DESPUÉS del style.css original, que se conserva sin cambios.
   Cada sección posee su propia clase: no necesita un grupo padre Gutenberg.
   Las medidas, fondos y puntos de ruptura proceden del CSS original. */

.nateco-home-gutenberg {
  margin: 0;
  --wp--style--block-gap: 0px;
}
.nateco-home-gutenberg .wp-block-group { margin: 0; }
.nateco-home-gutenberg .wp-block-group__inner-container { display: contents; }
.nateco-home-gutenberg :where(.is-layout-flow,.is-layout-constrained) > * { margin-block-start: 0; }
.nateco-home-gutenberg .centro { width: 1200px; max-width: 100%; margin-inline: auto; }
.nateco-home-gutenberg .contenidoizq { width: 657px; max-width: 95%; }
.nateco-home-gutenberg .flex { display: flex; flex-wrap: wrap; align-items: stretch; gap: 2%; }
.nateco-home-gutenberg .iflex { min-width: 0; }
.nateco-home-gutenberg .wp-block-heading { font-family: inherit; }
.nateco-home-gutenberg .wp-block-image { margin: 0; }
.nateco-home-gutenberg .wp-block-image img { vertical-align: baseline; }
.nateco-home-gutenberg .wp-block-buttons { margin: 0; }
.nateco-home-gutenberg .wp-block-button { font-family: inherit; }
.nateco-home-gutenberg .wp-block-button__link { font-family: inherit; line-height: inherit; }
.nateco-home-gutenberg .wp-block-spacer { margin: 0; }

/* 1 · Hero. El fondo es ahora una Imagen editable, detrás del contenido. */
.nateco-home-gutenberg.bk1 { position: relative; isolation: isolate; overflow: hidden; }
.nateco-home-gutenberg.bk1 .nateco-hero-bg {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  animation: bk-fade-bg 5s ease-out .25s both;
}
.nateco-home-gutenberg.bk1 .nateco-hero-bg img {
  display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.nateco-home-gutenberg.bk1 .cont { position: relative; z-index: 2; }
.nateco-home-gutenberg.bk1 .contenidoizq > .wp-block-group__inner-container > h1 { animation: bk-fade-down 1s ease-out .25s both; }
.nateco-home-gutenberg.bk1 .contenidoizq > .wp-block-group__inner-container > *:not(h1) { animation: bk-fade-up 1s ease-out .4s both; }
.nateco-home-gutenberg.bk1 .contenidoizq { padding-top: 200px; padding-bottom: 100px; color: #fff; }
.nateco-home-gutenberg.bk1 h1 { color: #fff; }
.nateco-home-gutenberg.bk1 .nateco-hero-actions {
  display: flex; flex-wrap: wrap; gap: 2%; align-items: stretch;
}
.nateco-home-gutenberg.bk1 .nateco-hero-actions .wp-block-button { width: 46%; }
.nateco-home-gutenberg.bk1 .nateco-hero-actions .wp-block-button__link {
  display: inline; border-radius: 48px; border: 1px solid #fff; padding: 10px 25px;
  font-size: 18px; font-weight: 400; color: #fff; text-decoration: none; background: transparent;
}
.nateco-home-gutenberg.bk1 .nateco-hero-actions .fazul .wp-block-button__link {
  border-color: #468e99; background-color: #468e99;
}
.nateco-home-gutenberg.bk1 .nateco-hero-actions .wp-block-button__link:hover {
  color: #468e99; background-color: #fff;
}

/* 2 · Servicios: las tarjetas conservan sus porcentajes, no columnas nuevas. */
.nateco-home-gutenberg.bk2 .flex .iflex { box-sizing: content-box; }
.nateco-home-gutenberg.bk2 .wp-block-image { line-height: inherit; }
.nateco-home-gutenberg.bk2 .wp-block-image img { display: inline; }
.nateco-home-gutenberg.bk2 .nateco-service-actions,
.nateco-home-gutenberg.bk2 .nateco-service-actions .wp-block-button { display: block; }
.nateco-home-gutenberg.bk2 .nateco-service-actions .wp-block-button__link {
  display: block; position: relative; border: 0; border-radius: 0; padding: 0;
  background: transparent; color: #fff; text-decoration: none;
  font-weight: 500; font-size: 18px; text-align: left;
}
.nateco-home-gutenberg.bk2 .nateco-service-actions .wp-block-button__link::after {
  content: ''; background: url('images/flecha.png'); display: inline-block;
  width: 24px; height: 24px; position: relative; top: 6px; right: -17px;
}
.nateco-home-gutenberg.bk2 .nateco-service-actions .wp-block-button__link:hover::after { right: -19px; }

/* 3 · Motivos: una imagen, texto destacado y párrafo por tarjeta. */
.nateco-home-gutenberg.bk3 .nateco-reasons-intro { max-width: 820px; margin-inline: auto; }
.nateco-home-gutenberg.bk3 .centro .flex .iflex { box-sizing: content-box; }
.nateco-home-gutenberg.bk3 .flex .iflex .wp-block-image { display: block; width: auto; margin: 0 0 25px; text-align: center; }
.nateco-home-gutenberg.bk3 .flex .iflex .wp-block-image img { display: inline; width: 55px; height: 55px; }

/* 4 · LETO: Details nativo, con título e introducción visibles al cerrarlo.
   No utiliza .contevisible ni enlaces #, por lo que no activa el JS antiguo. */
.nateco-home-gutenberg.bk4 .flex .iflex > .wp-block-image,
.nateco-home-gutenberg.bk4 .flex .iflex > .wp-block-group__inner-container > .wp-block-image { margin-bottom: 20px; }
.nateco-home-gutenberg.bk4 .flex .iflex .wp-block-image img { margin-bottom: 0; display: inline; }
.nateco-home-gutenberg.bk4 details.conteacordeon { margin: 0; }
.nateco-home-gutenberg.bk4 details.conteacordeon > summary {
  display: block; list-style: none; cursor: pointer; margin: 0 0 14px;
  font-size: 18px; font-weight: 600; line-height: 1;
}
.nateco-home-gutenberg.bk4 details.conteacordeon > summary strong {
  display: block; position: relative; margin-bottom: 10px; padding-right: 16px;
  color: #000; text-transform: uppercase; font-size: 18px; font-weight: 600; line-height: 1.3;
}
.nateco-home-gutenberg.bk4 details.conteacordeon > summary strong + br { display: none; }
.nateco-home-gutenberg.bk4 details.conteacordeon > summary strong::before {
  content: url('images/arrow-acordeon.svg'); position: absolute; right: 0;
  top: 50%; transform: translateY(-50%);
}
.nateco-home-gutenberg.bk4 details.conteacordeon[open] > summary strong::before { transform: translateY(-50%) rotate(180deg); }
.nateco-home-gutenberg.bk4 .flex .iflex details.conteacordeon .contenovisible { display: block; }

/* 5 · CTA. El degradado se edita desde Color > Fondo del bloque Grupo. */
.nateco-home-gutenberg.bk5 .conte { margin: 0 auto; }
.nateco-home-gutenberg.bk5 .nateco-cta-actions { display: block; text-align: center; margin-top: 20px; font-size: 35px; line-height: 110%; }
.nateco-home-gutenberg.bk5 .nateco-cta-actions .wp-block-button { display: inline; font-size: inherit; line-height: inherit; }
.nateco-home-gutenberg.bk5 .nateco-cta-actions .wp-block-button__link {
  display: inline; border: 0; color: #468e99; background-color: #fff;
  border-radius: 48px; padding: 10px 25px; font-size: 18px; line-height: inherit; font-weight: 400; text-decoration: none;
}
.nateco-home-gutenberg.bk5 .nateco-cta-actions .wp-block-button__link:hover { color: #fff; background-color: #468e99; }

/* 6 · FAQ: misma presentación con summary y respuesta Gutenberg. */
.nateco-home-gutenberg.bk6 { padding: 50px 0; }
.nateco-home-gutenberg.bk6 details.faq { margin: 0 0 21px; }
.nateco-home-gutenberg.bk6 details.faq > summary {
  display: block; position: relative; width: calc(100% - 15px); padding-right: 15px;
  list-style: none; cursor: pointer; color: #2b2b2b; font-weight: 500;
  font-size: 20px; line-height: 125%; margin: 0 0 30px;
}
.nateco-home-gutenberg.bk6 details.faq > summary::before {
  content: url('images/arrow-acordeon.svg'); position: absolute; right: 0; top: 0;
}
.nateco-home-gutenberg.bk6 details.faq[open] > summary::before { transform: rotate(180deg); }
.nateco-home-gutenberg.bk6 details.faq .answer { display: block; margin: 0 0 30px; }
.nateco-home-gutenberg summary::-webkit-details-marker { display: none; }
.nateco-home-gutenberg summary:focus-visible,
.nateco-home-gutenberg a:focus-visible { outline: 2px solid #468e99; outline-offset: 4px; }

@media (max-width: 1250px) {
  .nateco-home-gutenberg .centro { width: 94%; }
}
@media (max-width: 940px) {
  .nateco-home-gutenberg.bk1 .contenidoizq { padding-top: 60px; padding-bottom: 100px; }
  .nateco-home-gutenberg.bk1 .nateco-hero-actions .wp-block-button { width: 100%; margin-left: 1%; padding: 1% 0; }
  .nateco-home-gutenberg.bk1 .nateco-hero-actions .wp-block-button:first-child { margin-bottom: 30px; }
  .nateco-home-gutenberg.bk2 .centro .flex .iflex { box-sizing: border-box; }
  .nateco-home-gutenberg.bk3 .centro .flex .iflex { box-sizing: border-box; }
  .nateco-home-gutenberg.bk5 .nateco-cta-actions { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .nateco-home-gutenberg.bk1 .nateco-hero-bg,
  .nateco-home-gutenberg.bk1 .contenidoizq > *,
  .nateco-home-gutenberg.bk1 .contenidoizq > .wp-block-group__inner-container > * { animation: none; }
}
