/* Archivo: assets/styles.css */

:root {
  --verde-gad: #007d45;
  --amarillo-gad: #ffc107;
  --gris-claro: #f2f2f2;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.hero-carousel {
  margin-top: 56px;
}

.hero-carousel img {
  height: calc(100vh - 56px);
  object-fit: cover;
}

.navbar-custom {
  background-color: var(--gris-claro);
}

.navbar-custom .nav-link {
  color: var(--verde-gad);
}

.navbar-custom .nav-link:hover {
  color: var(--amarillo-gad);
}

.navbar-custom .navbar-brand img {
  height: 40px;
}

footer {
  background-color: var(--verde-gad);
  color: white;
  padding: 1rem 0;
}

footer .btn {
  font-size: 0.85rem;
  border-radius: 20px;
}

footer .btn:hover {
  opacity: 0.9;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--amarillo-gad);
}

.img-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.img-shadow:hover {
  transform: scale(1.03);
}

.img-fluid-full {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

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

.fade-in {
  animation: fadeInAnimation 1s ease-in-out forwards;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards, Tabs, etc */
.custom-tabs .nav-link {
  background-color: var(--verde-gad);
  color: white;
  border: 1px solid #005d36;
  margin-right: 5px;
}

.custom-tabs .nav-link.active {
  background-color: var(--amarillo-gad);
  color: #333;
  font-weight: bold;
}

.card-header.bg-success {
  background-color: var(--verde-gad) !important;
  color: var(--amarillo-gad);
}
/* =========================
   Rendición de Cuentas 2025
========================= */

.rendicion-section {
  position: relative;
  padding: 45px 0;
  background:
    radial-gradient(circle at top left,
      rgba(255, 193, 7, 0.14),
      transparent 32%),
    linear-gradient(135deg,
      #f4fff7 0%,
      #eef8f0 48%,
      #ffffff 100%);
  overflow: hidden;
}

.rendicion-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(25, 135, 84, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(25, 135, 84, 0.04) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  pointer-events: none;
}

.rendicion-section .container {
  position: relative;
  z-index: 2;
}

/* CONTENEDOR GENERAL */

.rendicion-wrapper {
  background: #ffffff;
  border-radius: 32px;
  padding: 22px;
  box-shadow: 0 18px 48px rgba(16, 80, 49, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.10);
}

/* CARD TEXTO */

.rendicion-card {
  height: 100%;
  padding: 30px;
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fbfffc 100%
  );
  border-left: 6px solid #16864f;
}

/* BADGE */

.rendicion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffc107;
  color: #173b25;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.rendicion-badge i {
  font-size: 0.95rem;
}

/* TITULO */

.rendicion-card h2 {
  color: #16864f;
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}

/* PARRAFOS */

.rendicion-lead {
  color: #5d6570;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
  text-align: justify;
}

.rendicion-text {
  color: #49515c;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
}

/* DESTACADO */

.rendicion-highlight {
  margin-top: 20px;
  background: linear-gradient(
    135deg,
    #16864f,
    #1fa463
  );
  color: white;
  border-radius: 16px;
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(22, 134, 79, 0.18);
}

.rendicion-highlight i {
  font-size: 1.25rem;
}

/* GRID INFO */

.rendicion-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

/* BOXES */

.info-box {
  background: #f7fbf8;
  border-radius: 18px;
  padding: 20px 14px;
  text-align: center;
  border: 1px solid rgba(25, 135, 84, 0.12);
  min-height: 145px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  transition: all 0.25s ease;
}

.info-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 80, 49, 0.10);
}

.info-box i {
  font-size: 1.8rem;
  color: #16864f;
  margin-bottom: 10px;
}

.info-box h6 {
  color: #1d2b24;
  font-weight: 800;
  margin-bottom: 7px;
  font-size: 1rem;
}

.info-box p {
  color: #5a626d;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

/* BOTONES */

.rendicion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.rendicion-btn-primary {
  background: #16864f;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(22, 134, 79, 0.20);
  transition: all 0.25s ease;
}

.rendicion-btn-primary:hover {
  background: #0f6f40;
  color: #fff;
  transform: translateY(-2px);
}

.rendicion-btn-outline {
  color: #16864f;
  border: 1px solid rgba(22, 134, 79, 0.35);
  background: #fff;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.rendicion-btn-outline:hover {
  background: #eef8f1;
  color: #0f6f40;
}

/* IMAGEN */

.rendicion-image-card {
  position: relative;
  height: 100%;
  min-height: 100%;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(16, 80, 49, 0.15);
}

.rendicion-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rendicion-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(5, 58, 32, 0.86) 100%
  );
}

/* FLOATING BOX */

.rendicion-floating-box {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;

  background: rgba(22, 134, 79, 0.95);
  color: #fff;

  padding: 20px;
  border-radius: 20px;

  backdrop-filter: blur(6px);
}

.rendicion-floating-box h4 {
  font-weight: 800;
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.rendicion-floating-box p {
  margin: 0;
  color: rgba(255,255,255,.92);
  line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 991px) {

  .rendicion-wrapper {
    padding: 18px;
  }

  .rendicion-card {
    padding: 24px;
  }

  .rendicion-info-grid {
    grid-template-columns: 1fr;
  }

  .rendicion-image-card {
    min-height: 380px;
  }
}

@media (max-width: 576px) {

  .rendicion-section {
    padding: 40px 0;
  }

  .rendicion-card {
    padding: 22px;
  }

  .rendicion-card h2 {
    font-size: 1.8rem;
  }

  .rendicion-highlight {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .rendicion-actions {
    flex-direction: column;
  }

  .rendicion-btn-primary,
  .rendicion-btn-outline {
    width: 100%;
    text-align: center;
  }

  .rendicion-floating-box {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 16px;
  }

  .rendicion-floating-box h4 {
    font-size: 1.15rem;
  }
}