.espamilka-updates-page {
  background: #f8f6f3;
  color: #24181b;
  min-height: 70vh;
}

.espamilka-updates-hero {
  background:
    radial-gradient(circle at 16% 12%, rgba(15, 118, 110, 0.13), transparent 28%),
    linear-gradient(180deg, #fff9f6 0%, #fff 100%);
  border-bottom: 1px solid rgba(57, 0, 7, 0.08);
}

.espamilka-updates-hero__inner,
.espamilka-updates-shell,
.espamilka-update-single {
  margin: 0 auto;
  max-width: 1080px;
  padding-left: 20px;
  padding-right: 20px;
}

.espamilka-updates-hero__inner {
  padding-bottom: 36px;
  padding-top: 42px;
  text-align: center;
}

.espamilka-updates-eyebrow {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.espamilka-updates-hero h1 {
  color: #390007;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1;
  margin: 0;
}

.espamilka-updates-hero p:not(.espamilka-updates-eyebrow) {
  color: #5b444a;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.6;
  margin: 16px 0 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.espamilka-updates-shell {
  padding-bottom: 54px;
  padding-top: 26px;
}

.espamilka-updates-admin-panel {
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(57, 0, 7, 0.06);
  margin-bottom: 18px;
  padding: 0;
}

.espamilka-updates-admin-panel summary {
  align-items: center;
  color: #750916;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
}

.espamilka-updates-admin-panel summary::marker {
  content: "";
}

.espamilka-updates-admin-panel[open] summary {
  border-bottom: 1px solid rgba(57, 0, 7, 0.08);
}

.espamilka-updates-admin-notice {
  border-radius: 8px;
  font-weight: 800;
  margin: 16px 16px 0;
  padding: 12px 14px;
}

.espamilka-updates-admin-notice--success {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.espamilka-updates-admin-notice--error {
  background: rgba(139, 29, 44, 0.1);
  color: #8b1d2c;
}

.espamilka-updates-quick-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px;
}

.espamilka-updates-quick-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.espamilka-updates-quick-form__wide {
  grid-column: 1 / -1;
}

.espamilka-updates-quick-form span {
  color: #72545a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.espamilka-updates-quick-form input,
.espamilka-updates-quick-form select,
.espamilka-updates-quick-form textarea {
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.16);
  border-radius: 8px;
  color: #24181b;
  font-size: 1rem;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.espamilka-updates-quick-form textarea {
  line-height: 1.55;
  resize: vertical;
}

.espamilka-updates-quick-form input:focus,
.espamilka-updates-quick-form select:focus,
.espamilka-updates-quick-form textarea:focus {
  border-color: #8b1d2c;
  box-shadow: 0 0 0 3px rgba(139, 29, 44, 0.12);
  outline: none;
}

.espamilka-updates-quick-form__actions {
  align-items: end;
  display: flex;
}

.espamilka-updates-quick-form__actions button {
  background: #750916;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
  padding: 0 20px;
  width: 100%;
}

.espamilka-updates-filters {
  align-items: end;
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(57, 0, 7, 0.06);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  padding: 16px;
}

.espamilka-updates-filters label {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.espamilka-updates-filters span {
  color: #72545a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.espamilka-updates-filters select {
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.16);
  border-radius: 8px;
  color: #24181b;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.espamilka-updates-filters select:focus {
  border-color: #8b1d2c;
  box-shadow: 0 0 0 3px rgba(139, 29, 44, 0.12);
  outline: none;
}

.espamilka-updates-filters__actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.espamilka-updates-filters button,
.espamilka-updates-filters__actions a,
.espamilka-updates-empty a,
.espamilka-update-single__back {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  line-height: 1.1;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.espamilka-updates-filters button {
  background: #750916;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.espamilka-updates-filters__actions a,
.espamilka-updates-empty a,
.espamilka-update-single__back {
  background: rgba(117, 9, 22, 0.07);
  color: #750916;
}

.espamilka-updates-summary {
  align-items: center;
  color: #72545a;
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  margin: 22px 0 14px;
}

.espamilka-updates-list {
  display: grid;
  gap: 12px;
  position: relative;
}

.espamilka-update-card {
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(57, 0, 7, 0.05);
  display: grid;
  gap: 20px;
  grid-template-columns: 118px minmax(0, 1fr);
  margin: 0;
  padding: 20px;
}

.espamilka-update-card__date {
  color: #390007;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
  padding-top: 3px;
}

.espamilka-update-card__body {
  min-width: 0;
}

.espamilka-update-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.espamilka-update-badge,
.espamilka-update-area {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 7px 10px;
}

.espamilka-update-badge {
  background: #0f766e;
  color: #fff;
}

.espamilka-update-badge--mejorado {
  background: #5b4b9a;
}

.espamilka-update-badge--corregido {
  background: #8b1d2c;
}

.espamilka-update-badge--profesores {
  background: #315b7c;
}

.espamilka-update-badge--estudiantes {
  background: #7a4f12;
}

.espamilka-update-area {
  background: rgba(57, 0, 7, 0.07);
  color: #5f2931;
}

.espamilka-update-card h2 {
  color: #390007;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}

.espamilka-update-card h2 a {
  color: inherit;
  text-decoration: none;
}

.espamilka-update-card h2 a:hover,
.espamilka-update-card h2 a:focus-visible {
  color: #750916;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.espamilka-update-card p {
  color: #5b444a;
  font-size: 1rem;
  line-height: 1.65;
  margin: 8px 0 0;
}

.espamilka-update-card__content {
  color: #51454a;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-top: 12px;
}

.espamilka-update-card__content > *:first-child {
  margin-top: 0;
}

.espamilka-update-card__content > *:last-child {
  margin-bottom: 0;
}

.espamilka-update-card__content ul,
.espamilka-update-card__content ol {
  margin: 10px 0 0 22px;
  padding: 0;
}

.espamilka-update-card__content li + li {
  margin-top: 6px;
}

.espamilka-update-card__link {
  align-items: center;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 14px;
  min-height: 38px;
  padding: 0 15px;
  text-decoration: none;
}

.espamilka-update-card__link:hover,
.espamilka-update-card__link:focus-visible {
  background: #0f766e;
  color: #fff;
  outline: none;
}

.espamilka-updates-pagination {
  margin-top: 26px;
}

.espamilka-updates-pagination .nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.espamilka-updates-pagination .page-numbers {
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.1);
  border-radius: 999px;
  color: #5f2931;
  font-weight: 900;
  min-width: 40px;
  padding: 9px 13px;
  text-align: center;
  text-decoration: none;
}

.espamilka-updates-pagination .page-numbers.current {
  background: #750916;
  color: #fff;
}

.espamilka-updates-empty {
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.08);
  border-radius: 8px;
  margin-top: 20px;
  padding: 24px;
  text-align: center;
}

.espamilka-updates-empty h2 {
  color: #390007;
  margin: 0;
}

.espamilka-updates-empty p {
  color: #72545a;
  margin: 10px 0 0;
}

.espamilka-update-single {
  padding-bottom: 58px;
  padding-top: 38px;
}

.espamilka-update-single__header {
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(57, 0, 7, 0.06);
  margin-top: 18px;
  padding: 28px;
}

.espamilka-update-single__header time {
  color: #72545a;
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
}

.espamilka-update-single__header h1 {
  color: #390007;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin: 0;
}

.espamilka-update-single__content {
  background: #fff;
  border: 1px solid rgba(57, 0, 7, 0.08);
  border-radius: 8px;
  color: #3f2b31;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 14px;
  padding: 28px;
}

.espamilka-update-single__content > *:first-child {
  margin-top: 0;
}

.espamilka-update-single__content > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .espamilka-updates-quick-form {
    grid-template-columns: 1fr;
  }

  .espamilka-updates-filters {
    grid-template-columns: 1fr;
  }

  .espamilka-updates-filters__actions {
    justify-content: stretch;
  }

  .espamilka-updates-filters button,
  .espamilka-updates-filters__actions a {
    flex: 1 1 auto;
  }

  .espamilka-update-card {
    grid-template-columns: 1fr;
  }

  .espamilka-update-card__date {
    border-bottom: 1px solid rgba(57, 0, 7, 0.08);
    padding-bottom: 12px;
  }
}

@media (max-width: 520px) {
  .espamilka-updates-hero__inner,
  .espamilka-updates-shell,
  .espamilka-update-single {
    padding-left: 16px;
    padding-right: 16px;
  }

  .espamilka-updates-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .espamilka-update-card,
  .espamilka-update-single__header,
  .espamilka-update-single__content {
    padding: 18px;
  }
}
