@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Special+Elite&family=Oswald:wght@300;400;700&display=swap');

:root {
  --black: #080508;
  --deep:  #100d10;
  --panel: #120f12;
  --blood: #8b0000;
  --red:   #cc1111;
  --red2:  #ff2222;
  --bone:  #f0e6d3;
  --muted: #b09080;
  --gold:  #c8a84b;
  --line:  rgba(200,168,75,.22);
  --max:   1180px;
  --r:     20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html, body { min-height: 100% }

body {
  background: var(--black);
  color: var(--bone);
  font-family: 'Special Elite', serif;
  overflow-x: hidden;
}

/* Textura carpa */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(-45deg, rgba(139,0,0,.07) 0px, rgba(139,0,0,.07) 2px, transparent 2px, transparent 28px),
    repeating-linear-gradient( 45deg, rgba(0,0,0,.25)    0px, rgba(0,0,0,.25)    2px, transparent 2px, transparent 28px);
  pointer-events: none;
}

/* Viñeta */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.88) 100%);
  pointer-events: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 80px;
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none }

/* ============================
   HEADER
============================ */
.site-header {
  position: relative;
  text-align: center;
  padding: 36px 16px 20px;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,0,0,.55), transparent 70%);
  pointer-events: none;
}
.site-logo { display: inline-block; line-height: 0; position: relative; z-index: 1 }
.site-logo img {
  width: clamp(200px, 34vw, 330px); height: auto;
  filter: drop-shadow(0 0 22px rgba(180,0,0,.35));
}

/* Goteo */
/* Bombillos */

/* Divider */
.divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 20px; color: rgba(200,168,75,.5); font-size: 18px }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,168,75,.4), transparent) }

/* ============================
   SEARCH
============================ */
.search-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 28px; padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line); border-radius: 14px;
}
.search-bar input {
  flex: 1; min-width: 220px;
  background: transparent; border: 0; outline: 0;
  color: var(--bone); font-family: 'Special Elite', serif; font-size: 14px;
}
.search-bar input::placeholder { color: var(--muted) }

.btn {
  font-family: 'Oswald', sans-serif;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(139,0,0,.25); color: var(--bone); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: rgba(139,0,0,.55); border-color: rgba(200,168,75,.5) }

.pill {
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--muted);
}
.pill b { color: var(--bone) }

/* Section head */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px }
.section-head h2 { font-family: 'Creepster', cursive; font-size: 28px; letter-spacing: .06em; color: var(--red); text-shadow: 0 0 20px rgba(200,0,0,.4) }

/* ============================
   GRID
============================ */
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px }
/* separacion solo cuando la grilla va justo despues del destacado */
.featured-card + .grid { margin-top: 28px }
@media(max-width:980px) { .grid { grid-template-columns: repeat(2,1fr) } }
@media(max-width:600px) { .grid { grid-template-columns: 1fr } }

/* Card */
.card {
  display: block; border-radius: var(--r);
  background: var(--panel); border: 1px solid rgba(139,0,0,.3);
  overflow: hidden; position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px) rotate(.4deg); border-color: var(--red); box-shadow: 0 20px 60px rgba(139,0,0,.4), 0 0 0 1px rgba(200,0,0,.2) }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blood), var(--red2), var(--blood)); opacity: .8 }

.card-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.45) contrast(1.2) brightness(.65); transition: filter .3s ease, transform .3s ease }
.card:hover .card-thumb img { filter: saturate(.65) contrast(1.2) brightness(.85); transform: scale(1.05) }
.card-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%), radial-gradient(ellipse at center top, rgba(0,0,0,.45), transparent 60%) }

.card-number { position: absolute; top: 10px; left: 12px; font-family: 'Creepster', cursive; font-size: 38px; color: rgba(255,255,255,.12); line-height: 1; z-index: 1; text-shadow: 0 2px 6px rgba(0,0,0,.8) }
.card-body { padding: 14px }
.card-title { font-family: 'Creepster', cursive; font-size: 20px; line-height: 1.15; letter-spacing: .03em; color: var(--bone); margin-bottom: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.6) }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px }
.card-excerpt { font-size: 13px; line-height: 1.55; color: rgba(240,230,211,.75) }
.card-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap }
.tag { font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(139,0,0,.4); background: rgba(139,0,0,.15); color: rgba(240,230,211,.85) }

/* ============================
   FEATURED
============================ */
.featured-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border-radius: var(--r); background: var(--panel);
  border: 1px solid rgba(139,0,0,.45); overflow: hidden; position: relative;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 0;
}
.featured-card:hover { border-color: var(--red); box-shadow: 0 30px 90px rgba(139,0,0,.5) }
.featured-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blood), var(--red2), var(--gold), var(--red2), var(--blood)); opacity: .9 }
@media(max-width:700px) { .featured-card { grid-template-columns: 1fr } }

.featured-img { width: 100%; height: 100%; min-height: 280px; overflow: hidden; position: relative }
.featured-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) contrast(1.2) brightness(.65) }
.featured-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(18,15,18,.95) 100%), radial-gradient(ellipse at center top, rgba(0,0,0,.45), transparent 60%) }

.featured-body { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px }
.featured-badge { font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 8px }
.featured-badge::before { content: ''; width: 20px; height: 1px; background: var(--red) }
.featured-title { font-family: 'Creepster', cursive; font-size: 36px; line-height: 1.05; letter-spacing: .04em; color: var(--bone); text-shadow: 0 0 30px rgba(139,0,0,.5), 2px 3px 0 rgba(0,0,0,.7) }
.featured-excerpt { font-size: 14px; line-height: 1.65; color: rgba(240,230,211,.8) }

/* ============================
   DETALLE
============================ */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px;
  transition: color .2s, border-color .2s;
}
.back-link:hover { color: var(--bone); border-color: rgba(200,168,75,.5) }

.detail-header { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(139,0,0,.4); margin-bottom: 20px }
.detail-cover { width: 100%; max-height: 420px; overflow: hidden; position: relative }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.45) contrast(1.2) brightness(.65) }
.detail-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.9) 100%), radial-gradient(ellipse at center top, rgba(0,0,0,.45), transparent 60%) }

.detail-over { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px }
.detail-title { font-family: 'Creepster', cursive; font-size: clamp(32px,6vw,62px); line-height: 1.0; letter-spacing: .04em; color: var(--bone); text-shadow: 0 0 40px rgba(139,0,0,.7), 2px 4px 0 rgba(0,0,0,.9); margin-bottom: 12px }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted) }

.story {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px; font-size: 16px; line-height: 1.82;
  color: rgba(240,230,211,.92); margin-bottom: 20px;
}
.story p { margin-bottom: 18px }
.story p:last-child { margin-bottom: 0 }
.story blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 2px solid rgba(240,230,211,.25); font-style: italic; color: rgba(240,230,211,.8) }
.story b { color: var(--red2); text-shadow: 0 0 10px rgba(200,0,0,.4) }
.story i { color: var(--gold) }

/* Galería */
.galeria img { width: 100%; display: block; margin-bottom: 20px; border-radius: 10px }

/* ============================
   PAGINACIÓN
============================ */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px }
.page-btn { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .1em; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--bone); transition: background .2s, border-color .2s }
.page-btn:hover, .page-btn.active { background: rgba(139,0,0,.4); border-color: var(--red) }

/* ============================
   FOOTER
============================ */
.site-footer {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid rgba(139,0,0,.25);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: 'Oswald', sans-serif; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(176,144,128,.6);
}

/* Responsive */
@media(max-width:768px) {
  .featured-body { padding: 20px 16px }
  .featured-title { font-size: 26px }
}
