/* ==========================================================================
   PORTAL TECNOLÓGICO UPP - DISEÑO PURO MONOCROMO / CHARCOAL TECH (SIN AZUL)
   Universidad Politécnica del Perú
   Facultad de Ciencias de la Salud - Enfermería
   ========================================================================== */

:root {
  --bg-main: #0a0a0a;
  --bg-surface: #121212;
  --bg-card: #161616;
  --bg-card-hover: #1f1f1f;
  --border-subtle: #262626;
  --border-focus: #404040;
  --accent-tech: #22c55e; /* Verde tecnológico puro para estados activos */
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   NAVBAR CON MENÚ EN LA ESQUINA SUPERIOR IZQUIERDA
   -------------------------------------------------------------------------- */
.tech-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 28px;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Dropdown Wrapper */
.dropdown-wrapper {
  position: relative;
}

.dropdown-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #171717;
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-trigger-btn:hover,
.dropdown-trigger-btn.active {
  background: #242424;
  border-color: var(--border-focus);
}

.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 15px;
}

.menu-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
}

.dropdown-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.dropdown-trigger-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Menú flotante */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 300px;
  background: #141414;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-section-title {
  padding: 8px 16px 4px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}

.menu-item:hover {
  background: #212121;
}

/* Primer item destacado (Triaje) */
.menu-item.featured-item {
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid var(--accent-tech);
  color: #4ade80;
  font-weight: 600;
}

.menu-item.featured-item:hover {
  background: rgba(34, 197, 94, 0.15);
}

.menu-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-tech);
  color: #052e16;
  font-weight: 800;
}

.menu-separator {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

/* Brand UPP */
.nav-brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.upp-pill {
  background: #171717;
  border: 1px solid var(--border-subtle);
  color: #d4d4d4;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 85px 24px 75px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 20%, #1a1a1a 0%, #0a0a0a 75%);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #171717;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e5e5e5;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-tech);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 32px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-tech-white {
  background: #ffffff;
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-tech-white:hover {
  background: #d4d4d4;
  transform: translateY(-2px);
}

.btn-tech-ghost {
  background: #171717;
  border: 1px solid var(--border-subtle);
  color: #e5e5e5;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-tech-ghost:hover {
  background: #242424;
  border-color: var(--border-focus);
}

/* --------------------------------------------------------------------------
   CUERPO PRINCIPAL
   -------------------------------------------------------------------------- */
.main-wrapper {
  max-width: 1040px;
  margin: 50px auto 70px auto;
  padding: 0 24px;
  flex: 1;
}

.section-header {
  margin-bottom: 20px;
}

.section-caption {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-tech);
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* --------------------------------------------------------------------------
   SECCIÓN DE PROYECTOS (SOLO MÓDULOS ACTIVOS)
   -------------------------------------------------------------------------- */
.project-card-single {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color 0.2s;
  margin-bottom: 50px;
}

.project-card-single:hover {
  border-color: var(--border-focus);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-status-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #4ade80;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 860px;
}

.project-access-hint {
  font-size: 0.85rem;
  color: #d4d4d4;
  background: #1a1a1a;
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   SECCIÓN DE AUTORES (SOLO NOMBRE Y DESARROLLADOR)
   -------------------------------------------------------------------------- */
.authors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

@media (max-width: 700px) {
  .authors-grid {
    grid-template-columns: 1fr;
  }
}

.author-card-clean {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}

.author-card-clean:hover {
  border-color: var(--border-focus);
}

.author-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.author-role-only {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   FICHA INSTITUCIONAL
   -------------------------------------------------------------------------- */
.institution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .institution-grid {
    grid-template-columns: 1fr;
  }
}

.institution-box {
  background: #191919;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.inst-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.inst-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.tech-footer {
  border-top: 1px solid var(--border-subtle);
  background: #080808;
  padding: 26px 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner strong {
  color: #d4d4d4;
}
