/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.chc-contenedor {
    text-align: center;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chc-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.chc-categoria {
    border: 1px solid #eceef2;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chc-categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chc-categoria img {
    width: 65px;
    height: 65px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.chc-categoria h3 a {
    text-decoration: none;
    color: #191919;
    font-size: 26px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.chc-categoria h3 a:hover {
    color: #52b8aa;
}

/* Contenedor principal del artículo */
.chc-articulo-individual {
    width: 1200px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
}

/* Contenedor de interacciones */
.chc-interacciones {
    margin-top: 30px;
    padding: 20px;
    background-color: #f7f8fc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chc-interacciones-contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 768px) {
    .chc-interacciones-contenedor {
        flex-direction: column;
        align-items: flex-start;
    }

    .chc-votos, .chc-calificacion, .chc-favorito {
        margin-bottom: 15px;
    }
}

/* Likes y Dislikes */
.chc-votos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chc-votos button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: color 0.3s ease;
}

.chc-votos button:hover {
    color: #191919;
}

/* Calificación */
.chc-calificacion {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #555;
}

.chc-estrellas {
    display: flex;
    gap: 5px;
}

.chc-estrellas span {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chc-estrellas span:hover,
.chc-estrellas span.activo {
    color: #ffcc00;
}
/* Estilos para las estrellas */
.chc-calificacion {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #555;
}

.chc-estrellas {
    display: flex;
    gap: 5px;
}

.chc-estrellas span {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chc-estrellas span:hover,
.chc-estrellas span.activo {
    color: #ffcc00;
}

.chc-promedio {
    font-size: 14px;
    color: #888;
}

/* Favoritos */
.chc-favorito {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chc-favorito:hover,
.chc-favorito.favorito-activo {
    color: #ffcc00;
}
/* Estilos para la página de favoritos */
.chc-favoritos {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.chc-favoritos h1 {
    font-size: 28px;
    color: #191919;
    margin-bottom: 20px;
}

.chc-favoritos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chc-favoritos li {
    margin-bottom: 10px;
}

.chc-favoritos li a {
    text-decoration: none;
    color: #52b8aa;
    font-size: 18px;
    transition: color 0.3s ease;
}

.chc-favoritos li a:hover {
    color: #449d8e;
}

/* Asegurar que el footer no se desplace */
footer {
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 20px;
    background-color: #f7f8fc;
    text-align: center;
    box-sizing: border-box;
}

/* Comentarios */
.chc-comentarios {
    margin-top: 30px;
}

.chc-comentarios h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #191919;
}

.chc-comentarios ul {
    list-style: none;
    padding: 0;
}

.chc-comentario {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 4px solid #52b8aa;
}

.chc-comentario strong {
    font-size: 18px;
    color: #191919;
}

.chc-comentario-fecha {
    font-size: 14px;
    color: #888;
    margin-left: 10px;
}

.chc-comentario p {
    margin-top: 5px;
    font-size: 16px;
    color: #555;
}

/* Formulario de comentarios */
.chc-formulario-comentario {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.chc-formulario-comentario input,
.chc-formulario-comentario textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.chc-formulario-comentario button {
    padding: 10px;
    background-color: #52b8aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.chc-formulario-comentario button:hover {
    background-color: #449d8e;
}

/* Estilos generales para la barra de búsqueda */
.chc-busqueda {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    margin-bottom: 20px;
}

.chc-formulario-busqueda {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Campo de búsqueda */
.chc-input-busqueda {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #eceef2;
    border-radius: 15px; /* Ajuste de bordes redondeados */
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.chc-input-busqueda:focus {
    border-color: #52b8aa;
    outline: none;
}

/* Selector de categoría */
.chc-select-categoria {
    width: 100%;
    max-width: 250px;
    border: 2px solid #eceef2;
    color: #191919;
    border-radius: 10px; /* Ajuste de bordes redondeados */
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.chc-select-categoria:focus {
    border-color: #52b8aa;
    outline: none;
}

/* Botón de búsqueda */
.chc-boton-buscar {
    padding: 15px 30px;
    background-color: #c5ff3d;
    color: #191919;
    font-size: 16px;
    border: none;
    border-radius: 15px; /* Ajuste de bordes redondeados */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chc-boton-buscar:hover {
    background-color: #abf400;
}