body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
}

.barra-navegacion {
    background-color: white;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.logo img {
    height: 40px;
}

.boton-salir {
    background: linear-gradient(to right, #8a4fff, #e94e77);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}
.boton-salir a{
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.contenedor-principal {
    display: flex;
    padding: 20px 50px;
    gap: 70px;
}

.columna-izquierda { 
    width: 250px;
    flex-shrink: 0;
}
.columna-central { 
    width: 60%; 
}
.columna-derecha { 
    width: 35%; 
}

.enlace {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #333;
    margin-bottom: 5px;
    border-radius: 8px;
}

.enlace.activo {
    background: linear-gradient(to right, #8a4fff, #e94e77);
    color: white;
    font-weight: bold;
}

.enlace:hover:not(.activo) {
    background-color: #e4e6eb;
}

.tarjeta-publicacion {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.cabecera-post {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.barra-estadisticas {
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    padding: 12px 0;
    margin: 20px 0;
    display: flex;
    gap: 25px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.zona-comentar {
    display: flex;
    width: 100%;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fcfcfc;
}

.input-comentario-largo {
    flex-grow: 1;
    border: none;
    padding: 14px;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
}

.boton-enviar-lila {
    background-color: #7066e0;
    color: white;
    border: none;
    padding: 0 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-enviar-lila:hover {
    background-color: #5b52c0;
}

.avatar-mini {
    width: 42px;
    height: 42px;
    background-color: #7066e0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.avatar-mini.verde { 
    background-color: #2ecc71; 
}
.avatar-mini.rosa { 
    background-color: #ff4d6d; 
}
.naranja { 
    background-color: #ff9800; 
}


.widget {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.widget h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #222;
}

.usuario-cercano {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.datos-cercano {
    flex-grow: 1;
}

.nombre-cercano {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.distancia {
    font-size: 0.8rem;
    color: #888;
}

.boton-conectar {
    background-color: #f3f0ff;
    color: #7066e0;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.boton-conectar:hover {
    background-color: #7066e0;
    color: white;
}

.tarjeta-crear-publicacion {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tarjeta-crear-publicacion h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
}

.campo-grupo {
    margin-bottom: 20px;
}

.campo-grupo label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-estandar, .textarea-estandar {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.textarea-estandar {
    height: 120px;
    resize: none;
}

.contador-caracteres {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.separador-o {
    font-size: 0.8rem;
    color: #888;
    margin: 10px 0;
}

.botones-accion {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.boton-publicar {
    flex: 1;
    background: linear-gradient(to right, #6a3de8, #5b52c0);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.boton-limpiar {
    flex: 1;
    background: white;
    color: #6a3de8;
    border: 1px solid #6a3de8;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.contenedor-vista-previa {
    margin-top: 40px;
    opacity: 0.8;
}

.etiqueta-vista-previa {
    display: block;
    font-size: 0.7rem;
    font-weight: bold;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.vista-previa-card {
    border: 1px dashed #ccc;
}

.info-usuario-previa {
    display: flex;
    flex-direction: column;
}

.nombre-usuario {
    font-weight: bold;
    font-size: 0.9rem;
}

.tiempo-post {
    font-size: 0.75rem;
    color: #888;
}

.titulo-previa {
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
}

.widget-consejos {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.widget-consejos h3 {
    margin-top: 0;
    font-size: 1rem;
}   

.badge-extra {
    font-size: 0.65rem;
    color: #ff4d6d;
    font-weight: normal;
}

.lista-consejos {
    padding-left: 20px;
    color: #555;
    font-size: 0.9rem;
}

.lista-consejos li {
    margin-bottom: 10px;
}

.tarjeta-perfil-cabecera {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center; 
    position: relative;
}

.avatar-grande {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, #8a4fff, #e94e77);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.nombre-perfil {
    margin: 0;
    font-size: 1.5rem;
    color: #222;
}

.bio-perfil {
    color: #666;
    font-size: 0.95rem;
    margin-top: 8px;
    margin-bottom: 20px;
}

.stats-perfil-horizontal {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.2rem;
    color: #333;
}

.stat-item span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.boton-editar-contenedor {
    position: absolute;
    top: 20px;
    right: 20px;
}

.titulo-seccion {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #444;
}

.pie-widget {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
}

.botones-derecha {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* php usuario */
.usuario-info {
    margin-right: 20px;
    font-weight: bold;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
} 


.caja-blanca-editar {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
}

.caja-blanca-editar h2 {
    margin-bottom: 20px;
    color: #333;
}

.campo-edit {
    margin-bottom: 15px;
}

.campo-edit label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.campo-edit input, 
.campo-edit textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.botones-perfil {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-guardar {
    background: #7066e0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cancelar {
    background: #eee;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
}

.avatar-perfil {
    background-color: #7066e0;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.titulo-post {
    margin-bottom: 5px;
    color: #333;
}

.desc-post {
    color: #555;
    line-height: 1.4;
}

.imagen-post {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.gestion-posts {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn-editar {
    background-color: #7066e0;
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

.btn-eliminar {
    background-color: #ff4d4d;
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

.sin-posts {
    text-align: center;
    padding: 20px;
    color: #666;
}