/* LaMariDiarios v1.40.1095 · corrección móvil exclusiva para banners públicos de Conocimiento.
   Alcance: Genealogías, Archivo Histórico, Atlas y Cronología. Escritorio/tablet no se altera. */

@media (max-width:640px){
  /* ---------- ATLAS: portada + fichas de país ---------- */
  body.kd-standalone-atlas-template .kd-atlas-world .kd-atlas-header.kd-atlas-hero-v3,
  body.kd-standalone-atlas-template .kd-atlas-country-hero.kd-atlas-country-hero-v3{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    min-height:0!important;
    padding:18px 16px!important;
    border-radius:18px!important;
    background-position:60% center!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-emblem,
  body.kd-standalone-atlas-template .kd-atlas-country-emblem{
    width:72px!important;
    height:72px!important;
    margin:0!important;
    border-width:3px!important;
    border-radius:18px!important;
    align-self:start!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-emblem span,
  body.kd-standalone-atlas-template .kd-atlas-country-emblem span{
    width:42px!important;
    height:42px!important;
    font-size:26px!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-title-block,
  body.kd-standalone-atlas-template .kd-atlas-country-copy{
    width:100%!important;
    min-width:0!important;
    padding:0!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-v3 .kd-atlas-kicker,
  body.kd-standalone-atlas-template .kd-atlas-country-hero-v3 .kd-atlas-kicker{
    margin-bottom:7px!important;
    font-size:10px!important;
    line-height:1.25!important;
    letter-spacing:.12em!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-world .kd-atlas-hero-v3 h1,
  body.kd-standalone-atlas-template .kd-atlas-country-hero-v3 h1{
    margin:0 0 10px!important;
    font-size:42px!important;
    line-height:1!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-world .kd-atlas-hero-v3 p,
  body.kd-standalone-atlas-template .kd-atlas-country-hero-v3 p{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    font-size:15px!important;
    line-height:1.48!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-private-badge{
    width:auto!important;
    max-width:100%!important;
    margin-top:14px!important;
    padding:8px 11px!important;
    white-space:normal!important;
    line-height:1.3!important;
    font-size:9.5px!important;
    overflow-wrap:break-word!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-v3 .kd-atlas-hero-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    width:100%!important;
    margin-top:13px!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-v3 .kd-atlas-hero-actions a,
  body.kd-standalone-atlas-template .kd-atlas-country-back,
  body.kd-standalone-atlas-template .kd-atlas-country-back-v1094{
    width:100%!important;
    min-height:44px!important;
    margin-top:10px!important;
    padding:10px 13px!important;
    font-size:14px!important;
    line-height:1.2!important;
    text-align:center!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-stats-v3{
    grid-column:auto!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    padding:8px!important;
    border-radius:16px!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-country-stats-v3{
    grid-column:auto!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0 8px!important;
    padding:8px!important;
    border-radius:16px!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-stats-v3 div,
  body.kd-standalone-atlas-template .kd-atlas-country-stats-v3 div{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    min-width:0!important;
    min-height:66px!important;
    padding:7px 5px!important;
    text-align:center!important;
    border-bottom:0!important;
    border-right:1px solid rgba(160,190,164,.25)!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-stats-v3 div:last-child,
  body.kd-standalone-atlas-template .kd-atlas-country-stats-v3 div:nth-child(even){border-right:0!important}
  body.kd-standalone-atlas-template .kd-atlas-country-stats-v3 div:nth-child(-n+2){border-bottom:1px solid rgba(160,190,164,.25)!important}
  body.kd-standalone-atlas-template .kd-atlas-hero-stats-v3 i,
  body.kd-standalone-atlas-template .kd-atlas-country-stats-v3 i{
    display:none!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-stats-v3 b,
  body.kd-standalone-atlas-template .kd-atlas-country-stats-v3 b{
    font-size:26px!important;
    line-height:1!important;
  }
  body.kd-standalone-atlas-template .kd-atlas-hero-stats-v3 span,
  body.kd-standalone-atlas-template .kd-atlas-country-stats-v3 span{
    font-size:9.5px!important;
    line-height:1.25!important;
    text-align:center!important;
  }

  /* ---------- GENEALOGÍAS: portada ---------- */
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-v2{
    border-radius:18px!important;
    overflow:hidden!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-mobile{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:18px 16px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-icon{
    width:64px!important;
    height:64px!important;
    margin:0!important;
    border-radius:17px!important;
    font-size:31px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy{
    min-width:0!important;
    width:100%!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy h1{
    margin:3px 0 7px!important;
    font-size:38px!important;
    line-height:1!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy p{
    width:100%!important;
    margin:0!important;
    font-size:15px!important;
    line-height:1.48!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-mobile .kd-gene-private-badge{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin-top:13px!important;
    padding:9px 11px!important;
    white-space:normal!important;
    font-size:9.5px!important;
    line-height:1.3!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:2px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats>div{
    min-width:0!important;
    padding:10px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats>div:last-child{grid-column:1/-1!important}
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats strong{font-size:16px!important}
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats span{font-size:10.5px!important;line-height:1.3!important}

  /* ---------- GENEALOGÍAS: ficha de familia ---------- */
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner.kd-gene-family-hero-universal{
    border-radius:18px!important;
    background-position:64% center!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-breadcrumb{
    padding:15px 14px 0!important;
    flex-wrap:wrap!important;
    gap:6px 10px!important;
    font-size:11px!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-hero-main{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:13px!important;
    padding:14px!important;
    min-height:0!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-avatar{
    width:78px!important;
    height:78px!important;
    border-width:3px!important;
    border-radius:17px!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-title{
    width:100%!important;
    min-width:0!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-title-text{
    margin:7px 0 9px!important;
    font-size:40px!important;
    line-height:1!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-summary{
    width:100%!important;
    max-width:none!important;
    font-size:15px!important;
    line-height:1.45!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-metrics{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
    margin-top:13px!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-metric{
    padding:8px 0!important;
    border:0!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-metric-number{font-size:28px!important}
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-actions{
    grid-column:auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    width:100%!important;
    padding:10px!important;
    border-radius:15px!important;
  }
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-private-badge,
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-actions>a{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:9px 11px!important;
    font-size:11px!important;
    line-height:1.25!important;
  }

  /* ---------- ARCHIVO HISTÓRICO ---------- */
  body.kd-standalone-archive-template #kd-archive-hero.kd-archive-hero{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    min-height:0!important;
    padding:18px 16px!important;
    border-radius:18px!important;
    background-position:60% center!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-main{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    min-width:0!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-symbol{
    width:68px!important;
    height:68px!important;
    border-radius:18px!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-symbol svg{width:38px!important;height:38px!important}
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-copy{width:100%!important;min-width:0!important}
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-kicker{font-size:9.5px!important;line-height:1.25!important}
  body.kd-standalone-archive-template #kd-archive-hero #kd-archive-title{
    margin:0 0 8px!important;
    font-size:38px!important;
    line-height:1!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-copy>p{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    font-size:15px!important;
    line-height:1.48!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-private-badge{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin-top:13px!important;
    padding:8px 11px!important;
    white-space:normal!important;
    font-size:9.5px!important;
    line-height:1.3!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-admin-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
    margin-top:12px!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-admin-actions a{width:100%!important;box-sizing:border-box!important;text-align:center!important}
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-stats{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0 8px!important;
    padding:8px!important;
    border-radius:16px!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-stats>div{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    min-width:0!important;
    min-height:66px!important;
    padding:7px 5px!important;
    text-align:center!important;
    border-right:1px solid rgba(218,255,187,.18)!important;
    border-bottom:1px solid rgba(218,255,187,.18)!important;
  }
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-stats>div:nth-child(even){border-right:0!important}
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-stats>div:nth-last-child(-n+2){border-bottom:0!important}
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-stat-icon{display:none!important}
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-stats strong{font-size:25px!important}
  body.kd-standalone-archive-template #kd-archive-hero .kd-archive-hero-stats small{font-size:9.5px!important;line-height:1.25!important;text-align:center!important}

  /* ---------- CRONOLOGÍA ---------- */
  body.kd-standalone-chronology-template #kd-chrono-hero.kd-chrono-hero{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    min-height:0!important;
    padding:18px 16px!important;
    border-radius:18px!important;
    background-position:62% center!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-main{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    min-width:0!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-symbol{
    width:68px!important;
    height:68px!important;
    border-radius:18px!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-symbol svg{width:38px!important;height:38px!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-copy{width:100%!important;min-width:0!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-kicker{font-size:9.5px!important;line-height:1.25!important}
  body.kd-standalone-chronology-template #kd-chrono-hero #kd-chrono-title{
    margin:0 0 8px!important;
    font-size:36px!important;
    line-height:1.04!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-copy>p{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    font-size:15px!important;
    line-height:1.48!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-private-badge{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin-top:13px!important;
    padding:8px 11px!important;
    white-space:normal!important;
    font-size:9.5px!important;
    line-height:1.3!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    padding:8px!important;
    border-radius:16px!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats>div{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    min-width:0!important;
    min-height:70px!important;
    padding:7px 5px!important;
    text-align:center!important;
    border-bottom:0!important;
    border-right:1px solid rgba(218,255,187,.18)!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats>div:last-child{border-right:0!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-stat-icon{display:none!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats strong{font-size:25px!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats small{font-size:9px!important;line-height:1.25!important;text-align:center!important}
}

@media (max-width:390px){
  body.kd-standalone-atlas-template .kd-atlas-world .kd-atlas-hero-v3 h1,
  body.kd-standalone-atlas-template .kd-atlas-country-hero-v3 h1{font-size:39px!important}
  body.kd-standalone-archive-template #kd-archive-hero #kd-archive-title{font-size:35px!important}
  body.kd-standalone-chronology-template #kd-chrono-hero #kd-chrono-title{font-size:33px!important}
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy h1{font-size:35px!important}
  body.kd-standalone-genealogies-template #kd-genealogy-family-banner .kd-gene-family-title-text{font-size:37px!important}
}

/* ============================================================
 * v1.40.1096 · CORRECCIÓN DEFINITIVA DE BANNERS MÓVILES
 * Genealogías: elimina la creatividad de escritorio con texto rasterizado
 * y usa el contenido HTML móvil sobre un fondo visual legible.
 * Cronología: recompone el hero para móvil sin desbordes ni altura excesiva.
 * ============================================================ */
@media (max-width:640px){
  /* GENEALOGÍAS · portada móvil real (sin texto rasterizado del banner desktop). */
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-v2{
    position:relative!important;
    isolation:isolate!important;
    display:block!important;
    padding:0!important;
    border:1px solid #0b5c2d!important;
    border-radius:18px!important;
    overflow:hidden!important;
    line-height:normal!important;
    background-image:
      linear-gradient(100deg,rgba(2,45,22,.98) 0%,rgba(3,61,29,.95) 54%,rgba(2,48,23,.76) 100%),
      url("../images/kd-genealogy-family-bg-v1401012.webp")!important;
    background-size:cover!important;
    background-position:72% center!important;
    box-shadow:0 14px 32px rgba(8,65,31,.16)!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-v2:before{
    content:""!important;
    position:absolute!important;
    z-index:0!important;
    inset:0!important;
    display:block!important;
    pointer-events:none!important;
    background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(0,0,0,.10))!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-v2 .kd-gene-directory-hero-art{
    display:none!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-mobile{
    position:relative!important;
    z-index:1!important;
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    gap:12px 13px!important;
    align-items:start!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:17px 15px 15px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-icon{
    grid-column:1!important;
    grid-row:1!important;
    display:grid!important;
    place-items:center!important;
    width:56px!important;
    height:56px!important;
    margin:0!important;
    border:1px solid rgba(218,255,181,.58)!important;
    border-radius:16px!important;
    background:linear-gradient(145deg,rgba(24,105,48,.88),rgba(2,42,22,.94))!important;
    box-shadow:0 0 0 1px rgba(190,255,115,.12),0 0 24px rgba(190,255,115,.18)!important;
    color:#e4ffba!important;
    font-size:27px!important;
    line-height:1!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
    padding-top:1px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy .kd-gene-eyebrow{
    display:block!important;
    margin:0 0 4px!important;
    color:#bff38a!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1.25!important;
    letter-spacing:.12em!important;
    text-transform:uppercase!important;
    text-shadow:0 1px 8px rgba(0,0,0,.25)!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy h1{
    margin:0 0 7px!important;
    color:#fff!important;
    font-size:36px!important;
    font-weight:800!important;
    line-height:1.02!important;
    letter-spacing:-.035em!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    text-shadow:0 2px 16px rgba(0,0,0,.28)!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy p{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    color:#f4faf5!important;
    font-size:15px!important;
    font-weight:600!important;
    line-height:1.48!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    text-shadow:0 1px 10px rgba(0,0,0,.35)!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-mobile .kd-gene-private-badge{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin:11px 0 0!important;
    padding:8px 10px!important;
    border-color:rgba(255,226,126,.58)!important;
    background:rgba(89,67,8,.35)!important;
    color:#ffe9a4!important;
    white-space:normal!important;
    font-size:9.5px!important;
    line-height:1.3!important;
    text-shadow:0 1px 8px rgba(0,0,0,.28)!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats{
    grid-column:1/-1!important;
    grid-row:2!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    margin:0!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats>div{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    min-width:0!important;
    min-height:58px!important;
    box-sizing:border-box!important;
    padding:8px 10px!important;
    border:1px solid rgba(213,255,183,.22)!important;
    border-radius:12px!important;
    background:rgba(1,39,19,.55)!important;
    backdrop-filter:blur(4px)!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats>div:last-child{
    grid-column:1/-1!important;
    min-height:52px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats strong{
    display:block!important;
    color:#dcff9a!important;
    font-size:16px!important;
    font-weight:900!important;
    line-height:1.1!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-stats span{
    display:block!important;
    margin-top:3px!important;
    color:#f0f8f1!important;
    font-size:10.5px!important;
    line-height:1.25!important;
  }

  /* CRONOLOGÍA · hero compacto, legible y estable en teléfono. */
  body.kd-standalone-chronology-template #kd-chrono-hero.kd-chrono-hero{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    min-height:0!important;
    padding:16px 14px 14px!important;
    border-radius:18px!important;
    background-image:
      linear-gradient(94deg,rgba(2,48,23,.98) 0%,rgba(3,62,29,.93) 56%,rgba(2,45,22,.77) 100%),
      url("../images/kd-genealogy-family-bg-v1401012.webp")!important;
    background-size:cover!important;
    background-position:70% center!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-main{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:start!important;
    min-width:0!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-symbol{
    width:56px!important;
    height:56px!important;
    border-radius:16px!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-symbol svg{
    width:31px!important;
    height:31px!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-copy{
    width:100%!important;
    min-width:0!important;
    padding-top:1px!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-kicker{
    margin:0 0 4px!important;
    font-size:9.5px!important;
    line-height:1.25!important;
    letter-spacing:.11em!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero #kd-chrono-title{
    margin:0 0 7px!important;
    color:#fff!important;
    font-size:32px!important;
    line-height:1.02!important;
    letter-spacing:-.035em!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    text-shadow:0 2px 16px rgba(0,0,0,.28)!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-copy>p{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    color:#f4faf5!important;
    font-size:14px!important;
    font-weight:600!important;
    line-height:1.46!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    text-shadow:0 1px 10px rgba(0,0,0,.34)!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-private-badge{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin:10px 0 0!important;
    padding:8px 9px!important;
    white-space:normal!important;
    font-size:9px!important;
    line-height:1.25!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:7px!important;
    border-radius:14px!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats>div{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    min-width:0!important;
    min-height:62px!important;
    box-sizing:border-box!important;
    padding:6px 4px!important;
    text-align:center!important;
    border:0!important;
    border-right:1px solid rgba(218,255,187,.18)!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats>div:last-child{
    border-right:0!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-stat-icon{
    display:none!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats strong{
    display:block!important;
    color:#dcff9a!important;
    font-size:21px!important;
    line-height:1!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats small{
    display:block!important;
    margin-top:3px!important;
    color:#f0f8f1!important;
    font-size:8.5px!important;
    line-height:1.2!important;
    text-align:center!important;
  }
}

@media (max-width:390px){
  body.kd-standalone-genealogies-template .kd-gene-directory-hero-mobile{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:10px 11px!important;
    padding:15px 13px 13px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-icon{
    width:50px!important;
    height:50px!important;
    border-radius:14px!important;
    font-size:24px!important;
  }
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy h1{font-size:33px!important}
  body.kd-standalone-genealogies-template .kd-gene-mobile-hero-copy p{font-size:14px!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-main{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:10px!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-symbol{
    width:50px!important;
    height:50px!important;
  }
  body.kd-standalone-chronology-template #kd-chrono-hero #kd-chrono-title{font-size:29px!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-copy>p{font-size:13.5px!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats strong{font-size:19px!important}
  body.kd-standalone-chronology-template #kd-chrono-hero .kd-chrono-hero-stats small{font-size:8px!important}
}
