/* ==========================================================================
   ZIPCUBIC FINTECH — Estilos personalizados
   Portal informativo — Plantilla estática
   ========================================================================== */

:root {
  --zf-primary: #1a365d;
  --zf-primary-light: #2c5282;
  --zf-accent: #3182ce;
  --zf-text: #2d3748;
  --zf-text-muted: #718096;
  --zf-bg: #f7f8fa;
  --zf-white: #ffffff;
  --zf-border: #e2e8f0;
  --zf-shadow: 0 1px 3px rgba(26, 54, 93, 0.06);
  --zf-shadow-md: 0 4px 12px rgba(26, 54, 93, 0.08);
  --zf-radius: 0.5rem;
  --zf-radius-lg: 0.75rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  background-color: var(--zf-bg);
  color: var(--zf-text);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--zf-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--zf-primary);
}

/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */

.site-header {
  background-color: var(--zf-white);
  border-bottom: 1px solid var(--zf-border);
  box-shadow: var(--zf-shadow);
}

.navbar-brand .brand-title {
  color: var(--zf-primary);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.navbar {
  --bs-navbar-padding-y: 0rem !important;
}

.navbar-brand .brand-subtitle {
  color: var(--zf-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  color: var(--zf-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--zf-accent);
}

.navbar-nav .nav-link.active {
  color: var(--zf-primary);
}

.btn-search {
  background: transparent;
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius);
  color: var(--zf-text-muted);
  padding: 0.4rem 0.65rem;
  transition: all 0.2s ease;
}

.btn-search:hover {
  background-color: var(--zf-bg);
  border-color: var(--zf-accent);
  color: var(--zf-accent);
}

.header-search {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.header-search-input {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  transform: translateX(8px);
  transition: max-width 0.25s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
  width: 240px;
}

.header-search.is-open .header-search-input,
.header-search-input:focus {
  max-width: 240px;
  opacity: 1;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Carousel principal
   -------------------------------------------------------------------------- */

.hero-carousel {
  margin-bottom: 0;
}

.hero-carousel .carousel-item {
  height: 420px;
  position: relative;
}

.hero-carousel .carousel-item::after {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    transparent 70%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-carousel .carousel-item img {
  filter: brightness(0.55);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 3.25rem;
  z-index: 3;
}

.hero-carousel .carousel-caption {
  align-items: center;
  bottom: 0;
  display: flex;
  inset: 0;
  justify-content: flex-start;
  left: 0;
  margin: 0;
  max-width: none;
  padding: 1.5rem 4.25rem;
  pointer-events: none;
  right: 0;
  text-align: left;
  top: 0;
  transform: none;
  z-index: 2;
}

.hero-carousel .hero-carousel-content {
  max-width: 560px;
  pointer-events: auto;
}

.hero-carousel .carousel-caption h2 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-carousel-date {
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-carousel-summary {
  display: -webkit-box;
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 0.85rem;
  opacity: 0.95;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-carousel-tags {
  margin-bottom: 1rem;
}

.hero-carousel-tags .badge {
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--zf-primary);
  font-size: 0.7rem;
  font-weight: 500;
  margin-right: 0.35rem;
  padding: 0.35em 0.65em;
  pointer-events: auto;
}

.hero-carousel .btn-hero {
  background-color: var(--zf-white);
  border: none;
  border-radius: var(--zf-radius);
  color: var(--zf-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

.hero-carousel .btn-hero:hover {
  background-color: var(--zf-accent);
  color: var(--zf-white);
}

.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--zf-white);
  height: 4px;
  opacity: 0.5;
  width: 32px;
}

.hero-carousel .carousel-indicators .active {
  opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* --------------------------------------------------------------------------
   Sección de artículos
   -------------------------------------------------------------------------- */

.content-section {
  padding: 1rem 0 1rem;
}

.section-title {
  border-bottom: 2px solid var(--zf-border);
  color: var(--zf-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Cards de artículo
   -------------------------------------------------------------------------- */

.article-card {
  background-color: var(--zf-white);
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius-lg);
  box-shadow: var(--zf-shadow);
  height: 100%;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.article-card:hover {
  box-shadow: var(--zf-shadow-md);
  transform: translateY(-2px);
}

.article-card .card-img-top {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  width: 100%;
}

.article-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.article-card .card-title {
  color: var(--zf-primary);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.article-card .article-date {
  color: var(--zf-text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.article-card .article-tags {
  margin-bottom: 0.75rem;
}

.article-card .article-tags .badge {
  background-color: var(--zf-bg);
  border: 1px solid var(--zf-border);
  color: var(--zf-text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  margin-right: 0.35rem;
  padding: 0.35em 0.65em;
}

.article-card .card-text {
  color: var(--zf-text-muted);
  display: -webkit-box;
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 2.625rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.article-card .card-footer-actions {
  align-items: center;
  border-top: 1px solid var(--zf-border);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
}

.article-card .btn-like {
  align-items: center;
  background: transparent;
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius);
  color: var(--zf-text-muted);
  display: inline-flex;
  font-size: 0.8rem;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
}

.article-card .btn-like .bi-heart-fill {
  color: #e53e3e;
}

.article-card .btn-read {
  background-color: var(--zf-primary);
  border: none;
  border-radius: var(--zf-radius);
  color: var(--zf-white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  transition: background-color 0.2s ease;
}

.article-card .btn-read:hover {
  background-color: var(--zf-primary-light);
  color: var(--zf-white);
}

/* --------------------------------------------------------------------------
   Página de artículo individual
   -------------------------------------------------------------------------- */

.article-page .article-single {
  background-color: var(--zf-white);
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius-lg);
  box-shadow: var(--zf-shadow);
  overflow: hidden;
}

.article-single-header {
  padding: 1rem 1rem 0;
}

.article-single-title {
  color: var(--zf-primary);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-single-meta {
  color: var(--zf-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-single-header .article-tags {
  margin-bottom: 0;
}

.article-single-figure {
  margin: 1.25rem 0 0;
}

.article-single-img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  width: 100%;
}

.article-single-body {
  color: var(--zf-text);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.75rem;
}

.article-single-body h2,
.article-single-body h3 {
  color: var(--zf-primary);
  margin-bottom: 0.75rem;
  margin-top: 0rem;
}

.article-single-body p {
  margin-bottom: 1rem;
}

.article-single-body img {
  border-radius: var(--zf-radius);
  height: auto;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Cards relacionadas (sidebar)
   -------------------------------------------------------------------------- */

.related-articles-title {
  border-bottom: 2px solid var(--zf-border);
  color: var(--zf-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-card {
  background-color: var(--zf-white);
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius);
  box-shadow: var(--zf-shadow);
  color: inherit;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--zf-shadow-md);
  color: inherit;
  transform: translateY(-1px);
}

.related-card-img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  width: 100%;
}

.related-card-body {
  padding: 0.85rem;
}

.related-card-title {
  color: var(--zf-primary);
  display: -webkit-box;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.related-card-date {
  color: var(--zf-text-muted);
  font-size: 0.75rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--zf-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.site-footer h5 {
  color: var(--zf-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer .footer-brand {
  color: var(--zf-white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer .footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 0.45rem;
}

.site-footer ul li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.site-footer ul li a:hover {
  color: var(--zf-white);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  text-align: center;
}

.site-footer .social-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-right: 0.75rem;
  transition: color 0.2s ease;
}

.site-footer .social-links a:hover {
  color: var(--zf-white);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .hero-carousel .carousel-item {
    height: 360px;
  }

  .hero-carousel .carousel-caption {
    padding: 1.25rem 3.75rem;
  }

  .hero-carousel .hero-carousel-content {
    max-width: 480px;
  }

  .hero-carousel .carousel-caption h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item {
    height: 320px;
  }

  .hero-carousel .carousel-caption {
    align-items: flex-end;
    padding: 1rem 3.25rem 2.75rem;
  }

  .hero-carousel .hero-carousel-content {
    max-width: 100%;
  }

  .hero-carousel .carousel-caption h2 {
    font-size: 1.25rem;
  }

  .hero-carousel .carousel-caption p,
  .hero-carousel-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .content-section {
    padding: 2rem 0 3rem;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel .carousel-item {
    height: 280px;
  }

  .hero-carousel .carousel-caption {
    padding: 0.75rem 2.75rem 2.5rem;
  }

  .hero-carousel .carousel-caption h2 {
    font-size: 1.1rem;
  }

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

/* --------------------------------------------------------------------------
   Login / CMS
   -------------------------------------------------------------------------- */

.login-page {
  background-color: var(--zf-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-header {
  background-color: var(--zf-white);
  border-bottom: 1px solid var(--zf-border);
  padding: 1.5rem 0;
}

.login-brand {
  color: var(--zf-primary);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.login-tagline {
  color: var(--zf-text-muted);
  font-size: 0.9rem;
}

.login-main {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius-lg);
  max-width: 460px;
  width: 100%;
}

.login-card-title {
  color: var(--zf-primary);
  font-weight: 600;
}

.login-page .btn-primary {
  background-color: var(--zf-primary);
  border-color: var(--zf-primary);
  font-weight: 600;
}

.login-page .btn-primary:hover {
  background-color: var(--zf-primary-light);
  border-color: var(--zf-primary-light);
}

.login-footer {
  color: var(--zf-text-muted);
  font-size: 0.85rem;
  padding: 1.25rem 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Admin CMS
   -------------------------------------------------------------------------- */

.adm-page {
  background-color: var(--zf-bg);
}

.adm-layout {
  display: flex;
  min-height: 100vh;
}

.adm-sidebar {
  background-color: var(--zf-primary);
  color: var(--zf-white);
  flex-shrink: 0;
  width: 250px;
}

.adm-sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1.25rem 1.5rem;
}

.adm-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.adm-sidebar-brand a {
  color: inherit;
  text-decoration: none;
}

.adm-sidebar-brand a:hover {
  color: var(--zf-white);
}

.adm-nav-item {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.adm-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--zf-white);
}

.adm-nav-item.active {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--zf-white);
  font-weight: 600;
}

.adm-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.adm-topbar {
  align-items: center;
  background-color: var(--zf-white);
  border-bottom: 1px solid var(--zf-border);
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.adm-topbar-title {
  color: var(--zf-primary);
  font-size: 1rem;
  font-weight: 600;
}

.adm-topbar-user {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.adm-user-name {
  color: var(--zf-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.adm-user-rol {
  color: var(--zf-text-muted);
  font-weight: 500;
  text-transform: capitalize;
}

.adm-content {
  flex: 1;
  padding: 1.5rem;
}

.adm-page-title {
  color: var(--zf-primary);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.adm-stat-card {
  border: 1px solid var(--zf-border);
  border-radius: var(--zf-radius);
  box-shadow: var(--zf-shadow);
}

.adm-stat-label {
  color: var(--zf-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.adm-stat-value {
  color: var(--zf-primary);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.adm-table-card {
  border: 1px solid var(--zf-border);
  box-shadow: var(--zf-shadow);
}

.adm-table-card .card-header {
  background-color: var(--zf-white);
  border-bottom: 1px solid var(--zf-border);
}

.adm-section-title {
  color: var(--zf-primary);
  font-weight: 600;
}

.adm-img-preview {
  max-height: 120px;
  object-fit: contain;
}

.adm-content .note-editor {
  border-radius: var(--zf-radius);
}

.adm-content .note-editable {
  background-color: var(--zf-white);
}

.adm-content .note-editable img {
  height: auto;
  max-width: 100%;
}

.article-single-body img.img-fluid {
  display: block;
  height: auto;
  max-width: 100%;
}

.article-single-body .ee-ref-art {
  margin: 1.5rem 0;
}

.article-single-body .ee-ref-art .article-card {
  height: 100%;
}

.ee-slider-art {
  margin: 1.5rem 0;
  padding: 0;
}

.ee-slider-art .carousel-item {
  height: 420px;
  position: relative;
}

.ee-slider-art .carousel-item::after {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    transparent 70%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ee-slider-art .carousel-item img {
  filter: brightness(0.55);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ee-slider-art .carousel-control-prev,
.ee-slider-art .carousel-control-next {
  width: 3.25rem;
  z-index: 3;
}

.ee-slider-art .carousel-caption {
  align-items: center;
  bottom: 0;
  display: flex;
  inset: 0;
  justify-content: flex-start;
  left: 0;
  margin: 0;
  max-width: none;
  padding: 1.5rem 4.25rem;
  pointer-events: none;
  right: 0;
  text-align: left;
  top: 0;
  transform: none;
  z-index: 2;
}

.ee-slider-art-content {
  max-width: 560px;
  pointer-events: auto;
}

.ee-slider-art-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ee-slider-art-date {
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ee-slider-art-summary {
  display: -webkit-box;
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 0.85rem;
  opacity: 0.95;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ee-slider-art .btn-hero {
  background-color: var(--zf-white);
  border: none;
  border-radius: var(--zf-radius);
  color: var(--zf-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

.ee-slider-art .btn-hero:hover {
  background-color: var(--zf-accent);
  color: var(--zf-white);
}

.ee-slider-art .carousel-indicators [data-bs-target] {
  background-color: var(--zf-white);
  height: 4px;
  opacity: 0.5;
  width: 32px;
}

.ee-slider-art .carousel-indicators .active {
  opacity: 1;
}

@media (max-width: 991.98px) {
  .ee-slider-art .carousel-item {
    height: 300px;
  }

  .ee-slider-art .carousel-caption {
    padding: 1.25rem 3rem;
  }

  .ee-slider-art-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 767.98px) {
  .ee-slider-art .carousel-item {
    height: 220px;
  }

  .ee-slider-art .carousel-caption {
    padding: 1rem 2.5rem;
  }

  .ee-slider-art-title {
    font-size: 1.15rem;
  }

  .ee-slider-art-summary {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}

.adm-footer {
  border-top: 1px solid var(--zf-border);
  color: var(--zf-text-muted);
  font-size: 0.8rem;
  padding: 1rem 1.5rem;
}

@media (max-width: 767.98px) {
  .adm-layout {
    flex-direction: column;
  }

  .adm-sidebar {
    width: 100%;
  }

  .adm-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
  }

  .adm-nav-item {
    padding: 0.4rem 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Admin — gestor de archivos
   -------------------------------------------------------------------------- */

.adm-files-breadcrumb {
  font-size: 0.95rem;
}

.adm-files-folders .list-group-item {
  background: transparent;
  border-left: 0;
  border-right: 0;
}

.adm-files-folders .list-group-item:first-child {
  border-top: 0;
}

.adm-files-folders .list-group-item:last-child {
  border-bottom: 0;
}

.adm-explorer-tree-card {
  height: calc(100vh - 220px);
}

.adm-explorer-tree-body {
  overflow-x: hidden;
  overflow-y: auto;
}

.adm-folder-row {
  align-items: center;
  border: 0;
  color: var(--zf-text);
  display: flex;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  transition: background-color 0.18s ease;
}

.adm-folder-row:hover {
  background-color: #f8f9fb;
}

.adm-folder-row.active {
  background-color: #e9f2ff;
  color: var(--zf-primary);
  font-weight: 600;
}

.adm-folder-row-wrap {
  gap: 0.25rem;
  padding: 0;
}

.ee-file-iframe {
  border: 0;
  display: block;
  min-height: 75vh;
  width: 100%;
}

.ee-file-preview-img {
  max-height: 80vh;
  width: auto;
}

.ee-file-block {
  border: 1px solid var(--zf-border);
  box-shadow: var(--zf-shadow);
}

.ee-file-block .ee-file-title {
  color: var(--zf-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article-single-body .ee-file-block {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Búsqueda pública
   -------------------------------------------------------------------------- */

.search-page-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.search-page-label {
  color: var(--zf-text);
  font-size: 1rem;
  white-space: nowrap;
}

.search-page-input {
  flex: 1 1 220px;
  max-width: 100%;
  min-width: 180px;
}

.search-page-submit {
  white-space: nowrap;
}

.search-results-list {
  margin: 0;
  padding-left: 1.4rem;
}

.search-result-item {
  border-bottom: 1px solid var(--zf-border);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.search-result-title {
  color: var(--zf-primary);
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.search-result-title:hover {
  text-decoration: underline;
}

.search-result-desc {
  color: var(--zf-text-muted);
}

.modal-header {
  padding: 0.5rem !important;
}

.fs-7 {
  font-size: 0.75rem !important;
}
