/* FSCU UCN - Normas Gráficas Modernizadas */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --ucn-azul-oscuro: #001F3F;
  --ucn-azul: #002D72;
  --ucn-azul-medio: #0033A0;
  --ucn-azul-claro: #005EB8;
  --ucn-celeste: #00A3E0;
  --ucn-gris: #6F6F6F;
  --ucn-gris-claro: #F7F9FC;
  --ucn-gris-medio: #E8ECEF;
  --ucn-blanco: #ffffff;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 51, 160, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 94, 184, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  background-attachment: fixed;
  font-size: 0.95rem;
  color: #2c3e50;
  line-height: 1.7;
  min-height: 100vh;
}

.header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-top: 4px solid var(--ucn-azul-medio);
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0, 45, 114, 0.08);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 94, 184, 0.05) 100%);
  pointer-events: none;
}

.site-title {
  color: var(--ucn-azul-oscuro);
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.site-subtitle {
  color: var(--ucn-gris);
  font-size: 0.86rem;
  font-weight: 500;
  margin-top: 2px;
}

.bg-primary-custom {
  background: linear-gradient(90deg, var(--ucn-azul-oscuro) 0%, var(--ucn-azul) 50%, var(--ucn-azul-medio) 100%) !important;
  box-shadow: 0 6px 30px rgba(0, 31, 63, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 0 12px;
}

.navbar {
  padding: 0;
  backdrop-filter: blur(10px);
}

.navbar-nav {
  gap: 2px;
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  margin: 4px 2px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-dark .navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-dark .navbar-nav .nav-link.active {
  background: linear-gradient(135deg, var(--ucn-azul-claro) 0%, rgba(0, 94, 184, 0.9) 100%);
  box-shadow: 0 4px 16px rgba(0, 94, 184, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
  background: linear-gradient(180deg, var(--ucn-azul) 0%, var(--ucn-azul-oscuro) 100%);
  border: none;
  border-radius: 14px;
  margin-top: 6px;
  padding: 0.6rem 0.4rem;
  box-shadow: 0 16px 50px rgba(0, 31, 63, 0.45);
  overflow: hidden;
}

.dropdown-item {
  color: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.84rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  margin: 2px 0;
  transition: all 0.25s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding-left: 1.1rem;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  margin: 6px 0;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.3);
}

.sidebar-column {
  display: block;
}

.sidebar-column .sidebar-section {
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.sidebar-column .sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: none;
  border-radius: 16px;
  margin-bottom: 1.8rem;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 45, 114, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 50px rgba(0, 45, 114, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--ucn-azul-oscuro) 0%, var(--ucn-azul) 100%);
  color: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 0.75rem 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sidebar-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.sidebar-list {
  padding: 0.4rem 0;
  margin: 0;
}

.sidebar-list li {
  border-bottom: 1px solid rgba(0, 45, 114, 0.06);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--ucn-azul-oscuro);
  text-decoration: none;
  display: block;
  padding: 0.52rem 1.1rem;
  font-size: 0.87rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-list a:hover {
  background: linear-gradient(90deg, rgba(0, 163, 224, 0.08) 0%, transparent 100%);
  color: var(--ucn-azul-claro);
  padding-left: 1.3rem;
}

.sidebar-indicadores {
  padding: 0.85rem 1.1rem 0.75rem;
}

.indicadores-fecha {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ucn-gris);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.65rem;
}

.indicadores-lista {
  margin: 0;
}

.indicadores-lista li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(0, 45, 114, 0.07);
}

.indicadores-lista li:last-child {
  border-bottom: none;
}

.ind-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ucn-azul-oscuro);
  letter-spacing: 0.3px;
}

.ind-value {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ucn-azul-claro);
  background: rgba(0, 163, 224, 0.1);
  border-radius: 8px;
  padding: 0.1rem 0.5rem;
}

.indicadores-fuente {
  text-align: center;
  font-size: 0.7rem;
  color: #9aa5b1;
  margin: 0.7rem 0 0;
}

.card {
  border-radius: 12px;
  border: none;
}

.indicadores td {
  padding: 0.38rem 1.1rem !important;
  font-size: 0.83rem;
}

.page-title {
  color: var(--ucn-azul-oscuro);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.7rem;
  letter-spacing: -0.4px;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--ucn-azul-medio) 0%, var(--ucn-celeste) 100%);
  border-radius: 3px;
}

.content-section {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  padding: 1.9rem;
  border: none;
  border-radius: 18px;
  box-shadow: 
    0 15px 60px rgba(0, 45, 114, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.content-section h3 {
  color: var(--ucn-azul-oscuro);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  margin-top: 1.9rem;
  margin-bottom: 0.95rem;
}

.content-section h4 {
  color: var(--ucn-azul);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

.footer {
  background: linear-gradient(135deg, var(--ucn-azul-oscuro) 0%, var(--ucn-azul) 100%);
  color: #ffffff;
  margin-top: 4rem;
  border-top: none;
  box-shadow: 0 -10px 40px rgba(0, 31, 63, 0.15);
}

.footer p {
  font-size: 0.87rem;
  opacity: 0.95;
}

.news-item {
  background: linear-gradient(90deg, rgba(0, 163, 224, 0.04) 0%, #ffffff 100%);
  border: none;
  border-radius: 14px;
  padding: 1.35rem 1.55rem;
  margin-bottom: 1.25rem;
  box-shadow: 
    0 8px 30px rgba(0, 45, 114, 0.08),
    inset 4px 0 0 var(--ucn-celeste);
}

.news-item h4 {
  color: var(--ucn-azul-oscuro);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.office-card {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  border: none;
  border-radius: 16px;
  padding: 1.35rem;
  margin-bottom: 1.6rem;
  box-shadow: 
    0 12px 40px rgba(0, 45, 114, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 50px rgba(0, 45, 114, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.06);
}

.office-card h3 {
  color: var(--ucn-azul-oscuro);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--ucn-azul-medio) 0%, transparent 100%) bottom no-repeat;
  background-size: 60% 2px;
}

.office-card img {
  border-radius: 12px;
  width: 100%;
  height: 160px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item {
  margin-bottom: 1.7rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(90deg, rgba(0, 45, 114, 0.02) 0%, #ffffff 100%);
  border-radius: 12px;
  border-left: 3px solid var(--ucn-azul-claro);
  box-shadow: 0 4px 16px rgba(0, 45, 114, 0.06);
}

.faq-question {
  color: var(--ucn-azul-oscuro);
  font-weight: 600;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 0.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ucn-azul-medio) 0%, var(--ucn-azul-claro) 100%);
  border: none;
  border-radius: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--ucn-azul) 0%, var(--ucn-azul-medio) 100%);
  box-shadow: 0 6px 16px rgba(0, 94, 184, 0.38);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--ucn-gris) 0%, #8a8a8a 100%);
  border: none;
  border-radius: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(111, 111, 111, 0.24);
}

a {
  color: var(--ucn-azul-claro);
  text-decoration: none;
}

a:hover {
  color: var(--ucn-azul-medio);
  text-decoration: underline;
}

ul li, ol li {
  margin-bottom: 0.48rem;
}

@media (max-width: 991px) {
  .site-title {
    font-size: 1.32rem;
  }
  .content-section {
    padding: 1.35rem;
    border-radius: 14px;
  }
  .bg-primary-custom {
    margin: 0 8px;
    border-radius: 10px;
  }
  .navbar-dark .navbar-nav .nav-link {
    border-radius: 8px;
  }
}

.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.bg-logo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
}

.bg-logo {
  width: 400px;
  height: auto;
  filter: grayscale(100%);
}

.main-wrapper {
  position: relative;
  z-index: 1;
  background: transparent;
}

@media (max-width: 768px) {
  .bg-logo {
    width: 250px;
  }
  .bg-canvas {
    display: none;
  }
  .bg-logo-container {
    opacity: 0.02;
  }
}

aside.sidebar-column {
  display: block;
}

@media (min-width: 992px) {
  main > .row {
    align-items: flex-start;
  }
}
