:root {
    /* Colores base (Tema Claro) */
    --color-1: #5860fa;
    --color-2: #6F06FF;
    --color-3: #7f85fd;
    --color-4: #4d02b6;

    --background-main: #ffffff;   /* Fondo principal */
    --text-color: #000000;        /* Texto principal */
    --border-color: #727272;      /* Borde genérico */
    --shadow-color: rgba(0, 0, 0, 0.2); /* Sombra estándar */
}

.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%; }
}
