/* =========================================================
   PORTAL DEL GREMIO DE GARDENIA — INICIO
   ========================================================= */

.portal-home {
  width: min(97%, 1500px);
  margin: 14px auto;
}

.portal-hero {
  min-height: 290px;
}

.portal-hero .hero-content {
  min-height: 290px;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 20px 28px;
}

.portal-home .guild-logo {
  width: 300px;
  height: 270px;
  background-size: 148% auto;
}

.portal-title h1 {
  font-size: clamp(2.85rem, 4.4vw, 4.65rem);
}

.portal-title h2 {
  margin-top: 4px;
}

.portal-welcome {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-welcome-kicker,
.portal-eyebrow,
.portal-card-kicker,
.portal-note span {
  color: var(--gold-700, #8c6427);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portal-welcome h3 {
  margin: 6px 0 8px;
}

.portal-welcome p {
  line-height: 1.5;
}

.admin-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(173, 125, 49, .38);
  border-radius: 999px;
  color: var(--navy-900, #0b2545);
  background: rgba(255,255,255,.64);
  font-size: .68rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-link:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 125, 49, .72);
  box-shadow: 0 8px 18px rgba(6,24,45,.08);
}

.portal-main {
  padding: 30px 28px 26px;
  background:
    linear-gradient(rgba(255,253,248,.965), rgba(247,242,232,.97)),
    repeating-linear-gradient(0deg, rgba(98,73,37,.025) 0, rgba(98,73,37,.025) 1px, transparent 1px, transparent 5px);
}

.portal-intro {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(173, 125, 49, .28);
}

.portal-intro h2 {
  margin-top: 4px;
  color: var(--navy-950, #06182d);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 400;
}

.portal-intro p {
  margin-top: 5px;
  color: var(--text-soft, #625a4d);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.portal-grid > .portal-card {
  grid-column: span 2;
}

/* Segunda fila centrada en escritorio: Reputación + Gaceta */
.card-reputacion {
  grid-column: 2 / span 2;
}

.card-gaceta {
  grid-column: 4 / span 2;
}

.portal-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 176px 1fr auto;
  min-width: 0;
  min-height: 420px;
  border: 1px solid rgba(173, 125, 49, .36);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.96), rgba(255,255,255,.45) 48%, transparent 72%),
    linear-gradient(180deg, #fffdf9 0%, #f8f1e4 100%);
  box-shadow: 0 12px 26px rgba(6,24,45,.10);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(201,155,70,.16);
  border-radius: 16px;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(173,125,49,.72);
  box-shadow: 0 18px 38px rgba(6,24,45,.16);
  outline: none;
}

.portal-card-art {
  position: relative;
  display: grid;
  place-items: center;
  padding-top: 12px;
}

.portal-card-halo {
  position: absolute;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(173,125,49,.20);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(234,211,156,.22) 0 46%, transparent 47%),
    conic-gradient(from 45deg, transparent 0 12%, rgba(173,125,49,.08) 12% 13%, transparent 13% 37%, rgba(173,125,49,.08) 37% 38%, transparent 38% 62%, rgba(173,125,49,.08) 62% 63%, transparent 63% 87%, rgba(173,125,49,.08) 87% 88%, transparent 88% 100%);
}

.portal-card-art img {
  position: relative;
  z-index: 1;
  width: 142px;
  height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(6,24,45,.14));
  transition: transform .2s ease;
}

.portal-card:hover .portal-card-art img {
  transform: scale(1.035);
}

.card-gaceta .portal-card-art img {
  filter: sepia(.08) saturate(.92) drop-shadow(0 8px 12px rgba(6,24,45,.14));
}

.portal-card-copy {
  position: relative;
  z-index: 1;
  padding: 0 26px 18px;
  text-align: center;
}

.portal-card-copy h3 {
  margin: 6px 0 10px;
  color: var(--navy-950, #06182d);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(1.6rem, 2.2vw, 2.05rem);
  font-weight: 400;
  line-height: 1.08;
}

.portal-card-copy p {
  max-width: 370px;
  margin: 0 auto;
  color: var(--text-soft, #625a4d);
  font-size: .9rem;
  line-height: 1.55;
}

.portal-card-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 13px 16px;
  border-radius: 12px;
  color: #fffdf8;
  background: linear-gradient(135deg, var(--navy-900, #0b2545), var(--navy-800, #123b68));
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .025em;
}

.portal-card-action b {
  color: var(--gold-300, #ead39c);
  font-size: 1rem;
  font-weight: 400;
}

.card-gaceta .portal-card-action {
  background: linear-gradient(135deg, #4b1922, #7a2c37);
}

.portal-note {
  display: grid;
  grid-template-columns: 78px minmax(0,1fr);
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 17px 20px;
  border: 1px solid rgba(173,125,49,.28);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
}

.portal-note img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.portal-note strong {
  display: block;
  margin: 4px 0;
  color: var(--navy-950, #06182d);
  font-family: "Marcellus", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
}

.portal-note p {
  color: var(--text-soft, #625a4d);
  font-size: .77rem;
  line-height: 1.45;
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px;
  color: rgba(255,253,248,.86);
  background: var(--navy-950, #06182d);
  font-size: .68rem;
  letter-spacing: .04em;
}

.portal-footer-dot {
  color: var(--gold-500, #c99b46);
}

@media (max-width: 1080px) {
  .portal-hero .hero-content {
    grid-template-columns: 230px minmax(0,1fr) 280px;
    padding-inline: 20px;
  }

  .portal-home .guild-logo {
    width: 230px;
    height: 230px;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .portal-grid > .portal-card,
  .card-reputacion,
  .card-gaceta {
    grid-column: auto;
  }

  .card-gaceta {
    grid-column: 1 / -1;
    width: min(560px, 100%);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .portal-home {
    width: 100%;
    margin: 0;
  }

  .portal-hero,
  .portal-hero .hero-content {
    min-height: 0;
  }

  .portal-hero .hero-content {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 10px;
    padding: 18px 16px 20px;
    text-align: center;
  }

  .portal-home .guild-logo {
    justify-self: center;
    width: min(260px, 78vw);
    height: 185px;
    background-size: 148% auto;
  }

  .portal-title {
    min-width: 0;
    text-align: center;
  }

  .portal-title h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
    overflow-wrap: anywhere;
  }

  .portal-title h2 {
    font-size: 1rem;
  }

  .portal-welcome {
    width: 100%;
    max-width: 520px;
    margin: 6px auto 0;
    text-align: left;
  }

  .admin-link {
    align-self: stretch;
    text-align: center;
  }

  .portal-main {
    padding: 22px 14px 20px;
  }

  .portal-intro {
    text-align: center;
  }

  .portal-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }

  .portal-grid > .portal-card,
  .card-reputacion,
  .card-gaceta {
    grid-column: auto;
    width: 100%;
  }

  .portal-card {
    grid-template-rows: 142px auto auto;
    min-height: 360px;
    border-radius: 18px;
  }

  .portal-card-art img {
    width: 116px;
    height: 116px;
  }

  .portal-card-halo {
    width: 116px;
    height: 116px;
  }

  .portal-card-copy {
    padding-inline: 20px;
  }

  .portal-card-copy h3 {
    font-size: 1.65rem;
  }

  .portal-note {
    grid-template-columns: 58px minmax(0,1fr);
    padding: 14px;
  }

  .portal-note img {
    width: 54px;
    height: 54px;
  }

  .portal-footer {
    flex-wrap: wrap;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .portal-home .guild-logo {
    height: 155px;
  }

  .portal-title h1 {
    font-size: 2.55rem;
  }

  .portal-welcome {
    padding: 14px;
  }

  .portal-card-copy p {
    font-size: .84rem;
  }

  .portal-note {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .portal-note img {
    justify-self: center;
  }
}
