@import url('https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&display=swap');

:root {
  --primary-blue: #042159;
  --primary-red: #c20617;
  --bg-light: #f8f9fc;
  --text-dark: #1a1a2e;
  --shadow-sm: 0 0.5rem 1.5rem rgba(4, 33, 89, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.7;
  padding-top: 80px;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  padding: 0.8rem 0;
  border-bottom: 2px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.navbar-brand .brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--primary-blue);
  line-height: 1.2;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-red);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  transition: all 0.25s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: #031a47;
  border-color: #031a47;
  box-shadow: 0 0.25rem 0.75rem rgba(4, 33, 89, 0.3);
}

.btn-outline-primary .bi-facebook,
.btn-primary .bi-envelope {
  font-size: 1.1rem;
}

section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

#inicio {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

#inicio h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
}

#inicio .badge {
  font-weight: 500;
  font-size: 0.85rem;
  background-color: rgba(4, 33, 89, 0.06);
  color: var(--primary-blue);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.5rem 3rem rgba(4, 33, 89, 0.12) !important;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.card-title i {
  font-size: 1.4rem;
}

.card-text {
  font-size: 0.98rem;
  line-height: 1.7;
}

.img-fluid {
  border-radius: 1.25rem;
  transition: transform 0.4s ease;
}

.img-fluid:hover {
  transform: scale(1.01);
}

#cobertura .card-img-top {
  border-radius: 1.25rem 1.25rem 0 0;
}

#cobertura .card {
  border-radius: 1.25rem;
}

#editorial p,
#compromiso p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.8;
}

#editorial strong,
#compromiso strong {
  color: var(--primary-blue);
  font-weight: 600;
}

#compromiso .btn-outline-primary,
#compromiso .btn-primary {
  border-radius: 50rem;
}

footer {
  background-color: var(--bg-light);
  border-top: 1px solid rgba(4, 33, 89, 0.08);
}

footer .bi-facebook {
  transition: color 0.2s ease;
}

footer .bi-facebook:hover {
  color: var(--primary-red) !important;
}

footer .bi-envelope {
  transition: transform 0.2s ease;
}

footer .bi-envelope:hover {
  transform: scale(1.15);
}

@media (max-width: 991.98px) {
  body {
    padding-top: 70px;
  }

  .navbar-brand .brand-text {
    font-size: 1rem;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
  }

  .navbar-toggler i {
    font-size: 2rem;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem;
  }

  .navbar-nav .btn {
    margin: 0.3rem 0;
    width: 100%;
    justify-content: center;
  }

  #inicio .display-4 {
    font-size: 2.5rem;
  }

  section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .card:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 575.98px) {
  #inicio .display-4 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  #inicio .btn,
  #editorial .btn,
  #compromiso .btn,
  #cobertura .btn {
    width: 100%;
    justify-content: center;
    margin: 0.3rem 0;
  }

  #inicio .d-flex {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  #inicio .d-flex .btn {
    width: 100%;
  }

  .navbar-brand .brand-text {
    font-size: 0.85rem;
  }
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.text-primary {
  color: var(--primary-blue) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-sm), 0 1rem 3rem rgba(4, 33, 89, 0.06) !important;
}

.rounded-4 {
  border-radius: 1.25rem !important;
}

.bg-primary.bg-opacity-10 {
  background-color: rgba(4, 33, 89, 0.08) !important;
}