/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Fonts */
  --font-work-sans: 'Work Sans';
  --font-inter: Inter;
  --font-font-awesome-6-pro: 'Font Awesome 6 Pro';
  /* font sizes */
  --font-size-base: 16px;
  --font-size-xs: 12px;
  /* Color Variables */
  
  --Grises-Blanco: #fff;
  --Mostaza-Energizante: #dca410;
  --Feedback-Warning-Dark: #e0982b;
  --Feedback-Warning-Light: #fffbed;
  --Feedback-Error-Dark: #F63B3B;
  --Feedback-Error-Light: #fff5f5;
  --color-red: #f63b3b;
  --color-azul-presidencia: #003da5;
  --color-azul-dark: #4094e1;
  --color-azul-4: #f0f6f8;
  --color-azul-3: #ceedf4;
  --color-green: #1bb668;
  --color-green-02: #a8d372;
  --color-green-03: #e4f1d0FF;
  --color-green-04: #2a734eFF;
  --color-policlinica: #ab57f5;
  --color-hospital: #27abcd;
  --color-hospital-sec: #ceedf4;
  --color-centre: #1bb668;
  --color-centre-sec: #e8f5e9;
  --color-poli: #ab57f5;
  --color-poli-sec: #faeeff;
  --color-vac: #003da5;
  --color-vac-sec: #003da533;
  --color-emergency: #ff4e4b;
  --color-emergency-sec: #ffeded;
  --color-centro: #ab57f5;
  --color-gris-01: #1f1f1f;
  --color-gris-03: #878787;
  --color-gris-06: #f5f5f5;
  --color-gris-04: #c6c6c6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2c2c2c;
  scroll-behavior: smooth;
}
h1,h2,h3,h4,h5 {
  font-family: "DM Sans", sans-serif;
  color: var(--color-azul-presidencia);
}
a {
  font-family: "Work Sans", sans-serif;
}

h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.22;
}
h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.36;
}
h3 {
  color: var(--color-gris-01);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  text-align: left;
}
h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
a {
  text-decoration: none;
  color: #434343;
}
.flex {
  display: flex;
  gap: 8px;
  align-items: center;
}
button {
  display: flex;
  gap: 16px;
  &.close {
    right: 25px;
    top: 25px;
    width: 14px;
    height: 20px;
    position: absolute;
    color: var(--color-azul-presidencia);
    z-index: 2;
    svg {
      z-index: -1;
    }
  }
  &.trash {
    height: 20px;
    color: var(--color-azul-presidencia);
    position: absolute;
    top: 25px;
    right: 25px;
  }
  &.info {
    svg {
      width: 20px;
      color: #4094e1;
    }
  }
}
.link {
  font-weight: 600;
  color: var(--color-azul-presidencia);
  font-size: 14px;
}
label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.backdrop {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  justify-content: end;
  align-items: center;
  &.loading {
    justify-content: center;
    background: #0006;
    img {
      width: 100px;
    }
  }
}
.info-box {
  position: relative;
  width: 40vw;
  height: 100vh;
  padding: 60px;
  background: #FFF;
  overflow-y: scroll;
  border-radius: 24px 0 0 24px;
  color: #878787;
  box-shadow: 4px 4px 20px 10px #0000001A;
}
.box {
  background: #FFFFFFCC;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  gap: 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  div {
    height: 100%;
  }
}
.columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.column {
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 24px;
  &.center {
    align-items: center;
  }
  ul {
    list-style: inherit;
  }
}
.row {
  display: flex;
  gap: 24px;
  /*flex-wrap: wrap;*/
  align-items: center;
}
.list {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: fit-content;
  gap: 8px;
  background: #FFF;
  border-bottom: 1px solid var(--color-gris-03);
  button {
    text-align: left;
    padding: 8px 16px;
    &:nth-child(odd) {
      background: var(--color-azul-4);
    }
  }

}
.main-button, .secondary-button {
  border-radius: 4px;
  height: 44px;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  min-width: fit-content;
  align-items: center;
  font-weight: 600;
  svg {
    height: 16px;
  }
}
.main-button {
  background: var(--color-azul-presidencia);
  color: #FFF;
}
.secondary-button {
  color: var(--color-azul-presidencia);
  border: 1px solid var(--color-azul-presidencia);
}
.arrow[aria-expanded="true"] img {
  transform: rotate(180deg);
}
.rectangle-div {
  width: 100%;
  height: 80px;
  background: #f5f5f5;
  border-radius: 8px;
  z-index: -2;
}
button, input, optgroup, select, textarea {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
}
select {
  background-image: url("/images/arrow.svg");
  color: var(--color-gris-01);
  border-color: var(--color-gris-01);
  background-color: transparent;
  max-width: 350px;
  width: fit-content;
}
input {
  width: 350px;
}
[type="text"] {
  background: none;
  max-width: 350px;
  border-color: #c6c6c6FF;
}
[type="text"]::placeholder {
  color: var(--color-gris-01);
}
.fa-house-medical {
  color: var(--color-green);
}
.fa-stethoscope {
  color: var(--color-policlinica);
}
.break {
  color: var(--color-gris-04);
  font-size: 10px;
  border-top: 1px solid var(--color-gris-06);
  padding-top: 8px;
}
.description {
  border-radius: 12px;
  background: var(--color-gris-06);
  color: #666666;
  font-size: 13px;
  padding: 8px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.tag {
  padding: 6px 8px;
  border: 1px solid #e2e2e2FF;
  border-radius: 100px;
  display: flex;
  gap: 4px;
  height: fit-content;
  align-items: center;
  justify-content: space-between;
  width: max-content;
  background: #FFF;
  font-size: 10px;
  &::before {
    display: inline-block;
    width: 16px;
    height: 12px;
  }
  &.highlight {
    background: #f0f6f8;
  }
  &.location {
    color: var(--color-azul-presidencia);
    background: #003da50D;
    &.departamento::before {
      content: url("/images/location-pin.svg"); 
    }
    &.localidad::before {
      content: url("/images/city.svg"); 
    }
    &.address::before {
      content: url("/images/addres.svg"); 
    }
  }
  span {
    font-size: 10px;
  }
  img {
    /*max-height: 14px;*/
    width: 20px;
  }
  svg {
    height: 12px;
  }
  &.thirdLevel {
    color: var(--color-hospital);
    border-color: var(--color-hospital-sec);
    &::before {
     content: url("/images/hospital.svg");
    }
  }
  &.secondLevel {
    color: var(--color-centre);
    border-color: var(--color-centre-sec);
    &::before {
     content: url("/images/housemedical.svg");
    }
  }
  &.firstLevel {
    color: var(--color-poli);
    border-color: var(--color-poli-sec);
    &::before {
     content: url("/images/primer-nivel-de-atencion.svg");
    }
  }
  &.vac {
    color: var(--color-vac);
    border-color: var(--color-vac-sec);
    &::before {
     content: url("/images/vacunatorio.svg");
    }
  }
  &.emergency {
    color: var(--color-emergency);
    border-color: var(--color-emergency-sec);
    &::before {
      content: url("/images/emergency.svg");
    }
  }
}
.highlighted {
  padding: 32px 40px;
  background: #ceedf4;
  border-radius: 24px;
  &.green {
    background: #f7faf3;
    align-items: baseline;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    gap: 20px;
    h2 {
      color: #2a734e;
    }
    svg {
      color: #a8d372;
      border: none;
      padding: 0;
      width: 24px;
      min-width: 24px;
    }
  }
  .tag {
    flex-direction: column;
    align-items: baseline;
    background: none;
    border: none;
    svg {
      color: #27abcd;
    }
  }
}
.page-tag {
  width: fit-content;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.375;
}
.tag-prestadores {
  background: #f7faf3;
  color: #2a734e;
}
.tag-calendar {
  background: #ceedf4;
  color: var(--color-azul-presidencia);
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  padding: 4px 8px;
  border: none;
}
/** SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--color-azul-presidencia);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--color-azul-presidencia);
}

input:checked + .slider:before {
  -webkit-transform: translateX(12px);
  -ms-transform: translateX(12px);
  transform: translateX(12px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}