/* LMDA P05.6.1 · Fidelidad P05.3: no hay textos, imagenes ni datos incrustados.
   Las secciones y sus elementos se siguen administrando desde LMDA Builder. */

/* Un único bloque editorial autosuficiente no debe heredar una franja negra
   ni dos capas de padding. Cualquier variante explícita de sección conserva
   su propio fondo y su configuración. */
.lmda-page-section--seamless-history,
.lmda-page-section--seamless-dishes { padding-block:0; }
.lmda-page-section--seamless-history { background:#f9e9d8; color:#2b211c; }
.lmda-page-section--seamless-dishes { background:#faf4ea; color:#291a15; }
.lmda-page-section--seamless-history > .lmda-page-section__content,
.lmda-page-section--seamless-dishes > .lmda-page-section__content { width:100%; max-width:none; padding-inline:0; }

/* P05.3: dos fotografías protagonistas + relato superpuesto. Solo para
   composición 'Editorial', seleccionable desde el Inspector del Builder. */
.lmda-history-story--editorial { background:#f9e9d8; padding:clamp(68px,7.4vw,110px) clamp(16px,3vw,36px); }
.lmda-history-story--editorial .lmda-history-story__inner { max-width:1120px; }
.lmda-history-story--editorial .lmda-history-story__header { max-width:810px; margin-bottom:34px; }
.lmda-history-story--editorial .lmda-history-story__header h2 {
  font:800 clamp(35px,4.3vw,60px)/1.08 'Bricolage Grotesque',system-ui,sans-serif;
  letter-spacing:-.04em; max-width:790px; margin:0 auto 17px;
}
.lmda-history-story--editorial .lmda-history-story__header p { max-width:720px; margin:auto; }
.lmda-history-story--editorial .lmda-history-story__photos {
  display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,.75fr);
  gap:22px; align-items:stretch; min-height:0;
}
.lmda-history-story--editorial .lmda-history-story__photo { position:relative; height:clamp(430px,36vw,500px); min-height:0; overflow:hidden; }
.lmda-history-story--editorial .lmda-history-story__photo--main { border-radius:34px 34px 100px 34px; }
.lmda-history-story--editorial .lmda-history-story__photo--second { border-radius:100px 26px 26px 26px; margin:0; }
.lmda-history-story--editorial .lmda-history-story__image {
  display:block; width:100%; height:100%; object-fit:cover; object-position:center;
}
.lmda-history-story--editorial .lmda-history-story__ending {
  position:relative; z-index:2; width:min(750px,90%); max-width:none;
  display:flex; align-items:center; justify-content:space-between; justify-items:initial;
  gap:25px; margin:-82px auto 0; padding:27px 34px;
  background:#fffdfa; border-radius:26px;
  box-shadow:0 15px 50px rgba(83,55,34,.14); text-align:left;
}
.lmda-history-story--editorial .lmda-history-story__ending p {
  flex:1; font:400 clamp(14px,1.13vw,16px)/1.65 'DM Sans',system-ui,sans-serif;
  color:#5a5249; margin:0;
}
.lmda-history-story--editorial .lmda-history-story__button {
  flex:none; background:#ae2620; border-radius:10px; min-height:48px;
  padding:12px 23px; font-weight:800;
}
.lmda-history-story--editorial .lmda-history-story__button:is(:hover,:focus-visible) { background:#8a1b19; }

/* Motion progresivo dentro de Historia, sin quitar la posibilidad de elegir
   'Ninguno'. El JS existente controla los estados de aparicion. */
@media(prefers-reduced-motion:no-preference) {
  .lmda-history-story--editorial[data-lmda-motion] :is(.lmda-history-story__header,.lmda-history-story__photo,.lmda-history-story__ending) {
    transition:opacity .85s cubic-bezier(.2,.72,.26,1), transform .85s cubic-bezier(.2,.72,.26,1);
  }
  .lmda-history-story--editorial[data-lmda-motion] .lmda-history-story__photo--main { transition-delay:.1s; }
  .lmda-history-story--editorial[data-lmda-motion] .lmda-history-story__photo--second { transition-delay:.24s; }
  .lmda-history-story--editorial[data-lmda-motion] .lmda-history-story__ending { transition-delay:.38s; }
}

/* Móvil y tablet: imágenes COMPLETAS, sin recortes ni franja lateral diminuta.
   El relato abandona la superposición y queda debajo de ambas fotografías. */
@media(max-width:920px) {
  .lmda-history-story--editorial { padding:70px 16px; }
  .lmda-history-story--editorial .lmda-history-story__photos {
    display:flex; flex-direction:column; min-height:0; gap:18px;
  }
  .lmda-history-story--editorial .lmda-history-story__photo { width:100%; height:auto; min-height:0; margin:0; border-radius:18px; }
  .lmda-history-story--editorial .lmda-history-story__image { width:100%; height:auto; object-fit:contain; }
  .lmda-history-story--editorial .lmda-history-story__ending {
    width:100%; margin:20px 0 0; padding:23px 22px; display:flex;
    flex-direction:column; align-items:flex-start; gap:17px;
    border-radius:18px;
  }
}
@media(max-width:520px) {
  .lmda-history-story--editorial { padding:62px 15px; }
  .lmda-history-story--editorial .lmda-history-story__header h2 { font-size:clamp(32px,9vw,42px); }
  .lmda-history-story--editorial .lmda-history-story__ending p { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
  .lmda-history-story--editorial :is(.lmda-history-story__header,.lmda-history-story__photo,.lmda-history-story__ending) {
    opacity:1!important; transform:none!important; transition:none!important;
  }
}
