/* Acceso a proveedores, prestadores y tickets.
   El fondo es la foto del edificio. La tarjeta sigue la referencia visual. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(7, 20, 46, 0.72) 0%, rgba(7, 20, 46, 0.55) 46%, rgba(7, 20, 46, 0.76) 100%),
    url("/img/boratti.png") center center / cover no-repeat fixed;
  background-color: #16304f;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

body::before {
  left: -22vw;
  top: -22vh;
  width: 58vw;
  height: 145vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.22) 46%, rgba(255, 255, 255, 0) 72%);
}

body::after {
  right: -18vw;
  bottom: -36vh;
  width: 58vw;
  height: 72vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 126, 230, 0.72) 0%, rgba(47, 140, 235, 0.38) 48%, rgba(47, 140, 235, 0) 74%);
}

#masthead,
.general,
#footer {
  position: relative;
  z-index: 1;
}

/* Cabecera ----------------------------------------------------------- */

#masthead {
  height: auto;
  min-width: 0;
  background: transparent;
}

#masthead .containerh {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: auto;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.15rem 1.75rem 0.2rem;
  text-align: left;
}

#masthead h1 {
  position: static;
  top: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  order: -1;
}

#masthead h1 a {
  display: block;
  line-height: 0;
  background: url("/img/boratti-logo.webp") left center / contain no-repeat;
}

#masthead h1 img {
  display: block;
  height: clamp(3.15rem, 7vw, 4.15rem);
  width: auto;
  max-width: min(68vw, 15.5rem);
  opacity: 0;
}

#masthead h2 {
  display: none;
}

#masthead #capture-links {
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
}

#masthead #capture-links li {
  float: none;
  display: flex;
  align-items: center;
  position: static;
  left: auto;
  top: auto;
  margin: 0;
  list-style: none;
}

#masthead #capture-links li + li::before {
  content: "|";
  margin: 0 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 400;
}

#masthead #capture-links li a,
#masthead #capture-links li a.btnturnossup,
#masthead #capture-links li a.btnturnossup:hover,
#masthead #capture-links li a.btnturnossup:active {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  position: static;
  top: auto;
  padding: 0.35rem 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: none;
  color: #ffffff !important;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
  text-shadow: 0 1px 8px rgba(0, 20, 40, 0.25);
  text-transform: uppercase;
}

#masthead #capture-links li:first-child a::before {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.4em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3.2 3 11h2.2v8.8h5.1v-5.4h3.4v5.4h5.1V11H21z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3.2 3 11h2.2v8.8h5.1v-5.4h3.4v5.4h5.1V11H21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#masthead #capture-links li a:hover,
#masthead #capture-links li a.btnturnossup:hover {
  color: #ffffff !important;
  background: none;
  opacity: 0.82;
}

/* Lienzo ------------------------------------------------------------- */

.general,
.general.about {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
}

.general .header,
.general .middle .howToBg,
.general .middle .wrapper .menu,
#crumbs,
#divmenu,
#cssmenu1,
.conte br {
  display: none;
}

.general .middle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  overflow: visible;
  background: transparent;
}

.general .middle .wrapper,
.general .wrapper {
  box-sizing: border-box;
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem 2.2rem;
  background: none;
}

.general .middle .wrapper .con,
.conte {
  float: none;
  clear: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}

/* Tarjeta ----------------------------------------------------------- */

.box,
.contenedoradm,
#form_container {
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
  background: transparent;
}

.box,
.logueo-tarjeta {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  flex: 0 1 46.5rem;
  width: min(46.5rem, 100%);
  min-height: 27.5rem;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 1.65rem;
  background: #ffffff;
  box-shadow: 0 22px 50px -18px rgba(16, 42, 84, 0.38);
  color: #243044;
}

.logueo-foto {
  flex: 0 0 42%;
  min-height: 27.5rem;
  background: #8eb6d6 url("/img/logueo-estetoscopio.jpg") 18% 82% / 128% auto no-repeat;
  clip-path: ellipse(92% 74% at 2% 50%);
}

.logueo-panel {
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1.7rem 1.85rem 1.55rem 0.85rem;
}

h2.contentTitle {
  clear: none;
  width: auto;
  margin: 0;
  padding: 0 !important;
  color: #2c3a4e;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 2.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: left;
  text-shadow: none;
}

h2.contentTitle span {
  display: block;
  margin-top: 0.08em;
  color: #1a6fe8;
  font-size: 1.12em;
  font-weight: 800;
}

h2.contentTitle::after {
  content: "";
  display: block;
  width: 2.7rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: #1a6fe8;
}

#formulario {
  margin: 0;
}

.form_description {
  display: block;
  margin: 0 0 1.15rem;
  border: none;
}

.form_description p {
  margin: 0.8rem 0 0;
  color: #7b8da3;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.4;
}

#formulario ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#formulario li {
  display: block;
  position: static;
  margin: 0 0 0.85rem;
  padding: 0;
}

#formulario li:after,
#formulario .buttons:after {
  display: none;
}

#formulario label.description {
  display: block;
  margin: 0 0 0.38rem;
  padding: 0;
  border: none;
  color: #8ea0b5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.logueo-campo {
  position: relative;
}

.logueo-icono {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  background: center / contain no-repeat;
  pointer-events: none;
}

.logueo-icono-usuario {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.2' fill='none' stroke='%238ea0b5' stroke-width='1.8'/%3E%3Cpath d='M5.2 19.2a6.8 6.8 0 0 1 13.6 0' fill='none' stroke='%238ea0b5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.logueo-icono-clave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='9' rx='2' fill='none' stroke='%238ea0b5' stroke-width='1.8'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5' fill='none' stroke='%238ea0b5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

#formulario input.text {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.82rem 2.5rem 0.82rem 2.55rem;
  border: 1px solid #d7e2ee;
  border-radius: 0.8rem;
  background: #ffffff;
  color: #243044;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
  box-shadow: none;
}

#formulario input.text::placeholder {
  color: #b0becd;
}

#formulario input.text:focus {
  outline: 2px solid #1a6fe8;
  outline-offset: 1px;
  border-color: #1a6fe8;
}

.logueo-ojo {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.2 12S6 6.5 12 6.5 21.8 12 21.8 12 18 17.5 12 17.5 2.2 12 2.2 12z' fill='none' stroke='%238ea0b5' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='2.4' fill='none' stroke='%238ea0b5' stroke-width='1.8'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
  cursor: pointer;
}

.logueo-ojo.is-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4.5 20 19' fill='none' stroke='%238ea0b5' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M9.2 6.9A9.8 9.8 0 0 1 12 6.5c6 0 9.8 5.5 9.8 5.5a16 16 0 0 1-3.2 3.4M6.1 8.2C3.8 9.8 2.2 12 2.2 12S6 17.5 12 17.5a9.4 9.4 0 0 0 3.3-.6' fill='none' stroke='%238ea0b5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.logueo-ojo:focus {
  outline: 2px solid #1a6fe8;
  outline-offset: 2px;
}

#formulario .guidelines {
  display: none;
}

.logueo-opciones {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem !important;
  margin-bottom: 1rem !important;
}

.logueo-recordar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #5d6e84;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.logueo-recordar input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  accent-color: #1a6fe8;
}

.logueo-olvido {
  color: #1a6fe8;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.logueo-olvido:hover {
  text-decoration: underline;
}

#mensaje {
  box-sizing: border-box;
  width: auto;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid #f3c1c1;
  border-radius: 0.7rem;
  background: #fff1f1;
  color: #b42318;
  font-size: 0.88rem;
  text-align: left;
}

#mensaje[style*="hidden"] {
  display: none;
}

#formulario li.buttons {
  margin: 0.35rem 0 0;
}

.logueo-enviar {
  position: relative;
}

#formulario .buttons div {
  text-align: center;
}

#saveForm,
#formulario input.button_text {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 3.15rem;
  min-height: 3.15rem;
  margin: 0;
  padding: 0 1.25rem;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #3c8dff 0%, #1a6fe8 100%);
  box-shadow: 0 12px 24px -14px rgba(26, 111, 232, 0.95);
  color: #ffffff;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 3.15rem;
  text-align: center;
  text-indent: 0;
  text-transform: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.logueo-enviar.is-cargando #saveForm,
.logueo-enviar.is-cargando #saveForm:hover {
  color: transparent;
  transform: none;
  filter: none;
  cursor: wait;
}

.logueo-enviar.is-cargando::before,
.logueo-enviar.is-cargando::after {
  position: absolute;
  top: 50%;
  color: #ffffff;
  pointer-events: none;
}

.logueo-enviar.is-cargando::before {
  content: "";
  left: calc(50% - 5.15rem);
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: logueo-giro 0.7s linear infinite;
}

.logueo-enviar.is-cargando::after {
  content: "Preparando\2026";
  left: calc(50% + 0.35rem);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%);
}

#saveForm:hover,
#formulario input.button_text:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#saveForm:focus {
  outline: 2px solid #1a6fe8;
  outline-offset: 3px;
}

/* Lema -------------------------------------------------------------- */

.logueo-lema {
  flex: 0 1 13.5rem;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(8, 28, 58, 0.45);
}

.logueo-lema p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.logueo-lema-titulo {
  margin: 0 0 0.2rem;
  font-size: 1.85rem !important;
  font-weight: 700;
  line-height: 1.12;
}

/* Pie ---------------------------------------------------------------- */

#footer {
  display: none;
}

/* Entrada de la tarjeta --------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  body.is-logueo-listo .logueo-tarjeta {
    animation: logueo-entra 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes logueo-entra {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes logueo-giro {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logueo-enviar.is-cargando::before {
    display: none;
  }
}

@media (max-width: 980px) {
  .general .middle .wrapper,
  .general .wrapper,
  .general .middle .wrapper .con,
  .conte {
    flex-direction: column;
    gap: 1.15rem;
  }

  .logueo-lema {
    order: -1;
    flex-basis: auto;
    max-width: 22rem;
    text-align: center;
  }

  .logueo-tarjeta,
  .box {
    flex-direction: column;
    min-height: 0;
  }

  .logueo-foto {
    flex-basis: auto;
    width: 100%;
    min-height: 11.5rem;
    clip-path: ellipse(120% 100% at 50% -10%);
  }

  .logueo-panel {
    padding: 1.35rem 1.2rem 1.4rem;
  }
}

@media (max-width: 640px) {
  #masthead .containerh {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 1.1rem;
  }

  #masthead #capture-links {
    justify-content: flex-start;
  }

  .logueo-opciones {
    align-items: flex-start;
    flex-direction: column;
  }
}
