body {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 10px;
    padding: 0;
    background-image: url('img_principal/fondo.png'); /* Ruta de tu imagen */
    background-size: cover;      /* La imagen cubre toda la pantalla */
    background-repeat: no-repeat;/* No se repite */
    background-position: center; /* Centrada */
}

header {
    background-color: #fcfcfc;
    display: flex;
    padding: 10px;
    align-items: center;
}

header img {
    margin-right: 40px;
    height: auto;
}

button {
    background-color: #ffffff;         /* Fondo igual al fondo de la página */
    color: #4a90e2;                    /* Texto del color del botón original */
    border: 2px solid #4a90e2;         /* Borde del color del botón original */
    width: 150px;
    height: 50px;
    display: flex;
    justify-content: center;   /* Centra horizontalmente */
    align-items: center;       /* Centra verticalmente */
    padding: 10px 20px;
    margin-left: auto;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.botones_header {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Estilos para las publicaciones */

#lineaAZUL {
    color: #4a90e2; /* Color azul */
    border-bottom: 4px solid #4a90e2; /* Línea azul debajo del texto */
    padding-bottom: 5px; /* Espacio entre el texto y la línea */
    margin-bottom: 20px; /* Espacio debajo del título */
}

.grid {
    margin: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 5 columnas iguales */
    gap: 20px;
    justify-items: center; /* Centra los productos en su celda */
    overflow-x: auto;
}

.publicacion_main {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 350px;
    height: 300px;
    max-width: 350px;
    min-width: 180px;
    transition: width 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.publicacion_main img {
    width: 350px;
    border-radius: 5px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.7); /* Blanco semitransparente, ajusta el 0.5 para más o menos claridad */
    z-index: -1;
}