@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

/* Switch de campos de análisis */
.campo-switch.form-switch {
  padding-left: 2.5em;
  min-height: 2.5em;
}
.campo-switch .form-check-input {
  width: 2.5em;
  height: 1.3em;
  background-color: #232526;
  border: 2px solid var(--web-accent);
  border-radius: 2em;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(255,152,0,0.08);
}
.campo-switch .form-check-input:checked {
  background-color: var(--web-accent);
  border-color: var(--web-accent);
  box-shadow: 0 4px 16px rgba(255,152,0,0.18);
}
.campo-switch .form-check-input:focus {
  outline: 2px solid #ff9800;
  outline-offset: 2px;
}
.campo-switch .form-check-label {
  font-size: 1.1em;
  display: flex;
  align-items: center;
  cursor: pointer;
}
/* ============================================================
   WEB.CSS - Estilos para la parte pública (Home, Info, FAQs)
   Antes: style-hesirox.css
   Ámbito: Public Web Application
   ============================================================ */

/* Fuentes */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

/* -----------------------------
   1) TOKENS (Web Context)
------------------------------ */
:root {
  --web-bg: #c2b18f;
  --web-panel: #f5f5f0;
  --web-text: #1a1a1a;

  --web-accent: #ff6f00;
  --web-accent-hover: #000000;

  --web-info: #0277bd;
  --web-success: #2e7d32;
  --web-danger: #c62828;
  --web-warning: #f57c00;

  --web-radius: 12px;
  --web-radius-sm: 8px;
  --web-border: #8b7765;

  --web-shadow: 0 6px 24px rgba(0,0,0,.50);
  --web-shadow-hover: 0 8px 32px rgba(0,0,0,.60);

  --web-font: "Roboto Condensed","Segoe UI",system-ui,-apple-system,sans-serif;
  --web-mono: "JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

/* -----------------------------
   2) BASE
------------------------------ */
body {
  background-color: var(--web-bg);
  /* Fondo base */
  background-image: url("../img/fondo_hesiox.png"); 
  background-position: left top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: auto;
  
  /* Capa superpuesta con opacidad (simulada aquí con pseudo-elemento en base.html, 
     pero para simplificar, usaremos el background directo si es posible, 
     o mantendremos la estructura. 
     EN BASE.HTML hay un body::before para opacidad. 
     Vamos a intentar migrar eso aquí si es genérico. */
  
  color: var(--web-text);
  font-family: var(--web-font);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 80px;
  position: relative;
  transition: background-color 0.3s, color 0.3s;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/fondo_hesiox.png");
  background-position: left top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: auto;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* Navbar Sirio (Global) */
.navbar-sirio {
  background: rgba(25, 25, 25, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 197, 66, 0.4);
  position: sticky;
  top: 0;
  z-index: 1050;
}

.navbar-sirio .navbar-brand {
  color: #f5c542 !important;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.navbar-sirio .nav-link {
  color: #ddd !important;
  transition: all 0.2s ease;
}

.navbar-sirio .nav-link:hover {
  color: #f5c542 !important;
}

/* Dropdowns Globales */
.dropdown-menu.bg-dark {
  background-color: #1a1a1a !important;
}
.dropdown-item.text-warning:hover {
  background-color: rgba(245, 197, 66, 0.2) !important;
}
.dropdown-item.text-success:hover {
  background-color: rgba(40, 167, 69, 0.2) !important;
}
.dropdown-header {
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Footer Global */
footer {
  background: #0b0b0b;
  color: #aaa;
  text-align: center;
  padding: 5px 10px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(245, 197, 66, 0.3);
  margin-top: 15px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

footer a { color: #f5c542; text-decoration: none; }
footer a:hover { color: #fff; }

/* Main Container */
main.container-fluid {
  padding: 2rem;
  max-width: 100%;
  margin: auto;
  padding-bottom: 4rem;
}

main.container-fluid.p-0 {
  padding: 0 !important;
  max-width: none !important;
  padding-bottom: 0 !important;
  --bs-gutter-x: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

h1, h2, h3 { color: #f5c542; letter-spacing: 0.5px; }

/* Mode Software (Gephi style) overrides */
body.mode-software .navbar-sirio {
    background: #e0e0e0 !important;
    border-bottom: 1px solid #999 !important;
    box-shadow: none !important;
}
body.mode-software .navbar-brand { color: #333 !important; text-transform: uppercase; font-weight: 800; }
body.mode-software .nav-link { color: #444 !important; font-family: 'Roboto Condensed'; font-weight: 600; }
body.mode-software .nav-link:hover { color: #e67e22 !important; background: #dcdcdc; }
body.mode-software footer { background: #dcdcdc; color: #333; border-top: 1px solid #999; }


body * { box-sizing: border-box; }

a {
  color: var(--web-accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--web-accent-hover); }

code, pre, .mono {
  font-family: var(--web-mono);
}

p { color: #fff; }
.card p { color: #e0e0e0 !important; }

/* -----------------------------
   3) HEADINGS
------------------------------ */
h1 {
  color: var(--web-text) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.2);
  font-weight: 800;
}
h2, h3, h4, h5 {
  color: var(--web-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.2);
  font-weight: 700;
}

/* -----------------------------
   4) NAVBAR / FOOTER
------------------------------ */
.navbar {
  background: rgba(44,44,44,.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--web-accent);
}
.navbar-brand {
  color: var(--web-accent) !important;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .5px;
}
.nav-link {
  color: #ddd !important;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--web-accent) !important; }

footer {
  background: rgba(44,44,44,.98);
  color: #aaa;
  text-align: center;
  padding: 6px 10px;
  font-size: .9rem;
  border-top: 2px solid var(--web-accent);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
}
footer a { color: var(--web-accent); }
footer a:hover { color: #fff; }

/* -----------------------------
   5) CARDS
------------------------------ */
.card {
  background: #1a1a1a;
  border: 3px solid var(--web-border);
  border-radius: var(--web-radius);
  box-shadow: var(--web-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: var(--web-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--web-accent);
}
.card-header {
  background: linear-gradient(135deg,#2a2a2a 0%,#1a1a1a 100%);
  border-bottom: 3px solid var(--web-accent);
  color: var(--web-accent) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card-body {
  color: #e0e0e0 !important;
  background: #1a1a1a;
  padding: 1.25rem;
}

/* -----------------------------
   6) BOTONES
------------------------------ */
.btn {
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary,
.btn-warning {
  background: linear-gradient(135deg,var(--web-accent) 0%,var(--web-accent-hover) 100%);
  border: 2px solid var(--web-accent);
  color: #1a1a1a; /* Contrast Fix */
  background-size: 200% auto;
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover,
.btn-warning:hover,
.btn-primary:focus,
.btn-warning:focus {
  background: linear-gradient(135deg,var(--web-accent-hover) 0%,var(--web-accent) 100%);
  border-color: var(--web-accent-hover);
  color: #000;
  box-shadow: 0 6px 12px rgba(255, 152, 0, 0.4);
  transform: translateY(-1px);
}

.btn-outline-warning {
  color: var(--web-accent);
  border: 2px solid var(--web-accent);
  background: transparent;
}
.btn-outline-warning:hover,
.btn-outline-warning:focus {
  background: var(--web-accent);
  border-color: var(--web-accent);
  color: #000 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.btn-info { background-color: var(--web-info); border-color: var(--web-info); color:#fff; }
.btn-success { background-color: var(--web-success); border-color: var(--web-success); color:#fff; }
.btn-danger { background-color: var(--web-danger); border-color: var(--web-danger); color:#fff; }

.btn-info:hover { background-color:#2670b8; border-color:#2670b8; }
.btn-success:hover { background-color:#185a1a; border-color:#185a1a; }
.btn-danger:hover { background-color:#a00000; border-color:#a00000; }

/* -----------------------------
   7) FORMULARIOS
------------------------------ */
.form-control,
.form-select {
  border-radius: 10px;
}

/* -----------------------------
   8) UTILIDADES
------------------------------ */
.text-muted { color:#9e9e9e !important; }
.text-light { color:#e0e0e0 !important; }

.text-info { color:var(--web-info) !important; font-weight:600; }
.text-success { color:var(--web-success) !important; font-weight:600; }
.text-danger { color:var(--web-danger) !important; font-weight:600; }
.text-warning { color:var(--web-warning) !important; font-weight:700; }

.bg-dark { background-color:#1a1a1a !important; color:#e0e0e0 !important; }
.border-warning { border-color:var(--web-accent) !important; border-width:3px !important; }

/* -----------------------------
   9) COMPONENTES ESPECÍFICOS WEB (Home)
------------------------------ */
.home-container {
  max-width: 1400px;
  margin: 0 auto;
}

.hesi-floating-card {
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
}
.hesi-floating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  border-color: rgba(255,152,0,.20);
}

.hero-section {
  background: linear-gradient(135deg, rgba(18,18,18,.95) 0%, rgba(30,30,30,.85) 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,152,0,.10);
}

.feature-card {
  height: 100%;
  transition: all .3s ease;
}
.feature-card:hover {
  border-color: var(--web-accent) !important;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.stat-card {
  background: rgba(255,152,0,.05);
  border-left: 4px solid var(--web-accent);
  padding: 1rem;
  border-radius: 6px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: rgba(255,152,0,.10);
  border: 1px solid rgba(255,152,0,.30);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--web-accent);
}

/* Galería (home) */
.col-6 > div:hover img{
  transform: scale(1.08);
  filter: brightness(1.15);
}
.col-6 > div{
  cursor: pointer;
  transition: all .3s ease;
}
.col-6 > div:hover{
  box-shadow: 0 8px 20px rgba(0,0,0,.40);
}

/* Placeholder SVG */
img[src*="data:image/svg+xml"]{
  background: #1a1a1a;
}

/* === ESTILOS MIGRADOS DE HOME.HTML === */
.home-logo-img {
  height: 250px;
  filter: drop-shadow(0 4px 12px rgba(255, 152, 0, 0.15));
}
.home-main-title {
  letter-spacing: 2px !important;
}
.list-clean {
  list-style: none;
  padding: 0;
}
.aspect-ratio-box {
  aspect-ratio: 4/3;
}
.img-transition {
  transition: transform 0.3s;
}

/* === ESTILOS MIGRADOS DE LOGIN/REGISTRO === */
.auth-container {
  min-height: 75vh;
}
.auth-title {
  letter-spacing: 1px;
}
.auth-icon {
  margin-right: 6px;
  vertical-align: text-bottom;
}
.auth-btn-icon {
  margin-right: 4px;
  vertical-align: text-bottom;
}

/* === ESTILOS MIGRADOS DE INFORMACION.HTML === */
.text-sirio { color: #f5c542 !important; }
.fill-sirio { fill: #f5c542; }
.fill-danger { fill: #dc3545; }

.card-translucent {
  background: rgba(255,255,255,0.85) !important; /* Overrides .card bg */
  color: #1a1a1a !important; /* Ensure text is dark on light bg */
}
/* Re-override text colors inside translucent card if needed, 
   but .card-body in web.css sets color: #e0e0e0. 
   We need to ensure text is readable. 
   In informacion.html, text classes like .text-muted are used.
   Let's see: .card-body extends .card color.
   If we set bg to white, we likely want dark text by default. 
*/
.card-translucent .card-body {
  color: #1a1a1a !important;
  background: transparent !important;
}
.card-translucent p, .card-translucent li {
  color: #333 !important;
}

.info-text-small { font-size: 0.95rem; }
.info-icon-inline { vertical-align: text-bottom; margin-right: 6px; }
.info-icon-inline-sm { vertical-align: text-bottom; margin-right: 2px; }
.icon-vbottom { vertical-align: text-bottom; }

.modal-body-scroll {
  max-height: 70vh;
  overflow-y: auto;
}

.zoomable-img {
  cursor: zoom-in;
}

.text-xs { font-size: 0.75rem !important; }
.text-xxs { font-size: 0.6rem !important; }
.img-preview-box { max-width: 180px; opacity: 0.9; }



