@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: 56px 16px 32px;
  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;
}
.header-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  position: relative;
}
.site-title {
  font-family: 'Creepster', cursive;
  font-size: clamp(52px, 10vw, 110px);
  line-height: .9;
  color: var(--bone);
  text-shadow: 0 0 40px rgba(139,0,0,.9), 0 0 80px rgba(139,0,0,.5), 2px 4px 0 rgba(0,0,0,.8);
  position: relative;
  letter-spacing: .04em;
}
.site-subtitle {
  font-family: 'Special Elite', serif;
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
  letter-spacing: .08em;
  position: relative;
}

/* Goteo */
.drip-row { display: flex; justify-content: center; gap: 0; margin-top: 6px; position: relative }
.drip { width: 14px; display: flex; flex-direction: column; align-items: center }
.drip-stem { width: 3px; background: var(--blood); border-radius: 2px 2px 0 0; animation: drip-fall 3s ease-in infinite; transform-origin: top center }
.drip-drop { width: 7px; height: 10px; background: var(--red); border-radius: 50% 50% 60% 60%; box-shadow: 0 0 8px rgba(200,0,0,.7); animation: drip-fall 3s ease-in infinite }
@keyframes drip-fall {
  0%   { transform: scaleY(0); opacity: 0 }
  20%  { transform: scaleY(1); opacity: 1 }
  80%  { transform: scaleY(1) translateY(0); opacity: 1 }
  100% { transform: scaleY(1) translateY(18px); opacity: 0 }
}
.drip:nth-child(1)  .drip-stem { height: 14px; animation-delay: 0s }    .drip:nth-child(1)  .drip-drop { animation-delay: 0s }
.drip:nth-child(2)  .drip-stem { height: 22px; animation-delay: .3s }   .drip:nth-child(2)  .drip-drop { animation-delay: .3s }
.drip:nth-child(3)  .drip-stem { height: 10px; animation-delay: .7s }   .drip:nth-child(3)  .drip-drop { animation-delay: .7s }
.drip:nth-child(4)  .drip-stem { height: 30px; animation-delay: 1.1s }  .drip:nth-child(4)  .drip-drop { animation-delay: 1.1s }
.drip:nth-child(5)  .drip-stem { height: 16px; animation-delay: 1.5s }  .drip:nth-child(5)  .drip-drop { animation-delay: 1.5s }
.drip:nth-child(6)  .drip-stem { height: 24px; animation-delay: .5s }   .drip:nth-child(6)  .drip-drop { animation-delay: .5s }
.drip:nth-child(7)  .drip-stem { height: 12px; animation-delay: 1.9s }  .drip:nth-child(7)  .drip-drop { animation-delay: 1.9s }
.drip:nth-child(8)  .drip-stem { height: 28px; animation-delay: .9s }   .drip:nth-child(8)  .drip-drop { animation-delay: .9s }
.drip:nth-child(9)  .drip-stem { height: 18px; animation-delay: 2.2s }  .drip:nth-child(9)  .drip-drop { animation-delay: 2.2s }
.drip:nth-child(10) .drip-stem { height: 20px; animation-delay: 1.3s }  .drip:nth-child(10) .drip-drop { animation-delay: 1.3s }
.drip:nth-child(11) .drip-stem { height: 8px;  animation-delay: 2.6s }  .drip:nth-child(11) .drip-drop { animation-delay: 2.6s }
.drip:nth-child(12) .drip-stem { height: 26px; animation-delay: .2s }   .drip:nth-child(12) .drip-drop { animation-delay: .2s }

/* Bombillos */
.bulbs { display: flex; justify-content: center; gap: 18px; padding: 14px 0 0; flex-wrap: wrap }
.bulb { width: 12px; height: 12px; border-radius: 999px; position: relative }
.bulb::after { content: ''; position: absolute; inset: -3px; border-radius: 999px; animation: bulb-glow 2s ease-in-out infinite alternate }
.bulb.r { background: #cc0000; box-shadow: 0 0 10px #cc0000, 0 0 24px #cc000066 } .bulb.r::after { box-shadow: 0 0 16px #cc0000 }
.bulb.w { background: #ffe8b0; box-shadow: 0 0 10px #ffe8b0, 0 0 24px #ffe8b066 } .bulb.w::after { box-shadow: 0 0 16px #ffe8b0 }
.bulb.y { background: #c8a84b; box-shadow: 0 0 10px #c8a84b, 0 0 24px #c8a84b66 } .bulb.y::after { box-shadow: 0 0 16px #c8a84b }
@keyframes bulb-glow { 0% { opacity: .4; transform: scale(.9) } 100% { opacity: 1; transform: scale(1.1) } }
.bulb:nth-child(2n) { animation-duration: 1.7s }
.bulb:nth-child(3n) { animation-duration: 2.3s }
.bulb:nth-child(5n) { animation-duration: 3.1s; opacity: .6 }

/* 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 }
@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(.55) contrast(1.15) brightness(.75); transition: filter .3s ease, transform .3s ease }
.card:hover .card-thumb img { filter: saturate(.7) 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%) }

.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(.5) contrast(1.2) brightness(.7) }
.featured-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(18,15,18,.95) 100%) }

.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(139,0,0,.35), 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: 14px 18px; border-left: 4px solid var(--red); background: rgba(139,0,0,.12); border-radius: 0 14px 14px 0; font-family: 'Creepster', cursive; font-size: 20px; letter-spacing: .03em; color: var(--bone); text-shadow: 0 0 20px rgba(200,0,0,.3) }
.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 }
}
