/* Responsive layer for lacdiabetes-nuevo (9443 only). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
  box-sizing: border-box;
}

/* El adorno legado .extra1 queda fuera del viewport en tablet (768 px). */
@media (min-width: 761px) and (max-width: 820px) {
  .extra1 { display: none !important; }
}

/* Public home and its legacy horizontal tab layout. */
@media (max-width: 760px) {
  html,
  body {
    min-width: 0 !important;
    width: 100%;
    height: auto;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body {
    position: relative !important;
    min-height: 100% !important;
  }

  .glob {
    position: relative !important;
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
  }

  .main,
  .center {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  .bg_pic,
  .extra1,
  .extra2,
  .extra3 {
    display: none !important;
  }

  header {
    position: relative !important;
    bottom: auto !important;
    height: auto !important;
    min-height: 68px;
    padding: 10px 14px;
    background: #28a4e1 !important;
  }

  .header_content {
    display: flex;
    align-items: center;
    width: 100% !important;
    height: auto !important;
    min-height: 48px;
    margin: 0 !important;
  }

  .logoHolder {
    display: block;
    width: auto !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    background: transparent !important;
  }

  header .logoHolder h1 {
    float: none;
    margin: 0 !important;
    line-height: 0;
  }

  header .logoHolder h1 img {
    width: 72px !important;
    height: auto !important;
    margin: 0 !important;
  }

  .menuHolder {
    display: block;
    flex: 1 1 auto;
    width: auto;
    float: none !important;
    margin: 0 !important;
  }

  .menu,
  #menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  #menu > li,
  #menu > li._last {
    display: block !important;
    float: none !important;
    border: 0 !important;
    background: transparent !important;
  }

  #menu > li:first-child {
    display: none !important;
  }

  #menu > li > a {
    display: block;
    height: auto !important;
    overflow: visible !important;
    padding: 8px 5px;
  }

  #menu .mText {
    position: static !important;
    padding: 0 !important;
    color: #fff;
    font-size: 11px;
    line-height: 1.25 !important;
    white-space: nowrap;
  }

  #menu .mText_over,
  #menu ._area,
  #menu ._overPl {
    display: none !important;
  }

  #content {
    width: 100% !important;
    margin: 0 !important;
    padding: 28px 14px 86px;
    float: none !important;
    overflow: visible !important;
  }

  #content > ul {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #content > ul > li {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 28px;
  }

  #content > ul > li[style*="display: none"] {
    display: none !important;
  }

  #content > ul > li[style*="display: block"] {
    display: block !important;
  }

  #pageHome {
    min-height: 360px !important;
    padding: 28px 18px 34px !important;
    overflow: hidden;
    border-radius: 22px;
    background-color: #eef8fb;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 42%, rgba(255, 255, 255, .28) 100%),
      url('../../index_files/doctora-lacdiabetes-v2.png');
    background-position: center, right center;
    background-size: cover, auto 100%;
    background-repeat: no-repeat;
    box-shadow: 0 14px 32px rgba(29, 93, 116, .12);
  }

  .box,
  .containerContent,
  ._banner1,
  ._banner1 > .content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .box {
    display: block !important;
  }

  ._banner1 {
    min-height: 92px;
    background-size: cover;
  }

  ._banner1 > .content {
    display: block !important;
    min-height: 74px;
    margin: 9px !important;
    width: calc(100% - 18px) !important;
    background-size: cover;
  }

  .containerContent {
    display: block !important;
    margin-top: 16px !important;
  }

  .col1,
  .col2,
  .col3,
  .col4,
  .col5,
  .col6 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }

  .mar1,
  .mar2,
  .marRight1,
  .marRight2,
  .marRight3 {
    margin: 0 !important;
  }

  .textStyle1,
  .textStyle2 {
    font-size: clamp(24px, 8vw, 35px) !important;
    line-height: 1.05 !important;
  }

  .textStyle5,
  .textStyle6 {
    display: block !important;
    margin: 0 !important;
    padding-bottom: 22px !important;
    font-size: clamp(34px, 11vw, 49px) !important;
    line-height: 1 !important;
  }

  h2 {
    font-size: clamp(24px, 8vw, 30px) !important;
    line-height: 1.1 !important;
    padding-bottom: 20px !important;
  }

  p {
    font-size: 14px;
    line-height: 1.55;
  }

  a,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    -webkit-tap-highlight-color: transparent;
  }

  .more,
  .botonui a,
  .login-form .footer .button {
    min-height: 44px;
  }

  ._contacts {
    position: static !important;
    margin-top: 14px;
  }

  .google,
  .google iframe,
  .google_map {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 250px !important;
  }

  #wrapper {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(100%, 340px) !important;
    height: auto !important;
    margin: 18px auto !important;
  }

  .login-form {
    width: 100% !important;
  }

  .login-form .content {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .login-form .content .input {
    width: 100% !important;
  }

  #registro,
  #registro table {
    width: 100% !important;
    max-width: 100% !important;
  }

  #registro {
    overflow: hidden;
  }

  #registro th {
    width: 38%;
    padding-right: 4px;
    overflow-wrap: anywhere;
  }

  #registro td:last-child {
    width: 62%;
  }

  #registro input,
  #registro select,
  #registro textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px;
    font-size: 16px;
  }

  footer {
    position: relative !important;
    height: auto !important;
    min-height: 55px;
    padding: 12px 14px;
  }

  .privHold {
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
  }

  .textPrivacy {
    margin: 0 !important;
  }
}

/* Authenticated legacy screens and their fixed 1000px layout tables. */
@media (max-width: 760px) {
  body > table[width="1000"],
  body > table[width="1000px"],
  body > table[style*="width: 1000"] {
    width: 100% !important;
    max-width: 100% !important;
    background-size: cover;
  }

  body > table[width="1000"] td,
  body > table[width="1000px"] td,
  body > table[style*="width: 1000"] td {
    max-width: 100%;
  }

  table.Registros,
  table.DatosX,
  .CSSTableGenerator table {
    width: 100% !important;
    max-width: 100% !important;
  }

  table.Registros {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .scroll,
  #scroll33,
  .DivMetas {
    width: 100% !important;
    max-width: 100% !important;
  }

  .DivMetas {
    height: auto;
    max-height: 330px;
  }

  #busqueda {
    width: 100% !important;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    max-width: 100%;
  }

  #dialogo {
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 480px) {
  .header_content {
    flex-wrap: wrap;
    gap: 8px;
  }

  .logoHolder {
    flex: 0 0 100%;
    text-align: center;
  }

  .menuHolder {
    flex: 0 0 100%;
  }

  #menu {
    justify-content: space-between;
  }

  #menu > li > a {
    padding-right: 3px;
    padding-left: 3px;
  }

  #menu .mText {
    font-size: 10px;
  }

  #menu > li.menu-active > a {
    border-radius: 8px;
    background: rgba(42, 167, 223, .38);
  }

  #menu > li.menu-active > a::after {
    position: absolute;
    right: 4px;
    bottom: 2px;
    left: 4px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: '';
  }

  #content {
    padding: 24px 12px 72px;
  }

  #pageHome {
    min-height: 390px !important;
    padding: 26px 16px 32px !important;
    background-position: center, 125% center;
    background-size: cover, auto 100%;
  }

  .login-form .footer .button {
    width: 100%;
    float: none;
  }
}

/* Modern contact presentation for desktop. */
@media (min-width: 761px) {
  #menu > li.menu-active > a {
    background: rgba(42, 167, 223, .22);
    border-radius: 10px 10px 0 0;
  }

  #menu > li.menu-active > a::after {
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #63d0f3;
    content: '';
  }

  #menu > li.menu-active .mText {
    color: #fff;
    font-weight: 700;
  }

  .bg_pic > img {
    transition: opacity .42s ease-in-out;
  }

  .bg_pic > img[src$="doctor-contact.png"] {
    width: 760px;
    height: auto;
    max-width: none;
  }

  body.contact-mode #content {
    z-index: 4;
  }

  body.contact-mode #pageContact,
  body.contact-mode #pageContact .box {
    position: relative;
    z-index: 5;
  }

  body.contact-mode .bg_pic {
    z-index: 2;
    will-change: transform, opacity;
    animation: doctorPresent 1.15s cubic-bezier(.22, .8, .25, 1) both;
  }

  body.contact-mode .bg_pic > img {
    width: 760px;
    height: auto;
    max-width: none;
    transform-origin: 50% 92%;
    transition: opacity .42s ease-in-out;
    animation: doctorBreath 4.5s 1.25s ease-in-out infinite;
  }

  .bg_pic > img.doctor-image-changing {
    opacity: 0;
  }

  #pageContact .box {
    width: 680px;
    transform: translateX(-105px);
  }

  #pageContact ._banner1 {
    width: 680px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e9f8fd, #fff 72%);
    box-shadow: 0 14px 32px rgba(30, 111, 140, .13);
    overflow: hidden;
  }

  #pageContact ._banner1 > .content {
    width: 662px;
    border: 1px solid rgba(42, 167, 223, .25);
    border-radius: 12px;
    background: transparent;
  }

  #pageContact .containerContent {
    width: 680px;
    padding-top: 24px;
  }

  #pageContact .containerContent > .col1 {
    display: grid;
    grid-template-columns: 340px minmax(240px, 1fr);
    align-items: start;
    gap: 22px;
    width: 100%;
    min-width: 0;
    float: none;
  }

  #pageContact .containerContent > .col1 > h2 {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 0 4px;
    color: #31515f;
    font-size: 34px;
    letter-spacing: -.02em;
  }

  #pageContact .containerContent .col4 {
    width: 340px;
    margin: 0;
    float: none;
  }

  #pageContact figure.google {
    width: 340px;
    height: 270px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d7eaf1;
    border-radius: 18px;
    background: #edf7fa;
    box-shadow: 0 14px 28px rgba(21, 80, 103, .15);
  }

  #pageContact figure.google iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }

  #pageContact .containerContent .col3 {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 24px 22px;
    float: none;
    border: 1px solid #d7eaf1;
    border-radius: 18px;
    background: linear-gradient(145deg, #fbfeff, #eef8fb);
    box-shadow: 0 14px 28px rgba(21, 80, 103, .1);
  }

  #pageContact .containerContent .col3 h3 {
    margin: 0 0 18px;
    padding: 0;
    color: #0b7fab;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: .02em;
  }

  #pageContact .containerContent .col3 p {
    margin: 0;
    padding: 0;
    color: #617482;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #pageContact .containerContent .space1 {
    display: block;
    width: auto;
    margin-top: 12px;
    color: #31515f;
    font-weight: 700;
  }

  #pageContact .containerContent .col3 p br:first-of-type + .space1 {
    margin-top: 2px;
  }

  #pageContact .containerContent ._link2 {
    color: #0b7fab;
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@keyframes doctorPresent {
  0% {
    opacity: .78;
    transform: translate3d(56px, 18px, 0) scale(.97) rotate(1deg);
  }
  55% {
    opacity: 1;
    transform: translate3d(-34px, 0, 0) scale(1.015) rotate(-.8deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(-20px, 0, 0) scale(1) rotate(0);
  }
}

@keyframes doctorBreath {
  0%, 100% { transform: translateX(0) rotate(0); }
  50% { transform: translateX(-5px) rotate(-.35deg); }
}
