/* ================================
   MODO OSCURO INDUSTRIAL PREMIUM
   ================================ */

/* Fondo general */
body {
 body {
  background: #ffffff;
  color: #000000;
}
 
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
}

/* Header */
.header-principal {
  background: #0033A0; /* azul rey */
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 3px solid #001F54;
}

.header-principal img {
  height: 70px;
}

.titulo-principal h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
}

.titulo-principal h2 {
  margin: 0;
  color: #E5F1FF;
  font-weight: 300;
}

/* Panel principal */
.panel-admin {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
}

/* Tarjetas premium */
.card {
  background: #242424;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  margin-bottom: 20px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* Botones premium */
.boton-seccion {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  background: #0A3D62;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.boton-seccion:hover {
  background: #0A84FF;
  transform: scale(1.02);
}

/* Botón rojo */
.boton-seccion.rojo {
  background: #8e0000;
}

.boton-seccion.rojo:hover {
  background: #b30000;
}

/* Barra premium */
.barra-premium {
  width: 100%;
  height: 22px;
  background: #333;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 6px;
}

.barra-premium-fill {
  height: 100%;
  transition: width .6s ease;
}

/* Proyectos recientes */
.proyecto-reciente {
  padding: 12px;
  background: #2d2d2d;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .2s;
}

.proyecto-reciente:hover {
  background: #3a3a3a;
}

.icono-proyecto {
  font-size: 26px;
}

/* Tablas (para dashboard dinámico) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table th {
  background: #0A3D62;
  color: white;
  padding: 10px;
}

table td {
  background: #2a2a2a;
  padding: 10px;
  border-bottom: 1px solid #444;
}

/* Tarjetas del dashboard dinámico */
.tarjeta-dashboard {
  background: #242424;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Barras del dashboard dinámico */
.barra-externa {
  width: 100%;
  height: 22px;
  background: #333;
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
}

.barra-interna {
  height: 100%;
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 22px;
  transition: width .6s ease;
}
.card {
  color: #ffffff;
}

.card h2,
.card h3,
.card p,
.card li,
.card span,
.card strong {
  color: #ffffff;
}
#mensajeBienvenida {
  color: #ffffff;
  font-weight: 600;
}
/* Tarjeta principal */
.form-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  max-width: 900px;
  margin: 30px auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Título */
.form-title {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 26px;
  font-weight: 700;
  color: #0033A0;
  text-align: center;
}

/* Grid de 2 columnas responsivas */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Grupo de campo */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #f9f9f9;
  transition: border-color .2s, background .2s;
}

.form-group input:focus {
  border-color: #0078d4;
  background: #ffffff;
  outline: none;
}

/* Botones */
.form-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primario {
  background: #0078d4;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

.btn-primario:hover {
  background: #005fa3;
}

.btn-secundario {
  background: #666;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.btn-secundario:hover {
  background: #444;
}
/* Texto claro en header oscuro */
.header-principal,
.header-principal * {
  color: #fff !important;
}

/* Texto oscuro dentro del panel blanco de recursos */
/* SOLO el contenido del panel blanco debe ser negro */
.panel-recursos .card,
.panel-recursos .card *,
.panel-recursos .card-recurso,
.panel-recursos .card-recurso *,
.panel-recursos .form-card,
.panel-recursos .form-card * {
  color: #111 !important;
}
/* Títulos sobre fondo oscuro o azul */
.header-principal *,
#mensajeBienvenida,
#contenedor-recursos > .card > h2 {
  color: #fff !important;
}

