/* =========================================
   BLOG / GUIAS - ESTILO GLASS
   ========================================= */

.blog-wrapper {
    /* Fondo unificado con las otras secciones */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/img/contacto.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 60px 0;
    color: #fff;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(41, 197, 246, 0.6);
    margin-bottom: 10px;
}

/* --- FEED DE ARTÍCULOS --- */
.blog-feed {
    max-width: 800px; /* Ancho lectura cómodo */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px; /* Espacio entre posts */
}

/* --- TARJETA DE POST (GLASS) --- */
.blog-post {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.post-content {
    padding: 40px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--c-yellow);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.post-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.post-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

/* --- ÁREA DE INTERACCIÓN (VOTOS) --- */
.interaction-area {
    background: rgba(0,0,0,0.2);
    padding: 20px 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.avg-rating {
    font-weight: bold;
    color: var(--c-cyan);
}

/* Sistema de Estrellas Interactivas */
.star-rating {
    direction: rtl; /* Invertir para que CSS hover funcione de izq a der */
    display: inline-flex;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: #555; /* Estrella apagada */
    cursor: pointer;
    transition: color 0.2s;
}

/* Magia CSS para estrellas */
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--c-yellow); /* Estrella encendida */
}

/* Formulario Comentarios */
.comment-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    margin-bottom: 10px;
    resize: vertical;
}

.btn-vote {
    background: var(--c-cyan);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* --- LISTA DE COMENTARIOS --- */
.comments-list {
    margin-top: 20px;
    border-top: 1px dashed rgba(255,255,255,0.2);
    padding-top: 15px;
}

.single-comment {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: bold;
    color: var(--c-cyan);
}

.comment-date {
    font-size: 0.75rem;
    color: #aaa;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .post-content { padding: 20px; }
    .post-image { height: 200px; }
}