.slep-container {
  max-width: 1180px;
  margin: 20px auto;
  padding: 18px;
  font-family: Arial, sans-serif;
  background: transparent;
}

.slep-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.slep-title {
  font-size: 20px;
  color: #0b4f78;
  margin: 0;
  line-height: 1.25;
}

.slep-subtitle {
  color: #3a5d76;
  margin: 0 0 10px;
}

.slep-tabs {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slep-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #d9e7f2;
  background: #fff;
  color: #d93b47;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s ease;
}

.slep-tab:hover,
.slep-tab:focus {
  transform: translateY(-1px);
}

.slep-tab.active {
  background: #f35a63;
  color: #fff;
  border-color: #f35a63;
}

.slep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.slep-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(11, 79, 120, 0.08);
  overflow: hidden;
  border: 1px solid #e7f0f7;
}

.slep-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 16px;
  min-height: 112px;
}

.slep-badge-wrap {
  flex: 0 0 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slep-badge {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3edf5;
  padding: 6px;
}

.slep-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.slep-title-wrap h3 {
  margin: 0;
  font-size: 20px;
  color: #0b4f78;
}

.slep-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.slep-rbd,
.slep-comuna {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.slep-rbd {
  color: #4b6476;
  background: #eef5fa;
}

.slep-comuna {
  color: #0b4f78;
  background: #e7f3fb;
}

.slep-toggle {
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #d9e7f2;
  background: #fff;
  color: #e50914;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  align-self: center;
}

.slep-toggle:hover,
.slep-toggle:focus {
  background: #f7fbfe;
  border-color: #bfd7e8;
}

.slep-toggle[aria-expanded="true"] {
  color: #004a92;
  transform: rotate(180deg);
}

.slep-card-body {
  padding: 0 18px 18px;
  display: none;
}

.slep-line {
  margin: 10px 0;
  color: #334a5b;
  font-size: 14px;
}

.slep-line a {
  color: #1f6fb3;
  text-decoration: underline;
  word-break: break-word;
}

.slep-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 12px;
}

.slep-pagination {
  grid-column: 1 / -1;
  margin-top: 18px;
  text-align: center;
}

.slep-pagination a,
.slep-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 6px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e6eb;
  color: #1f6fb3;
  text-decoration: none;
}

.slep-pagination .current {
  background: #052d63;
  color: #fff;
  border-color: #052d63;
}

@media (max-width: 820px) {
  .slep-grid {
    grid-template-columns: 1fr;
  }

  .slep-card-header {
    min-height: auto;
  }

  .slep-title-wrap h3 {
    font-size: 22px;
  }
}

@media (max-width: 540px) {
  .slep-container {
    padding: 12px;
  }

  .slep-card-header {
    gap: 12px;
    padding: 16px;
  }

  .slep-badge-wrap {
    flex-basis: 54px;
  }

  .slep-badge {
    width: 54px;
    height: 54px;
  }

  .slep-toggle {
    width: 46px;
    height: 46px;
    font-size: 24px;
    flex-basis: 46px;
  }

  .slep-title-wrap h3 {
    font-size: 18px;
  }
}
