:root {
  --diador-blue-dark: #0b2f55;
  --diador-blue: #2563eb;
  --diador-blue-light: #eff6ff;
  --diador-green: #7ea723;
  --diador-text: #10233f;
}

body {
  background:
    radial-gradient(circle at top left, #dbeafe 0, transparent 34%),
    linear-gradient(135deg, #f5f8ff, #ffffff);
}

#header {
  border-bottom: 1px solid #dbeafe;
}

#header a {
  color: var(--diador-blue-dark);
}

#header a:hover,
#header a.active {
  color: var(--diador-blue) !important;
}

#footer {
  color: #94a3b8;
}

.diador-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  color: #1d4ed8 !important;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.diador-logo-text:hover {
  color: #0b2f55 !important;
  text-decoration: none;
}

.diador-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.diador-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

body.header-fixed.header-animated #header.scrolled .diador-logo-img {
  height: 30px;
}

@media (max-width: 840px) {
  .diador-logo-img {
    height: 38px;
  }
}

.diador-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.diador-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

body.header-fixed.header-animated #header.scrolled .diador-logo-img {
  height: 30px;
}

@media (max-width: 840px) {
  .diador-logo-img {
    height: 38px;
  }
}

.diador-footer {
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  background: #eff6ff;
  border-top: 1px solid #dbeafe;
  text-align: center;
  color: #64748b;
}

.diador-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.diador-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.diador-popup.is-visible {
  display: flex;
}

.diador-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.diador-popup__box {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  color: #10233f;
}

.diador-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #eff6ff;
  color: #0b2f55;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.diador-popup__close:hover {
  background: #dbeafe;
}

.diador-popup__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
}

.diador-popup h2 {
  margin: 0 42px 12px 0;
  color: #0b2f55;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.1;
}

.diador-popup p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
  font-size: 17px;
}

.diador-popup__highlight {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  line-height: 1.5;
  font-weight: 700;
}

.diador-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.diador-popup__button {
  display: inline-block;
  background: #7ea723;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(126, 167, 35, 0.24);
}

.diador-popup__button:hover {
  background: #6b921d;
  color: #ffffff !important;
  text-decoration: none;
}

.diador-popup__button--secondary {
  background: #2563eb;
}

.diador-popup__button--secondary:hover {
  background: #1d4ed8;
}

@media (max-width: 600px) {
  .diador-popup {
    align-items: flex-end;
    padding: 12px;
  }

  .diador-popup__box {
    border-radius: 20px;
    padding: 24px 20px;
  }

  .diador-popup__actions {
    flex-direction: column;
  }

  .diador-popup__button {
    width: 100%;
    text-align: center;
  }
}

.diador-error-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 18px 56px;
  color: #10233f;
}

.diador-error-card {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
  border-radius: 28px;
  padding: 34px 28px;
  box-shadow: 0 14px 36px rgba(16, 35, 63, 0.10);
  text-align: center;
}

.diador-error-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

.diador-error-card h1 {
  margin: 0;
  color: #0b2f55;
  font-size: clamp(72px, 16vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.diador-error-card h2 {
  margin: 14px 0 0;
  color: #0b2f55;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.1;
}

.diador-error-card p {
  max-width: 680px;
  margin: 18px auto 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.65;
}

.diador-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.diador-error-button {
  display: inline-block;
  background: #7ea723;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 19px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(126, 167, 35, 0.24);
}

.diador-error-button:hover {
  background: #6b921d;
  color: #ffffff !important;
  text-decoration: none;
}

.diador-error-button--secondary {
  background: #2563eb;
}

.diador-error-button--secondary:hover {
  background: #1d4ed8;
}

.diador-error-note {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .diador-error-card {
    border-radius: 20px;
    padding: 28px 20px;
  }

  .diador-error-actions {
    flex-direction: column;
  }

  .diador-error-button {
    width: 100%;
    text-align: center;
  }
}
