/* --- estilos.css --- */

/* Cuerpo general */
body {
    background: #f6f7fb;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* NavBar personalizado */
.navbar-brand {
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    margin-right: 10px;
    transition: color 0.2s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffc107;
}

/* Contenedor principal */
main.container {
    min-height: 70vh;
}

/* Tarjetas de noticia */
.noticia-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border-radius: 12px;
    margin-bottom: 24px;
    background: #fff;
    transition: transform 0.15s;
}
.noticia-card:hover {
    transform: translateY(-3px) scale(1.01);
}

.noticia-card img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
    max-height: 200px;
    width: 100%;
}

.noticia-card .card-body {
    padding: 1.2rem;
}

.noticia-card .noticia-fecha {
    color: #6c757d;
    font-size: 0.95em;
}

/* Footer */
footer {
    font-size: 1.1em;
    letter-spacing: 1px;
    background: #24292f;
}

@media (max-width: 768px) {
    .noticia-card img {
        max-height: 150px;
    }
}

.kpi-card {
    border-radius: 22px;
    padding: 32px 18px 22px 18px;
    color: #fff;
    text-align: center;
    min-height: 175px;
    box-shadow: 0 6px 28px #19194722;
    position: relative;
    overflow: hidden;
    transition: transform 0.17s, box-shadow 0.17s;
    background: #212a4a;
    margin-bottom: 15px;
}
.kpi-card:hover {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 12px 36px #18215e44;
}
.kpi-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin: 0 auto 10px auto;
    box-shadow: 0 1px 7px #fff3;
}
.kpi-value {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    color: #fff;
}
.kpi-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e6e6e6;
    margin-top: 2px;
}
.bg-kpi1 { background: linear-gradient(120deg,#283e8a 65%, #295cc9 100%);}
.bg-kpi2 { background: linear-gradient(120deg,#159957 65%, #155799 100%);}
.bg-kpi3 { background: linear-gradient(120deg,#00c6fb 65%, #005bea 100%);}
.bg-kpi4 { background: linear-gradient(120deg,#fbbc04 65%, #ff7404 100%);}
.kpi-card .badge {
    font-size: 0.86em;
    vertical-align: middle;
}
@media (max-width: 991px) {
    .kpi-card { padding: 18px 5px 14px 5px; font-size: 0.98em;}
    .kpi-icon { width: 39px; height: 39px; font-size: 1.2rem;}
    .kpi-value { font-size: 1.5rem; }
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #283e8a;
    margin-bottom: 9px;
    margin-top: 12px;
    border-left: 5px solid #3e85eb;
    padding-left: 8px;
    background: #f3f6fa;
    border-radius: 7px 0 0 7px;
}
.card.mb-4 {
    border-radius: 17px;
    box-shadow: 0 6px 34px #29336614;
    border: 1px solid #e8ebf0;
}
.simple-toolbar {
    padding: 7px 8px 5px 0;
    background: #f6f8fb;
    border-radius: 7px 7px 0 0;
    border: 1px solid #e1e5ec;
    margin-bottom: -2px;
}
.simple-toolbar button {
    border-radius: 22px !important;
    border: none;
    background: #e5eefa;
    color: #29409a;
    margin-right: 4px;
    padding: 3px 10px;
    font-size: 1em;
    font-weight: 600;
    transition: background .15s;
}
.simple-toolbar button:hover {
    background: #d1eaff;
    color: #0a2982;
}
#contenido {
    min-height:140px;
    border-radius:0 0 7px 7px;
    border: 1px solid #e1e5ec;
    border-top: none;
    background: #fff;
    font-size: 1.03em;
}
input[type="file"] {
    background: #f5f7fa !important;
    padding: 7px 4px !important;
    font-size: 0.97em;
    border-radius: 6px;
}
.thumb-img {
    max-width: 108px; max-height: 78px;
    border-radius: 9px;
    margin-bottom: 7px;
    box-shadow: 0 1px 12px #b1c5ed39;
    border: 1.7px solid #e8eaf0;
}
.table-striped>tbody>tr {
    transition: background 0.14s;
}
.table-striped>tbody>tr:hover {
    background-color: #f7fafd;
}
.badge.bg-dark {
    background: #283e8a !important;
    color: #fff;
}
.badge.bg-success {
    background: #15bb76 !important;
}
.btn-success, .btn-primary, .btn-warning, .btn-danger {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 7px;
}
input, textarea, select {
    border-radius: 6px !important;
}
label.form-label {
    font-weight: 500;
    color: #21317a;
    margin-bottom: 3px;
}
@media (max-width: 991px) {
    .card.mb-4 { padding: 8px 2px; }
    .simple-toolbar { font-size: 0.98em; }
}

.footer-modern {
  background: linear-gradient(90deg,#222846 80%,#395dbe 120%);
  color: #f6f8ff;
  border-top: 3px solid #395dbe;
  box-shadow: 0 -2px 20px #0014;
  letter-spacing: 0.08em;
  font-size: 1.08em;
}
.footer-modern .footer-logo {
  height: 54px;
  width: auto;
  border-radius: 7px;
  box-shadow: 0 3px 16px #0002;
  background: #fff;
  padding: 2px 7px;
}
.footer-link {
  color: #e6eaff;
  text-decoration: none;
  margin: 0 11px;
  font-weight: 500;
  transition: color 0.17s, text-decoration 0.17s;
  font-size: 1.05em;
}
.footer-link:hover {
  color: #ffd700;
  text-decoration: underline;
}
.footer-social {
  margin-top: 8px;
}
.footer-social-link {
  display: inline-block;
  color: #fff;
  font-size: 1.4em;
  margin: 0 5px;
  opacity: 0.8;
  transition: color 0.14s, opacity 0.14s, transform 0.13s;
}
.footer-social-link:hover {
  color: #ff4c20;
  opacity: 1;
  transform: scale(1.15) rotate(-7deg);
}
@media (max-width: 600px) {
  .footer-modern .footer-logo {
    height: 37px;
    margin-bottom: 6px;
  }
  .footer-modern .fs-3 { font-size: 1.5em !important; }
  .footer-link { margin: 0 5px; font-size: 0.99em; }
}