/* html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;  
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
} */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    /* Reserve space for header */
    scroll-padding-top: 60px;
}

body {
  scroll-behavior: smooth;
}

header {
  min-height: clamp(28vh, 45vw, 80vh);
}

strong {
  color: #D0051D;
}

hr {
    margin: 0 !important;
}

thead {
    position: sticky;
    top: 0;
    z-index: 105;
}

.content-wrapper {
    flex-grow: 1;
    margin-bottom: 0;
    margin-top: 6rem;
}

footer {
    background-color: #f8f9fa;
    /* background: linear-gradient(90deg, #EEEEEE, #adadad); */
    text-align: center;
    padding: 5px 0;  
    width: 100%;
    position: relative;
    font-size: 0.85rem;  
}

.container {
    margin-bottom: 0;
}

.container-fluid {
    padding-right: 0;
    padding-left: 0;
}


.service-card {
    padding: 20px;
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); 
    background-color: white;  
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);  
    transform: translateY(-5px);  
}

.service-title {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.service-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}


/* .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
} */


.btn-primary {
    background-color: #D0051D;
    border-color: #D0051D;
}

.btn-primary:hover {
    background-color: #b10417;  
    border-color: #b10417;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Ajustar tamaño de los selectores de los filtros en niveles_list.html */
.form-control {
    height: 38px; 
    line-height: 1.5; 
    font-size: 1rem;
}

select.form-control {
    height: 38px; 
    padding: 0.375rem 0.75rem; 
}

/* Alinear los filtros y el boton de busqueda */
.form-row {
    display: flex;
    align-items: center; 
}
/* fin de Ajustar tamaño de los selectores de los filtros en niveles_list.html */

.form-row .col-md-4, .form-row .col-md-2 {
    flex: 1; 
}

.form-row .col-md-2 {
    max-width: 150px; 
}

.table-responsive {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}


.sticky-header {
    position: sticky;
    top: 0; 
    background-color: #343a40; 
    color: white;
    z-index: 105; 
    text-align: center;
    padding: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.sticky-column-header {
    position: sticky;
    top: 0;
    right: 0;
    background-color: #343a40; 
    color: white;
    z-index: 106; 
    text-align: center;
    padding: 8px;
    font-size: 14px;
    white-space: nowrap;
}


.progress-container {
    position: relative;
    width: 100%;
    height: 25px;  
  }
  
  .progress {
    height: 100%;
    background-color: #c1c1c2; 
    border-radius: 5px;
  }
  
  .progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #b6f0a2; 
    border-radius: 5px;
  }
  
  .porcentaje-texto {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(59, 58, 58);  
    
    font-size: 0.9rem;
    z-index: 2;  /* Asegura que el texto este por encima de la barra */
  }
  
  


/* Encabezado fijo solo para la tabla de customer_tanks.html */
.table-customer-tanks {
    max-height: 500px;
    overflow-y: auto; 
}

.table-customer-tanks thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
}

/* Gradiente para la barra de navegacion */
.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0.5rem;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background: linear-gradient(90deg, #EEEEEE, #adadad); 
    color: rgb(24, 24, 24);
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: var(--bs-navbar-padding-y) var(--bs-navbar-padding-x);
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease; */
}

.navbar .nav-link {
    color: rgb(24, 24, 24); 
}

.navbar .nav-link:hover {
    color: rgb(24, 24, 24); 
}

.navbar-brand {
    color: rgb(24, 24, 24);
}

.navbar-brand:hover {
    color: rgb(24, 24, 24);
}

.tank-container {
    position: relative; /* Para posicionar la etiqueta del nivel */
    height: 200px; /* Altura del contenedor del tanque */
    background: #e0e0e0; /* Color de fondo del tanque */
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Evita que el contenido sobresalga */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra del contenedor */
}

.tank {
    background: linear-gradient(to top, #8d6e4d, #bda563); /* Color del nivel del tanque con degradado */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: height 0.5s; /* Animacion para el cambio de altura */
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3); /* Sombra interna para darle profundidad */
    animation: liquidAnimation 1.5s infinite; /* Animacion continua */
}

.ship-image {
    position: relative;
    width: 100%; /* Ajusta el ancho segun tu imagen */
    max-width: 375px;
    /* height: auto; */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.fill-level {
    position: absolute;
    bottom: 1px;
    /* left: 50%;
    transform: translateX(-50%); */
    width: 100%;
    max-width: 375px;
    height: 1px;
    background: linear-gradient(to top, #8d6e4d, #bda563);
    z-index: 1; /* Debe estar detras de la imagen */
    transition: height 1s ease; /* Animacion suave de llenado */
}

.tanker-image {
    width: 100%;
    display: block;
    max-width: 375px;
    height: auto;
    position: relative;
    z-index: 2; /* La imagen debe estar encima del contenedor de llenado */
}

/* Animacion que simula el movimiento del liquido */
@keyframes liquidAnimation {
    0% {
        transform: translateY(0); /* Comienza en la posicion original */
    }
    50% {
        transform: translateY(-5px); /* Eleva el liquido hacia arriba */
    }
    100% {
        transform: translateY(0); /* Vuelve a la posicion original */
    }
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* Sombra de la tarjeta */
    border-radius: 10px; /* Bordes redondeados */
    transition: box-shadow 0.3s ease; /* Suaviza la sombra al interactuar */
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* Sombra mas pronunciada al pasar el raton */
}

.tank-label {
    margin-top: 10px; /* Espacio entre el grafico y el texto */
    font-size: 2.1rem; /* Ajusta el tamaño de fuente */
}

/* Responsividad para tabla de tanques de cliente*/
@media (max-width: 768px) {
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;  
    }

    body {
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        font-family: 'Roboto', sans-serif;
    }

    .table-customer-tanks {
        max-height: 300px;
    }

    .progress {
        height: 20px;
    }

    .progress-bar {
        font-size: 0.8rem;
    }

    .service-card {
        padding: 15px;
    }

    .service-title {
        font-size: 1.0rem;
        
    }

    .service-description {
        font-size: 0.9rem;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .arrow-svg svg {
        width: 130px;
        height: 100px;
        transform: rotate(0deg); /* Flecha por defecto */
        transition: transform 0.3s ease; /* Animación suave */
    }

    .arrow-svg.arrow-down svg,
    .arrow-svg.arrow-up svg {
        transform: rotate(90deg);
        margin-bottom: 5px;
    }

    #infoCaudal {
      font-size: 0.8rem !important;
      color: #333; /* Color del texto */
    }

    #lowSvg, #upSvg {
      width: 25px !important;
    }

    .container3 {
      height: 50vw !important;
      align-items: normal !important;
    }

    .tank-label {
      font-size: 1.6rem !important;
    }

    .tank-label-blend {
      font-size: 1.6rem !important;
    }

    .pipeline {
      transform: rotate(90deg);
    }

    .logo-index {
      max-width: 50px !important;
    }
}

@media (max-width: 576px) {
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;  
    }

    body {
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        font-family: 'Roboto', sans-serif;
    }

    .container {
        max-width: 760px;
    }

    .arrow-svg svg {
        width: 130px;
        height: 100px;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .arrow-svg.arrow-down svg,
    .arrow-svg.arrow-up svg {
        transform: rotate(90deg);
        margin-bottom: 5px;
    }

    .tank-label {
      font-size: 1.2rem !important;
    }

    .tank-label-blend {
      font-size: 1.2rem !important;
    }

    .pipeline {
      transform: rotate(90deg);
    }

    .logo-index {
      max-width: 50px !important;
    }
}

@media (min-width: 768px) {
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;  
    }

    body {
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        font-family: 'Roboto', sans-serif;
    }

    .container {
        max-width: 800px;
    }

    .arrow-svg svg {
        width: 200px;
        height: 100px;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .arrow-svg.arrow-down svg,
    .arrow-svg.arrow-up svg {
        transform: rotate(0deg);
    }

    #infoCaudal {
      font-size: 0.8rem !important;
      color: #333; /* Color del texto */
    }

    #lowSvg, #upSvg {
      width: 25px !important;
    }

    .tank-label {
      font-size: 1.4rem !important;
    }

    .tank-label-blend {
      font-size: 1.4rem !important;
    }

    .logo-index {
      max-width: 100px !important;
    }
}

@media (min-width: 992px) {
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;  
    }

    body {
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        font-family: 'Roboto', sans-serif;
    }

    .container {
        max-width: 960px;
    }

    #infoCaudal {
      font-size: 1rem !important;
      color: #333; /* Color del texto */
    }

    #lowSvg, #upSvg {
      width: 25px !important;
    }
    
    .tank-label {
      font-size: 2.1rem !important;
    }

    .tank-label-blend {
      font-size: 2.1rem !important;
    }

    .logo-index {
      max-width: 150px !important;
    }
}

@media (min-width: 1200px) {
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;  
    }

    body {
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        font-family: 'Roboto', sans-serif;
    }

    .container {
        max-width: 1350px;
    }

    #infoCaudal {
      font-size: 1.2rem !important;
      color: #333; /* Color del texto */
    }

    #lowSvg, #upSvg {
      width: 25px !important;
    }

    .tank-label {
      font-size: 2.1rem !important;
    }
    .tank-label-blend {
      font-size: 2.1rem !important;
    }

    .logo-index {
      max-width: 200px !important;
    }
}


:root{
  /*¿Altura del liquido*/
  --liquid: 10%;
  /*Altura de la onda
  * Siendo 0.5 (cero) el minimo
  * y 0.99 (cero) el maximo*/
  --h-wave: 0.9;
  /*¿Color del borde?*/
  --cl-bd: blue;
  /*¿Color del liquido?*/
  --cl-lq: #8d6e4d;
  /*¿Grosor del borde*/
  --bd: 0.4vw;
  /*¿Ancho del contenedor*/
  --w-cnt: 100vw;
  /*¿Cuantas cajas son?*/
  --n-box: 8;
  /*Ancho del contenedor menos el ancho de los bordes del contenedor*/
  --wlessbd: calc(var(--w-cnt) - ( (var(--bd) * 2) ) );
  /*¿Medida automatica de las cajas?*/
  --s-box: calc(  var(--wlessbd) / var(--n-box) );
}

.container3 {
  /* width: var(--w-cnt); */
  margin: auto;
  /* border: solid var(--bd) var(--cl-bd); */
  position: relative;
  overflow: hidden;
    /* position: relative; Para posicionar la etiqueta del nivel */
    /* height: 200px; Altura del contenedor del tanque */
    background: #e0e0e0; /* Color de fondo del tanque */
    border-radius: 10px; /* Bordes redondeados */
    /* overflow: hidden; Evita que el contenido sobresalga */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); Sombra del contenedor */
    display: flex;
    justify-content: center;
    align-items: center;
}

.container3:not(.opcion2)::before{
  content: '';
  display: inline-block;
  background: linear-gradient(to top, var(--cl-lq), #bda563);
  bottom: 0; 
  left: -25%;
  position: absolute;
  z-index: 1;
  width: 150%;
  height: calc(var(--liquid) * 2);
  trasform-origin: 0 50%;
  --b-wave: translateY(52%);
  transform: var(--b-wave);
  animation: wave 5s linear infinite;
}

.roww{
  display: flex;
  font-size: 0;
  letter-spacing: 0;
  position: relative;
  z-index: 10;
}

.box{  
  /* box-shadow: inset 0 0 0 var(--bd) var(--cl-bd); */
  display: inline-block;
  /* width: var(--s-box) ; */
  height: var(--s-box) ;
  overflow: hidden;
  position: relative;
}

.box::before,
.box::after{
  content: '';
  top: 0;
  left: 0;
  display: inline-block;
  position: absolute;  
}

/* para simular el hexagono*/
.box::before{
  width: 100% ;
  height: 100% ;
  --bd2: calc(var(--bd) * 2);
  box-shadow: inset 0 0 0 var(--bd2) var(--cl-bd); 
  transform: rotateZ(45deg);
  z-index: 2;
}

.box::after{ 
  --sw1: calc(var(--s-box) / 8);
  --sw2: calc(var(--s-box) / -4);  
  --sw3: calc(var(--s-box) / 3);
  --c-sw: rgba(0,0,0,.3);
  left: 3%;
  top: 3%;
  width: 94% ;
  height: 94% ;
  border-radius: 50%;
  box-shadow: 
    inset 2px -2px 6px var(--c-sw),
    inset var(--sw1) var(--sw2) var(--sw3) var(--c-sw); 
  z-index: 1;
}

.opcion2::before,
.opcion2::after{
  content: '';
  display: block;
  position: absolute;
  background: linear-gradient(to top, var(--cl-lq), #bda563);
  height: var(--liquid);
  bottom: 0;
  left: 0;
}

.opcion2::before{
  z-index: 2;
  width: 100%;
  transform-origin: 50% 100%;
  animation: wave-shrink 3s linear infinite;
}

.opcion2::after{
  z-index: 1;
  width: 200%;
  border-radius: 50%;
  animation: wave-sway 5s linear infinite;
}

@keyframes wave{
  0%, 100%{
    transform: var(--b-wave) rotateZ(0deg);
  }
  25%, 30%{
    transform: var(--b-wave) rotateZ(2deg);
  }
  70%, 75%{
    transform: var(--b-wave) rotateZ(-2deg);
  }
}

@keyframes wave-shrink{
  50%{ transform: scaleY(var(--h-wave));}
}

@keyframes wave-sway{
  0%{ transform: translateX(-100%);}
  100%{ transform: translateX(100%);}
}

/* Centrar el tank-label y el infoCaudal */
.fixed-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3; /* Asegura que esten por encima del contenido animado */
    text-align: center;
    pointer-events: none; /* Evita que interactuen con los clics */
}

#infoCaudal {
    font-size: 1.2rem;
    color: #333; /* Color del texto */
}

.fan {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    border-radius: 50%;
    animation: rotate 2s infinite linear;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.fan::before, .fan::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 40px;
    background: #eee;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.fan::after {
    transform: translateX(-50%) rotate(90deg);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.pipeline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    /* height: 200px; */
    /* background-color: #f4f4f4; */
}

/* Representacion de la tuberia */
.pipeline {
    z-index: -1;
    width: 500px;
    height: 30px;
    background-color: #ccc;
    border-radius: 15px;
    position: absolute;
    overflow: hidden;
    /* border: 2px solid #999; */
}

/* Animacion del flujo de combustible */
.fuel-flow {
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, #8d6e4d, #79621f, #bda563);
    position: absolute;
    left: 0;
    top: 0;
    animation: flow 5s linear infinite;
    border-radius: 15px;
}

/* Definicion de la animacion */
@keyframes flow {
    from {
        transform: translateX(-50px);
    }
    to {
        transform: translateX(500px);
    }
}

.legend {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaciado entre los elementos de la leyenda */
    margin-top: 10px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px; /* Espaciado entre el color/linea y el texto */
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

.legend-line {
    height: 20px;
    border-left: 5px solid;
    margin-right: 5px;
}

.asteriskField {
    color: #b10417;
}

.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}

.section {
    padding: 60px 0;
    scroll-margin-top: 60px;
    position: relative;
}

.section.bg-light {
  background-color: #ededed !important;
}

input[type="file"] {
  outline: none;
  padding: 4px;
  /* margin: -4px; */
}

input[type="file"]:focus-within::file-selector-button,
input[type="file"]:focus::file-selector-button {
  outline: 2px solid #0964b0;
  outline-offset: 2px;
}

input[type="file"]::before {
  top: 16px;
}

input[type="file"]::after {
  top: 14px;
}

/* ------- From Step 2 ------- */

input[type="file"] {
  position: relative;
  border: 2px dotted #0964b0;
}

input[type="file"]::file-selector-button {
  width: 136px;
  color: transparent;
}

/* Faked label styles and icon */
input[type="file"]::before {
  position: absolute;
  pointer-events: none;
  /*   top: 11px; */
  left: 40px;
  color: #0964b0;
  content: "Upload File";
}

input[type="file"]::after {
  position: absolute;
  pointer-events: none;
  /*   top: 10px; */
  left: 16px;
  height: 20px;
  width: 20px;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230964B0'%3E%3Cpath d='M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z'/%3E%3C/svg%3E");
}

/* ------- From Step 1 ------- */

/* file upload button */
input[type="file"]::file-selector-button {
  border-radius: 4px;
  padding: 0 16px;
  height: 40px;
  cursor: pointer;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  margin-right: 16px;
  transition: background-color 200ms;
}

/* file upload button hover state */
input[type="file"]::file-selector-button:hover {
  background-color: #f3f4f6;
}

/* file upload button active state */
input[type="file"]::file-selector-button:active {
  background-color: #e5e7eb;
}

.background-login {
    background-image: url('/static/images/loginFondo.jpg'); /* Ruta a tu imagen */
    background-size: cover; /* Ajusta la imagen para cubrir toda la pantalla */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 100%; /* Asegura que el body ocupe toda la altura de la ventana */
    margin: 0; 
}

/* Modal para DayPilot */
.modal_rounded_background { background-color: #000; opacity: 0.75; }
.modal_rounded_main { border-radius: 4px; }
.modal_rounded_main, .modal_rounded_main input, .modal_rounded_main button {  font-size: 14px; }
.modal_rounded_inner { padding: 20px; background: #fff; color: #000; border-radius: 8px; }
.modal_rounded_main input, .modal_rounded_main button {  padding: 5px; box-sizing: border-box; border-radius: 4px; border: 1px solid #ccc; }
.modal_rounded_content { margin: 10px 0px;}
.modal_rounded_input { margin: 20px 0px;}
.modal_rounded_buttons { margin-top: 30px; margin-bottom: 10px; }
.modal_rounded_main button { background-color: #2367bf; color: white; padding: 10px 0px; border: 0px; cursor: pointer; outline: none; width: 100px; }
button.modal_rounded_cancel { margin-left: 10px; border: 1px solid #2367bf; background-color: #fff; color: #2367bf; }
/* Fin Modal para DayPilot */

/* NUEVO INDEX */
.bg-image-full {
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center;
  background-size: cover;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.my-2 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded-circle {
  border-radius: 50% !important;
}

.fs-1 {
  font-size: calc(1.375rem + 1.5vw) !important;
}

.fs-2 {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.fs-3 {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.fs-4 {
  font-size: calc(1.275rem + 0.3vw) !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

.fs-6 {
  font-size: 1rem !important;
}

@media (min-width: 1200px) {
  .fs-1 {
    font-size: 2.5rem !important;
  }
  .fs-2 {
    font-size: 2rem !important;
  }
  .fs-3 {
    font-size: 1.75rem !important;
  }
  .fs-4 {
    font-size: 1.5rem !important;
  }
}

.fw-bolder {
  font-weight: bolder !important;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: var(--bs-navbar-toggler-icon-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.image-frame {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.image-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-img {
  position: absolute;
  bottom: -15px;
  background: rgba(0, 0, 0, 0.5);
  width: -webkit-fill-available;
  border-radius: 0 0 8px 8px;
}

.principles-list {
  padding-left: 20px;
}

.principles-list li {
  margin-bottom: 10px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.value-item {
  border-left: 3px solid #D0051D;
  padding: 10px;
  background: rgba(0, 0, 0, .3);
}

.nav-link.active {
  font-weight: bold;
  color: #d0051d !important;
  position: relative;
  border-bottom: none;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
}
/* FIN DE NUEVO INDEX */

/* Estilos para el overlay */
#orientation-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding-top: 6rem;
    z-index: 1000;
    overflow-y: scroll;
}

/* Estilos para la imagen del telefono girando */
.rotate-image {
    margin: 25px;
    width: 50px; /* Tamaño de la imagen */
    height: auto;
    animation: rotatePhone 2s infinite; /* Animacion en bucle */
}
/* Definir la animacion */
@keyframes rotatePhone {
    0% {
        transform: rotate(0deg); /* Posicion inicial */
    }
    50% {
        transform: rotate(90deg); /* Gira 90 grados a la derecha */
    }
    100% {
        transform: rotate(0deg); /* Vuelve a la posicion inicial */
    }
}

.sticky-column-right {
    position: sticky;
    right: 0;
    z-index: 104;
    background-color: #fff;
}

/* Mantener el fondo correcto en filas alternas */
.table-striped tbody tr:nth-of-type(odd) .sticky-column-right {
    background-color: #f2f2f2 !important; /* Color de fondo de filas impares */
    border: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(even) .sticky-column-right {
    background-color: #ffffff !important; /* Color de fondo de filas pares */
}

.sticky-column-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    height: 100%;
    background-color: inherit;
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.1);
}

.card-narrow {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.btn-xs {
    padding: 0.1rem 0.1rem;
    font-size: .675rem;
    line-height: 0.5;
    border-radius: .2rem;
}

.dropdown-menu {
  background-color: #ADADAD !important;
  font-size: inherit !important;
  /* background: linear-gradient(90deg, #EEEEEE, #adadad); */
}

.dropdown-item.active, .dropdown-item:active {
    text-decoration: none;
    background-color: #ddd;
}

.iti { width: 100%; }

.tagify.form-control-none {
    height: auto !important;
}

.nomination-cell {
    position: relative;
    cursor: pointer;
}

.nomination-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(135deg, rgba(102, 126, 234, 0.83) 0%, rgba(141, 155, 218, 0.83) 100%);*/
    background: linear-gradient(135deg, rgba(189, 189, 189, 0.79) 0%, rgba(186, 184, 184, 0.78) 100%);
    padding: 2px;
    display: none;
    z-index: 1000;
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.2);*/
    transform: translateY(-2px);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.nomination-cell:hover .nomination-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.2);*/
}

.action-btn i {
    font-size: 14px;
}

.action-btn.edit-btn {
    color: #007bff;
}

.action-btn.delete-btn {
    color: #dc3545;
}

.action-btn.add-btn {
    color: #28a745;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.dropdown-menu {
    min-width: 140px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 5px 0;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 8px 15px;
    transition: background 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: #f8f9fa;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Centrar dropdown debajo del botón */
.custom-dropdown {
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 35px !important; /* un poco más abajo del botón */
    will-change: transform !important;
}

/* Animación */
.custom-dropdown {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.bg-success {
  background-color: #B6D7A8 !important;
}
.bg-danger {
  background-color: #EA9999 !important;
}

.select2-container .select2-selection--single {
  height: 38px !important;
  line-height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px !important;
}