
/* =========================================================
   MS WEB — HOJA DE ESTILOS
   Estructura organizada por componentes
   ========================================================= */


/* =========================================================
   01. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================= */

#ms-web {
  --ms-bg: light-dark(#ffffff, #0c1c2c);
  --ms-ink: light-dark(#112e46, #e3f1fa);
  --ms-soft: light-dark(#eff8fc, #142c40);
  --ms-line: light-dark(#dceaf1, #284358);
  --ms-muted: light-dark(#536d80, #acc1d1);

  font-family: Arial, sans-serif;
  color: var(--ms-ink);
  background: var(--ms-bg);
  font-size: 15px;
  line-height: 1.55;
  border-radius: 16px;
  overflow: hidden;
}

#ms-web * {
  box-sizing: border-box;
}

#ms-web button,
#ms-web input,
#ms-web select {
  font: inherit;
}

#ms-web button {
  cursor: pointer;
}


/* =========================================================
   02. BARRA SUPERIOR
   ========================================================= */

#ms-web .ms-top {
  padding: 8px 32px;
  background: #082746;
  color: #d1ebf9;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================================================
   03. HEADER Y LOGOTIPO
   ========================================================= */

#ms-web header {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--ms-bg);
  border-bottom: 1px solid var(--ms-line);
  flex-wrap: wrap;
}

#ms-web .ms-logo {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ms-ink);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  letter-spacing: 1px;
  font-weight: 700;
}

#ms-web .ms-logo small {
  font-size: 9px;
  letter-spacing: 2px;
  display: block;
  font-weight: 400;
}

#ms-web .ms-cross {
  background: #0b7eaf;
  color: #fff;
  border: 5px solid #c2f0fc;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}


/* =========================================================
   04. NAVEGACIÓN
   MENÚ PRINCIPAL + REGISTRARSE + INICIAR SESIÓN
   ========================================================= */

/* Contenedor del menú */

#ms-web header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Todas las pestañas */

#ms-web header nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 9px;

    background: transparent;
    color: var(--ms-muted);

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 12px;
    font-weight: 500;
    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* =========================================
   EFECTO HOVER - PESTAÑAS NORMALES
   ========================================= */
/* =========================================
   HOVER - MENÚ PRINCIPAL AZUL OSCURO
========================================= */

#ms-web header nav button:not(.ms-nav-register):not(.ms-nav-login):hover {
    background: #1F456E;
    color: #ffffff;
    border-color: #69DCFF;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(31, 69, 110, 0.25);
}
/* Pestaña seleccionada */

#ms-web header nav button:not(.ms-nav-register):not(.ms-nav-login)[aria-current="page"] {
    background: #e7f7fc;
    color: #075b87;
    border-color: #2094b8;
    font-weight: 700;
}

/* =========================================
   BOTONES REGISTRARSE E INICIAR SESIÓN
   ========================================= */

#ms-web header nav .ms-nav-register,
#ms-web header nav .ms-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 13px;

    border: 2px solid ;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Iconos Lucide */

#ms-web header nav .ms-nav-register svg,
#ms-web header nav .ms-nav-login svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Registrarse e Iniciar : fondo blanco */

#ms-web header nav .ms-nav-register {
    background: #ffffff;
    color: #1f456e;
}
#ms-web header nav .ms-nav-login {
    background: #ffffff;
    color: #1f456e;
}

/* =========================================
   HOVER - BOTONES DE ACCESO
   ========================================= */

#ms-web header nav .ms-nav-register:hover,
#ms-web header nav .ms-nav-login:hover {
    border-color: #69dcff;
    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(105, 220, 255, 0.30);
}


#ms-web header nav .ms-nav-register:hover,
#ms-web header nav .ms-nav-login:hover {
    background: #075b87;
    color: #ffffff;
}

/* =========================================
   BOTONES REGISTRARSE E INICIAR SESIÓN
   CUANDO ESTÁN SELECCIONADOS
   ========================================= */

#ms-web header nav .ms-nav-register[aria-current="page"],
#ms-web header nav .ms-nav-login[aria-current="page"] {

    /* Fondo azul oscuro */
    background: #1F456E;

    /* Letras e iconos blancos */
    color: #ffffff;

    /* Borde celeste */
    border-color: #69DCFF;

    /* Texto destacado */
    font-weight: 700;

    /* Resplandor celeste */
    box-shadow: 0 0 0 2px rgba(105, 220, 255, 0.20);
}

/* =========================================
   ACCESIBILIDAD
   ========================================= */

#ms-web header nav button:focus-visible {
    outline: 3px solid #69dcff;
    outline-offset: 3px;
}

/* Menú adaptable */

@media (max-width: 600px) {

    #ms-web header nav {
        gap: 5px;
    }

    #ms-web header nav button {
        padding: 8px 9px;
        font-size: 12px;
    }

    #ms-web header nav .ms-nav-register,
    #ms-web header nav .ms-nav-login {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {

    #ms-web header nav button {
        transition: none;
    }

    #ms-web header nav button:hover {
        transform: none;
    }
}

/* =========================================================
   05. BOTONES
   ========================================================= */

#ms-web .ms-btn {
  border: 0;
  border-radius: 9px;
  background: #0875ac;
  color: #fff;
  padding: 12px 17px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  min-height: 44px;
}

#ms-web .ms-btn.alt {
  background: var(--ms-bg);
  color: var(--ms-ink);
  border: 1px solid var(--ms-line);
}

#ms-web .ms-btn.light {
  background: #fff;
  color: #0a3652;
}

#ms-web .ms-btn.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid #6b94ae;
}


/* =========================================================
   06. HERO PRINCIPAL
   ========================================================= */

#ms-web .ms-hero {
  padding: 48px 38px;
  background: linear-gradient(
    115deg,
    #061d37,
    #0a4468 75%,
    #087c9e
  );
  color: #fff;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 30px;
  align-items: center;
}

#ms-web .ms-hero h1 {
  font-size: 43px;
  line-height: 1.08;
  letter-spacing: -1.7px;
  color: #fff;
  margin: 14px 0 20px;
  font-weight: 600;
}

#ms-web .ms-hero p {
  color: #d5e9f4;
  margin: 0 0 22px;
  max-width: 550px;
}

#ms-web .ms-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #67d3f5;
  font-weight: 600;
}

#ms-web .ms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

#ms-web .ms-hero small {
  color: #b6d5e6;
  display: block;
  margin-top: 17px;
  font-size: 12px;
}


/* =========================================================
   07. ILUSTRACIÓN DEL HERO
   ========================================================= */

#ms-web .ms-art {
  padding: 26px;
  border-radius: 25px;
  background: linear-gradient(145deg, #c7f0fb, #51c6e5);
  color: #082e48;
  position: relative;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px #00162a44;
}

#ms-web .ms-art .ms-bigicon {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: #ffffff99;
  display: grid;
  place-items: center;
  margin: 12px auto;
  color: #076da2;
}

#ms-web .ms-bigicon svg {
  width: 44px;
  height: 44px;
}

#ms-web .ms-art h3 {
  font-size: 23px;
  margin: 0;
  text-align: center;
}

#ms-web .ms-art p {
  color: #244e63;
  font-size: 13px;
  text-align: center;
  margin: 8px 0;
}

#ms-web .ms-art-bottom {
  background: #fff;
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-top: 18px;
}


/* =========================================================
   08. BARRA DE CONFIANZA
   ========================================================= */

#ms-web .ms-trust {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 28px;
  background: var(--ms-soft);
  font-size: 12px;
}

#ms-web .ms-trust span {
  display: flex;
  align-items: center;
  gap: 7px;
}


/* =========================================================
   09. SECCIONES GENERALES
   ========================================================= */

#ms-web .ms-sec {
  padding: 38px;
}

#ms-web .ms-sec.soft {
  background: var(--ms-soft);
}

#ms-web .ms-eyebrow {
  color: light-dark(#0875ac, #7ad9f5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

#ms-web h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.6px;
  margin: 9px 0 12px;
  font-weight: 600;
  color: var(--ms-ink);
}

#ms-web h3 {
  color: var(--ms-ink);
  font-size: 17px;
  line-height: 1.3;
  margin: 10px 0;
  font-weight: 600;
}

#ms-web .ms-intro {
  color: var(--ms-muted);
  max-width: 650px;
  margin: 0 0 24px;
  font-size: 14px;
}


/* =========================================================
   10. CUADRÍCULAS Y TARJETAS
   ========================================================= */

#ms-web .ms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

#ms-web .ms-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ms-web .ms-tile {
  background: var(--ms-bg);
  border: 1px solid var(--ms-line);
  border-radius: 15px;
  padding: 23px;
  min-width: 0;
}

#ms-web .ms-tile p {
  font-size: 13px;
  color: var(--ms-muted);
  margin: 9px 0 15px;
}

#ms-web .ms-icon {
  background: var(--ms-soft);
  color: light-dark(#0875ac, #7ad9f5);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}


/* =========================================================
   11. ENLACES
   ========================================================= */

#ms-web .ms-link {
  background: none;
  border: 0;
  padding: 7px 0;
  color: light-dark(#086b99, #7ad9f5);
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
}
/* =========================================================
   12. PRECIOS Y PLANES
   ========================================================= */

#ms-web .ms-price {
  font-size: 37px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 15px 0 2px;
}

#ms-web .ms-price small {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ms-muted);
  font-weight: 400;
}

#ms-web .ms-plan {
  position: relative;
  display: flex;
  flex-direction: column;
}

#ms-web .ms-plan.focus {
    border: 1px solid var(--ms-line);
}

#ms-web .ms-plan ul {
  padding: 0;
  list-style: none;
  margin: 14px 0 20px;
  flex: 1;
}

#ms-web .ms-plan li {
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ms-line);
}

#ms-web .ms-plan li:before {
  content: '✓';
  color: light-dark(#0875ac, #7ad9f5);
  margin-right: 7px;
}

#ms-web .ms-note {
  font-size: 12px;
  color: var(--ms-muted);
  margin: 15px 0 0;
}


/* =========================================================
   13. BANNER DE LLAMADA A LA ACCIÓN
   ========================================================= */

#ms-web .ms-banner {
  background: #0a3553;
  color: #fff;
  border-radius: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: center;
}

#ms-web .ms-banner h2 {
  color: #fff;
}

#ms-web .ms-banner p {
  color: #cce3ef;
  font-size: 14px;
}


/* =========================================================
   14. PASOS Y NUMERACIÓN
   ========================================================= */

#ms-web .ms-num {
  font-size: 13px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0875ac;
  color: #fff;
}

#ms-web .ms-step {
  padding: 12px 15px 12px 0;
}

#ms-web .ms-step p {
  color: var(--ms-muted);
  font-size: 13px;
}


/* =========================================================
   15. PREGUNTAS FRECUENTES
   ========================================================= */

#ms-web details {
  border-bottom: 1px solid var(--ms-line);
  padding: 17px 0;
}

#ms-web summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#ms-web details p {
  font-size: 13px;
  color: var(--ms-muted);
  max-width: 720px;
}


/* =========================================================
   16. FOOTER
   ========================================================= */

#ms-web footer {
  background: #071f33;
  color: #bdd4e3;
  padding: 30px 38px;
  font-size: 12px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

#ms-web footer strong {
  color: #fff;
  display: block;
  margin-bottom: 10px;
}

#ms-web footer button {
  display: block;
  background: none;
  border: 0;
  color: #bdd4e3;
  padding: 5px 0;
  font: inherit;
  text-align: left;
}

#ms-web .ms-footnote {
  background: #071f33;
  color: #8dafc4;
  padding: 12px 38px;
  font-size: 11px;
  border-top: 1px solid #234357;
}


/* =========================================================
   17. MIGAS DE PAN Y ENCABEZADOS DE PÁGINA
   ========================================================= */

#ms-web .ms-breadcrumb {
  padding: 15px 38px;
  font-size: 12px;
  color: var(--ms-muted);
  border-bottom: 1px solid var(--ms-line);
}

#ms-web .ms-breadcrumb button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
}

#ms-web .ms-heading {
  padding: 38px;
  background: var(--ms-soft);
}

#ms-web .ms-heading h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 12px 0 15px;
  color: var(--ms-ink);
}

#ms-web .ms-heading p {
  max-width: 650px;
  color: var(--ms-muted);
  margin: 0;
}


/* =========================================================
   18. DISTRIBUCIÓN Y CONTENIDO
   ========================================================= */

#ms-web .ms-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
  align-items: start;
}

#ms-web .ms-sectiontitle {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================================================
   19. ETIQUETAS Y LISTAS
   ========================================================= */

#ms-web .ms-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

#ms-web .ms-pill {
  padding: 7px 11px;
  background: var(--ms-soft);
  color: var(--ms-ink);
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid var(--ms-line);
}

#ms-web .ms-list {
  padding-left: 18px;
  color: var(--ms-muted);
  font-size: 14px;
}

#ms-web .ms-list li {
  margin: 9px 0;
}


/* =========================================================
   20. FORMULARIOS Y CONTACTO
   ========================================================= */

#ms-web .ms-contactbox {
  border-radius: 15px;
  background: var(--ms-soft);
  padding: 26px;
}

#ms-web label {
  display: block;
  margin: 13px 0;
  color: var(--ms-ink);
  font-size: 13px;
}

#ms-web input,
#ms-web select {
  display: block;
  width: 100%;
  padding: 11px;
  margin-top: 5px;
  border: 1px solid var(--ms-line);
  border-radius: 8px;
  background: var(--ms-bg);
  color: var(--ms-ink);
  min-width: 0;
  font-size: 16px;
}

#ms-web input[type=checkbox] {
  width: auto;
  display: inline;
  margin-right: 7px;
}


/* =========================================================
   21. TABLAS
   ========================================================= */

#ms-web .ms-tablewrap {
  overflow-x: auto;
}

#ms-web table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

#ms-web th,
#ms-web td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--ms-line);
  min-width: 100px;
}

#ms-web th {
  background: var(--ms-soft);
}


/* =========================================================
   22. CONTENEDORES Y ESTADOS
   ========================================================= */

#ms-web .ms-outline {
  border: 1px dashed var(--ms-line);
  background: var(--ms-soft);
  border-radius: 16px;
  padding: 25px;
  min-height: 190px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--ms-muted);
}

#ms-web .ms-outline p {
  font-size: 12px;
}

#ms-web .ms-status {
  padding: 13px;
  border-radius: 8px;
  background: var(--ms-soft);
  font-size: 13px;
  margin-top: 15px;
}


/* =========================================================
   23. INTERACCIONES Y ACCESIBILIDAD
   ========================================================= */

#ms-web button:hover {
  filter: brightness(.95);
}

#ms-web button:focus-visible,
#ms-web summary:focus-visible {
  outline: 3px solid #35c3ed;
  outline-offset: 3px;
}


/* =========================================================
   24. RESPONSIVE — TABLET Y MÓVIL
   ========================================================= */

@media (max-width: 700px) {

  #ms-web .ms-hero {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }

  #ms-web .ms-hero h1 {
    font-size: 35px;
  }

  #ms-web .ms-art {
    min-height: 220px;
  }

  #ms-web .ms-sec,
  #ms-web .ms-heading {
    padding: 28px 22px;
  }

  #ms-web .ms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ms-web .ms-split,
  #ms-web .ms-banner {
    grid-template-columns: 1fr;
  }

  #ms-web header {
    padding: 16px 20px;
  }

  #ms-web nav {
    width: 100%;
  }

  #ms-web nav button {
    font-size: 12px;
  }

  #ms-web footer {
    grid-template-columns: 1fr 1fr;
    padding: 28px 22px;
  }

  #ms-web .ms-top {
    padding: 8px 20px;
  }

  #ms-web .ms-breadcrumb {
    padding: 12px 22px;
  }
}



/* =========================================================
   25. RESPONSIVE — MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 440px) {

  #ms-web .ms-grid,
  #ms-web .ms-grid.two {
    grid-template-columns: 1fr;
  }

  #ms-web footer {
    grid-template-columns: 1fr;
  }

  #ms-web h2 {
    font-size: 25px;
  }

  #ms-web .ms-hero h1 {
    font-size: 32px;
  }

  #ms-web .ms-heading h1 {
    font-size: 29px;
  }

}


/* =========================================================
   26. MAPA DE GOOGLE MAPS
   ========================================================= */

#ms-web .ms-map {
    width: 100%;
    margin: 20px 0 28px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--ms-line);
    background: var(--ms-soft);
}

#ms-web .ms-map iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}


/* =========================================================
   27. ICONOS DE WHATSAPP Y CORREO
   ========================================================= */

#ms-web .ms-contact-channels {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 24px;
}

/* Contenedor de cada icono */

#ms-web .ms-channel-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ms-line);
    border-radius: 50%;
    background: var(--ms-soft);
    text-decoration: none;
    transition: all .25s ease;
}

/* Icono de WhatsApp */

#ms-web .ms-channel-icon[aria-label="WhatsApp"] {
    color: #25D366;
}

#ms-web .ms-channel-icon[aria-label="WhatsApp"] svg {
    stroke: #25D366;
}

/* Icono de correo electrónico */

#ms-web .ms-channel-icon[aria-label="Correo electrónico"] {
    color: #1686C9;
}

#ms-web .ms-channel-icon[aria-label="Correo electrónico"] svg {
    stroke: #1686C9;
}

/* Tamaño de los iconos */

#ms-web .ms-channel-icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 2;
}

/* Efectos al pasar el cursor */

#ms-web .ms-channel-icon:hover {
    transform: translateY(-3px);
    background: var(--ms-bg);
    border-color: currentColor;
}

/* Adaptación móvil */

@media (max-width: 600px) {

    #ms-web .ms-map iframe {
        height: 300px;
    }

}


/* =========================================
   MUNDISALUD - TARJETAS CON IMAGEN DE FONDO
========================================= */

.ms-service-card {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    isolation: isolate;

    display: flex;
    align-items: flex-end;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

/* Imagen de fondo */

.ms-service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;

    transition: transform 0.7s ease;
}

/* Capa oscura para leer el texto */

.ms-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 30, 35, 0.92) 0%,
        rgba(5, 30, 35, 0.45) 55%,
        rgba(5, 30, 35, 0.08) 100%
    );
    z-index: -1;

    transition: background 0.4s ease;
}

/* Contenido encima de la fotografía */

.ms-service-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px;
    color: white;
}

/* Título */

.ms-service-content h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 10px;
}

/* Descripción */

.ms-service-content p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.6;
}

/* Enlace */

.ms-service-content a {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

/* Animación */

.ms-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.20);
}

.ms-service-card:hover img {
    transform: scale(1.12);
}

/* Celulares */

@media (max-width: 600px) {
    .ms-service-card {
        min-height: 250px;
    }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    .ms-service-card,
    .ms-service-card img {
        transition: none;
    }
}

/* ======================================================
   28. CORRECCIÓN DE CONTRASTE - TARJETAS DE SERVICIOS
   ====================================================== */

/* Título blanco */

#ms-web .ms-service-content h3 {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* Descripción blanca */

#ms-web .ms-service-content p {
    color: #ffffff !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

/* Enlace Ver servicio */

#ms-web .ms-service-content .ms-link,
#ms-web .ms-service-content a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
}

/* Icono */

#ms-web .ms-service-content .ms-icon {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Degradado para mejorar la visibilidad */

#ms-web .ms-service-card::before {
    background: linear-gradient(
        to top,
        rgba(3, 25, 35, 0.96) 0%,
        rgba(3, 35, 45, 0.70) 55%,
        rgba(3, 35, 45, 0.15) 100%
    );
}

/* ==========================================
   MUNDISALUD - ANIMACIÓN DE TARJETAS AL HOVER
========================================== */

/* Estado normal */

#ms-web .ms-tile,
#ms-web .ms-plan,
#ms-web .ms-service,
#ms-web .ms-card {
    position: relative;
    isolation: isolate;
    transition: transform .4s ease, box-shadow .4s ease;
}

/* Borde azul oculto */

#ms-web .ms-tile::after,
#ms-web .ms-plan::after,
#ms-web .ms-service::after,
#ms-web .ms-card::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 250deg,
        #078bc5 290deg,
        #69dcff 315deg,
        #078bc5 330deg,
        transparent 360deg
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0;
    pointer-events: none;
}

/* Efecto al pasar el cursor */

#ms-web .ms-tile:hover,
#ms-web .ms-plan:hover,
#ms-web .ms-service:hover,
#ms-web .ms-card:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 12px 28px rgba(0, 80, 130, .16);
}

/* Borde azul animado al pasar el cursor */

#ms-web .ms-tile:hover::after,
#ms-web .ms-plan:hover::after,
#ms-web .ms-service:hover::after,
#ms-web .ms-card:hover::after {
    opacity: 1;
    animation: msBlueBorder 2.5s linear infinite;
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    #ms-web .ms-tile,
    #ms-web .ms-plan,
    #ms-web .ms-service,
    #ms-web .ms-card {
        transition: none;
    }

    #ms-web .ms-tile:hover::after,
    #ms-web .ms-plan:hover::after,
    #ms-web .ms-service:hover::after,
    #ms-web .ms-card:hover::after {
        animation: none;
    }
}
/* ======================================================
   MUNDISALUD - IGUALAR BOTONES DE TODOS LOS PLANES
====================================================== */

/* Mismo estilo para los botones de las tres tarjetas */

#ms-web .ms-plan .ms-btn,
#ms-web .ms-plan.focus .ms-btn {
    background: #0875ac !important;
    color: #ffffff !important;
    border: 1px solid #0875ac !important;

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

/* Efecto al pasar el cursor */

#ms-web .ms-plan .ms-btn:hover,
#ms-web .ms-plan.focus .ms-btn:hover {
    background: #075b87 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 80, 130, .20);
    
}
/* ======================================================
   MUNDISALUD - EFECTO AZUL EN EL MENÚ
====================================================== */

/* Estado normal */

#ms-web nav button {
    position: relative;
    isolation: isolate;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ms-muted);

    transition:
        color .3s ease,
        background .3s ease;
}

/* ======================================================
   MUNDISALUD - BORDES DE PLANES BIENESTAR
====================================================== */

#ms-web .ms-plan,
#ms-web .ms-plan.focus {

    border: 3px solid #1F456E !important;

    border-radius: 18px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Efecto al pasar el cursor */

#ms-web .ms-plan:hover,
#ms-web .ms-plan.focus:hover {

    border-color: #1F456E !important;

    box-shadow: 0 8px 25px rgba(123, 215, 243, 0.3);
}
/* ======================================================
   MUNDISALUD - CARRUSEL AUTOMÁTICO EMPRESARIAL
====================================================== */

#ms-web .ms-enterprise-carousel {
    width: 100%;
    overflow: hidden;
    padding: 15px 3px 25px;
}

#ms-web .ms-enterprise-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: msEnterpriseScroll 30s linear infinite;
}

#ms-web .ms-enterprise-slide {
    flex: 0 0 auto;
    width: calc((min(100vw - 76px, 1100px) - 30px) / 3);
    min-width: 0;
 
    border-radius: 18px;
}

/* Desplazamiento continuo */

@keyframes msEnterpriseScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pausar cuando el usuario interactúa */

#ms-web .ms-enterprise-carousel:hover .ms-enterprise-track,
#ms-web .ms-enterprise-carousel:focus-within .ms-enterprise-track {
    animation-play-state: paused;
}

/* Tablets: dos tarjetas visibles */

@media (max-width: 900px) {

    #ms-web .ms-enterprise-slide {
        width: calc((100vw - 70px) / 2);
    }

}

/* Celulares: una tarjeta visible */

@media (max-width: 600px) {

    #ms-web .ms-enterprise-slide {
        width: calc(100vw - 70px);
    }

}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {

    #ms-web .ms-enterprise-track {
        animation: none;
    }

    #ms-web .ms-enterprise-carousel {
        overflow-x: auto;
    }

}
/* ======================================================
   29. MUNDISALUD - UNIDAD MÓVIL
   TARJETAS COMPACTAS CON BORDES AZULES
====================================================== */

#ms-web .ms-mobile-grid {
    display: grid;

    /* Dos tarjetas del mismo ancho */
    grid-template-columns: repeat(2, minmax(0, 1fr));

    /* Separación entre cuadros */
    gap: 22px;

    /* Ocupar todo el ancho disponible */
    width: 100%;
    max-width: none;

    /* Estirar las tarjetas a la misma altura */
    align-items: stretch;

    margin: 0;
}
/* Tarjetas principales */

#ms-web .ms-mobile-option {
    position: relative;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    /* Borde azul normal */
    border: 3px solid #1F456E;
    border-radius: 16px;

    overflow: hidden;
    min-width: 0;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

/* Franja azul superior */

#ms-web .ms-mobile-topbar {
    width: 100%;
    height: 14px;
    flex-shrink: 0;

    background: linear-gradient(
        90deg,
        #09283c,
        #0875ac,
        #69dcff
    );
}

/* Contenido más compacto */

#ms-web .ms-mobile-option-content {
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    flex: 1;
}

/* Contenedor del icono */

#ms-web .ms-mobile-option-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    background: #e7f7fc;

    border: 1px solid #b5e8f7;
    border-radius: 12px;

    color: #0875ac;

    margin-bottom: 12px;

    transition:
        transform .35s ease,
        background .35s ease;
}

/* Tamaño del icono */

#ms-web .ms-mobile-option-icon svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.8;
}

/* Títulos */

#ms-web .ms-mobile-option h3 {
    color: #112e46;

    font-size: 19px;
    font-weight: 700;

    margin: 0 0 8px;
}

/* Descripciones */

#ms-web .ms-mobile-option p {
    color: #536d80;

    font-size: 13px;
    line-height: 1.5;

    margin: 0 0 14px;

    flex: 1;
}

/* Enlaces */

#ms-web .ms-mobile-option .ms-link {
    color: #0875ac;

    font-size: 13px;
    font-weight: 700;

    margin-top: auto;
}

/* ======================================================
   EFECTOS HOVER
====================================================== */

/* Borde azul cambia a celeste */

#ms-web .ms-mobile-option:hover {
    transform: translateY(-6px);

    border-color: #69DCFF;

    box-shadow:
        0 0 12px rgba(105, 220, 255, 0.35),
        0 10px 24px rgba(8, 117, 172, 0.15);
}

/* Animación del icono */

#ms-web .ms-mobile-option:hover .ms-mobile-option-icon {
    transform: scale(1.08);
    background: #d5f4ff;
}

/* Color del enlace */

#ms-web .ms-mobile-option .ms-link:hover {
    color: #075b87;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 600px) {

    #ms-web .ms-mobile-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 16px;
    }

    #ms-web .ms-mobile-option-content {
        padding: 18px;
    }

    #ms-web .ms-mobile-option h3 {
        font-size: 18px;
    }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {

    #ms-web .ms-mobile-option,
    #ms-web .ms-mobile-option-icon {
        transition: none;
    }

    #ms-web .ms-mobile-option:hover,
    #ms-web .ms-mobile-option:hover .ms-mobile-option-icon {
        transform: none;
    }
}

/* =========================================================
   MUNDISALUD - COTIZACIÓN EMPRESARIAL
   DISEÑO UNIFICADO CON IMAGEN Y FORMULARIO FLOTANTE
   ========================================================= */

/* 01. SECCIÓN CON FOTOGRAFÍA DE FONDO */

#ms-web .ms-sec:has(.ms-quote-layout) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      110deg,
      rgba(3, 35, 64, 0.85) 0%,
      rgba(5, 67, 105, 0.66) 50%,
      rgba(3, 39, 72, 0.80) 100%
    ),
    url("../assets/images/Empresas_Medicos.jpg")
    center center / cover no-repeat;

  padding: 40px clamp(18px, 4vw, 65px);
}

/* 02. TÍTULO DE COTIZACIÓN */

#ms-web .ms-sec:has(.ms-quote-layout) > .ms-eyebrow {
  color: #8de8ff;
}

#ms-web .ms-sec:has(.ms-quote-layout) > h2 {
  color: #ffffff;
  margin-bottom: 18px;
}

/* 03. DISTRIBUCIÓN DE COLUMNAS */

#ms-web .ms-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  max-width: 1320px;
  margin: 20px auto;
}

/* 04. INFORMACIÓN EMPRESARIAL */

#ms-web .ms-quote-info {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: auto;
  padding: 30px 15px;
  color: #ffffff;
}

#ms-web .ms-quote-info .ms-eyebrow {
  color: #a4ebff;
}

#ms-web .ms-quote-info h3 {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  margin: 18px 0;
}

#ms-web .ms-quote-info p {
  color: #e6f5ff;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 05. BENEFICIOS CON EFECTO CRISTAL */

#ms-web .ms-quote-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 15px;
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.25s;
}

#ms-web .ms-quote-benefit:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateX(4px);
}

#ms-web .ms-quote-benefit svg {
  color: #9ceaff;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

/* 06. FORMULARIO FLOTANTE */

#ms-web .ms-quote-form {
  min-width: 0;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 25px 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 55px rgba(0, 20, 45, 0.25),
    0 0 18px rgba(255, 255, 255, 0.12);
}

#ms-web .ms-quote-form h3 {
  color: #07395e;
  font-size: 23px;
  margin: 0 0 6px;
}

#ms-web .ms-quote-subtitle {
  color: #536d80;
  font-size: 12px;
  margin: 0 0 17px;
}

/* 07. CAMPOS COMPACTOS */

#ms-web .ms-quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

#ms-web .ms-quote-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: #173c59;
  font-size: 12px;
  font-weight: 600;
}

#ms-web .ms-quote-fields input,
#ms-web .ms-quote-fields select,
#ms-web .ms-quote-fields textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.3;
  color: #102f4b;
  background: rgba(248, 252, 255, 0.96);
  border: 1px solid #cbdfea;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#ms-web .ms-quote-fields textarea {
  min-height: 80px;
  resize: vertical;
}

#ms-web .ms-quote-fields :is(input, select, textarea):focus {
  outline: none;
  border-color: #008ac4;
  box-shadow: 0 0 0 3px rgba(0, 138, 196, 0.15);
}

#ms-web .ms-quote-full {
  grid-column: 1 / -1;
}

/* 08. PRIVACIDAD */

#ms-web .ms-quote-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  font-size: 12px;
  color: #173c59;
}

#ms-web .ms-quote-privacy input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* 09. BOTÓN */

#ms-web .ms-quote-form > .ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(120deg, #087db5, #00558b);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#ms-web .ms-quote-form > .ms-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 90, 150, 0.25);
}

#ms-web .ms-quote-form .ms-feedback {
  margin-top: 12px;
}

/* 10. TABLET */

@media (max-width: 900px) {
  #ms-web .ms-quote-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #ms-web .ms-quote-info {
    padding: 15px 0;
  }
}

/* 11. CELULAR */

@media (max-width: 600px) {
  #ms-web .ms-sec:has(.ms-quote-layout) {
    padding: 25px 15px;
  }

  #ms-web .ms-quote-fields {
    grid-template-columns: 1fr;
  }

  #ms-web .ms-quote-form {
    padding: 20px 16px;
    border-radius: 16px;
  }

  #ms-web .ms-quote-info h3 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ms-web .ms-quote-benefit,
  #ms-web .ms-quote-form > .ms-btn {
    transition: none;
  }
}
/* VALIDACIÓN DEL RUC EMPRESARIAL */

#ms-web .ms-quote-form .ms-field-error {
  display: block;
  color: #d62828;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

#ms-web .ms-quote-form input:invalid:not(:focus) {
  border-color: #d62828;
}

#ms-web .ms-quote-form input:focus {
  outline: none;
  border-color: #087bb5;
  box-shadow: 0 0 0 3px rgba(8, 123, 181, 0.15);
}
/* IDENTIFICACIÓN INCORRECTA */

#ms-web .ms-quote-form .ms-input-error {
    border: 2px solid #d62828 !important;
    background: #fff3f3 !important;
}

#ms-web .ms-quote-form .ms-field-error {
    display: block;
    color: #d62828;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

/* =====================================================
   MUNDISALUD - FORMULARIO DE CONTACTO EMPRESARIAL
   ===================================================== */

/* FONDO MÉDICO COMPLETO */

#ms-web .ms-sec:has(.ms-enterprise-contact) {
    position: relative;
    isolation: isolate;

    background:
        linear-gradient(
            110deg,
            rgba(3, 35, 64, 0.85),
            rgba(5, 67, 105, 0.68),
            rgba(3, 39, 72, 0.82)
        ),
        url("../assets/images/Empresas_Medicos.jpg")
        center / cover no-repeat;

    padding: 40px clamp(18px, 4vw, 65px);
}

/* TÍTULO DE LA SECCIÓN */

#ms-web .ms-sec:has(.ms-enterprise-contact) > .ms-eyebrow {
    color: #9ceaff;
}

#ms-web .ms-sec:has(.ms-enterprise-contact) > h2 {
    color: #ffffff;
}

/* CONTENEDOR DEL FORMULARIO */

#ms-web .ms-enterprise-contact {
    max-width: 850px;
    margin: 25px auto;
}

/* FORMULARIO FLOTANTE */

#ms-web .ms-enterprise-contact form {
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;

    padding: 28px 32px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 20px 55px rgba(0, 20, 45, 0.25),
        0 0 18px rgba(255, 255, 255, 0.12);
}

/* CAMPOS MÁS COMPACTOS */

#ms-web .ms-enterprise-contact form label {
    font-size: 12px;
    font-weight: 600;
    color: #173c59;
}

#ms-web .ms-enterprise-contact form input,
#ms-web .ms-enterprise-contact form select,
#ms-web .ms-enterprise-contact form textarea {
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid #cbdfea;
    background: #f8fcff;
    font-size: 13px;
}

/* EFECTO AL SELECCIONAR UN CAMPO */

#ms-web .ms-enterprise-contact form input:focus,
#ms-web .ms-enterprise-contact form select:focus,
#ms-web .ms-enterprise-contact form textarea:focus {
    outline: none;
    border-color: #008ac4;
    box-shadow: 0 0 0 3px rgba(0, 138, 196, 0.15);
}

/* BOTÓN */

#ms-web .ms-enterprise-contact form button[type="submit"] {
    background: linear-gradient(120deg, #087db5, #00558b);
    color: white;
    border: none;
    border-radius: 9px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#ms-web .ms-enterprise-contact form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 90, 150, 0.25);
}

/* CELULARES */

@media (max-width: 600px) {
    #ms-web .ms-sec:has(.ms-enterprise-contact) {
        padding: 25px 15px;
    }

    #ms-web .ms-enterprise-contact {
        margin: 15px auto;
    }

    #ms-web .ms-enterprise-contact form {
        padding: 20px 16px;
        border-radius: 16px;
    }
}
