.medusa-garantias-cards {
  --green: #168622;
  --green2: #75b90c;
  --blue: #075cff;
  --gold: #e1a100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 0;
  font-family: 'Avenir', 'Avenir Next', Montserrat, Arial, Helvetica, sans-serif;
  color: #222
}

.mgc-card {
  background: #f9f9f9;
  border: 1.5px solid var(--c);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 605px
}

.mgc-head {
  height: 138px;
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 25px 26px 23px 28px;
  text-align: left;
  color: #fff;
  background: var(--grad);
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
  cursor: pointer
}

.mgc-icon {
  width: 63px;
  height: 63px;
  display: block;
  flex: 0 0 63px
}

.mgc-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round
}

.mgc-titlewrap {
  display: flex;
  flex-direction: column;
  line-height: .95;
  color: #fff
}

.mgc-titlewrap strong {
  font-size: 22px;
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.7px
}

.mgc-titlewrap b {
  font-weight: 900
}

.mgc-titlewrap small {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  margin-top: 2px
}

.mgc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 31px 24px 24px
}

.mgc-desc {
    font-size: 14px;
    font-family: 'Roboto';
    font-weight: 400;
    line-height: 1.36;
    margin: 0 0 20px;
}

.mgc-sep {
  height: 1px;
  background: #aaa;
  opacity: .65;
  width: 100%;
  margin: 0 0 15px
}

.mgc-list-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins';
    font-size: 14px;
    font-weight: 700;
    color: var(--c);
    margin-bottom: 17px;
}

.mgc-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c);
  color: #fff;
  font-size: 12px;
  line-height: 1
}

.mgc-content ul {
    list-style: none;
    font-family: 'Roboto';
    font-size: 14px;
    font-weight: 400;
    color: #232221;
    margin: 0 0 16px;
    padding: 0;
}

.mgc-content li {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 14px
}

.mgc-extra {
  margin-top: -4px;
  margin-bottom: 12px
}

.mgc-spacer {
  flex: 1;
  min-height: 32px
}

.mgc-meta {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #232221;
    font-size: 14px;
    line-height: 1.18;
    font-weight: 400;
    font-family: 'Roboto';
    margin: 0 0 13px;
}

.mgc-meta strong {
    color: var(--c);
    font-size: 14px;
    font-family: 'Roboto';
    font-weight: 700;
}

.mgc-meta-icon {
  color: var(--c);
  font-size: 16px;
  line-height: 1
}

.mgc-btn {
    height: 36px;
    border: 1.4px solid var(--c);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: var(--c) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-family: 'Roboto';
    font-weight: 400;
    margin-top: 8px;
    background: #fff;
}

.mgc-auto {
  --c: var(--green);
  --grad: linear-gradient(135deg, #0d8b26 0%, #0b7921 50%, #0f9b32 100%)
}

.mgc-tren {
  --c: #68a80d;
  --grad: linear-gradient(135deg, #78b813 0%, #579c05 52%, #9ad61f 100%)
}

.mgc-cosmetico {
  --c: #1c58ff;
  --grad: linear-gradient(135deg, #124aff 0%, #0046d8 50%, #047bff 100%)
}

.mgc-proteccion {
  --c: #dda000;
  --grad: linear-gradient(135deg, #b27a00 0%, #e0a200 48%, #ffd000 100%)
}

@media(max-width:1024px) {
  .medusa-garantias-cards {
    gap: 14px
  }

  .mgc-head {
    padding-left: 20px;
    padding-right: 20px
  }

  .mgc-titlewrap strong {
    font-size: 19px
  }

  .mgc-icon {
    width: 55px;
    height: 55px;
    flex-basis: 55px
  }

  .mgc-body {
    padding-left: 20px;
    padding-right: 20px
  }
}

@media(max-width:767px) {
  .medusa-garantias-cards {
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-width: 184px;
    padding: 10px 0
  }

  .mgc-card {
    min-height: 0;
    border-radius: 8px;
    border-width: 1px;
    overflow: visible;
    background: #f7f7f7
  }

  .mgc-head {
    height: 82px;
    border-radius: 7px;
    padding: 13px 18px;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .28)
  }

  .mgc-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px
  }

  .mgc-icon svg {
    stroke-width: 3.2
  }

  .mgc-titlewrap strong {
    font-size: 13px;
    line-height: .94;
    letter-spacing: -.3px
  }

  .mgc-titlewrap small {
    font-size: 6.5px;
    margin-top: 1px
  }

  .mgc-body {
    display: none;
    padding: 24px 16px 15px;
    background: #f7f7f7;
    border: 1px solid var(--c);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    margin-top: -1px
  }

  .mgc-card.is-open .mgc-body {
    display: flex
  }

  .mgc-card.is-open .mgc-head {
    border-radius: 7px 7px 0 0
  }

  .mgc-desc {
    font-size: 9.7px;
    line-height: 1.35;
    margin-bottom: 18px
  }

  .mgc-sep {
    margin-bottom: 9px
  }

  .mgc-list-title {
    font-size: 9.5px;
    margin-bottom: 12px;
    gap: 5px
  }

  .mgc-check {
    width: 11px;
    height: 11px;
    font-size: 8px
  }

  .mgc-content li {
    font-size: 9.5px;
    line-height: 1.3;
    margin-bottom: 11px
  }

  .mgc-spacer {
    min-height: 11px
  }

  .mgc-meta {
    font-size: 9px;
    gap: 6px;
    margin-bottom: 9px
  }

  .mgc-meta strong {
    font-size: 9.5px
  }

  .mgc-meta-icon {
    font-size: 11px
  }

  .mgc-btn {
    height: 22px;
    font-size: 8px;
    gap: 16px;
    border-radius: 3px;
    margin-top: 4px
  }

  .mgc-auto {
    order: 1
  }

  .mgc-tren {
    order: 2
  }

  .mgc-cosmetico {
    order: 3
  }

  .mgc-proteccion {
    order: 4
  }
}
.mgc-meta-icon img{width:18px;height:18px;display:block;}

/* Tipografía de títulos: Avenir con pesos por línea */
.mgc-head,
.mgc-titlewrap,
.mgc-titlewrap *{
  font-family: 'Avenir', 'Avenir Next', Montserrat, Arial, Helvetica, sans-serif !important;
}

.mgc-titlewrap{
  display:flex;
  flex-direction:column;
  line-height:.9;
  color:#fff;
}

.mgc-title-line{
  display:block;
  color:#fff;
  letter-spacing:-.6px;
  line-height:.9;
}

.mgc-title-light{
  font-size:22px;
  font-weight:400;
}

.mgc-title-bold{
  font-size:22px;
  font-weight:900;
}

.mgc-titlewrap small{
  display:block;
  font-size:11px;
  font-weight:800;
  line-height:1.05;
  margin-top:3px;
  letter-spacing:-.15px;
}

@media(max-width:1024px){
  .mgc-title-light,
  .mgc-title-bold{font-size:19px;}
}

@media(max-width:767px){
  .mgc-title-light,
  .mgc-title-bold{font-size:13px; letter-spacing:-.25px;}
  .mgc-titlewrap small{font-size:6.5px; margin-top:1px;}
}


/* Ajuste final: títulos como referencia (Avenir con pesos distintos) */
.mgc-head,
.mgc-titlewrap,
.mgc-titlewrap *{
  font-family: "Avenir LT Std", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif !important;
  color:#fff;
}

.mgc-titlewrap{
  line-height:.86 !important;
}

.mgc-title-line{
  display:block;
  letter-spacing:-1.05px;
  line-height:.86;
}

.mgc-title-light{
  font-size:24px;
  font-weight:300 !important;
  font-family:"Avenir LT Std", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif !important;
}

.mgc-title-bold{
  font-size:24px;
  font-weight:900 !important;
  font-family:"Avenir LT Std", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing:-.95px;
}

.mgc-titlewrap small{
  font-size:11.5px !important;
  font-weight:800 !important;
  line-height:1.02 !important;
  margin-top:4px !important;
  letter-spacing:-.25px;
}

@media(max-width:1024px){
  .mgc-title-light,
  .mgc-title-bold{font-size:20px;}
  .mgc-titlewrap small{font-size:10px !important;}
}

@media(max-width:767px){
  .mgc-titlewrap{line-height:.88 !important;}
  .mgc-title-light,
  .mgc-title-bold{
    font-size:15px !important;
    letter-spacing:-.55px;
    line-height:.88;
  }
  .mgc-titlewrap small{
    font-size:7px !important;
    margin-top:2px !important;
  }
}

/* Corrección: desktop centrado y encabezados en una sola línea como el diseño */
@media (min-width: 768px){
  .medusa-garantias-cards{
    width: 100% !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important;
    justify-content: center !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  .medusa-garantias-cards .mgc-card{
    width: 100% !important;
    max-width: 270px !important;
    min-height: 605px !important;
    box-sizing: border-box !important;
  }

  .medusa-garantias-cards .mgc-head{
    height: 138px !important;
    min-height: 138px !important;
    max-height: 138px !important;
    padding: 25px 24px 23px 28px !important;
    gap: 13px !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .medusa-garantias-cards .mgc-icon{
    width: 63px !important;
    height: 63px !important;
    flex: 0 0 63px !important;
  }

  .medusa-garantias-cards .mgc-icon img{
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
  }

  .medusa-garantias-cards .mgc-titlewrap{
    min-width: 0 !important;
    flex: 1 1 auto !important;
    line-height: .9 !important;
  }

  .medusa-garantias-cards .mgc-title-line{
    display: block !important;
    white-space: nowrap !important;
    font-family: "Avenir LT Std", "Avenir Next", Avenir, Arial, sans-serif !important;
    line-height: .9 !important;
    letter-spacing: -0.7px !important;
  }

  .medusa-garantias-cards .mgc-title-light{
    font-size: 20px !important;
    font-weight: 300 !important;
  }

  .medusa-garantias-cards .mgc-title-bold{
    font-size: 21px !important;
    font-weight: 900 !important;
  }

  .medusa-garantias-cards .mgc-titlewrap small{
    display: block !important;
    white-space: nowrap !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-top: 3px !important;
    letter-spacing: -0.1px !important;
  }

  .medusa-garantias-cards .mgc-tren .mgc-title-bold,
  .medusa-garantias-cards .mgc-cosmetico .mgc-title-bold,
  .medusa-garantias-cards .mgc-proteccion .mgc-title-bold{
    font-size: 20px !important;
  }

  .medusa-garantias-cards .mgc-proteccion .mgc-title-light{
    font-size: 16px !important;
    letter-spacing: -0.45px !important;
  }
}

@media (max-width: 767px){
  .medusa-garantias-cards .mgc-title-line,
  .medusa-garantias-cards .mgc-titlewrap small{
    white-space: nowrap !important;
  }
}
