/* --- Tech Dark Red Theme --- */
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;

  color-scheme: dark;
  background: #0a0a0a;
  color: #eaeaea;
	letter-spacing: 0.05px;
}



:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --card: #141414;
  --border: #2a2a2a;
  --muted: #9e9e9e;

  --pri: #ff2c2c;
  --pri-700: #d71b1b;
  --ok: #36d399;
  --warn: #facc15;
  --bad: #f87171;

  --shadow: 0 0 20px rgba(255,0,0,0.15);
}

.container { max-width: 1080px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,0,0,0.08), transparent 60%);
  pointer-events: none;
}

h1,h2,h3 {
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 800;
}
h1 { color: #fff; border-left: 4px solid var(--pri); padding-left: 10px; }
h2 { color: #ff4d4d; }
h3 { color: #ffffff; font-weight: 400; font-family: 'Roboto Slab';}
h4 { color: #f87171; }
p { line-height: 1.7; color: var(--muted); }

.btn {
  display:inline-block; padding:10px 16px; border-radius:8px;
  text-decoration:none; border:0px solid var(--pri);
  background: #b32e2e;
  color:#fff; font-weight:700;
  transition: all .2s ease;
  text-shadow: 0 0 6px rgba(255,0,0,0.5);
}
.btn:hover{
  background: #851d1d;
  box-shadow: 0 0 20px rgba(255,0,0,0.4);
  transform: translateY(-1px);
}

.badge {
  display:inline-block; padding:4px 10px;
  border-radius:999px; font-size:12px; font-weight:700;
  background: rgba(255,255,255,0.08);
  border:1px solid var(--border);
  margin: 0 0 25px 0;
}
.badge.ok { background: rgba(54,211,153,.12); color: var(--ok); border-color: rgba(54,211,153,.3); }
.badge.warn { background: rgba(250,204,21,.12); color: var(--warn); border-color: rgba(250,204,21,.3); }
.badge.bad { background: rgba(248,113,113,.12); color: var(--bad); border-color: rgba(248,113,113,.3); }

.input, select, textarea {
  width:100%; padding:10px 12px;
  border-radius:6px; border:1px solid #2a2a2a;
  background:#0f0f0f; color:#eaeaea;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--pri);
  box-shadow: 0 0 10px rgba(255,0,0,0.3);
  outline: none;
}
label { font-weight:600; font-size:14px; color:#fff; display:block; margin-bottom:6px; }

.row { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width:800px){ .row{grid-template-columns:1fr;} }

.table { width:100%; border-collapse: collapse; color:#eaeaea; }
.table th, .table td {
  padding:10px; border-bottom:1px solid #2a2a2a; text-align:left; font-size:14px;
}
.table th { color:#ff4d4d; text-transform: uppercase; letter-spacing:.5px; }
.table tbody tr:hover { background: rgba(255,0,0,0.05); }

.search { margin-bottom:12px; background:#111; color:#fff; }

.kpis { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin: 12px 0 20px; }
.kpi {
  background:#121212; border-radius:12px; padding:16px;
  border:1px solid #2a2a2a;
  box-shadow: 0 0 10px rgba(255,0,0,0.15);
}
.kpi h3 { color:#ff4d4d; text-transform:uppercase; }
.kpi p { color:#eaeaea; }

.small { color:#888; font-size:12px; }
.footer { margin-top:28px; color:#555; font-size:12px; border-top:1px solid #1a1a1a; padding-top:10px; text-align:center; }

/* Link hover */
a { color: #ff4d4d; text-decoration:none; }
a:hover { text-shadow: 0 0 8px rgba(255,0,0,0.6); }


/* Navbar */
.navbar {
  background: #b32e2e;
  color: #fff;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  text-transform: uppercase;
  letter-spacing: 1pt;
}
.navbar img {
  height: 42px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 20px;
  transition: opacity .2s;
}
.navbar a:hover {
  opacity: 0.85;
}


/* Focus visible */
:focus-visible {
  outline: 2px solid var(--pri);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth transition for interactive elements */
button, .btn, input, select, textarea { transition: all .2s ease; }


/* Preheader */

.pre-header {
    /*width: 100%;*/
    height: 40px;
    background: #a02828;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 30px;  /* separación entre los dos items */
	justify-content: space-between;
}

.pre-header .item {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    font-size: 9pt;
    letter-spacing: 0.8pt;
    align-items: center;
}

.pre-header .item:hover {
   padding: 0 0 5px 0;
  
}

.pre-header .flecha {
    margin-right: 6px;
}

/* Responsivo: siempre en línea mientras haya espacio */
@media (max-width: 480px) {
    .pre-header {
        flex-wrap: wrap;  /* si no entra, se acomoda abajo */
        height: auto;
        padding: 10px 20px;
    }
}
