/* ════════════════════════════════════════════════════════════════
   © 2026 Mizziu Fuentes · mizziu.com
   Hecho a la medida por Norrium · norrium.com
   Todos los derechos reservados.
   ════════════════════════════════════════════════════════════════

   MIZZIU FUENTES · css/03_portada.css · v30
   La portada

   La entrada con la linterna y la moneda que gira, "Hoy en la casa",
   "Lo último", el mapa y "Presentado por Norrium".

   — ✦ — · Marcos 11:24
   ════════════════════════════════════════════════════════════════ */

/* ── La entrada: linterna y moneda ─────────────────────────────── */

.hero {
  position: relative;
  background: var(--hero);
  color: var(--hero-ink);
  padding: 96px 16px 130px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 360px at var(--x,50%) var(--y,45%),rgba(255,214,150,.22),rgba(255,190,120,.06) 45%,transparent 70%);
  pointer-events: none;
}

.hero>* {
  position: relative;
}

.hero .moneda {
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.6));
  width: 210px;
  height: 210px;
  transform-style: preserve-3d;
  cursor: pointer;
}

.hero h1 {
  font-family: "Fraunces",Georgia,serif;
  font-weight: 900;
  font-size: clamp(3rem,10vw,6.4rem);
  line-height: .95;
  margin: .25em 0 .25em;
  letter-spacing: -.025em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--cobre);
}

.hero p {
  max-width: 32ch;
  margin: 0 auto;
  font-size: 1.35rem;
  color: var(--hero-soft);
  font-style: italic;
}

.hero .tip {
  position: absolute;
  bottom: 72px;
  left: 0;
  right: 0;
  font-size: .7rem;
  color: #8f8172;
}

@media (max-width: 560px) {
  .hero .moneda {
    width: 168px;
    height: 168px;
  }
}

.hero .moneda.gira {
  animation: giro 1.3s cubic-bezier(.3,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  .hero .moneda.gira {
    animation: none;
  }
}

.hero .moneda-wrap .moneda {
  position: absolute;
  left: 23%;
  top: 19%;
  width: 54%;
  height: auto;
  filter: none;
}

.hero .moneda-wrap .coin3d {
  position: absolute;
  left: 23%;
  top: 19%;
  width: 54%;
  aspect-ratio: 518/595;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateY(-18deg);
}

.hero .moneda.coin3d.gira {
  animation: giro3d 1.6s cubic-bezier(.3,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  .hero .moneda.coin3d.gira {
    animation: none;
  }
}

.hero p.sub {
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #b9ab97;
  max-width: 46ch;
  margin-top: 14px;
}

.hero .cuenta {
  margin-top: 24px;
  color: var(--cobre);
  min-height: 1.2em;
}

.hero .cuenta:empty {
  display: none;
}

@media (hover: none),(pointer: coarse) {
  .hero .tip {
    display: none;
  }
}

.moneda-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  filter: drop-shadow(0 22px 50px rgba(0,0,0,.65));
}

.moneda-wrap .aros {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 560px) {
  .moneda-wrap {
    width: 220px;
    height: 220px;
  }
}

.coin3d img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: visible;
}

.coin3d .capa {
  filter: brightness(.62) sepia(.6) saturate(1.6);
}

.coin3d .cara {
  backface-visibility: hidden;
}

@keyframes giro {
  0% { transform: perspective(800px) rotateY(0); }
  100% { transform: perspective(800px) rotateY(720deg); }
}

@keyframes giro3d {
  0% { transform: perspective(900px) rotateY(-18deg); }
  100% { transform: perspective(900px) rotateY(702deg); }
}

/* ── Hoy en la casa ────────────────────────────────────────────── */

@media (max-width: 760px) {
  .hoy-portada {
    margin-top: -30px;
  }
}

.hoy-portada {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: center;
  margin-top: -46px;
  position: relative;
  z-index: 2;
  border-radius: 18px;
  background: var(--hero);
  color: var(--hero-ink);
  padding: 26px 32px;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.6);
}

.hoy-portada .mono {
  color: var(--cobre);
  font-size: .7rem;
}

@media (max-width: 760px) {
  .hoy-portada {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
  }
}

.hoy-fecha {
  display: grid;
  gap: 3px;
  padding-right: 34px;
  border-right: 1px solid #2f281f;
  min-width: 200px;
}

.hoy-fecha b {
  font-family: "Fraunces",serif;
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.hoy-fecha b em {
  font-style: italic;
  font-weight: 500;
  color: var(--cobre);
}

@media (max-width: 760px) {
  .hoy-fecha {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid #2f281f;
  }
}

.hoy-real {
  color: #8f8172;
  font-style: italic;
  font-size: .95rem;
}

.hoy-verso {
  display: grid;
  gap: 4px;
}

.hoy-verso p {
  margin: 0;
  font-style: italic;
  color: #e7dcc9;
  font-size: 1.08rem;
  line-height: 1.5;
}

.hoy-verso cite {
  font-style: normal;
}

/* ── Lo último en la casa ──────────────────────────────────────── */

.ultimo {
  margin-top: 70px;
}

.p-k {
  color: var(--soft);
  font-size: .7rem;
  letter-spacing: .22em;
  margin-bottom: 14px;
}

.ultimo-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.ultimo-grid a {
  display: grid;
  gap: 6px;
  align-content: start;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--card);
  transition: transform .2s ease,box-shadow .2s ease;
}

.ultimo-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.35);
}

.ultimo-grid .mono {
  color: var(--accent);
  font-size: .7rem;
}

.ultimo-grid b {
  font-family: "Fraunces",serif;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.ultimo-grid b em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.ultimo-grid .u-s {
  color: var(--soft);
  font-size: .95rem;
  line-height: 1.35;
}

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

/* ── El mapa de las salas ──────────────────────────────────────── */

.mapa {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 10px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.mapa a {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px 14px;
  display: grid;
  gap: 2px;
  min-width: 0;
  transition: transform .2s ease,box-shadow .2s ease;
}

.mapa a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.35);
}

.mapa .e {
  font-size: 1.5rem;
}

.mapa b {
  font-family: "Fraunces",serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.mapa span {
  color: var(--soft);
  line-height: 1.3;
  font-size: .7rem;
}

@media (max-width: 900px) {
  .mapa {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width: 520px) {
  .mapa {
    grid-template-columns: repeat(2,1fr);
  }
}

.mapa {
  grid-template-columns: repeat(5,1fr);
}

@media (max-width: 1000px) {
  .mapa {
    grid-template-columns: repeat(4,1fr);
  }
}

@media (max-width: 520px) {
  .mapa {
    grid-template-columns: repeat(2,1fr);
  }
}

/* ── Presentado por Norrium ────────────────────────────────────── */

.presenta {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  margin-top: 80px;
  padding: 34px 24px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%,#2a2013,#14110d 70%);
  position: relative;
  transition: transform .25s ease,box-shadow .25s ease;
  border: 1px solid #2f281f;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.6);
}

.presenta:hover {
  transform: translateY(-3px);
  border-color: #4a3f33;
}

.presenta .mono {
  color: var(--oro);
  font-size: .7rem;
}

.presenta img {
  width: min(78%,380px);
  height: auto;
}

.presenta .lema-n {
  font-style: italic;
  color: var(--hero-soft);
  max-width: 46ch;
}

.presenta .ir {
  color: var(--cobre);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: .7rem;
}

.presenta .mono {
  color: var(--cobre);
}

/* ── Ajustes de la portada ─────────────────────────────────────── */

#p-inicio .foto-a,
#p-inicio .ficha {
  cursor: pointer;
}
