/* CONTUHIJO CORE / VCTF 5.6 ULTRA DEFINITIVE
   Additive VCTF-only hardening. No Marga logic is changed here. */

/* 1) Header logo: +33% on desktop versus the VCTF5.1 190px baseline. */
@media (min-width:1180px){
  body.cth-brand--vctf .vmon-brand__logo{max-width:min(253px,28vw)!important;max-height:72px!important}
}
@media (min-width:901px) and (max-width:1179px){
  body.cth-brand--vctf .vmon-brand__logo{max-width:min(235px,31vw)!important;max-height:67px!important}
}
@media (max-width:900px){
  body.cth-brand--vctf .vmon-brand__logo{max-width:min(213px,58vw)!important;max-height:64px!important}
}
@media (max-width:580px){
  body.cth-brand--vctf .vmon-brand__logo{max-width:min(205px,62vw)!important;max-height:60px!important}
}

/* 2) Editorial/article rescue: old Colibri page geometry is content, not layout.
   Flatten only legacy h-* wrappers inside the new VCTF editorial canvas. */
body.cth-brand--vctf .vctf-editorial-master__content :where(
  .h-section,.h-section-grid-container,.h-row-container,.h-row,
  .h-column,.h-column-container,.h-column__inner,.h-column__content,.h-y-container,
  [class*="h-col-"]
),
body.cth-brand--vctf .vmon-editorial__content--legal :where(
  .h-section,.h-section-grid-container,.h-row-container,.h-row,
  .h-column,.h-column-container,.h-column__inner,.h-column__content,.h-y-container,
  [class*="h-col-"]
){
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin-left:0!important;margin-right:0!important;float:none!important;
  flex:0 0 100%!important;flex-basis:100%!important;box-sizing:border-box!important
}
body.cth-brand--vctf .vctf-editorial-master__content :where(.h-row,.h-row-container),
body.cth-brand--vctf .vmon-editorial__content--legal :where(.h-row,.h-row-container){display:block!important}
body.cth-brand--vctf .vctf-editorial-master__content :where(img,video,iframe),
body.cth-brand--vctf .vmon-editorial__content--legal :where(img,video,iframe){max-width:100%!important;height:auto}
body.cth-brand--vctf .vctf-editorial-master__content :where(table),
body.cth-brand--vctf .vmon-editorial__content--legal :where(table){max-width:100%!important}

/* Editorial reading width remains generous but bounded; legal pages all share it. */
body.cth-brand--vctf .vmon-editorial--legal .vmon-legal-layout{width:min(100%,970px)!important;max-width:970px!important;margin-left:auto!important;margin-right:auto!important}
body.cth-brand--vctf .vmon-editorial--legal .vmon-editorial__content--legal{width:min(100%,860px)!important;max-width:860px!important;margin-left:auto!important;margin-right:auto!important;min-width:0!important;box-sizing:border-box!important}
@media (min-width:760px){
  body.cth-brand--vctf .vctf-editorial-master__content :where(p,li),
  body.cth-brand--vctf .vmon-editorial__content--legal :where(p,li){text-align:justify;text-justify:inter-word}
}
@media (max-width:759px){
  body.cth-brand--vctf .vctf-editorial-master__content :where(p,li),
  body.cth-brand--vctf .vmon-editorial__content--legal :where(p,li){text-align:left}
}

/* 3) Search route: release every inherited half-column and keep the full canvas centered. */
body.cth-brand--vctf.vmon-search-route :where(
  #main,.content.colibri-page-content,.main-content,.page-content,
  .h-section,.h-section-grid-container,.h-row-container,.h-row,
  .h-column,.h-column-container,.h-column__inner,.h-column__content,.h-y-container
):has(form.cth-vctf45-search-form),
body.cth-brand--vctf.vmon-search-route :where(
  #main,.content.colibri-page-content,.main-content,.page-content,
  .h-section,.h-section-grid-container,.h-row-container,.h-row,
  .h-column,.h-column-container,.h-column__inner,.h-column__content,.h-y-container
):has(.vmon381-search-results){
  width:100%!important;max-width:none!important;min-width:0!important;
  margin-left:auto!important;margin-right:auto!important;float:none!important;
  flex:0 0 100%!important;flex-basis:100%!important;box-sizing:border-box!important
}
body.cth-brand--vctf.vmon-search-route :where(
  form.cth-vctf45-search-form,.vmon-marga--search form.md-template,
  .cth-vctf45-search-results-canvas,.vmon381-search-results
){
  width:min(calc(100% - 32px),1240px)!important;max-width:1240px!important;
  margin-left:auto!important;margin-right:auto!important;float:none!important;box-sizing:border-box!important
}

/* Search cards: legacy .travel-card facts inherited white from the Marga form. */
body.cth-brand--vctf.vmon-search-route .vmon2026 .travel-card dt,
body.cth-brand--vctf .vmon-marga--search .vmon2026 .travel-card dt{color:#6f7f92!important}
body.cth-brand--vctf.vmon-search-route .vmon2026 .travel-card dd,
body.cth-brand--vctf .vmon-marga--search .vmon2026 .travel-card dd{color:#071b33!important}
body.cth-brand--vctf.vmon-search-route .vmon2026 .md-trip-card__fact dt{color:#6f7f92!important}
body.cth-brand--vctf.vmon-search-route .vmon2026 .md-trip-card__fact dd{color:#071b33!important}

/* 4) Contact route and trip-contact route: center the real Marga surface, never its logic. */
body.cth-brand--vctf.vmon-contact-route :where(.cth-vctf45-form-shell,.vmon380-contact-form,.vmon-marga--contact),
body.cth-brand--vctf.cth-marga-trip-contact :where(.cth-vctf45-form-shell,.vmon-marga--contact),
body.cth-brand--vctf.vmon-contact-route :where(
  .h-section,.h-section-grid-container,.h-row-container,.h-row,.h-column,.h-column-container,.h-column__inner,.h-column__content,.h-y-container
):has(#contacto-form),
body.cth-brand--vctf.cth-marga-trip-contact :where(
  .h-section,.h-section-grid-container,.h-row-container,.h-row,.h-column,.h-column-container,.h-column__inner,.h-column__content,.h-y-container
):has(#contacto-form){
  width:100%!important;max-width:none!important;min-width:0!important;
  margin-left:auto!important;margin-right:auto!important;float:none!important;
  flex:0 0 100%!important;flex-basis:100%!important;box-sizing:border-box!important
}
body.cth-brand--vctf.vmon-contact-route #contacto-form,
body.cth-brand--vctf.cth-marga-trip-contact #contacto-form{
  width:min(calc(100% - 32px),1060px)!important;max-width:1060px!important;
  margin-left:auto!important;margin-right:auto!important;float:none!important;box-sizing:border-box!important
}
@media (max-width:620px){
  body.cth-brand--vctf.vmon-search-route :where(form.cth-vctf45-search-form,.vmon-marga--search form.md-template,.cth-vctf45-search-results-canvas,.vmon381-search-results),
  body.cth-brand--vctf.vmon-contact-route #contacto-form,
  body.cth-brand--vctf.cth-marga-trip-contact #contacto-form{width:min(calc(100% - 20px),1240px)!important}
}
