/* ==================================================
   CAFÉ + PAPEL · ESTILO GLOBAL
   Identidad: cuaderno, madera, calma
   ================================================== */

/* === RESET LIGERO === */
* {
  box-sizing: border-box;
}

/* === BASE === */
body {
  background: #f2e8da;
  color: #3b2a20;
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* === HEADER / FOOTER === */
header,
footer {
  background: #e6d6c3;
  text-align: center;
  padding: 32px 16px;
  border-bottom: 1px solid #c9b8a6;
}

footer {
  border-top: 1px solid #c9b8a6;
  border-bottom: none;
  font-size: 12px;
  color: #6b5444;
}

header h1 {
  margin: 0;
  font-weight: normal;
  letter-spacing: 1px;
}

header p {
  margin-top: 8px;
  font-size: 14px;
  color: #6b5444;
}

/* === BANNER === */
header.banner {
  padding: 0;
  background: #e6d6c3;
  border-bottom: 1px solid #c9b8a6;
  height: 320px; /* ajustable */
  overflow: hidden;
}

header.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorte elegante */
  display: block;
}

/* === NAV === */
nav {
  background: #ded0bf;
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #c9b8a6;
}

nav a {
  color: #3b2a20;
  margin: 0 12px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* === LAYOUT === */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
}

section {
  background: #fffaf3;
  border: 1px solid #d6c6b5;
  padding: 28px;
  margin-bottom: 40px;
}

h2 {
  margin-top: 0;
  font-weight: normal;
  color: #5a4334;
}

p {
  line-height: 1.6;
}

/* === UTILIDADES === */
.note {
  font-size: 14px;
  color: #6b5444;
}

.date {
  font-size: 13px;
  color: #6b5444;
}

.status {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid #c9b8a6;
  background: #e6d6c3;
}

/* === GALERÍAS (arte / comisiones) === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.gallery img {
  width: 100%;
  display: block;
  border: 1px solid #d6c6b5;
  background: #e6d6c3;
}

/* === COMICS INDEX === */
.comic {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: flex-start;
}

.comic img {
  width: 100%;
  border: 1px solid #d6c6b5;
  background: #e6d6c3;
}

.meta p {
  margin: 6px 0;
  font-size: 14px;
  color: #5a4334;
}

.meta a {
  color: #5a4334;
  text-decoration: underline;
}

/* === BLOG === */
details {
  background: #fffaf3;
  border: 1px solid #d6c6b5;
  padding: 24px;
  margin-bottom: 32px;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* === COMIC READER === */
.page {
  background: #fffaf3;
  border: 1px solid #d6c6b5;
  padding: 16px;
  margin-bottom: 32px;
  text-align: center;
}

.page img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #e6d6c3;
}

.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 14px;
}

.pager a {
  color: #5a4334;
  text-decoration: none;
}

.pager a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .comic {
    grid-template-columns: 1fr;
  }

  main {
    padding: 32px 14px;
  }

  header.banner {
    height: 220px; /* banner más bajo en móvil */
  }
}

