/* =========================================
   1. VARIABLES Y ESTILO BASE
   ========================================= */
:root {
    --amarillo: #FFD002;
    --negro: #111111;
    --gris-texto: #4a4a4a;
    --fondo: #fdfdfd;
    --blanco: #ffffff;
}

body { 
    background-color: var(--fondo); 
    font-family: 'Montserrat', sans-serif; 
    color: var(--negro);
    font-weight: 400;
}

/* =========================================
   2. HEADER (BLOG HERO)
   ========================================= */
.blog-hero {
    padding: 160px 0 60px;
}

.blog-hero h1 {
    font-family: Impact, sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.85;
    text-transform: uppercase;
    margin-bottom: 0;
}

.blog-hero .dot { color: var(--amarillo); }

/* =========================================
   3. GRILLA Y TARJETAS (MODO NORMAL)
   ========================================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    padding-bottom: 100px;
}

.post-card {
    grid-column: span 6;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover { 
    opacity: 0.9; 
    color: inherit; 
    text-decoration: none; 
}

.post-card.featured {
    grid-column: span 12;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

/* =========================================
   4. MANEJO DE IMÁGENES Y DECORACIÓN
   ========================================= */
.img-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 4px;
    display: block;
}

.post-card .img-wrapper {
    height: 300px;
    overflow: hidden; 
}

.post-card.featured .img-wrapper {
    height: 450px;
    overflow: visible; 
    flex: 1.5;
}

.shape-decor {
    position: absolute;
    width: 70%;
    height: 110%;
    background-color: var(--amarillo);
    top: -20px;
    right: -20px;
    z-index: 1;
}

/* =========================================
   5. TEXTOS DE LAS TARJETAS
   ========================================= */
.post-info { flex: 1; }

.post-category {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    color: var(--amarillo);
}

.post-title {
    font-family: Impact, sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
}

.post-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gris-texto);
}

.read-link {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--negro);
    padding-bottom: 5px;
    margin-top: 30px;
    display: inline-block;
}

/* =========================================
   6. MODO BÚSQUEDA (LISTA COMPACTA)
   ========================================= */
.post-grid.buscando {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.post-card.modo-lista {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background-color: var(--blanco) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    padding: 20px !important;
    height: auto !important;
    transition: transform 0.3s ease !important;
}

.post-card.modo-lista:hover {
    transform: translateX(10px) !important;
    box-shadow: 10px 0 0 var(--amarillo) inset !important;
}

.post-card.modo-lista .img-wrapper {
    width: 180px !important;
    height: 120px !important;
    flex: none !important;
    margin-right: 30px !important;
    overflow: hidden !important;
}

.post-card.modo-lista .post-title {
    font-size: 1.5rem !important;
    margin-bottom: 5px !important;
}

.post-card.modo-lista .post-excerpt, 
.post-card.modo-lista .read-link,
.post-card.modo-lista .shape-decor {
    display: none !important;
}

/* =========================================
   7. ETIQUETAS (TAGS) - ¡RESTAURADAS!
   ========================================= */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.kinema-tag {
    background-color: var(--fondo);
    color: var(--negro);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.kinema-tag:hover {
    background-color: var(--amarillo);
    border-color: var(--amarillo);
    color: var(--negro);
    transform: translateY(-2px);
    text-decoration: none;
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .blog-hero { padding-top: 180px !important; }
    
    .post-card.featured { 
        flex-direction: column; 
        gap: 30px; 
    }
    
    .post-card.featured .img-wrapper { 
        height: 350px; 
        width: 100%;
    }
    
    .post-card { grid-column: span 12; }
}

@media (max-width: 576px) {
    .blog-hero { padding-top: 160px !important; }
    .blog-hero h1 { font-size: 4rem; }

    .post-card.modo-lista {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .post-card.modo-lista .img-wrapper {
        width: 100% !important;
        height: 200px !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }
}

/* =========================================
   9. ESPACIADO DEL POST (RESPONSIVE)
   ========================================= */
article.post-container {
    padding-top: 120px; /* Espacio generoso en PC */
}

@media (max-width: 991px) {
    article.post-container {
        padding-top: 80px; /* Espacio ajustado para celular */
    }
}

/* =========================================
   ETIQUETAS ESTÁTICAS (Para las tarjetas)
   ========================================= */
.card-tags .kinema-tag {
    pointer-events: none; /* Esto hace que el mouse las ignore por completo */
}

/* Oculta las tarjetas extra hasta que toquen "Cargar Más" */
.post-oculto { display: none !important; }