/* ==========================================================
   Medical Sport - CSS global
   Extraído sin cambios visuales desde header.php y footer.php
   ========================================================== */

/* HEADER Y COOKIES */
body{
  margin:0;
}

.ms-global-header,
.ms-global-header *{
  box-sizing:border-box;
}

.ms-global-header{
  background:#ffffff;
  border-bottom:1px solid rgba(15,76,129,.10);
  position:sticky;
  top:0;
  z-index:1000;
}

.ms-global-header-inner{
  width:min(1180px, calc(100% - 34px));
  min-height:72px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.ms-global-brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#0a355c;
}

.ms-global-brand-logos{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.ms-global-brand-logos img{
  height:32px;
  width:auto;
  display:block;
  object-fit:contain;
}

.ms-global-brand-title{
  font-size:17px;
  font-weight:900;
  color:#0a355c;
  white-space:nowrap;
}

.ms-global-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.ms-global-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(15,76,129,.22);
  text-decoration:none;
  font-size:14px;
  font-weight:900;
  color:#0f4c81;
  background:#ffffff;
  transition:.18s ease;
  white-space:nowrap;
}

.ms-global-btn:hover{
  transform:translateY(-1px);
}

.ms-global-btn-primary{
  background:#0f4c81;
  color:#ffffff !important;
  border-color:#0f4c81;
  padding:10px 16px;
  min-width:auto;
  white-space:nowrap;
}

.ms-global-btn-diabetes{
  gap:9px;
  padding:6px 14px 6px 8px;
  border-color:rgba(0,132,137,.34);
  color:#007f87;
  background:linear-gradient(180deg,#ffffff 0%,#f4fbfb 100%);
}

.ms-global-btn-diabetes img{
  width:auto;
  height:32px;
  max-width:38px;
  object-fit:contain;
  flex-shrink:0;
}

.ms-global-btn-diabetes span{
  line-height:1.05;
  text-align:left;
  white-space:nowrap;
}

.ms-global-btn-diabetes small{
  display:block;
  font-size:10px;
  font-weight:800;
  color:#0a355c;
  opacity:.78;
}

.ms-global-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(15,76,129,.22);
  background:#ffffff;
  text-decoration:none !important;
  font-size:18px;
  line-height:1;
  transition:.18s ease;
}

.ms-global-icon-btn:hover{
  transform:translateY(-1px);
}

.ms-cookie-banner{
  position:fixed;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:99999;
  display:none;
  max-width:980px;
  margin:0 auto;
  background:#ffffff;
  border:1px solid rgba(15,76,129,.18);
  box-shadow:0 18px 45px rgba(10,53,92,.18);
  border-radius:22px;
  padding:18px;
}

.ms-cookie-banner.is-visible{
  display:block;
}

.ms-cookie-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.ms-cookie-text{
  color:#22324a;
  font-size:14px;
  line-height:1.45;
}

.ms-cookie-text strong{
  color:#0a355c;
}

.ms-cookie-actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
}

.ms-cookie-btn{
  border:1px solid rgba(15,76,129,.22);
  border-radius:999px;
  padding:10px 16px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  background:#ffffff;
  color:#0f4c81;
}

.ms-cookie-btn-accept{
  background:#0f4c81;
  border-color:#0f4c81;
  color:#ffffff;
}

.ms-cookie-link{
  color:#0f4c81;
  font-weight:800;
  text-decoration:underline;
}

@media (max-width:820px){

  .ms-global-header-inner{
    flex-direction:column;
    align-items:flex-start;
    padding:12px 0;
  }

  .ms-global-actions{
    width:100%;
    flex-wrap:wrap;
  }

  .ms-global-btn{
    flex:1;
  }

  .ms-global-btn-diabetes{
    width:100%;
    justify-content:flex-start;
  }

  .ms-cookie-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .ms-cookie-actions{
    width:100%;
  }

  .ms-cookie-btn{
    flex:1;
  }
}

/* FOOTER */
.ms-site-footer{
    margin-top: 32px;
    padding: 28px 16px 24px;
    border-top: 1px solid #dbe7f3;
    background: transparent;
  }

  .ms-site-footer-inner{
    width: min(100%, 1120px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .ms-site-footer-brand{
    color: #5d7693;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .ms-site-footer-legal{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .ms-site-footer-legal a{
    color: #0f5ea8;
    text-decoration: none;
    font-weight: 600;
    transition: all .18s ease;
  }

  .ms-site-footer-legal a:hover{
    opacity: .86;
    transform: translateY(-1px);
  }

  .ms-site-footer-sep{
    color: #8aa5bf;
    font-size: 12px;
  }

  @media (max-width: 640px){
    .ms-site-footer{
      margin-top: 24px;
      padding: 24px 14px 20px;
    }

    .ms-site-footer-brand{
      font-size: 13px;
    }

    .ms-site-footer-legal{
      gap: 8px;
      font-size: 12.5px;
    }
  }
