/* =========================================================
   PLUMAGRAFITO — BIENVENIDA, POESÍA Y AVISOS DE PUBLICACIÓN
   Archivo independiente: no modifica el navbar ni los relojes.
   ========================================================= */

body.pg-welcome-is-open {
  overflow: hidden;
}

.pg-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pg-welcome-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 29, 33, .76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pg-welcome-modal__card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 38px 34px 30px;
  color: #1f292b;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(211, 161, 75, .18), transparent 18rem),
    #fffdf8;
  border: 1px solid rgba(211, 161, 75, .72);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
  animation: pgWelcomeIn .24s ease both;
}

.pg-welcome-modal.is-closing .pg-welcome-modal__card {
  animation: pgWelcomeOut .18s ease both;
}

.pg-welcome-modal.is-closing .pg-welcome-modal__backdrop {
  opacity: 0;
  transition: opacity .18s ease;
}

.pg-welcome-modal__close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #072b31;
  background: #fbf1de;
  border: 1px solid #dfcfad;
  border-radius: 50%;
  cursor: pointer;
}

.pg-welcome-modal__seal {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #fff4da;
  background: linear-gradient(145deg, #8e1b2b, #741322);
  border: 3px solid #e9cc91;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(116, 19, 34, .24);
  font-size: 1.75rem;
}

.pg-welcome-modal__eyebrow {
  color: #8e1b2b;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pg-welcome-modal h2 {
  margin: 8px 0 12px;
  color: #072b31;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.08;
}

.pg-welcome-modal p {
  max-width: 470px;
  margin: 0 auto;
  color: #626a68;
}

.pg-welcome-modal__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.pg-welcome-modal__features span {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  color: #17383d;
  background: #fbf4e6;
  border: 1px solid #e5d4b2;
  border-radius: 13px;
  font-size: .76rem;
  font-weight: 800;
}

.pg-welcome-modal__features i {
  color: #8e1b2b;
  font-size: 1.05rem;
}

.pg-welcome-modal__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pg-welcome-modal__actions .button {
  cursor: pointer;
}

.pg-poetry-registration-note,
.pg-poetry-publish-notice,
.pg-poetry-section-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #17383d;
  background:
    radial-gradient(circle at top right, rgba(211, 161, 75, .16), transparent 13rem),
    #fff8e9;
  border: 1px solid #dcc28e;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(19, 39, 42, .07);
}

.pg-poetry-registration-note {
  margin: 14px 0 22px;
  padding: 16px;
}

.pg-poetry-registration-note__icon,
.pg-poetry-publish-notice__icon,
.pg-poetry-section-callout__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff7e5;
  background: #8e1b2b;
  border: 2px solid #e9cc91;
  border-radius: 50%;
}

.pg-poetry-registration-note strong,
.pg-poetry-publish-notice strong,
.pg-poetry-section-callout strong {
  display: block;
  color: #072b31;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.pg-poetry-registration-note p,
.pg-poetry-publish-notice p,
.pg-poetry-section-callout p {
  margin: 4px 0 6px;
  color: #626a68;
  font-size: .86rem;
  line-height: 1.55;
}

.pg-poetry-registration-note a,
.pg-poetry-publish-notice a {
  color: #8e1b2b;
  font-size: .8rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pg-poetry-publish-notice {
  margin: 0 0 20px;
  padding: 17px 18px;
}

.pg-poetry-publish-notice.is-poetry-mode {
  background:
    radial-gradient(circle at top right, rgba(211, 161, 75, .18), transparent 15rem),
    #f5ead5;
  border-color: #d3a14b;
}

.pg-poetry-section-callout {
  align-items: center;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.pg-poetry-section-callout > div {
  flex: 1 1 auto;
}

.pg-poetry-section-callout .button {
  flex: 0 0 auto;
}

@keyframes pgWelcomeIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pgWelcomeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(.98); }
}

@media (max-width: 700px) {
  .pg-welcome-modal {
    padding: 12px;
  }

  .pg-welcome-modal__card {
    padding: 34px 18px 22px;
    border-radius: 20px;
  }

  .pg-welcome-modal__features {
    grid-template-columns: 1fr;
  }

  .pg-welcome-modal__features span {
    min-height: 48px;
    flex-direction: row;
  }

  .pg-welcome-modal__actions {
    flex-direction: column;
  }

  .pg-welcome-modal__actions .button {
    width: 100%;
  }

  .pg-poetry-registration-note,
  .pg-poetry-publish-notice {
    padding: 14px;
  }

  .pg-poetry-section-callout {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .pg-poetry-section-callout .button {
    width: 100%;
  }
}
