/* --- TUS REGLAS ORIGINALES (NO TOCADAS) --- */
body, html {
    width: 100%; 
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #DBF7FB;
    background-size: cover;
    overflow-x: hidden;
    overflow-y: auto;
}

#barra { 
    width: 100%;
    height: 3.8rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    font-size: 1.7rem;
    font-family: fantasy;
    color: rgb(255, 4, 4);
    background-color: rgb(0, 255, 255);
    align-items: center;
}

#boton {
    width: 12rem;
    height: 2.5rem;
    cursor: pointer;
    color: #fff;
    font-size: 17px;
    border-radius: 1rem;
    border: none;
    position: relative;
    background: #100720;
    transition: 0.1s;
    margin: 1rem;
    font-family: "Parkinsans", serif;
    color: rgb(255, 255, 255);
}

#boton:after {
    content: '';
    width: 100%;
    height: 100%;
    background-image: radial-gradient( circle farthest-corner at 10% 20%, rgba(255,94,247,1) 17.8%, rgba(2,245,255,1) 100.2% );
    filter: blur(18px);
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
}

button:active {
    transform: scale(0.9) rotate(3deg);
    background: radial-gradient( circle farthest-corner at 10% 20%, rgba(255,94,247,1) 17.8%, rgba(2,245,255,1) 100.2% );
    transition: 0.5s;
}

/* --- DISEÑO MEJORADO PARA EL CONTENIDO --- */

.main-container {
  width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Parkinsans', sans-serif;
}

header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
}

.header-image img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.header-text h1 {
    color: #0056b3;
    font-size: 2.5rem;
    margin-top: 1.5rem;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.tagline {
    color: #555;
    font-size: 1.2rem;
    font-style: italic;
}

.intro {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.description {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1f5fe;
}

.description:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.description img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.description p {
    line-height: 1.6;
    color: #444;
    font-size: 1.05rem;
}

footer {
    background: #100720;
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

#derecho {
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsivo */
@media (max-width: 768px) {
    .description {
        width: 100%;
    }
    .header-text h1 {
        font-size: 1.8rem;
    }
}

#btnInstalar {
  display: none; /* Se activa mediante el JS que ya tienes */
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  background-color: #007bff; /* Color azul profesional */
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: sutil-salto 2s infinite;
}

/* Efecto al pasar el mouse */
#btnInstalar:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* Animación sutil para que el usuario lo vea */
@keyframes sutil-salto {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  #btnInstalar {
    width: 90%;
    left: 5%;
    right: 5%;
    bottom: 15px;
    text-align: center;
  }
}

#Inventary {
  background-color: transparent;
  border: transparent;
  color: white;
  font-size: 1.7rem; 
  font-family: fantasy;
  cursor: pointer;

  /* Esto crea el borde fino que parece estar en el límite interno */
  -webkit-text-stroke: 0.2px #b0bcf7;
  
  /* Agregamos una sombra mínima para dar profundidad */
  text-shadow: inset 0 0 0.5px rgb(247, 247, 247); 
  
  /* Suavizado de fuente para que no se vea "mordido" */
  -webkit-font-smoothing: antialiased;
}

/* --- BURBUJA DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Esto asegura que esté por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    fill: #ffffff; /* Pinta el icono de blanco */
}

:root {
  --primary-color: #2563eb; /* Azul moderno */
  --bg-bar: #ffffff;
  --text-color: #374151;
  --border-color: #e5e7eb;
}

.articulos-nav {
  background-color: var(--bg-bar);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

/* Estado hover y activo */
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
  background-color: #eff6ff;
}

/* Buscador */
.nav-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  overflow: hidden;
  background-color: #f9fafb;
}

.nav-search input {
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  outline: none;
  font-size: 0.9rem;
  width: 250px;
}

.btn-search {
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-search:hover {
  background-color: #f3f4f6;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links {
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  .nav-search input {
    width: 100%;
  }
}


#Inventary {
  margin-left: 2rem;
}

/* Contenedor principal con el borde RGB animado */
.inv-badge-container {
max-width: 100%; /* Evita desbordes en pantallas pequeñas */
 

    position: relative;
    padding: 3px; /* Define el grosor del borde RGB */
    border-radius: 50px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #00ffff, #0000ff, #8b00ff, #ff0000);
    background-size: 400% 400%;
    animation: invRgbBorder 6s linear infinite;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

/* Animación para mover el gradiente de colores */
@keyframes invRgbBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cuerpo interno de la píldora */
.inv-badge-box {
max-width: 100%; /* Evita desbordes en pantallas pequeñas */
    display: inline-flex;
    align-items: center;
    gap: 12px;
      padding: 10px 16px;

    background: rgba(13, 8, 20, 0.95); /* Fondo oscuro interno para contraste */
    border-radius: 50px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo deslizante secundario */
.inv-badge-box::after { max-width: 100%; /* Evita desbordes en pantallas pequeñas */
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: invShine 3s infinite;
}

@keyframes invShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Punto verde con animación */
.inv-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399, 0 0 20px #34d399;
    animation: invPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes invPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.inv-badge-text {
  white-space: normal;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
   
}

/* Ajustes responsivos */
@media (max-width: 600px) {
    .inv-badge-text {
        font-size: 12px;
    }
    .inv-badge-box {
        padding: 8px 16px;
    }
}