/* Pérez & Burgos · equilibrio editorial y correcciones responsive v228 */

@media (min-width:1001px){
  .practice-hub-grid,
  .guide-area-grid-v222,
  .guide-featured-grid-v222,
  .tools-page .tools-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
  .practice-hub-grid>* ,
  .guide-area-grid-v222>* ,
  .guide-featured-grid-v222>* ,
  .tools-page .tools-grid>*{grid-column:span 2}
  .practice-hub-grid>:last-child:nth-child(3n+1),
  .guide-area-grid-v222>:last-child:nth-child(3n+1),
  .guide-featured-grid-v222>:last-child:nth-child(3n+1),
  .tools-page .tools-grid>:last-child:nth-child(3n+1){grid-column:3/span 2}
  .practice-hub-grid>:nth-last-child(2):nth-child(3n+1),
  .guide-area-grid-v222>:nth-last-child(2):nth-child(3n+1),
  .guide-featured-grid-v222>:nth-last-child(2):nth-child(3n+1),
  .tools-page .tools-grid>:nth-last-child(2):nth-child(3n+1){grid-column:2/span 2}

  .model-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:9px}
  .model-grid>.model-card{flex:0 1 calc((100% - 18px)/3)}
  .model-group--two-col .model-grid>.model-card{flex-basis:calc((100% - 9px)/2)}

  .seo-related:not(.seo-related--balanced-library):not(.seo-related--dense-library) .seo-related-list,
  .imm-related-strip,
  .guide-fee-grid-v214{grid-template-columns:repeat(4,minmax(0,1fr))}
  .seo-related:not(.seo-related--balanced-library):not(.seo-related--dense-library) .seo-related-list>* ,
  .imm-related-strip>* ,
  .guide-fee-grid-v214>*{grid-column:span 2}
  .seo-related:not(.seo-related--balanced-library):not(.seo-related--dense-library) .seo-related-list>:last-child:nth-child(odd),
  .imm-related-strip>:last-child:nth-child(odd),
  .guide-fee-grid-v214>:last-child:nth-child(odd){grid-column:2/span 2}

  .seo-related.seo-related--dense-library .seo-related-list{grid-template-columns:repeat(8,minmax(0,1fr))}
  .seo-related.seo-related--dense-library .seo-related-list>*{grid-column:span 2!important}
  .seo-related.seo-related--dense-library .seo-related-list>:last-child:nth-child(4n+1){grid-column:4/span 2!important}

  .area-fees-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
  .area-fees-grid>*{grid-column:span 2}
  .area-fees-grid>:last-child:nth-child(4n+1){grid-column:4/span 2}
  .area-fees-grid>:nth-last-child(2):nth-child(4n+1){grid-column:3/span 2}
  .area-fees-grid>:last-child:nth-child(4n+2){grid-column:5/span 2}
}

@media (min-width:681px) and (max-width:1000px){
  .model-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:9px}
  .model-grid>.model-card{flex:0 1 calc((100% - 9px)/2)}
}

@media (min-width:601px) and (max-width:1000px){
  .practice-hub-grid,
  .guide-area-grid-v222,
  .guide-featured-grid-v222,
  .tools-page .tools-grid,
  .seo-related:not(.seo-related--balanced-library):not(.seo-related--dense-library) .seo-related-list,
  .imm-related-strip,
  .guide-fee-grid-v214,
  .area-fees-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .practice-hub-grid>* ,
  .guide-area-grid-v222>* ,
  .guide-featured-grid-v222>* ,
  .tools-page .tools-grid>* ,
  .seo-related:not(.seo-related--balanced-library):not(.seo-related--dense-library) .seo-related-list>* ,
  .imm-related-strip>* ,
  .guide-fee-grid-v214>* ,
  .area-fees-grid>*{grid-column:span 2}
  .practice-hub-grid>:last-child:nth-child(odd),
  .guide-area-grid-v222>:last-child:nth-child(odd),
  .guide-featured-grid-v222>:last-child:nth-child(odd),
  .tools-page .tools-grid>:last-child:nth-child(odd),
  .seo-related:not(.seo-related--balanced-library):not(.seo-related--dense-library) .seo-related-list>:last-child:nth-child(odd),
  .imm-related-strip>:last-child:nth-child(odd),
  .guide-fee-grid-v214>:last-child:nth-child(odd),
  .area-fees-grid>:last-child:nth-child(odd){grid-column:2/span 2}
}

@media (max-width:1000px){
  .team-hero-grid-v211{grid-template-columns:minmax(0,1fr)!important}
  .team-hero-grid-v211>*{min-width:0}
}

@media (max-width:680px){
  .model-grid{display:grid;grid-template-columns:minmax(0,1fr)}
  .model-grid>.model-card{min-width:0}
}

@media (max-width:600px){
  .practice-hub-grid>* ,
  .guide-area-grid-v222>* ,
  .guide-featured-grid-v222>* ,
  .tools-page .tools-grid>* ,
  .seo-related-list>* ,
  .imm-related-strip>* ,
  .guide-fee-grid-v214>* ,
  .area-fees-grid>*{grid-column:auto}
}

@media (min-width:1001px){
  #honorarios-derecho-familia.area-fees-section>.wrap>.area-fees-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  #honorarios-derecho-familia .area-fees-grid>*{grid-column:auto!important}
}
