/* ============================================================
   index.css — Mate con amigos
   Estilos del home: portada, ticker, page-header, secciones,
   grilla de cards, ticker.
   Lo carga solo index.html.
   ============================================================ */


/* ── Header del home ── */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
}
.page-header .eyebrow {
  color: var(--blanco65);
  text-shadow: 0 2px 16px rgba(0,0,0,1), 0 4px 40px rgba(0,0,0,1), 0 8px 60px rgba(0,0,0,.9);
}
.page-header h1 {
  color: var(--blanco65);
  text-shadow: 0 2px 20px rgba(0,0,0,1), 0 4px 40px rgba(0,0,0,1), 0 8px 60px rgba(0,0,0,.9);
}
.page-header .lead {
  color: var(--blanco65);
  text-shadow: 0 2px 16px rgba(0,0,0,1), 0 4px 40px rgba(0,0,0,1), 0 8px 60px rgba(0,0,0,.9);
  margin: 0 auto 28px;
}


/* ── Nav links (botones bajo el título del home) ── */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--tinta);
  border: 1px solid var(--borde);
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(251,240,217,.25);
  font-size: 17px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  transition: box-shadow .2s, transform .2s, color .2s;
}
.nav-links a:hover {
  box-shadow: 0 0 20px rgba(255,255,255,.5), 0 0 40px rgba(255,255,255,.2);
  transform: scale(1.03);
  color: rgba(255, 255, 255, .90);
}


/* ── Secciones del home ── */
section { padding: 40px 0; border: none; }

section h2 {
  border-top: 2px solid rgba(255, 255, 255, .4);
  padding-top: 32px;
  text-shadow: 0 2px 10px rgba(0,0,0,1), 0 4px 30px rgba(0,0,0,1), 0 8px 60px rgba(0,0,0,.95);
}

section .grid,
section > div {
  padding-bottom: 32px;
}

.section-head {
  margin-bottom: 24px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.section-presentacion {
  padding: 0;
  border: none;
  margin-bottom: 24px;
}
.section-presentacion h2 { margin-bottom: 16px; }

.section-intro {
  font-size: 23px;
  color: rgba(15, 10, 5, .85);
  max-width: 100%;
  margin: 0;
  text-align: justify;
  line-height: 1.7;
  letter-spacing: 0.01em;
}


/* ── Grid de cards ── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.grid.single { grid-template-columns: 1fr; }


/* ── Cards del home ── */
.card {
  background: rgba(251,240,217,.55);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
}

.card p {
  margin: 0 0 18px;
  color: rgba(15,10,5,.85);
  line-height: 1.7;
  text-align: justify;
  letter-spacing: 0.01em;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.card p:last-child { margin-bottom: 0; }

.card h3 { margin: 0 0 12px; font-size: 24px; color: var(--tinta); }

.card .autor {
  font-size: 23px;
  color: var(--tinta);
  font-style: italic;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}

.card .excerpt {
  font-size: 23px;
  color: rgba(15, 10, 5, .85);
  line-height: 1.7;
  margin: 0 0 20px;
  text-align: justify;
  letter-spacing: 0.01em;
  max-width: 100%;
  flex: 1;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}

.card blockquote { color: rgba(15,10,5,.85); }

.card .firma { color: rgba(15,10,5,.85); }

/* Botón dentro de card del home */
.card .btn {
  align-self: flex-start;
  background: transparent;
  border: 2px solid rgba(15, 10, 5, .3);
  backdrop-filter: none;
}
.card .btn:hover {
  background: transparent;
  box-shadow: 0 0 20px rgba(255,255,255,.5), 0 0 40px rgba(255,255,255,.2);
  transform: scale(1.03);
  color: rgba(255, 255, 255, .90);
}

.card .share-btn {
  background: transparent !important;
  border: 1px solid rgba(15,10,5,.3);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.card .share-btn:hover {
  background: transparent !important;
  box-shadow: 0 0 20px rgba(255,255,255,.5), 0 0 40px rgba(255,255,255,.2);
  color: rgba(255,255,255,.90);
  transform: translateY(-1px);
}


/* ── Libros en grilla del home ── */
.libro-fila { display: flex; gap: 24px; align-items: flex-start; }
.libro-img  { width: 120px; border-radius: 10px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(70,50,30,.1); }
.libro-contenido { flex: 1; }
.libro-contenido h3 { margin: 0 0 12px; font-size: 24px; }


/* ── Artistas en grilla del home ── */
.artista-fila {
  display: flex;
  gap: 24px;
  align-items: center;
}
.artista-foto {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(70,50,30,.15);
}
.artista-contenido { flex: 1; }
.artista-contenido h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--tinta);
}
.artista-profesion {
  font-size: 18px;
  color: rgba(15,10,5,.65);
  font-style: italic;
  margin: 0 0 14px;
  line-height: 1.4;
}


/* ── Portada (cover screen al entrar) ── */
.portada {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #1a1208;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.portada.oculta { opacity: 0; visibility: hidden; pointer-events: none; }

.portada-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.portada-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .85); }

.portada-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  animation: fadeUp .8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portada-eyebrow {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--blanco65);
  margin-bottom: 14px;
  animation: fadeUp .8s .1s ease both;
  text-shadow: 0 2px 8px rgba(0,0,0,1), 0 4px 24px rgba(0,0,0,1), 0 8px 48px rgba(0,0,0,.9);
}
.portada-titulo {
  font-size: 54px;
  line-height: 1.05;
  color: var(--blanco65);
  margin: 0 0 16px;
  font-weight: 700;
  animation: fadeUp .8s .2s ease both;
  text-shadow: 0 2px 10px rgba(0,0,0,1), 0 4px 30px rgba(0,0,0,1), 0 8px 60px rgba(0,0,0,.95), 0 16px 80px rgba(0,0,0,.8);
}
.portada-subtitulo {
  font-size: 24px;
  color: var(--blanco65);
  margin: 0 0 36px;
  font-style: italic;
  max-width: 600px;
  animation: fadeUp .8s .3s ease both;
  text-shadow: 0 2px 8px rgba(0,0,0,1), 0 4px 24px rgba(0,0,0,1), 0 8px 48px rgba(0,0,0,.9);
}
.portada-btn {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: var(--blanco65);
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 12px 32px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
  animation: fadeUp .8s .4s ease both;
}
.portada-btn:hover {
  background: rgba(255, 255, 255, .25);
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255,255,255,.5), 0 0 40px rgba(255,255,255,.2);
  color: rgba(255, 255, 255, .90);
}


/* ── Ticker de tiza (chalk-tip) ── */
.chalk-tip {
  position: absolute;
  bottom: 36px;
  left: 100%;
  font-family: 'Caveat', cursive;
  font-size: 30px;
  color: rgba(255, 255, 255, .85);
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(0,0,0,.4), 0 0 8px rgba(255,255,255,.15);
  opacity: 0;
}
.chalk-tip.animando {
  opacity: 1;
  animation: ticker-slide linear forwards;
}
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100vw - 100%)); }
}


/* ── Móvil ── */
@media (max-width: 760px) {
  .card .excerpt,
  .section-intro { font-size: 19px; }
  .grid          { grid-template-columns: 1fr; }
  .libro-fila    { flex-direction: column; }
  .libro-img     { width: 140px; }
  .artista-fila  { flex-direction: column; align-items: center; text-align: center; }
  .artista-foto  { width: 140px; height: 140px; }
  .chalk-tip     { display: none; }
  .portada-titulo    { font-size: 36px; }
  .portada-subtitulo { font-size: 17px; }

  .nav-links a {
    background: rgba(15,10,5,.90) !important;
    color: rgba(255,255,255,.85) !important;
    border-color: rgba(255,255,255,.3) !important;
    box-shadow: 0 2px 12px rgba(255,255,255,.15), 0 4px 24px rgba(0,0,0,.3);
    font-size: 16px;
    padding: 6px 12px;
  }

  .card .btn { font-size: 16px; padding: 8px 16px; }
}
