/* ============================================================
   FUENTE BASE
   ============================================================ */
body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0a0f1c 0%, #1e293b 100%);
  background-attachment: fixed;
}

/* ============================================================
   BOTÓN PORTAL (firma del Portal BIA)
   ============================================================ */
.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  color: #0a0f1c;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-portal:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.btn-portal:active {
  transform: scale(0.99);
}

/* Variante pequeña (para navbar) */
.btn-portal-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

/* Variante icono (botón subir) */
.btn-portal-icon {
  padding: 0.8rem;
  border-radius: 9999px;
  width: 54px;
  height: 54px;
}

/* ============================================================
   TARJETAS PORTAL (card con barra superior de acento)
   ============================================================ */
.card-portal {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #1e2a3e;
  border-radius: 1rem;
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

/* Barra superior por defecto (azul → cian) */
.card-portal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: height 0.3s ease;
}

.card-portal:hover {
  transform: translateY(-6px);
  border-color: #2563eb;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

.card-portal:hover::before {
  height: 6px;
}

/* --- Acentos por temática --- */
.card-acento-cyan::before {
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
}
.card-acento-cyan:hover {
  border-color: #06b6d4;
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

.card-acento-purple::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}
.card-acento-purple:hover {
  border-color: #7c3aed;
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.card-acento-orange::before {
  background: linear-gradient(90deg, #ea580c, #f97316);
}
.card-acento-orange:hover {
  border-color: #ea580c;
  box-shadow: 0 20px 40px rgba(234, 88, 12, 0.3);
}

/* ============================================================
   ICONO EN GRADIENTE (como en el Portal BIA)
   ============================================================ */
.icon-gradient {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.35);
}

/* ============================================================
   BOTÓN VOLVER ARRIBA — visibilidad
   ============================================================ */
#btn-up {
  z-index: 999;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.25s ease;
}

#mobile-menu a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Scroll suave global */
html {
  scroll-behavior: smooth;
}