:root {
    /* Colores base estilo bandera de Santa Cruz */
    --color-1: #0B6E4F;   /* Verde principal */
    --color-2: #10A472;   /* Verde secundario */
    --color-3: #0E8C63;   /* Verde alterno */
    --color-4: #055C3A;   /* Verde profundo */

    /* Fondo y texto */
    --background-main: #FFFFFF;  /* Blanco */
    --text-color: #1A1A1A;       /* Negro suave */
    --border-color: #0B6E4F;     /* Verde principal */
    --shadow-color: rgba(11, 110, 79, 0.25); /* Sombra verde */
}

.dark-mode {
    /* Cambiamos variables para el tema oscuro */
    --background-main: #121212;   /* Fondo oscuro */
    --text-color: #f0f0f0;        /* Texto claro */
    --border-color: #3a3a3a;      /* Bordes suaves */
    --shadow-color: rgba(0, 0, 0, 0.5); /* Sombra más marcada */
}

/* Fondo animado */
.animated-background {
    position: relative;
    overflow: hidden;
    background: var(--background-main);
    color: var(--text-color);
}

.animated-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(270deg, var(--color-1), var(--color-2), var(--color-3), var(--color-4));
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    z-index: 0;
}

.animated-background .mask,
.animated-background .container {
    position: relative;
    z-index: 1;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botón con animación degradada */
.animated-button {
    position: relative;
    overflow: hidden;
    color: #fff;
    border: none;
    background: linear-gradient(270deg, var(--color-1), var(--color-2), var(--color-3), var(--color-4));
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    transition: transform 0.2s ease;
}

.animated-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.animated-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(48, 57, 248, 0.4);
}

/* Botón blanco/oscuro */
.my-btn {
    font-weight: 600;
    position: relative;
    overflow: hidden;
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
    background: var(--background-main);
    padding: 0.5rem 0.7rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 6px;
}

.my-btn:hover {
    color: var(--text-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-color: var(--text-color);
    background-color: #ebebebec;
}

.my-btn-icon {
    margin-right: 0.4rem;
    font-size: 1rem;
}

.my-btn-text {
    font-size: 0.95rem;
}

.my-btn:focus {
    outline: none;
    box-shadow: none;
}

.my-btn:active {
    transform: scale(0.98);
    box-shadow: none;
}




/* Start Animation Loader */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 30px;
}

.loader div {
  width: 8px;
  height: 8px;
  background: #00459e;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.loader div:nth-child(2) {
  animation-delay: 0.2s;
}

.loader div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  from {
    transform: translateY(0);
    opacity: 0.6;
  }
  to {
    transform: translateY(-12px);
    opacity: 1;
  }
}


.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: start;
  justify-content: center;
  padding-top: 5px;
  z-index: 10;
}

/* End Animation Loader */

















/* Para el catálogo */
/* Baner Principal */
/* Aplica el fondo animado degradado a hb-menu */
.hb-menu.animated-gradient {
    position: relative;
    overflow: hidden;
    background: var(--background-main);
    color: var(--text-color);
}

/* Capa animada de fondo */
.hb-menu.animated-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(270deg, var(--color-1), var(--color-2), var(--color-3), var(--color-4));
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    z-index: 0;
}

/* Aseguramos que el contenido quede encima del fondo */
.hb-menu.animated-gradient nav,
.hb-menu.animated-gradient ul,
.hb-menu.animated-gradient li,
.hb-menu.animated-gradient a {
    position: relative;
    z-index: 1;
}

/* Reutiliza tu keyframes */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Tabla Principal*/

/* Clase única para evitar conflictos */
.table-edsoft-primary {
    border-collapse: collapse;
    width: 100%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.table-edsoft-primary th, 
.table-edsoft-primary td {
    border: 1px solid var(--color-3); /* líneas más delgadas */
    padding: 2px 4px;
    text-align: left;
    color: black;
}

.table-edsoft-primary th {
    background-color: var(--color-1); /* encabezado azul */
    color: white;
}

/* Hover: color */
.table-edsoft-primary tbody tr:hover {
    background-color: #CCE0FF;
}
/* Estilo para códigos importantes en tablas */
.edsoft-span {
    display: inline-block;
    background-color: var(--color-1); /* fondo azul claro */
    color: #ffffff; /* texto azul */
    font-weight: 700;
    padding: 1px 4px 0px 4px;
    border-radius: 3px;
    /* border: 1px solid #3b44f5; borde sutil azul */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Opcional: efecto hover */
.edsoft-span:hover {
    background-color: var(--color-3);
    /* transform: translateY(-0.5px); */
}
