:root {
  /* ==========================================================
     OPCIÓN 3: "Pure Gray Premium" (ACTIVADA Y MEJORADA)
     ========================================================== */
  --bg: #121212;
  /* Negro profundo */
  --card: #1e1e1e;
  /* Gris grafito elegante */
  --text: #ffffff;
  /* Blanco puro para contraste */
  --accent: #38bdf8;
  /* Azul eléctrico moderno */
  --hover: #0ea5e9;
  --text-dim: #9ca3af;
  /* Gris suave para detalles */

  /* ==========================================================
     OPCIÓN 2: "Deep Ocean" (Comentada)
     /* --bg: #0f172a;        
     --card: #1e293b;      
     --text: #f8fafc;      
     --accent: #0ea5e9;    
     --hover: #0284c7;
     --text-dim: #94a3b8;
     */

  /* ==========================================================
     OPCIÓN 1: "Classic" (Comentada)
     /*
     --bg: #1c1c1c;
     --card: #2b2b2b;
     --text: #e0e0e0;
     --accent: #1793d1;
     --hover: #147ab9;
     */
}

body.light {
  /* --- MODO CLARO PREMIUM --- */
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --accent: #0284c7;
  --hover: #0369a1;
  --text-dim: #64748b;
}

/* --- Mejora de Pestañas en Modo Claro --- */
body.light .tabs {
  border-bottom: 1px solid rgba(2, 132, 199, 0.1);
  /* Borde azul muy suave en la base */
}

body.light .tab {
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.2);
  /* Borde azul suave para dar forma */
  color: var(--text-dim);
}

body.light .tab.active {
  background: var(--accent);
  /* Azul eléctrico para la pestaña seleccionada */
  color: white;
  /* Texto en blanco para resaltar */
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

/* --- APLICACIÓN GENERAL DE ESTILOS --- */
body {
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Borde sutil */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  /* Sombra para dar volumen */
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.descripcion,
.trazabilidad {
  color: var(--text-dim);
}

/* Chips con efecto "Cristal" */
.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  backdrop-filter: blur(4px);
  /* Difumina lo que hay detrás */
}

body.light .chip {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

/* Estilo para los botones */
button {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  border: none;
  transition: all 0.2s ease;
}

button:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

/* ==========================================================
   MODAL DE ÉXITO (CERTIFICACIÓN)
   ========================================================== */
#modal-exito {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  /* Fondo muy oscuro para centrar la atención */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.modal-oculto {
  display: none !important;
}

.modal-contenido {
  background: var(--card);
  /* Usa tu color de tarjeta */
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--accent);
  /* Usa tu color azul eléctrico/dorado */
  text-align: center;
  max-width: 90%;
  width: 450px;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
  animation: aparecerModal 0.4s ease-out;
}

@keyframes aparecerModal {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-contenido h2 {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.modal-contenido p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Reutilizamos el estilo de tus botones pero lo hacemos más grande */
.modal-contenido button {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
}