/* Themes */
:root {
    color-scheme: light dark; /* both supported */
    --allways-dark: #111315;
    --allways-light: #FBF9F5;
    --background-color: #D7D7D7;
    --font-color: #111315;
    --subtitles: #404A7F;
    --bad-color: #FF4D79;
    --important: #FFE253;
    --accent-color: #A01413;
    --main-element: #4DA3FF;
    --good-color: #00ca43;
    --z1: #E0E2E2;
    --z2: #D3D5D6;
    --table-striped-bg: rgba(0, 0, 0, 0.05);
    --status-1: #bfbfbf83;
    --status-2: #ffa35783;
    --status-3: #6baffc83;
    --status-4: #726bff83;
    --status-5: #f0ff6b83;
    --status-6: #6ff4a083;
    --status-7: #ff0000c2;

    --critico: #ff0000c2;
    --riesgo: #ff8514;
    --preventivo: #ffe95d;
    --ok: #00ca43;

    /* card */

    --bg-card-bronze: #df9070;
    --bg-card-silver: #dddde0;
    --bg-card-gold: #ffcc70;
    --bg-card-platinum: #fff;

    --bg-card: var(--bg-card-platinum); /* Change metal */

    --border-radius: 18px;
    --gradient-rotation: 0deg;
    --gradient-position-x: 50%;
    --gradient-position-y: 50%;
    --rotate-x: 0deg;
    --rotate-y: 0deg;

  }

@media (prefers-color-scheme: dark ) {
    :root {
        --background-color: #111315;
        --font-color: #D7D7D7;
        --subtitles: #BFC3E0;
        --important: #FF5470;
        --accent-color: #A01413;
        --main-element: #4DA3FF;
        --good-color: #5CFF91;
        --z1: #242733;
        --z2: #1f202a;
        --table-striped-bg: rgba(0, 0, 0, 0.267);
        --status-1: #bfbfbf;
        --status-2: #fc8d8d;
        --status-3: #a5cfff;
        --status-4: #fffbbc;
        --status-5: #aaffc9;
    }
    .img-light {
        display: none;
    }
    .img-dark {
        display: inherit;
    }
    
}

body {
    background-color: var(--background-color);
    color: var(--font-color) !important;

    
  
}



a:visited { text-decoration: none; color: var(--font-color); }
a:any-link {
    text-decoration: none;
    color: var(--font-color);
}
a {
    color: var(--font-color);
    text-decoration: none;
}

.custom-nav {
  position: fixed;
  top: 1rem;
  z-index: 1000;
  width: 100vw;

}

.text-always-light {
  color: var(--allways-light) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

nav .navbar-container {
    user-select: none;
    position: relative;
    /* display: inline-flex; */
    /* justify-content: center;
    align-items: center; */
    /* gap: 10px; */
    transition: all ease-in-out 0.15s;
    border-radius: 56px;
    z-index: 1;
    backdrop-filter: blur(4px);
    font-weight: 600;
    color: var(--main-element);
    cursor: pointer;
}

nav .nav-links {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-decoration: none;
    color: inherit;
    margin-top: auto;
    margin-bottom: auto;
    list-style-type: none;
}

nav .nav-links {
    display: flex;
    gap: 0.1rem;
    position: relative;
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    /* padding: 16px 32px; */
    overflow: hidden;
    border-radius: 56px;
    transition: all ease-in-out 0.15s;
    z-index: 2;
}


.glass {
  background: rgba(240, 249, 255, 0.1) !important;
  backdrop-filter: 
    blur(5px) 
    saturate(1.25) 
    contrast(1.09);
  -webkit-backdrop-filter: 
    blur(5px) 
    saturate(1.25) 
    contrast(1.09);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 0.8px 0 rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

nav .nav-links a{
    font-size: 1rem;
}


.nav-links a:hover{
    color: var(--accent-color);
}


nav .nav-links li {
    transition: all ease-in-out 0.15s;
    border-radius: 56px;
}

nav .nav-links li.active {
    /* background: linear-gradient(
        180deg,
        rgba(224, 230, 239, 0.8) 0%,
        rgba(191, 200, 216, 0.8) 57.59%,
        rgba(214, 218, 227, 0.8) 100%
    ); */
    box-shadow: 0 -3px 4px 0 rgba(63, 63, 90, 0.1) inset,
        0 -27px 12px 0 rgba(255, 255, 255, 0.104) inset,
        1px 1px 1px 0 rgba(255, 255, 255, 0.15) inset,
        -1px -1px 1px 0 rgba(255, 255, 255, 0.159) inset,
        0 4px 4px 0 rgba(255, 255, 255, 0.199) inset,
        0 4px 8px 0 rgba(255, 255, 255, 0.17) inset,
        0 4px 12px 0 rgba(78, 84, 103, 0.095);
      color: var(--accent-color);
}

/* media dark  */
@media (prefers-color-scheme: dark) {
    nav .nav-links li.active {
        /* background: linear-gradient(
            180deg,
            rgba(224, 230, 239, 0.8) 0%,
            rgba(191, 200, 216, 0.8) 57.59%,
            rgba(214, 218, 227, 0.8) 100%
        ); */
        box-shadow: 0 -3px 4px 0 rgba(63, 63, 90, 0.1) inset,
          0 -27px 12px 0 rgba(255, 255, 255, -0.95) inset,
          1px 1px 1px 0 rgba(94, 93, 98, 1.26) inset,
          -1px -1px 1px 0 rgba(255, 255, 255, 0.241) inset,
          0 4px 4px 0 rgba(94, 93, 98, -3.8) inset,
          0 4px 8px 0 rgba(94, 93, 98, 0.17) inset,
          0 4px 12px 0 rgba(78, 84, 103, 0.14); 
        color: var(--accent-color);
    }

    ::placeholder {
        color: var(--font-color) !important;
        font-size: 0.75rem !important;
        opacity: 1;
    }

    .liquid-glass::placeholder {
        color: var(--font-color);
        opacity: 0.5;
    }
}

.silver-card {
  width: 100%;
  aspect-ratio: 1.586; /* True to real credit card aspect ratio */
  position: relative;
  border-radius: var(--border-radius);
  background: radial-gradient(
      ellipse 160% 120% at var(--gradient-position-x) var(--gradient-position-y),
      transparent 0%,
      rgba(0, 0, 0, 1) 100%
    ),
    conic-gradient(
      from var(--gradient-rotation) at 50% 50%,
      rgba(0, 0, 0, 0.6) -120deg,
      rgba(255, 255, 255, 0.4) 9deg,
      rgba(0, 0, 0, 0.4) 60deg,
      rgba(0, 0, 0, 0.06) 107deg,
      rgba(0, 0, 0, 0.3) 131deg,
      rgba(0, 0, 0, 0) 188deg,
      rgba(0, 0, 0, 0.6) 240deg,
      rgba(255, 255, 255, 0.4) 367deg
    ),
    var(--bg-card);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3),
    inset 1px 1px 2px rgba(255, 255, 255, 0.3);
  transition: transform 0.1s ease-out;
  transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  overflow: hidden;
}

div.silver-card::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: var(--border-radius);
  filter: url(#noiseFilter);
  opacity: 0.25;
  z-index: 1;
}

div.silver-card::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  mix-blend-mode: color;
  z-index: 2;
}

.vertical-align-middle {
    align-content: center;
    align-items: center;
}

.shader-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
  }

  .shader-background {
    position: absolute;
    inset: 0;
    z-index: -1;
  }

  .shader-hero-content {
    position: relative;
    z-index: 1;
  }

#header {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#valores {
  background-color: var(--background-color);
  background-image: radial-gradient(#7d7d7d 0.75px, var(--background-color) 0.75px);
  background-size: 28px 28px;
  color: var(--font-color) !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1200px) { 
  #valores {
    border-radius: var(--border-radius);
  }
}

.fx-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.fx-reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: 800ms cubic-bezier(0.5, 0, 0, 1);
}

.media.media-image {
  border-radius: var(--border-radius);
}

.carousel[class*="-big-controls"] .tns-controls {
  position: absolute;
  right: 0;
  bottom: -50px;
}

.carousel[class*="-big-controls"] .tns-controls button {
  position: relative;
  margin-right: 1rem;
  width: 5rem;
  height: 5rem;
  font-size: 1.5rem;
  margin-top: -2.5rem;
  opacity: 1;
  border-radius: 100%;
  background: rgba(240, 249, 255, 0.1) !important;
  backdrop-filter: 
    blur(5px) 
    saturate(1.25) 
    contrast(1.09);
  -webkit-backdrop-filter: 
    blur(5px) 
    saturate(1.25) 
    contrast(1.09);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 0.8px 0 rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.footer {
  background-color: var(--background-color);
  background-image: radial-gradient(#7d7d7d 0.75px, var(--background-color) 0.75px);
  background-size: 28px 28px;
  color: var(--font-color);
  padding: 2rem 0;
  border-radius: 30px 30px 0 0;
}

.map-container {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.map-data {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* blog */

.image img{
  border-radius: var(--border-radius);
}

.text-body p{
  color: var(--font-color);
}

.img-fluid {
  border-radius: var(--border-radius);
}


/* header  */
.header-carousel {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 350px;
    overflow: hidden;
    border-radius: 30px;
  }

@media (max-width: 1200px) { 
  .header-carousel {
    height: 60vh;
  }
}

 

  .header-carousel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 2s ease-in-out, opacity 2s ease-in-out;
    opacity: 1;
  }

  .header-carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    mask: linear-gradient(to bottom,transparent 10%, var(--allways-dark) 90%);
    backdrop-filter: blur(15px);
  }

  .header-carousel-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 3rem;
    padding-bottom: 3rem;
    color: var(--allways-light);
    /* filter that goes from clear on top to blur at the bottom  */
  }

  .header-carousel-title {
    transition: opacity 0.8s ease-in-out;
    opacity: 1;
    max-width: 900px;
  }

  .header-carousel-title.fade,
  .header-carousel-bg.fade {
    opacity: 0;
  }