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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #fcfafa;/*linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%);*/
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar improvements */
.navbar-custom {
  background: white !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.navbar-brand img {
  transition: transform 0.2s ease;
}

.navbar-brand img:hover {
  transform: scale(1.02);
}

/* Main container */
.main-container {
  flex: 1;
  margin: 2rem auto;
  max-width: 1300px;
  width: 90%;
}

/* Header section */
.journal-header {
  background: linear-gradient(135deg, #D8DBDE 0%, #838C96 100%); /*#777799;*/
  border-radius: 28px;
  padding: 2rem 2rem 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(184, 0, 98, 0.1);
  transition: all 0.2s;
}

.journal-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #b80062, #7a0042);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.badge-journal {
  background: #f0e6ea;
  color: #b80062;
  border-radius: 40px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Contenedor de cuadros RMF, RMF-E, S-RMF*/
.info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
}
/* Cuadro RMF*/
.info-card {
  background: #FBD9FC;
  border-radius: 20px;
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 200px;
  border-left: 4px solid #b80062;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}
/* Cuadro RMF-E*/
.info-card-e {
  background: #C3DAFA;
  border-radius: 20px;
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 200px;
  border-left: 4px solid #0a6bf2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}
/* Cuadro S-RMF*/
.info-card-s {
  background: #D7FCDB;
  border-radius: 20px;
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 200px;
  border-left: 4px solid #05FA20;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}
/* Efecto de mouse cuadro RMF*/
.info-card:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* Efecto de mouse cuadro RMF-E*/
.info-card-e:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* Efecto de mouse cuadro S-RMF*/
.info-card-s:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* Color de letras en negrita cuadro RMF*/
.info-card strong {
  color: #b80062;
  font-weight: 700;
  font-size: 1.1rem;
}
/* Color de letras en negrita cuadro RMF-E*/
.info-card-e strong {
  color: #0a6bf2;
  font-weight: 700;
  font-size: 1.1rem;
}
/* Color de letras en negrita cuadro S-RMF*/
.info-card-s strong {
  color: #03a33e;
  font-weight: 700;
  font-size: 1.1rem;
}
/* Color de letras pequeñas en cuadro RMF*/
.info-card .small-text {
  font-size: 0.9rem;
  color: #000000;
  margin-top: 5px;
}
/* Color de letras pequeñas en cuadro RMF-E*/
.info-card-e .small-text {
  font-size: 0.9rem;
  color: #000000;
  margin-top: 5px;
}
/* Color de letras pequeñas en cuadro S-RMF*/
.info-card-s .small-text {
  font-size: 0.9rem;
  color: #000000;
  margin-top: 5px;
}

/* Search panel */
.search-panel {
  background: linear-gradient(135deg, #D8DBDE 0%, #838C96 100%);/*#838C96;*/
  border-radius: 28px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.input-group-custom {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 3;
  min-width: 200px;
  border-radius: 60px !important;
  border: 1.5px solid #e2e8f0;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  transition: all 0.2s;
  background: #fafbfc;
}

.search-input:focus {
  border-color: #b80062;
  box-shadow: 0 0 0 3px rgba(184, 0, 98, 0.1);
  background: white;
  outline: none;
}

.btn-primary-custom {
  background: #b80062;
  border: none;
  border-radius: 60px;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(184, 0, 98, 0.2);
  color: white;
}

.btn-primary-custom:hover {
  background: #8f004d;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(184, 0, 98, 0.25);
}

.btn-outline-custom {
  border-radius: 60px;
  padding: 0.7rem 1.8rem;
  font-weight: 500;
  border: 1.5px solid #ced4da;
  color: #495057;
  background: white;
}

.btn-outline-custom:hover {
  background: #f8f9fa;
  border-color: #b80062;
  color: #b80062;
}

/* Quick filters */
.quick-filters {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.quick-badge {
  background: #f1f3f5;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #2c3e50;
}

.quick-badge:hover {
  background: #b80062;
  color: white;
  transform: translateY(-1px);
}

/* Results area */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  background: #f1f3f5;
  padding: 0.3rem 1rem;
  border-radius: 40px;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.result-item {
  background: white;
  border-radius: 18px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: all 0.2s;
  border: 1px solid #f0eef2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.result-item:hover {
  transform: translateX(4px);
  border-color: #f0d9e6;
  box-shadow: 0 6px 14px rgba(184, 0, 98, 0.08);
}

.result-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.result-icon {
  background: #fceef5;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #b80062;
  font-size: 1.3rem;
}

.result-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e293b;
  letter-spacing: -0.2px;
}

.result-badge {
  background: #e9ecef;
  padding: 0.2rem 0.7rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #495057;
}

.download-link {
  background: #b80062;
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.download-link:hover {
  background: #8f004d;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(184, 0, 98, 0.2);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 28px;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

/* Footer */
.footer-custom {
  background: white;
  border-top: 1px solid #e9ecef;
  margin-top: 3rem;
  padding: 1.8rem 0;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .journal-header h1 {
    font-size: 1.6rem;
  }
  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .download-link {
    align-self: flex-start;
  }
}
