.body1{
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('imagenes/fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}
/*INICIO: LOGIN Y REGISTRO*/
.body-login {
    overflow: hidden;
}
.logincontainer{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
#header{
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
#logo{
    border-radius: 15px;
    width: 90px;
    height: 90px;
    border-style: solid;
}
#mainlogin, #mainregistro{
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
#loginbox, #registrobox{
    width: 300px;
    border-style: solid;
    border-radius: 15px;
    background-color: rgb(238, 200, 196);
    padding-bottom: 15px;
}
.block1{
    display: flex;
    justify-content: center;
    border-radius: 15px;
    background-color: rgb(238, 200, 196);
    padding-top: 15px;
}
.buttonprincipal{
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
}
.barra{
    font-size: 18px;
    padding-left: 5px;
    padding-right: 5px;
}
.hr1 {
    border: none;
    height: 2px;
    background-color: black;
    margin: 10px 0;
}
.block2{
    display: flex;
    justify-content: center; 
    text-align: center;
}
.boton1 {
    margin-top: 10px;
    border-radius: 15px;
    padding: 6px 20px;
    background-color: rgb(255, 154, 158);
    border: none;
    font-weight: bold;
    color: black;
    cursor: pointer;
}
.input1{
    margin-top: 3px;
    margin-bottom: 8px;
    width: 180px;
    border-radius: 15px;
    border-style: solid;
    padding: 4px;
}
footer{
    text-align: center;
    width: 400px;
    background-color: black;
    color: white;
    border-radius: 15px;
    padding: 10px;
}
footer > h2 {
    margin: 0;
    font-size: 16px;
}
footer > p{
    color: white;
    margin: 4px 0;
    font-size: 12px;
}
/*FINAL: LOGIN Y REGISTRO*/
/*INICIO: HOME*/
#bodyhome {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #F0F2F5;
    color: #2D3436;
    margin: 0;
}
#bodyhome > header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #F0F2F5;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #E0E0E0;
}
#headerizq {
    width: 50%;
    margin-left: 50px;
}
#logoheader {
    width: 80px;
    height: 80px;
    border-radius: 15px;
}
#headerdere {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    margin-right: 50px;
}
#mainhome {
    display: flex;
    justify-content: center;
    margin-top: 120px;
}
.boxhome {
    width: 400px;
    margin: 0 15px;
}
.boxhomein, .menuhome, #hometen, #homesug {
    background-color: #FFFFFF;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-bottom: 20px;
}
.menuhome {
    width: 250px;
    position: fixed;
    top: 120px;
    left: 50px;
}
aside {
    width: 300px;
    position: fixed;
    top: 120px;
    right: 50px;
}
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu a {
    text-decoration: none;
    color: #2D3436;
    display: block;
    width: 100%;
}
.menuhomeizq {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 5px;
    border-radius: 10px;
    cursor: pointer;
}
.menuhomeizq:hover {
    background-color: #F0F2F5;
}
.menuhomeizq:hover a {
    color: #FF5C8A;
}
.headerpubli {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.usuariopubli {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}
.headerpubli > span {
    margin-left: 12px;
    font-weight: bold;
}
.imagenhomein {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}
.botonhome, .agregaramic > button {
    background-color: #FF5C8A;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}
.botonhome {
    height: 35px;
    width: 120px;
}
.agregaramic > button {
    height: 28px;
    width: 65px;
    font-size: 11px;
}
.ulhome {
    list-style: none;
    padding: 0;
}
.lihome {
    margin: 8px 0;
    font-size: 14px;
}
.agregaramic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
/* FINAL: HOME*/
/*INICIO: PERFIL*/
#cabezeraperfil{
    background-color: white;
    display: flex;
    height: 200px;
    width: 700px;
    margin-right: 250px;
    border-radius: 15px;
}
#izqperfil{
    width: 30%;
    border-right: 2px solid #ccc;
}
#izqperfil > img{
    height: 100%;
    width: 100%;
}
#derperfil{
    width: 70%;
    text-align: center;
    padding-top: 50px;
}
#contador{
    display: flex;
    margin-left: 75px;
}
#contador > p{
    margin-right: 30px;
}
#publicacionesperfil{
    margin-top: 100px
}
#publicacionesperfil > hr{
    margin-left: 200px;
    margin-right: 200px;
}
#perfilh2{
    text-align: center;
}
.bloquepublis{
    height: 500px;
    width: 900px;
    margin-left: 300px;
    display: flex;
}
.boxpublis{
    height: 200px;
    width: 200px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-bottom: 20px;
    margin-left: 50px;
    text-align: center;
}
.imagenpublis {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.botonpubli{
    background-color: #FF5C8A;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    height: 35px;
    width: 120px;
    margin-left: 5px;
}
/* FINAL: PERFIL */

/* INICIO: CREAR PUBLICACION */
#mainhome.contenedor-crear {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 140px;
}
#titulocrear {
    text-align: center;
    margin-bottom: 20px;
}
#formcrear {
    height: auto; 
}
.formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 10px 20px;
}
.campo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 300px;
}
.input-crear {
    width: 100%;
    border: 1px solid #DCDDE1;
    border-radius: 8px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background-color: #FAFAFA;
    box-sizing: border-box;
}
#derecrear {
    width: 400px;
    height: auto;
    min-height: 490px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
#derecrear > h2 {
    text-align: center;
}
#derecrear {
    min-width: 400px;
}
.oculto {
    display: none;
}
#btn-publicar:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}
.preview-noticia {
    background-color: #E3F2FD !important;
    border-left: 5px solid #2196F3;
}
.preview-opinio {
    background-color: #FFF3E0 !important;
    border-left: 5px solid #FF9800;
}
.preview-esdeveniment {
    background-color: #E8F5E9 !important;
    border-left: 5px solid #4CAF50;
}
/* FINAL: CREAR PUBLICACION */