/*
Theme Name: Carmen&Jonh
Theme URI: https://carmenjonh.com
Author: Carmen & Jonh
Author URI: https://carmenjonh.com
Description: Revista de reseñas de novela negra y thriller 2026. Diseño tipo revista editorial oscura.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: carmen-jonh
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Roboto:wght@300;400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --rojo: #c0392b;
    --negro: #0a0a0a;
    --gris-oscuro: #1a1a1a;
    --gris-medio: #2c2c2c;
    --gris-claro: #888;
    --blanco: #f5f5f5;
    --dorado: #c9a84c;
}

body { font-family: 'Roboto', sans-serif; background: var(--negro); color: var(--blanco); }

/* TOP BAR */
.top-bar { background: var(--rojo); text-align: center; padding: 6px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; }

/* HEADER */
.site-header { background: var(--negro); border-bottom: 3px solid var(--rojo); padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; }
.logo { text-align: center; flex: 1; }
.logo h1 { font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 900; letter-spacing: -1px; color: var(--blanco); line-height: 1; }
.logo h1 span { color: var(--rojo); }
.logo p { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--gris-claro); margin-top: 4px; }
.logo .edition { font-size: 10px; color: var(--dorado); letter-spacing: 3px; margin-top: 2px; }
.header-side { flex: 1; display: flex; gap: 10px; font-size: 12px; color: #666; align-items: center; }
.header-side.right { justify-content: flex-end; }

/* NAV */
.site-nav { background: var(--gris-oscuro); display: flex; justify-content: center; border-bottom: 1px solid #333; }
.site-nav a { color: var(--blanco); text-decoration: none; padding: 12px 22px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; transition: all 0.2s; border-right: 1px solid #333; }
.site-nav a:hover, .site-nav a.current-menu-item { background: var(--rojo); color: white; }

/* HERO */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; background: #111; margin: 2px; }
.hero-main { position: relative; overflow: hidden; height: 520px; background: linear-gradient(135deg, #1a0a0a 0%, #2c1010 50%, #0a0a1a 100%); display: flex; align-items: flex-end; padding: 40px; cursor: pointer; }
.hero-badge { position: absolute; top: 30px; left: 30px; background: var(--rojo); color: white; padding: 6px 14px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.hero-stars { position: absolute; top: 30px; right: 30px; color: var(--dorado); font-size: 20px; }
.hero-content { position: relative; z-index: 1; }
.hero-content .categoria { color: var(--rojo); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; }
.hero-content h2 { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 900; line-height: 1.1; margin-bottom: 12px; text-shadow: 2px 2px 20px rgba(0,0,0,0.8); }
.hero-content p { font-size: 15px; color: #ccc; line-height: 1.6; max-width: 500px; margin-bottom: 16px; }
.hero-meta { display: flex; gap: 20px; font-size: 12px; color: var(--gris-claro); }
.hero-sidebar { display: flex; flex-direction: column; gap: 2px; }
.hero-side-card { flex: 1; background: var(--gris-oscuro); padding: 20px; cursor: pointer; transition: background 0.2s; border-left: 3px solid transparent; position: relative; overflow: hidden; }
.hero-side-card:hover { background: #222; border-left-color: var(--rojo); }
.hero-side-card .num { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 900; color: #222; position: absolute; top: 5px; right: 10px; line-height: 1; }
.hero-side-card .cat { color: var(--rojo); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; font-weight: 700; }
.hero-side-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.hero-side-card p { font-size: 12px; color: var(--gris-claro); line-height: 1.5; }
.hero-side-card .nota { margin-top: 10px; color: var(--dorado); font-size: 13px; font-weight: 700; }

/* SECTIONS */
.section { padding: 40px; }
.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; }
.section-header .line { flex: 1; height: 1px; background: #333; }
.section-header .ver-todo { color: var(--rojo); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; font-weight: 700; }

/* CARDS */
.grid-resenas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--gris-oscuro); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(192,57,43,0.3); }
.card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-img-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; font-size: 48px; background: linear-gradient(135deg, #1a0505 0%, #0a0a1a 100%); }
.card-badge { position: absolute; top: 12px; left: 0; background: var(--rojo); color: white; padding: 4px 10px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.card-body { padding: 16px; }
.card-cat { color: var(--rojo); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card h3 a { color: var(--blanco); text-decoration: none; }
.card h3 a:hover { color: var(--rojo); }
.card-autor { font-size: 12px; color: var(--gris-claro); margin-bottom: 8px; font-style: italic; }
.card p { font-size: 12px; color: #aaa; line-height: 1.5; margin-bottom: 12px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #333; padding-top: 10px; }
.estrellas { color: var(--dorado); font-size: 13px; }
.nota-num { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--dorado); }
.nota-num span { font-size: 12px; color: var(--gris-claro); font-family: 'Roboto', sans-serif; font-weight: 300; }
.card-date { font-size: 10px; color: #666; margin-top: 2px; }

/* LAYOUT MIXTO */
.layout-mixto { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding: 0 40px 40px; }

/* SIDEBAR */
.sidebar-widget { background: var(--gris-oscuro); padding: 24px; margin-bottom: 20px; }
.widget-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; border-bottom: 2px solid var(--rojo); padding-bottom: 10px; margin-bottom: 16px; }
.top-list-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #333; cursor: pointer; }
.top-list-item:last-child { border-bottom: none; }
.top-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: var(--rojo); min-width: 36px; line-height: 1; }
.top-info h4 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.top-info p { font-size: 11px; color: var(--gris-claro); }
.top-info .nota { color: var(--dorado); font-weight: 700; font-size: 12px; margin-top: 3px; }
.tag { display: inline-block; background: #222; color: var(--gris-claro); padding: 3px 8px; font-size: 10px; margin: 2px; border-radius: 2px; }

/* BANNER */
.banner-medio { background: linear-gradient(135deg, #1a0505, #0a0a1a); margin: 0 40px 40px; padding: 40px; text-align: center; border: 1px solid #333; position: relative; overflow: hidden; }
.banner-medio h2 { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900; margin-bottom: 10px; }
.banner-medio p { color: var(--gris-claro); margin-bottom: 20px; }
.btn-rojo { background: var(--rojo); color: white; padding: 12px 30px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; transition: background 0.2s; text-decoration: none; display: inline-block; }
.btn-rojo:hover { background: #a93226; }

/* SINGLE POST */
.single-post { max-width: 800px; margin: 40px auto; padding: 0 40px; }
.single-post h1 { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.single-meta { display: flex; gap: 20px; font-size: 13px; color: var(--gris-claro); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #333; flex-wrap: wrap; }
.single-meta .rating { color: var(--dorado); font-weight: 700; font-size: 16px; }
.single-content { font-size: 16px; line-height: 1.8; color: #ccc; }
.single-content p { margin-bottom: 20px; }
.ficha-libro { background: var(--gris-oscuro); padding: 24px; margin: 30px 0; border-left: 4px solid var(--rojo); }
.ficha-libro h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 14px; color: var(--rojo); }
.ficha-libro table { width: 100%; border-collapse: collapse; }
.ficha-libro td { padding: 6px 0; font-size: 13px; border-bottom: 1px solid #333; }
.ficha-libro td:first-child { color: var(--gris-claro); width: 120px; }

/* FOOTER */
.site-footer { background: #050505; border-top: 3px solid var(--rojo); padding: 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo h2 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.footer-logo h2 span { color: var(--rojo); }
.footer-logo p { font-size: 13px; color: var(--gris-claro); line-height: 1.6; }
.footer-col h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--rojo); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--gris-claro); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blanco); }
.footer-bottom { background: #000; text-align: center; padding: 14px; font-size: 12px; color: var(--gris-claro); border-top: 1px solid #222; }

/* PAGINATION */
.pagination { text-align: center; padding: 30px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; margin: 2px; background: var(--gris-oscuro); color: var(--blanco); text-decoration: none; font-size: 13px; }
.pagination a:hover, .pagination .current { background: var(--rojo); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .grid-resenas { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .layout-mixto { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; }
    .hero-sidebar { display: none; }
    .grid-resenas { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; }
    .logo h1 { font-size: 36px; }
    .section { padding: 20px; }
    .layout-mixto { padding: 0 20px 20px; }
}
