/* NCCM v51 — About/Nosotros logo wrap real fix
   El logo queda pequeño a la izquierda y el texto corre a la derecha y debajo,
   sin apretar palabras ni dejar la tarjeta en columna angosta. */

@media (max-width:760px){
  html body:has(.about-company-history) .about-company-history,
  html body .about-company-history{
    padding:20px 0 calc(90px + env(safe-area-inset-bottom,0px))!important;
  }

  html body:has(.about-company-history) .about-company-history .container.split,
  html body .about-company-history .container.split{
    display:block!important;
    grid-template-columns:none!important;
    width:calc(100vw - 28px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
    gap:0!important;
  }

  html body:has(.about-company-history) .about-company-history .feature-photo,
  html body .about-company-history .feature-photo{
    display:none!important;
  }

  html body:has(.about-company-history) .about-company-history .story-card,
  html body .about-company-history .story-card{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    padding:20px 18px 18px!important;
    background:#fffaf3!important;
    border:1px solid rgba(75,44,27,.10)!important;
    border-radius:30px!important;
    box-shadow:0 18px 38px rgba(39,24,14,.08)!important;
    overflow:hidden!important;
  }

  html body:has(.about-company-history) .about-company-history .story-card:after,
  html body .about-company-history .story-card:after{
    content:""!important;
    display:block!important;
    clear:both!important;
  }

  html body:has(.about-company-history) .about-company-history .story-card .about-inline-logo,
  html body .about-company-history .story-card .about-inline-logo{
    display:flex!important;
    float:left!important;
    width:90px!important;
    height:90px!important;
    min-width:90px!important;
    margin:0 14px 10px 0!important;
    padding:6px!important;
    border-radius:20px!important;
    background:#110b08!important;
    box-shadow:0 12px 26px rgba(20,10,4,.18)!important;
    align-items:center!important;
    justify-content:center!important;
    position:relative!important;
    z-index:1!important;
  }

  html body:has(.about-company-history) .about-company-history .story-card .about-inline-logo img,
  html body .about-company-history .story-card .about-inline-logo img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    border-radius:16px!important;
    display:block!important;
    background:transparent!important;
  }

  html body:has(.about-company-history) .about-company-history .story-card .kicker,
  html body .about-company-history .story-card .kicker{
    display:block!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin:2px 0 6px!important;
    font-size:10px!important;
    line-height:1.25!important;
    letter-spacing:2.5px!important;
    color:#c79452!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  html body:has(.about-company-history) .about-company-history .story-card .title,
  html body .about-company-history .story-card .title{
    display:block!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin:0 0 8px!important;
    font-size:22px!important;
    line-height:1.04!important;
    color:#1a100b!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }

  html body:has(.about-company-history) .about-company-history .story-card .lead,
  html body .about-company-history .story-card .lead{
    display:block!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    font-size:13.6px!important;
    line-height:1.56!important;
    color:#5c4b40!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }

  html body:has(.about-company-history) .about-company-history .values-grid,
  html body .about-company-history .values-grid{
    clear:both!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:16px!important;
  }
}

@media (max-width:390px){
  html body:has(.about-company-history) .about-company-history .story-card,
  html body .about-company-history .story-card{
    padding:18px 14px 16px!important;
  }
  html body:has(.about-company-history) .about-company-history .story-card .about-inline-logo,
  html body .about-company-history .story-card .about-inline-logo{
    width:76px!important;
    height:76px!important;
    min-width:76px!important;
    margin:0 12px 8px 0!important;
    border-radius:18px!important;
  }
  html body:has(.about-company-history) .about-company-history .story-card .title,
  html body .about-company-history .story-card .title{
    font-size:19px!important;
    line-height:1.05!important;
  }
  html body:has(.about-company-history) .about-company-history .story-card .lead,
  html body .about-company-history .story-card .lead{
    font-size:13px!important;
    line-height:1.55!important;
  }
}
