/* ==========================================================
   eddy_custom.css — Estilos corporativos ICTS Doñana
   Eddy Summary App  |  No editar new_style.css
   ========================================================== */

/* ---------- Variables corporativas ---------- */
:root {
  --mp-primary:       #efa125;
  --mp-primary-dark:  #c07e0d;
  --mp-primary-light: #fcecd3;
  --mp-success:       #52a90f;
}

/* ---------- Fuente global ---------- */
html, body {
  font-family: 'Ubuntu', sans-serif;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

#page-content {
  flex: 1 0 auto;
}

/* ---------- Header institucional ---------- */
.hm-header-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

/* ---------- Navbar — custom underline ---------- */
.custom-underline {
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease;
}

.custom-underline:hover,
.custom-underline.nav-current {
  border-bottom-color: var(--mp-primary);
}

/* ---------- Index — panel lateral naranja ---------- */
.mp-side-panel {
  background-color: var(--mp-primary);
  color: #fff;
  height: 100%;
  min-height: 520px;
  border-radius: 0;
}

.mp-side-panel hr {
  border-color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
  margin: .6rem auto;
  width: 60%;
}

/* ---------- Index — carrusel ---------- */
.mp-carousel {
  border-radius: 0;
  overflow: hidden;
  height: 100%;
}

.mp-carousel .carousel-item img {
  height: 520px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/* Escritorio (columnas lado a lado): el carrusel iguala la altura del panel */
@media (min-width: 768px) {
  .mp-carousel .carousel-inner,
  .mp-carousel .carousel-item,
  .mp-carousel .carousel-item img {
    height: 100%;
  }
}

/* ---------- Cards de navegación ---------- */
.mp-nav-card {
  border: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.mp-nav-card:hover {
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.12) !important;
  transform: translateY(-3px);
}

.mp-nav-card .bi {
  color: var(--mp-primary);
}

/* ---------- Footer de financiación ---------- */
.mp-footer {
  padding: 30px 0 20px;
  border-top: 1px solid #dee2e6;
  margin-top: 2rem;
  flex-shrink: 0;
}

.mp-footer-logo {
  height: 65px;
  width: auto;
  object-fit: contain;
  transition: opacity .2s;
}

.mp-footer-logo:hover {
  opacity: .8;
}

@media (max-width: 767.98px) {
  .mp-footer-logo {
    height: 35px;
    margin-bottom: 10px;
  }
  .mp-side-panel {
    min-height: auto;
  }
  .mp-carousel .carousel-item img {
    height: 280px;
  }
}

/* ---------- Botones con color primario ---------- */
.btn-primary {
  background-color: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--mp-primary-dark);
  border-color: var(--mp-primary-dark);
  color: #fff;
}
.btn-outline-primary {
  color: var(--mp-primary);
  border-color: var(--mp-primary);
}
.btn-outline-primary:hover {
  background-color: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #fff;
}

/* ---------- Selector de idioma ---------- */
.lang-btn-active {
  background-color: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #fff;
}
