/* Tema Mentes Propias 0.3.0 — estructura global independiente de Divi. */
html{box-sizing:border-box;scroll-behavior:smooth}*,*::before,*::after{box-sizing:inherit}
body.mp-theme{margin:0;min-height:100vh;background:#fff;color:var(--mp-color-ink,#111827);font-family:var(--mp-font-sans,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);line-height:var(--mp-line-height,1.6);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body.mp-theme img{max-width:100%;height:auto}body.mp-theme a:not(.mp-btn){color:var(--mp-color-primary,#000fff);text-underline-offset:.16em;text-decoration-thickness:1.5px}
body.mp-theme a:focus-visible,body.mp-theme button:focus-visible,body.mp-theme input:focus-visible,body.mp-theme select:focus-visible,body.mp-theme textarea:focus-visible{outline:2px solid var(--mp-color-primary,#000fff);outline-offset:3px}
.mp-theme-skip-link{position:fixed;left:16px;top:12px;z-index:100000;transform:translateY(-160%);padding:10px 14px;border-radius:10px;background:#fff;color:#000;box-shadow:0 6px 24px rgba(0,0,0,.2)}.mp-theme-skip-link:focus{transform:translateY(0)}
.mp-theme-header{position:sticky;top:0;z-index:9000;width:100%;background:#fff;border-bottom:1px solid var(--mp-color-border-soft,#e5e7eb)}
.mp-theme-header__inner{width:min(100% - 24px,var(--mp-content-width,1200px));margin-inline:auto;padding-block:10px}.mp-theme-branding{display:flex;justify-content:center;margin-bottom:10px}.mp-theme-branding .custom-logo-link{display:inline-flex}.mp-theme-branding .custom-logo{display:block;width:auto;max-width:min(420px,82vw);max-height:90px}.mp-theme-nav{width:100%}.mp-theme-nav--mp-menu>*{width:100%}.mp-theme-nav--fallback{display:flex;justify-content:center}.mp-theme-fallback-menu{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}.mp-theme-fallback-menu a{display:inline-flex;padding:10px 14px;border:1px solid #d9dee7;border-radius:12px;background:#fff;text-decoration:none}
.mp-theme-main{min-height:58vh;background:rgba(0,0,0,.67);overflow:visible}.mp-theme-shell{width:min(100% - 32px,var(--mp-content-width,1200px));margin-inline:auto;padding-block:clamp(24px,4vw,52px)}.mp-theme-shell--reading{width:min(100% - 32px,var(--mp-reading-width,1000px))}.mp-theme-shell--app{width:min(100% - 20px,var(--mp-content-width,1200px));padding-top:20px}.mp-theme-shell--front{padding-top:34px;padding-bottom:48px}.mp-theme-shell--publication{width:min(100% - 24px,1100px)}
.mp-theme-content{min-width:0}.mp-theme-content.mp-prose,.mp-theme-content .mp-prose,.mp-prose{hyphens:auto}.mp-prose p{max-width:none}.mp-theme-content> :first-child{margin-top:0}.mp-theme-content> :last-child{margin-bottom:0}
/* Páginas normales: equivalencia del contenedor azul + tarjeta blanca de Divi. */
.mp-theme-standard-panel{padding:12px;border-radius:14px;background:rgba(0,123,255,.18);box-shadow:0 0 20px #007bff}.mp-theme-page-heading{padding:18px 20px;text-align:center}.mp-theme-page-heading h1{margin:0;color:#fff;font-size:clamp(1.8rem,4vw,2.4rem);line-height:1.15;font-weight:800;text-shadow:0 0 .6em #fff}.mp-theme-page-body{padding:24px;background:#fff;border-radius:10px;text-align:justify}.mp-theme-page-body h2,.mp-theme-page-body h3{text-align:left}
/* App pages: los plugins son responsables de su UI. */
.mp-theme-app-content{margin:0;padding:0}.mp-theme--app-page .mp-theme-main{overflow:visible}.mp-theme-app-note,.mp-theme-warning-note{margin:30px auto 0;padding:20px;border-radius:10px;background:#fff;text-align:justify}.mp-theme-warning-note{color:#8b5b00;border:2px solid #e09900}
/* Portada actual reconstruida a partir del Theme Builder. */
.mp-theme-home-hero{text-align:center;color:#fff}.mp-theme-home-logo{display:block;max-height:200px;width:auto;margin:0 auto 14px}.mp-theme-home-title{margin:0;color:#fff;font-size:clamp(2rem,5vw,3rem);font-weight:800;text-shadow:0 0 .6em #fff}.mp-theme-home-tagline{margin:12px 0 26px;font-size:clamp(1.35rem,3vw,1.9rem);font-weight:700;text-shadow:0 0 .5em #fff}.mp-theme-home-links{display:grid;gap:16px;width:min(96%,1100px);margin-inline:auto;padding:24px clamp(12px,3vw,30px);border-radius:12px;background:rgba(0,123,255,.18);box-shadow:0 0 20px #007bff}.mp-theme-home-image-link{display:block;border-radius:20px;overflow:hidden;box-shadow:0 0 10px #fff}.mp-theme-home-image-link img{display:block;width:100%}.mp-theme-home-book-cta{display:block;width:min(96%,1100px);margin:34px auto;border-radius:10px;overflow:hidden}.mp-theme-home-book-cta img{display:block;width:100%}.mp-theme-home-composition{width:min(96%,1100px);margin:0 auto;padding:24px clamp(12px,3vw,30px);border-radius:12px;background:rgba(0,123,255,.18);box-shadow:0 0 20px #007bff;color:#fff}.mp-theme-home-composition h2{margin:0 0 24px;text-align:center;font-size:clamp(1.45rem,3vw,1.9rem);text-shadow:0 0 .5em #fff}
/* Publicación individual: reproduce la estructura global de Divi sin et_pb. */
.mp-theme-publication-layout{display:grid;gap:18px}.mp-theme-publication-core{padding:clamp(12px,2vw,20px);border-radius:14px;background:rgba(0,123,255,.18);box-shadow:0 0 20px #007bff}.mp-theme-publication-title{margin:12px 0 24px;padding-inline:12px;color:#fff;text-align:center;font-size:clamp(1.8rem,4vw,2.35rem);line-height:1.18;font-weight:800}.mp-theme-publication-tldr{color:#fff;text-align:justify}.mp-theme-publication-taxonomies{display:grid;gap:10px;margin:18px 0}.mp-theme-taxonomy-row{padding:10px 20px;border-radius:10px;background:#fff;text-align:center;font-weight:600}.mp-theme-publication-audio{margin:20px 0 30px}.mp-theme-publication-content{padding:22px;border-radius:10px;background:#fff;text-align:justify}.mp-theme-publication-rating{margin:30px 0;padding:20px;border-radius:10px;background:#fff;text-align:center}.mp-theme-publication-notice{margin:30px 0;padding:18px 20px;border-radius:10px;background:#fff}.mp-theme-publication-notice summary{cursor:pointer}.mp-theme-publication-notice .mp-prose{text-align:justify}.mp-theme-publication-report{text-align:center;color:#fff;font-size:1.05rem;font-weight:600}.mp-theme-publication-author{padding:5px 0}.mp-theme-admin-tools{padding:18px;border-radius:14px;background:rgba(0,123,255,.18);box-shadow:0 0 20px #007bff}.mp-theme-admin-tools h2{margin-top:0;color:#fff;text-align:center}.mp-theme-admin-tools__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.mp-theme-post-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:28px}.mp-theme-post-nav__prev{justify-self:start}.mp-theme-post-nav__next{justify-self:end}
/* Archivos y búsqueda. */
.mp-theme-archive-header{margin-bottom:28px;text-align:center;color:#fff}.mp-theme-archive-header .mp-theme-entry-title{color:#fff}.mp-theme-archive-description{max-width:820px;margin:14px auto 0}.mp-theme-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.mp-theme-post-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:0;background:#fff}.mp-theme-post-card__media{display:block;aspect-ratio:16/10;overflow:hidden}.mp-theme-post-card__media img{display:block;width:100%;height:100%;object-fit:cover}.mp-theme-post-card__body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:14px;padding:22px}.mp-theme-post-card__title{margin:0;font-size:1.18rem;line-height:1.3}.mp-theme-post-card__excerpt{flex:1;width:100%;text-align:justify}
.mp-theme-404{text-align:center}.mp-theme-404__body{text-align:center;padding-block:60px}
/* Footer equivalente al actual, con fallback incorporado. */
.mp-theme-footer{margin:0;background:#fafafa;border-top:1px solid #ebebeb;box-shadow:0 -6px 18px rgba(15,23,42,.08)}.mp-theme-footer__inner{width:min(90%,1170px);margin-inline:auto;padding:24px 0}.mp-theme-footer__nav{margin-bottom:20px}.mp-theme-footer__menu{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin:0;padding:0;list-style:none}.mp-theme-footer__menu a{font-size:1rem}.mp-theme-footer__copyright{margin:0;color:#000;text-align:center;font-size:.92rem}
@media(max-width:900px){.mp-theme-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-theme-header{position:relative}.mp-theme-home-logo{max-height:160px}}
@media(max-width:640px){.mp-theme-header__inner{width:min(100% - 12px,var(--mp-content-width,1200px));padding-block:8px}.mp-theme-shell,.mp-theme-shell--reading{width:min(100% - 16px,var(--mp-reading-width,1000px));padding-block:18px 30px}.mp-theme-shell--app{width:calc(100% - 8px);padding-top:10px}.mp-theme-home-logo{max-height:120px}.mp-theme-home-links,.mp-theme-home-book-cta,.mp-theme-home-composition{width:100%}.mp-theme-standard-panel{padding:8px}.mp-theme-page-body{padding:18px 16px}.mp-theme-publication-core{padding:10px}.mp-theme-publication-content{padding:18px 16px}.mp-theme-post-grid{grid-template-columns:1fr;gap:16px}.mp-theme-post-nav{grid-template-columns:1fr}.mp-theme-post-nav__prev,.mp-theme-post-nav__next{width:100%;justify-content:center;justify-self:stretch}.mp-theme-footer__menu{flex-direction:column;align-items:center}.mp-theme-footer__inner{width:calc(100% - 32px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
.mp-theme-app-intro{max-width:1100px;margin:0 auto 18px;padding:4px 20px;color:#fff;text-align:center}.mp-theme-app-intro p{margin:0}.mp-theme-taxonomy-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:30px auto 0}.mp-theme-taxonomy-links a{display:flex;justify-content:center;align-items:center;padding:20px;text-align:center;font-size:1.1rem;font-weight:700;text-decoration:none;background:#fff;box-shadow:0 0 20px #007bff}@media(max-width:640px){.mp-theme-taxonomy-links{grid-template-columns:1fr}}

/* =========================================================
   0.3.0 — GEOMETRÍA COMÚN Y EDICIÓN NATIVA
   ========================================================= */
.mp-theme-header__inner {
  padding-top: 6px;
  padding-bottom: 8px;
}

/* El contenedor exterior utiliza una única anchura. Los bloques interiores
   pueden seguir teniendo su propia anchura cuando funcionalmente corresponde. */
.mp-theme-shell,
.mp-theme-shell--reading,
.mp-theme-shell--publication,
.mp-theme-shell--app {
  width: min(100% - 24px, var(--mp-content-width, 1200px));
}

.mp-theme-footer__custom {
  width: 100%;
  text-align: center;
}
.mp-theme-footer__custom > :first-child { margin-top: 0; }
.mp-theme-footer__custom > :last-child { margin-bottom: 0; }
.mp-theme-footer__custom ul,
.mp-theme-footer__custom ol {
  display: inline-block;
  margin-inline: auto;
  text-align: left;
}

@media(max-width:640px){
  .mp-theme-shell,
  .mp-theme-shell--reading,
  .mp-theme-shell--publication {
    width: calc(100% - 16px);
  }
  .mp-theme-shell--app { width: calc(100% - 8px); }
}


/* =========================================================
   0.3.1 — CABECERA STICKY EN TODOS LOS TAMAÑOS
   ========================================================= */
.mp-theme-header {
  position: sticky !important;
  top: 0;
  z-index: 9000;
}
.mp-theme-header__inner {
  padding-top: 10px;
  padding-bottom: 8px;
}
body.admin-bar .mp-theme-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .mp-theme-header { top: 46px; }
}
@media (max-width: 900px) {
  .mp-theme-header { position: sticky !important; }
}
